Rowupdating old values null


14-Mar-2020 21:39

@Frinavale Now I get the answer your mean is that when we bind the data at page load event.the view state is already loaded with previous value & that value again saved in a view state so the same data is displayed again & again whether you edit the data in a grid view or not. other thing i want to know what about the load postback event that is also fire between pageprerender & page load .Data Bind method to bind the Grid View to the data source.I do this in the Page Pre Render event for a bunch of reasons...example if you bind in the Page Load event every page request you will have problems with getting the values that the user entered while editing (because these values will be over written with the data that you've bound to).

rowupdating old values null-54

Teen cybersex dating

I've never actually used the Sql Data Source before. So, you need to populate the object that you are going to use as your data source at some point in your page life cycle.Wouldn't it be easier if you just had to call it once?That is why I recommended that you do this in your Page Pre Render event.-Frinny @Frinavale The event is fired between load view state & save view state when the event is fired it set the values in textbox or whatever server control we used. Then there is no matter of data loss if you load the page again but I have to bind data in a grid view through view state on page load no chance of data loss. NET Page Life Cycle for a more detailed explination. Data Bind in the Page Load event (without checking if it's postback) then you will not be able to retrieve user input in the Grid View. -Frinny The View State is stored some time in between the Page Pre Render event and the Save State Complete event (heading towards the Render stage).

All of this is covered in the article I sent you a link to :) I'm not sure what you mean by: @Frinavale Now i implemented the editing in gridview i handle events & after that i call display method in which i bind the grid view on page load event its work correctly.......

I'm not sure what you're stuck on so if you provide more information I can give you more help on the topic.