| re: Passing multiple query string params from datagrid hyperlink column
Try
<asp:DataGrid id="DataGrid1" AutoGenerateColumns="False" style="Z-INDEX: 101; LEFT: 66px; POSITION: absolute; TOP: 79px" runat="server">
<Columns>
<asp:TemplateColumn HeaderText="Order">
<ItemTemplate>
<asp:Hyperlink runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Order ID")%>' NavigateUrl='<%# "page.aspx?Orderid=" + DataBinder.Eval(Container.DataItem,"Orderid") + "&ProductID=" + DataBinder.Eval(Container.DataItem,"ProductID")%>' ID="Hyperlink1" NAME="Hyperlink1"/>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>
Use & in case of Vb.NET
HTH
Regards
Sushila
..NET MVP
"bpschmid" <bpschmid@hotmail.com> wrote in message news:077f01c35a96$4ab620b0$a601280a@phx.gbl...[color=blue]
> Ive got a datagrid with a hyperlink column.
> I want to click on that column and go to another page, but
> here's the kicker, I need and want to pass not one, but
> two different query string parameters and format strings
> from 2 different bound columns. I know I could do this
> using session variables, but I really want to do it using
> query string parameters. Anyone know a way to do this?
>
> [/color] |