I set a javascript function to click event of LinkButton and want to set Label's text in this function,function call and pass data to it but after that when i want to read text of that Label from code behind,text is ""
//javascript function
function PopUpFunction(code) {
$("#<%= lblStatus.ClientID %>").text = code;
}
//set function to click event
lnk.Attributes.Add("onclick", "PopUpFunction(10);");
//Edit
I test Label (lblStatus) when i click on link button that call javascript's function,the text of label change but in code behind doesn't show this text (for example if text of label is 5 after i set new text in javascript's function again in code behind text is 5 although actual text is 10)
codeactually contains a value. The proper statement though is.text(code). Also, you'll want to test that the control you're accessing (lblStatus) is the proper control and the ID being produced is accurate.