0

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.

3
Contributors
6
Replies
7
Views
7 Years
Discussion Span
Last Post by dnanetwork
0

you mean you want to clear the fields on page ? or you want to show updated data on fields after making update ?

0

I need to clear the fields once i click on submit button and then it is updating in SQL.so we need to enter the next data to be uploaded in Database..if those datas are already in those field how to clear that..Thnx rohand for early revert

0

Oh okay...once your query get executes after that you can clear your controls from page. like textbox1.text = "" or combo1.SelectedIndex = 0 something like that.

I need to clear the fields once i click on submit button and then it is updating in SQL.so we need to enter the next data to be uploaded in Database..if those datas are already in those field how to clear that..Thnx rohand for early revert

0

yes i have done it for clear button,but if i have huge fields means it is very tedeious to give it for all fields like " ",,Is it?

0

yes it's tedious. You can create private function in your page and then call it on your Clear button event and also after executing query by clicking on submit button.

yes i have done it for clear button,but if i have huge fields means it is very tedeious to give it for all fields like " ",,Is it?

0

on postback event Rebind the data..
so you get the updated data when u hit the submit button.

hope that heps

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.