Results 1 to 2 of 2

Thread: Problem transfering data from gridview to another page

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2003
    Location
    MS
    Posts
    22

    Problem transfering data from gridview to another page

    I am working on a web project in ASP

    I created a hyperlink column in a gridview,

    the NavigateURL is mynewpage.aspx?Name={0}
    The column data item I want is of course in the "Name" column

    When I use Request.Querystring("Name") ... All I get is "{0}" on the new page.

    Whatever I enter after "=" will transfer,
    If I use mynewpage.aspx?Name=bubba, the new page will recieve "bubba".

    When I use {0} withing the gridview to make sure it is picking up the data from "Name" it indeed does, but never transfers the data to the other page.

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Oct 2003
    Location
    MS
    Posts
    22

    Re: Problem transfering data from gridview to another page

    I found the solution.....

    I added these commands to the column:

    DataNavigateUrlFields="Name" DataNavigateUrlFormatString="mynewpage.aspx?Name={0}"

    Works perfectly now!

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