Users Pricing

forum

Home Forums Change server side control's value in javascript function – MindStick

Change server side control's value in javascript function

Anonymous User 2223 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);");


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md