-
May 20th, 2007, 10:30 PM
#1
Thread Starter
Addicted Member
[RESOLVED] [2005] Saving concurrently
How can I save data concurrently in asp.net using c# and my database is MySQL Database?
I need a sample code so that I can easily understand on how to do it.
Thanks very much!!
-
May 22nd, 2007, 08:01 AM
#2
Re: [2005] Saving concurrently
You'll need to elaborate what you're trying to do.
-
May 22nd, 2007, 07:15 PM
#3
Thread Starter
Addicted Member
Re: [2005] Saving concurrently
Actually what I mean is, for example I have a dropdownlist in a datagrid. Let say in my datagrid I have 3 dropdownlists in each every row. What would be the code to read all of my dropdownlists in every row in just one click of a button to save it into mySQL Database.
Thanks again in advance.
-
May 23rd, 2007, 08:10 AM
#4
Frenzied Member
Re: [2005] Saving concurrently
Hi!
I dont have the exact code, but I would loop through each row in the datagrid, find the dropdownlist using FindControl, get the selected value and insert it to the database... in general terms.
good luck
Henrik
-
May 23rd, 2007, 03:22 PM
#5
Re: [2005] Saving concurrently
You can loop through everything in a DataGrid using the DataGridItemCollection: The .Items property of the DataGrid.
Since you know the column in which the dropdowns exist, do a FindControl() in it, cast it to a dropdownlist type, then read its value.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|