HtmlTextBox control ?

T

Thomas McFarlane

I am trying to use a textBox control from the HTML tab within the VS.Net IDE
designer. How do I reference this control (ie. txtMyName.Value). The
FindControl does not find it because it is an HTML control, not a SAP.Net
Webform control.

Thanks

Tom
 
E

Eliyahu Goldin

Tom,

If you want to access the control on server, add attributes runat=server and
id. Then you can access it just by id.

Eliyahu
 
T

Thomas McFarlane

Thanks Eliyahu. That works perfect!
Tom

Eliyahu Goldin said:
Tom,

If you want to access the control on server, add attributes runat=server
and
id. Then you can access it just by id.

Eliyahu
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top