Click here to Skip to main content
15,905,323 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
want to clear chach on button in asp.net4.0 using c#.
Description :

i have form on which i use tab contorl when i click on save button i want to clear all chach of that form and reload that form as i run that form first time.

plz help
urgent
Posted

You need to clear the fields when saved successfully. For example
protected btnSave_click(object sender, EventArgs e)
{
   // Check if the values saved successfully where is 
  
  if(isSaved)
   clear_fields();

}

private void clear_fields()
{
  txt_name.Text = "";
}
 
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