Re: Creating a Datagrid HyperLinkColumn with Multiple Querystring Values
It would be cleaner to do that within a helper function or in RowDataBound
(ItemDataBound) event if you want/need to do it that way (in code).
In ASP.NET 2.0 you can use HyperLinkField with GridView which supports it,
multiple fileds to be appended into qs, cleanly (declaratively)
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
wrote in message
news:1178973865.777524.291440@u30g2000hsc.googlegroups.com...
> I'm trying to concatenates to mutli items on a query string...kept
> generating errors...can u spot the bug?
>
> ===============
> <ItemTemplate>
> <asp:HyperLink id=Hyperlink1 runat="server" Text="Details"
> NavigateUrl='<%
> # "ClassList.aspx?
> section_id="Container.DataItem("section_id")"
> & "course_code="Container.DataItem("course_code")" %>'>
> </asp:HyperLink>
> </ItemTemplate>
>
> =================
>
Date:Sat, 12 May 2007 17:41:30 +0300
Author:
|