Set Asp.Net web control ID

S

shapper

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
 
B

bruce barker \(sqlwork.com\)

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top