Today, I would like to share you all something that I found while I was trying to deploy my website to Windows Server 2012 and IIS 8.
Generally, we've already known that inside master page, the control of contentplaceholder will be generated as ctl00_ContentPlaceHolder1_ButtonID
But in IIS8, it will be generated as ContentPlaceHolder1_ButtonID
NOTE : The safer way to get the client id is <%= ButtonID.ClientID %>
More about Client ID
http://msdn.microsoft.com/en-us/library/system.web.ui.control.clientid.aspx
http://msdn.microsoft.com/en-us/library/1d04y8ss.aspx
http://www.dotnetcurry.com/ShowArticle.aspx?ID=273
Generally, we've already known that inside master page, the control of contentplaceholder will be generated as ctl00_ContentPlaceHolder1_ButtonID
But in IIS8, it will be generated as ContentPlaceHolder1_ButtonID
NOTE : The safer way to get the client id is <%= ButtonID.ClientID %>
More about Client ID
http://msdn.microsoft.com/en-us/library/system.web.ui.control.clientid.aspx
http://msdn.microsoft.com/en-us/library/1d04y8ss.aspx
http://www.dotnetcurry.com/ShowArticle.aspx?ID=273
No comments:
Post a Comment