I want to save the value of my HiddenField in the database. But I don't know what comes after the comma.
cmd.Parameters.AddWithValue("@hfLat", what goes here?)
I tried:
cmd.Parameters.AddWithValue("@hfLat", HiddenField.Value); // Doesn't work.
html:
<asp:HiddenField ID="hfLat" runat="server" />
You want to access control via Id which is hfLat in this case.