469,602 Members | 1,968 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,602 developers. It's quick & easy.

Simple: passing multiple variables into a datagrid hyperlinkcolumn?

Roy
I'm assuming this is amazingly simple and I'm just missing the boat.

On the html side of an asp.net page I have a datagrid, a "search"
button, and 8 text boxes for search criteria. A user enters in varying
search criteria, hits "search", info is passed to a stored proc,
results return and displayed in the datagrid.

Every field in the datagrid is numeric (indicative of a certain sum or
total) data but also functions as a hyperlinkcolumn. So when joe bloe
clicks on the number "3" in column 7, another page will pop up with the
3 records associated with that record. Make sense? Basically it's a
reports page with drill-down functionality.

Problem: how can I pass all 8 of the search criteria along to the
drill-down page? I know how to send info in this fashion:

<asp:HyperLinkColumn DataTextField="adj" DataNavigateUrlField="voydoc"
datanavigateurlformatstring="adj.aspx?Id={0}"
Target="_blank" HeaderText="Adjusted Booking"
HeaderStyle-HorizontalAlign="Center" ItemStyle-Font-Bold="true">

But this only grabs data from within the datagrid itself. I'll need to
pass info from the vb code-behind. I'm trying to avoid using session
variables if at all possible.

Anyone have any tips or links?

Thanks very much.

Nov 19 '05 #1
1 2635
Roy
I guess there isn't a way to accomplish this.
It would appear I would have to use a templatecolumn and a hyperlink
within. Only problem there is I'd lose the functionality of displaying
actual data from a result set. Adding hyperlinkcolumn's on the fly in
the code-behind seems a non-workable option as the datagrid columns are
arranged according to overlord request and I can't seem to set where in
the datagrid column index I want added columns to appear.

Gah. Sometimes it's just not my day. ;)


Newsgroups: microsoft.public.dotnet.framework.aspnet
From: "Roy" <roy.ander...@gmail.com> - Find messages by this author
Date: 20 Jul 2005 15:25:19 -0700
Local: Wed,Jul 20 2005 6:25 pm
Subject: Simple: passing multiple variables into a datagrid
hyperlinkcolumn?
I'm assuming this is amazingly simple and I'm just missing the boat.
On the html side of an asp.net page I have a datagrid, a "search"
button, and 8 text boxes for search criteria. A user enters in varying
search criteria, hits "search", info is passed to a stored proc,
results return and displayed in the datagrid.
Every field in the datagrid is numeric (indicative of a certain sum or
total) data but also functions as a hyperlinkcolumn. So when joe bloe
clicks on the number "3" in column 7, another page will pop up with the

3 records associated with that record. Make sense? Basically it's a
reports page with drill-down functionality.
Problem: how can I pass all 8 of the search criteria along to the
drill-down page? I know how to send info in this fashion:
<asp:HyperLinkColumn DataTextField="adj" DataNavigateUrlField="voydoc"
datanavigateurlformatstring="a*dj.aspx?Id={0}"
Target="_blank" HeaderText="Adjusted Booking"
HeaderStyle-HorizontalAlign="C*enter" ItemStyle-Font-Bold="true">
But this only grabs data from within the datagrid itself. I'll need to
pass info from the vb code-behind. I'm trying to avoid using session
variables if at all possible.
Anyone have any tips or links?
Thanks very much.

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by ltt19 | last post: by
2 posts views Thread by Tim::.. | last post: by
reply views Thread by virendra.chandra | last post: by
2 posts views Thread by Donkey | last post: by
3 posts views Thread by amjad | last post: by
3 posts views Thread by Jl_G_0 | last post: by
2 posts views Thread by tshad | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.