<input id="hdnBtn" type="button" value="Button1" name="hdnBtn1" runat="server" onserverclick="assignValue" />
use this line instead ofthis
<input type="button" value="Button1" name="hdnBtn1" runat="server" onserverclick="assignValue" />
I think this may help you..