Monday, July 7, 2008

Batch Insert from GridView



Some time back i have done simple timesheet with no extra thing doing just insert my data from Gridview which will come as forms to user and User will Fill the form and and click on the BUTTON and his data for that day will get Saved for that Day.



Here in above image where button event is there so that using this we can insert the data into the database.

Here, Logic is very simple we are looping through the Grid and inserting the data by finding control within the Asp:TemplateField and we are done doing it.

Thanks
Hope this will be helpful to someone.

Parth

No comments: