473,508 Members | 2,032 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access html control in Web form

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
6 3523
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
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
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
Das
Hi
how can I set TextBox as type="password"

Thanks
Das
Nov 18 '05 #5
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
7340
by: rob | last post by:
Hi to all. I am pretty new to using Access and am having a problem I hope someone can help me with. I want to access a MS-Access database from a web page. I have managed to get it "sort" of...
20
1610
by: Allen Browne | last post by:
To help you avoid some of the more common and long-standing bugs in Access, the page: http://allenbrowne.com/tips.html contains a new section entitled, "Flaws in Access". The section currently...
1
1696
by: J | last post by:
Hi, Ive got 3 forms, (a subform within a subform within a form) and when I refresh the outermost form, Access closes and offers to send an error report. The forms worked fine a few weeks ago,...
6
2782
by: MS | last post by:
Access 97 here. I want a simple way to "lock" certain records on a form. Some records remain "live" until all data is available which happens over time. When all the fields are complete, I want...
5
2860
by: c676228 | last post by:
Hi, I guess I am confused. In aspx script, I mean (you won't use Codebehind="enrollinfo.aspx.vb", but mix code with html and code together) You can access user control's property directly. Since I...
7
8083
by: Mike Charney | last post by:
I am trying to use the calendar control in Access (Calendar Control 11.0) I have it working but for only one form. I do not know VB/VBA very well, but how can I open the calendar control, which...
3
6397
by: ivanpais | last post by:
Hi, I have a Web User Control, Lets say "Foo.ascx", that contains a button "btnFoo". I have a Master Page "Bar.master", that has a label "lblBar". This label is exposed by a public property...
2
8018
by: Paolo | last post by:
Hi to all, I have an error that drove me crazy. Try the following page that should only allow to upload a file: <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server">...
3
2216
by: shapper | last post by:
Hello, In have a class inside a compiled DLL where I have the following code: ' Create site map XML document Dim siteMap As XmlDocument = New XmlDocument ' Load site map XML document from...
5
5317
by: ARC | last post by:
Just found out something interesting with Access 2007... In table design, if you set a memo field to the new rich text option, and put that control on a form, set the control to rich text, you can...
0
7127
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7331
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7391
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5633
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4713
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3204
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
768
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
424
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.