Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Set Asp.Net web control ID

Reply
Thread Tools

Set Asp.Net web control ID

 
 
shapper
Guest
Posts: n/a
 
      10-24-2006
Hello,

Can someone tell me where can I find a list of the characters which I
can use in a web control ID?

Can I for example do:

MyLabel.ID = "Namespace#Control_Type"

Thanks,

Miguel

 
Reply With Quote
 
 
 
 
bruce barker \(sqlwork.com\)
Guest
Posts: n/a
 
      10-24-2006
should be a legal xml id. (note: leading special chars are not allowed - ms
breaks this rule)

reg expression: [A-Za-z][A-Za-z0-9:_.-]*

if the id is used with a runat server, then it needs to be a valid .net
identifier.

-- bruce (sqlwork.com)


"shapper" <> wrote in message
news: ups.com...
> Hello,
>
> Can someone tell me where can I find a list of the characters which I
> can use in a web control ID?
>
> Can I for example do:
>
> MyLabel.ID = "Namespace#Control_Type"
>
> Thanks,
>
> Miguel
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to cast type System.Web.UI.Control to System.Web.UI.WebControls.Label and object set to null reference Andy B ASP .Net 2 04-23-2008 04:56 PM
Control, Web Control and Composite Control shapper ASP .Net 6 12-26-2007 02:49 PM
accessing the web user control's control from a web page and set a value from another web page Reny J Joseph Thuthikattu ASP .Net 1 12-30-2004 12:21 PM
How to set position of a web control depending on other control's position at run-time? James Wong ASP .Net Web Controls 4 07-14-2004 10:24 AM
HTML Client Control versus. HTML Server Control versus. Web Server Control Matthew Louden ASP .Net 1 10-11-2003 07:09 PM



Advertisments