Click here to Skip to main content
15,899,314 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi,

I have created web page containing 10 textboxes, 3 dropdownLists,2 radio buttons. i want to make form refresh function after clicking submit button. I tried like this :-


refresh()
{
textbox1.text=" ";
textbox2.text=" " ;
....
.
.
.
textbox10.text=" " ;
dropdownlist1.selectedindex=0;
}

submit button_click()
{
....
refresh();
}


I want to reset the form controls and update one more record into database after submitting the button.
Posted
Updated 20-Sep-10 18:52pm
v4
Comments
senguptaamlan 20-Sep-10 5:05am    
Please, explain with an example....not getting your problem

1 solution

Your code will help to clear all the data what you enter in the page
but if you want to store the data in database means you have to write more code for that,
 
Share this answer
 

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