ctl Prefix in ClientID
-
guys; I have a drop down in an aspx page, its rendered with an uniqueid (name) that begins with
'ctl'
but with a ClientID(id) that doesn't begin with that prefix. any body knows why.Help people,so poeple can help you.
-
guys; I have a drop down in an aspx page, its rendered with an uniqueid (name) that begins with
'ctl'
but with a ClientID(id) that doesn't begin with that prefix. any body knows why.Help people,so poeple can help you.
ASP.NET rendering engine creates all id attributes to ensure that your page comforts with HTML standard (unique id). Read here some explanations about it: http://msdn.microsoft.com/en-us/library/vstudio/1d04y8ss(v=vs.100).aspx[^] Also notice, that you can control (to a certain level) how those ids are generated...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
-
ASP.NET rendering engine creates all id attributes to ensure that your page comforts with HTML standard (unique id). Read here some explanations about it: http://msdn.microsoft.com/en-us/library/vstudio/1d04y8ss(v=vs.100).aspx[^] Also notice, that you can control (to a certain level) how those ids are generated...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
Sir; Thank you for your reply,But it was simpler than that. I just associated the deployed version with an application pool that uses 4.0 framework. And when I changed it to 2.0, every thing worked normally.
Help people,so poeple can help you.
-
Sir; Thank you for your reply,But it was simpler than that. I just associated the deployed version with an application pool that uses 4.0 framework. And when I changed it to 2.0, every thing worked normally.
Help people,so poeple can help you.
I'm glad you found a solution! Now I suggest you go and learn the differences between ASP.NET 2.0 and 4.x regarding id generation in web pages - it is important!
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
-
I'm glad you found a solution! Now I suggest you go and learn the differences between ASP.NET 2.0 and 4.x regarding id generation in web pages - it is important!
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
Yes, because if you left the ClientID Mode not set it would take the default value from the application bool which is predicable by default which can make some confusion
Help people,so poeple can help you.
-
Yes, because if you left the ClientID Mode not set it would take the default value from the application bool which is predicable by default which can make some confusion
Help people,so poeple can help you.
Nice! And that because All-Mighty-Microsoft decided to change default behavior...Hallelujah!
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)