SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Dec 2008
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Problem with Gridview and Postback

    Hello everyone,

    this is my first post!

    Inside the gridview (see the pic), there are two type of
    rows

    1.- green -> rows obtained by db
    2.- red -> rows obtained by rowdatabound event

    IMAGE
    img233.imageshack.us/img233/3528/lalaqg4.jpg

    The problem happen when I click the continuar button... I
    want to obtain the values in the checkbox and textbox
    fields, but i can't. Apparently the postback event, not
    triggers the rowdatabound event (in fact there only show
    two first green marked rows, just in the position there
    begins rowdatabound event)

    Somebody can help me??
    thx for the help!!!!

    (sorry for my english!)

  2. #2
    SitePoint Zealot
    Join Date
    Mar 2005
    Posts
    162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    regrab the data on postback,
    OR
    when the page loads put the data into a hidden field or something too.

    i would recommend the first way.
    Web Application Development & Maintenance

  3. #3
    SitePoint Member
    Join Date
    Dec 2008
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi, thank's for the reply...

    probably i'm wrong in this portion of code, take a look:

    for each row2 in gridview2.rows
    response.write (row2.cells(8).text.tostring)
    next

    this code returns six rows with db values (see pic) and not returns any of the other non-db files...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •