Accessing a control in InfoPath form in C#

F

Faiyaz

I have a InforPath Form with a text box and a button. I want to
programmatically access the text box control as an instance of TextBox
control and not as a XML node or element. Is it possible to do that? If yes,
how?
Thanks!
 
M

madhur

Faiyaz said:
I have a InforPath Form with a text box and a button. I want to
programmatically access the text box control as an instance of TextBox
control and not as a XML node or element. Is it possible to do that? If yes,
how?
Thanks!

Hi

This is not possible. The controls in infopath AFAIK do no derive from
System.Web.UI.Controls.

The whole infopath form is transmitted as XML, so the only way to
modify their values
is via XML.

Regards,

Madhur
 
G

Greg Collins [InfoPath MVP]

This is correct. The controls are HTML controls, but are not accessible via code. Only the values are accessible via the DOM.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top