Home > Archive > ASP > March 2008 > PASSING A QUERYSTRING PARAMETER
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
PASSING A QUERYSTRING PARAMETER
|
|
| JORGE MALDONADO 2008-03-17, 6:57 pm |
| I am new to ASP.NET 2.0 and I am developing a small application which
originally consists of 2 pages. The first page displays a GridView Control
loaded with data from a sqlDataSouce. Such a GridView has a field that is a
hyperlink to the second page which is supposed to display the detail of the
record. What I want to do is to send a QueryString Parameter to the second
page with the key to retrieve the record selected and show the information in
detail (a long description, a picture of a product, comments, price, etc.).
I have not written a single line of code (code-behind) for the first page.
How can I get the second page and send the querystring parameter?
| |
| Bob Barrows [MVP] 2008-03-17, 6:57 pm |
| JORGE MALDONADO wrote:
> I am new to ASP.NET 2.0
There was no way for you to know it (except maybe by browsing through some
of the previous questions in this newsgroup before posting yours - always a
recommended practice) , but this is a classic asp newsgroup. ASP.Net bears
very little resemblance to classic ASP so, while you may be lucky enough to
find a dotnet-knowledgeable person here who can answer your question, you
can eliminate the luck factor by posting your question to a group where
those dotnet-knowledgeable people hang out. I suggest
microsoft.public.dotnet.framework.aspnet or the forums at www.asp.net.
> and I am developing a small application which
> originally consists of 2 pages. The first page displays a GridView
> Control loaded with data from a sqlDataSouce. Such a GridView has a
> field that is a hyperlink to the second page which is supposed to
> display the detail of the record. What I want to do is to send a
> QueryString Parameter to the second page with the key to retrieve the
> record selected and show the information in detail (a long
> description, a picture of a product, comments, price, etc.). I have
> not written a single line of code (code-behind) for the first page.
> How can I get the second page and send the querystring parameter?
There are several relevant tutorials for using gridviews at
msdn.microsoft.com, at least one of which will show you how to accomplish
this task.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
|
|
|
|
|