Access html control in Web form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have defined some html elements like html password field in the html tag section.
Now i want to access it into the Web form Code

Thank in advanc

Das
 
Hi
I want to access the control within the same web form. I think this doesn't wor

Thanks in advance
Das
 
you can access html controls only on post back of that Form. and as i know
this is the only way you can access them.
you cant access like normal server control.

Av.
 
I hope you dont want to set this in code behind?
use <input type="password"/> for password text and if its server control use
TextMode = Password in properties window.

Av.
 
You have to set runat=server. This will turn your element into a server
control. Also you need to give your element an id. Then you can find the
element with method FindControl (your id). The method should be called on
the element's parent.

Eliyahu
 
Back
Top