I need jquery.how, I get the value of the hidden field after the message back to csharp. when ever a post back occurs value disappears. this is my hidden field.
<asp:HiddenField ID="Hid_BasicSalary" runat="server" />
this is jquery code where it assigns data to it after successfully executing ajax web service.
var BasicSalary = $('Hid_BasicSalary'); BasicSalary.val(data["BasicSalary"]);
this is code with clear code, when I click the postback button, it happens after this node data.
protected void Btn_PIncrementSave_Click(object sender, EventArgs e) { try { TxBx_IncrementAmount.Text = Hid_BasicSalary.Value.ToString(); } catch (Exception ex) { Utility.Msg_Error(this.Master, ex.Message); } }
Please help me
source share