Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Elements

Status
Not open for further replies.

MrKhalid

Programmer
Joined
Oct 13, 2003
Messages
1
Location
SA
Hi All,

How would I be able to figure out the controls on a single ASP.net Webforms by coding? Example:
I would use the following JScript with classic ASP page.

document.all.length

How would I do something like this in ASP.NET web forms using VBScript?

What I am trying to do here is to build my SQL statment based on the server controls found in a single form.

Thanks
 
You can use something like:

Dim objControl As Control
For Each objControl In Me.Controls
Response.Write(objControl.ID)
Next
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top