I want to set desired ClientID in dynamic generated controls. ClientID is read only if you have any idea to set desired ClientID to controls than tell me
I want to set desired ClientID in dynamic generated controls. ClientID is read only
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This can only be done in .Net 4 onwards
It shouldn’t matter though, for CSS always use classes which asp.net won’t touch and for javascript you can sprinkle:
So whatever .Net decides the ID will be it will all wire up correctly:
I use this sort of thing extensively..