Click here to Skip to main content
15,914,419 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when i click on button all the data inserted in text boxes getting cleared ..so how can i prevent text box values clearing on clicking button???
Posted

1 solution

If the button posts back,then data will get cleared.If you can prevent that, something like below(Using JQuery)

C#
$('#btnNext').click(function(e) {
        e.preventDefault();
    });



then textboxes will contain the data entered previously.
 
Share this answer
 
v2
Comments
Thanks Rohan... :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900