Rowupdating net Cam2cam thai girls
-Frinny @Frinavale sorry frinny for my titile i use......
Actually I made a data acces layer class, buiness logic layer class & presentation layer(page). In most of the books generally direct update query is written on aspx page under sql data source using update commnad property & do updation in grid view. Now i do not want to use update command or connection string in sql data source.
But if you need to get data from the user for updating purposes then, no, you should do it in the Page Pre Render event instead.
-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 want to say one more thing i call the display method at the end of every event which i handled ....
Ok the reason why you aren't losing data is because you are only doing your Data Bind in your Page Load event the first time the page is loaded (if ! This way your data is not getting over written when the user-provided-edit-data is posted back to the server.
This saves time but it depends on how long you can tolerate "old data" being displayed.
Anyways, once you've populated your data source (or retrieved it from cache) you set the Grid View.
Edit: if you do a Data Bind in the Page Load event every page request all of your data will be lost It's the most common problem that people have with Grid Views that I've noticed.
If you don't need to get data from the user, than yes you can do the Data Bind in the Page Load event.
What you would have to do is implement a method that handles the Grid View. In this method you will have to retrieve the data from the row that is updating and use this data to update your database.