Google Community Chat
 
how to find web control in asp.net page

You're visiting Google Community as a guest.
In order to post, you'll need to register and log in.

(If you were registered and logged in, these advertisements wouldn't be here)
Post new topic   Reply to topic    Google Community Forum Index // Web Design, Coding & Programming Forum
   
Author Message
debayanroy
Noogle
Noogle


Joined: 05 Jul 2006
Location: Kolkata India
1272.63 GC$

Items

PostPosted: Thu Oct 19, 2006 6:23 am    Post subject: how to find web control in asp.net page Reply with quote

I am using Asp.Net 1.1 Visual studio 2003, in a web Page
there are some web control like, Label, textbox, Checkbox etc. I have to find
Id of the all Label in the page.




Can any one please give me a suggestion & code how to
solve it?






 I use this following code:




  Dim c As Control




   Dim i As Integer = 0




  For Each c In
Page.Controls




  If
c.GetType.ToString.Equals("System.Web.UI.WebControls.label") Then




      i = i + 1




  End If




  Next

Back to top
View user's profile Send private message Send e-mail
ronald.net
Noogle
Noogle


Joined: 30 Sep 2006

323.50 GC$

Items

PostPosted: Mon Nov 13, 2006 1:59 am    Post subject: Reply with quote
i not very sure about visual studio 2003, but u better use visual web developer 2005, you can easily use that kind of controls, you can look into that controls properties, you can easily find the ID of your controls there...
Back to top
View user's profile Send private message
Sponsored Links
Posted: 5 Dec 2008 4:04 am    Post subject: Advertisements
Back to top
Post new topic   Reply to topic    Google Community Forum Index // Web Design, Coding & Programming Forum All times are GMT - 8 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Host your free forums with Invision Plus.net forum web hosting with your own subdomain.

alexisBlue v1.2 // Theme Created By: Andrew Charron // Icons in Part By: Travis Carden

© 2005-2006 Google Community

Powered by phpBB

Privacy Policy | Contact Us

Powered by Google Search blog

This website is not affiliated in any way with Google, Inc.
Google™ is a registered trademark of Google, Inc.