By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,130 Members | 2,228 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,130 IT Pros & Developers. It's quick & easy.

Access html control in Web form

P: n/a
Das
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
Nov 18 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
use Request.Form["ControlName"].

Av.
"Das" <ja********@yahoo.com> wrote in message
news:0D**********************************@microsof t.com...
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 advance

Das

Nov 18 '05 #2

P: n/a
Das
Hi
I want to access the control within the same web form. I think this doesn't wor

Thanks in advance
Das
Nov 18 '05 #3

P: n/a
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.

"Das" <an*******@discussions.microsoft.com> wrote in message
news:5E**********************************@microsof t.com...
Hi,
I want to access the control within the same web form. I think this
doesn't work

Thanks in advance.
Das

Nov 18 '05 #4

P: n/a
Das
Hi
how can I set TextBox as type="password"

Thanks
Das
Nov 18 '05 #5

P: n/a
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

"Das" <ja********@yahoo.com> wrote in message
news:0D**********************************@microsof t.com...
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 advance

Das

Nov 18 '05 #6

P: n/a
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.

"Das" <an*******@discussions.microsoft.com> wrote in message
news:D9**********************************@microsof t.com...
Hi,
how can I set TextBox as type="password"

Thanks,
Das

Nov 18 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.