Click to See Complete Forum and Search --> : Hyperlink with different values in Data Grid


KGY
June 21st, 2002, 08:32 AM
Hi,

I have a datagird with all the value listed. A unique number field is also listed in the gird which has to a Hyperlink.

So when I click the hyperlink of unique field, I need to open another page by passing Unique field value as Query String.
How can I achieve this functionality?

Thanks in advance..

just-in time
July 3rd, 2002, 09:37 AM
Start the property builder for the grid

Select the unique id column an set the property "URL Format string" to YourPage.aspx?<I>Yourid</I>={0}

Set the URL field to <I>YourID</I> field

In YourPage.aspx you can now set a variable to

<B>Variable</B> = Request("<I>YourID</I>")

Then fill your dataset or table or wathever with the proper data