Thankx for your quick reply...
Originally Posted by TomGibbons
My problem is, I have this DataSet which is having all the DataTables required to fill all my different controls. I have declared it as the class member itself. All other different methods need to share the same copy of the DataSet. I am calling
I am having 3 more methods which updates the same dataset based on the client action, basically button clicks.
private void Page_Load(object sender, System.EventArgs e)
fillDataSet(); //I am feeling the DataSet the default values.
I am doing the following tasks at one of the button click event :
Same for all the 3 click events. ( I have 3 buttons, except the "Finish" )
private void btnRightShift_Click(object sender, System.EventArgs e)
//Do all the dataset operations
//Again Save the dataset to the Sessions for the other methods to use :(
//Do other stuffs
I need to do this as these button clicks are making the page to be posted back and the DataSet object is created again, and all the updates by the user are lost.
Basically, I dont need the form to be posted for those 3 button clicks, I do have a "Finish" button to finally post the form.
Can I prevent that to happen ?