53
rated 0 times
[
55]
[
2]
/ answers: 1 / hits: 7489
/ 10 Years ago, sun, april 6, 2014, 12:00:00
I'm trying to set hidden field value in JS which I think works fine with this approach:
<asp:HiddenField ID="hfLatSW" runat="server" />
var latSW = bounds.getSouthWest().lat();
$('#<%=hfLatSW.ClientID %>').value = latSW;
I am trying to access the value on asp.net button click in code behind gives me null value. What might be happening in the postback and why am I not able to access the value set by JavaScript?
More From » c#