Data to be cleared after the page unloaded

Posted by Seger under ASP.NET on 7/20/2010 | Views : 1283 | Status : [Member] | Replies : 5
hi,
Wen i give the submit button in my aspx page ,the datas is updating in sql,but the page refreshes with the old data,it should be clear in the corresponding fields.
pl.guide me.




Responses

Posted by: Parimi.chowdary on: 7/20/2010 [Member] Starter

Up
0
Down
write a func to clear the all the feilds and call that func in end of the save button event .

Seger, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Seger on: 7/20/2010 [Member] Starter

Up
0
Down
wil try it sir

Seger, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Seger on: 7/20/2010 [Member] Starter

Up
0
Down
ya that i have given as clear button before submitting,But my question is to clear after the page gets refereshed..


Seger, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vikvish on: 7/21/2010 [Member] Starter

Up
0
Down
debug your code using Breakpoints. if not any success
then post ur code here...

with regards
vik

vikram

Seger, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Neeks on: 7/21/2010 [Member] Bronze

Up
0
Down
Please make sure that you are binding the data in the control after validating the IsPostback.

If you are binding the data at the page load, you have to clear the data in if(!IsPostBack)

This might solve your problem.

Thanks,

Seger, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response