Click here to Skip to main content
15,667,475 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a fews textboxes with submit button.we submit the values and textbox will be clears. now i will press the F5 key.the blanks values will be saved .
how you can stopped the page refreshing ?
Prasad_Kulkarni 23-Nov-11 8:59am    
just give validation to text boxes, that if txtbx.text = string.empty it must not get stored into db..

Share this answer
hi prakash,
you can't disable refresh button if u want to disable
you can write this
//this is disable browser right click only
Share this answer
Hi joti parkash,

Try adding the following on your page load event:

//code here

Share this answer
joti parkash 23-Nov-11 4:40am    
this is not a right answer.i am not talking about the page load.

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