It’s there a way i can control the ID of my HtmlGenericControl.
I try to create my own HtmlGenericControl and override UniqueID, ClientID, onPreRender etc … but nothing work
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.
The following article demonstrates how to override controls your own ID’s. Whilst it does not show how to do it for htmlgenericcontrol it should be pretty easy to figure out from all the other examples.
How to Display Asp.Net Controls with Clean ID Values