How to store the value of the textbox in asp.net (csharp ) value in to the javascript array in client side each time when clicking the button .
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know 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
Santhosh NRank #4,788 · 325 reputationPosted Dec 26, 2010, 8:53 PM EST
var myArray = new Array();
myArray[0] = 'soem value';
document.getElementById('hdnCtrl1').value = myArray;
Suthish NairRank #92 · 22.8K reputationPosted Dec 26, 2010, 10:36 PM EST