How to change name attribute of a hidden field?

StA1L3r

New Member
I have a hidden field on my aspx page and I use masterpage.Without using masterpage everything is fine and name attribute of hiddenfield is correct.\[code\]<asp:HiddenField ID="apiversion" ClientIDMode="Static" runat="server" />\[/code\]After rendering, result html is;\[code\]<input type="hidden" name="apiversion" id="apiversion" value="http://stackoverflow.com/questions/15575249/v0.01">\[/code\]But if use masterpage then result html is being like;\[code\]<input type="hidden" name="ctl00$ContentPlaceHolder1$apiversion" id="apiversion" value="http://stackoverflow.com/questions/15575249/v0.01">\[/code\]But I have to use masterpage and need name attribute as 'apiversion', not as 'ctl00$ContentPlaceHolder1$apiversion'.Any solution?
 
Back
Top