Results 1 to 5 of 5

Thread: [RESOLVED] [2005] Saving concurrently

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2007
    Posts
    240

    Resolved [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!!

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,173

    Re: [2005] Saving concurrently

    You'll need to elaborate what you're trying to do.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2007
    Posts
    240

    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.

  4. #4
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602

    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

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,173

    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
  •  



Click Here to Expand Forum to Full Width