CSS
How to call jquery from code behind
here i have to pass parameter to jqueryHow to call jquery from code behind
here i have to pass parameter to jqueryKnow the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Hemant KumarRank #1,202 · 1.5K reputationPosted Nov 20, 2011, 6:31 PM EST
You can do this, but it will only be executed when the page is delivered or you receive a Postback.
See http://msdn.microsoft.com/de-de/library/z9h4dk8y.aspx for documentation.
string jquery = "$('.commentsnr').live(\"click\", function () {$li = $(this).closest('li');$li.find(\"#commentload\").slideToggle(300);});" ClientScript.RegisterStartupScript(typeof(Page), "a key", ""+ jquery +"" );Kunal Naik163 reputationPosted Nov 20, 2011, 8:01 PM EST
Refer following links,
Click Here
Click Here
Hope its help you.