Hi All,
I am creating the textbox dynamically & I am entering data into it. when i say ADD New text box button I am loosing the data which i entered in previous textboxes ..
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
SIVAPosted Jan 31, 2012, 4:09 AM
<
input id="btnAddJK" style="width:26px;height:20px" type="button" value="add" size="30" align="top" onclick="btnAddJK_onclick()" />& onclick() event which is presented in Script tag as follows.
var
function btnAddJK_onclick() {var _txtID="txtJK"+_CountJK;
var d = document.getElementById("divJK");
d.innerHTML += "";
_CountJK++;
}
_CountJK = 2;Review this code & reply me
Jignesh TrivediPosted Jan 30, 2012, 10:39 PM
Can please Share more information?
How u add dynamically Text box ? using Javascript or C# code?
I think also there is problem of Script.
SIVAPosted Jan 30, 2012, 9:35 AM
Mayur GujrathiPosted Jan 30, 2012, 9:18 AM
Always keep textbox data in datatable whenever you add new textbox and call SetPreviousData method and assign againn all values from databale to textboxes
Try this example...........
What sam wants to tell not getting??????????
Jignesh TrivediPosted Jan 30, 2012, 6:42 AM
This is due to page post back.
I this you may add textbox using JavaScript or jquery.
so page not get post back.
hope this help.
SIVAPosted Jan 30, 2012, 4:03 AM
Sam HobbsPosted Jan 27, 2012, 3:53 PM