forum

Home / DeveloperSection / Forums / Change server side control's value in javascript function

Change server side control's value in javascript function

Anonymous User 1852 29-Aug-2014

I want to set Label's text in javascript function, function call and set text to Label and I see it but when I want to read Label's text from code behind the text is previous text (for example if label's text is "5" and I set it to "10" in function but in code behind text is "5")

Javascript function

function PopUpFunction(code) {

  $("#<%= lblStatus.ClientID %>").text(code);

  return false;

}

Set function to click event of LinkButton

lnk.Attributes.Add("onclick", "PopUpFunction(10);");


Updated on 01-Sep-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By