Last post Feb 13, 2014 12:25 AM by Eileen ni - MSFT
Feb 08, 2014 07:20 AM|Fahim876|LINK
How can I store data of Gridview to a table of SQL Database.? For Example:
The Gridview has following columns:
4. DOB5. Email
All these data in the Gridview should be stored in the table named "contacts" under right columns (Name,Country, Job, DOB, Email) in SQL.
Please advise on how to implement this using VB.NET.
Feb 08, 2014 07:45 AM|AidyF|LINK
This post contains code on how you traverse a GridView to access the controls inside it. It's in c# but the basics are the same.
Feb 08, 2014 07:52 AM|Fahim876|LINK
The given post in your comment doesn't include any section to show gridview data in database.
Please advise on this.
Feb 12, 2014 03:02 AM|Eileen ni - MSFT|LINK
Thanks for your post.
According to your description,Based on my understanding,you want to save data in gridview to sql database.
So here is a sample:
Save and Retrieve Dynamic TextBox values in GridView to SQL Server
Hope this helps you.
Feb 12, 2014 02:38 PM|Fahim876|LINK
Thanks for your reply,
I need the gridview data to be stored in database. For example:
If the Gridview has following columns:
Feb 13, 2014 12:25 AM|Eileen ni - MSFT|LINK
Thanks for your reply.
According to your description, maybe you want display data from database in gridview in my view.
You can code in page_load,like this:
protected void Page_Load(object sender, EventArgs e)
If I misunderstand you,Please provide us more information.