User Profile

Collapse

Profile Sidebar

Collapse
sasha3
sasha3
Last Activity: Jan 21 '14, 10:27 AM
Joined: Aug 31 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • save multiple records from xml column to multiple rows in db table

    From my C# code i execute following SP, to save the xml file into a table.
    I would like to save a row in my table for each ComponentModule element.

    Code:
    <ComponentModules>
        <ComponentModule ComponentModuleID="5"/>
        <ComponentModule ComponentModuleID="6"/>
    </ComponentModules>
    Now i have something like this in my db table:
    ...
    See more | Go to post

  • sasha3
    replied to xml to gridview then save to database
    in XML
    Sometimes i get the error: (i don't know why sometimes i don't get this error).

    "Procedure or function ... has too many arguments specified."

    I added in the for loop from cs code:

    cmd.Parameters. Clear();

    so know it save to my database blank rows. Can anyone help me?
    See more | Go to post

    Leave a comment:


  • sasha3
    started a topic xml to gridview then save to database
    in XML

    xml to gridview then save to database

    Hi,

    I never worked before with XML, so i don't know if what i'm trying to do is the best way or not.

    My XML is very complex, so i work with XPath to get to the elements i am interested from the file, as you can see in my .cs code, in XMLDataSource.

    What i made until now and works fine is, my gridview populated with the desired data from xml.

    I wish to import my data from gridview to a table...
    See more | Go to post

  • Thank you very much for your detailed answer, i try now to implement this. Also found a nice, article,
    http://www.singingeels.com/Articles/...in_ASPNET.aspx...
    See more | Go to post

    Leave a comment:


  • I have considered this, but i commented the
    //ddl.ID = "dropdownlist1" ; from the InstantiateIn method because i could not use it.

    If i go for something like:
    (DropDownList) txt1 = (DropDownList)) grdMatrix.Rows[1].Cells[1].FindControl("d ropdownlist1");
    (DropDownList)) grdMatrix.Rows[1].Cells[2].FindControl("d ropdownlist2"); .....and so on ...but i don't know how many dropdownlist i will...
    See more | Go to post

    Leave a comment:


  • access values from dynamic generated textbox (or dropdownlist) in a gridview

    In my asp page when press a button, a gridview will be populated with data from db, but beside the columns from database i need a new dynamic column in gridview, to contain only dropdownlist with items number from 0-n.


    This far i managed to do it, with some research on internet (i used an intemerdiet datatable to apply ItemTemplate from GridViewTemplat e class, and than merged it to datatable containg the result from query, so...
    See more | Go to post
    Last edited by Frinavale; Aug 31 '10, 02:12 PM. Reason: Added code tags. Please post code in [code] ... [/code] tags in the future.
No activity results to display
Show More
Working...