I\'m having some issues setting a value to a HiddenField in ASP.NET 4.5.
From what I\'ve seen I\'ve tried the following without any luck:
In ASPX:
In the hidden field tag add clientid static like this -
This way ASP.Net will not replace it with dynamic ID and always have the id that you provided, so it will now have ID HiddenField. Then your second attempt should work.
More can be found here -
http://msdn.microsoft.com/en-us/library/system.web.ui.control.clientidmode(v=vs.110).aspx