I have set all value using Jquery then I cant get value of text box in codebehind
function GetAutoGRNCode(SelectedGRNType) {
$.ajax({
type: "POST",
url: currLoc + '/GetAutoGRN_Code',
data: '{selectedGrnType: ' + SelectedGRNType + '}',
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
//alert(response.d);
$("[id*=txtgrncode]").val(response.d);
},
failure: function (response) {
alert(response.d);
}
});
}
protected void btnAdd_Click(object sender, EventArgs e)
{
bl.GRNCode = txtgrncode.Text.Trim();
}
Value is blank in txtGRNCode