Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Creating a Datagrid HyperLinkColumn with Multiple Querystring Values

Reply
Thread Tools

Creating a Datagrid HyperLinkColumn with Multiple Querystring Values

 
 
ogsubs@gmail.com
Guest
Posts: n/a
 
      05-12-2007
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>

=================

 
Reply With Quote
 
 
 
 
Teemu Keiski
Guest
Posts: n/a
 
      05-12-2007
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





<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.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>
>
> =================
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
additional HyperLinkColumn querystring values Jimbo Jim ASP .Net Web Controls 0 09-28-2005 12:35 PM
Simple: passing multiple variables into a datagrid hyperlinkcolumn? Roy ASP .Net 1 07-21-2005 03:19 AM
encrypt the querystring values for a HyperLinkColumn TJS ASP .Net 2 12-04-2003 03:44 AM
Adding Multiple values to DataGrid HyperLinkColumn dynamically vtreddy ASP .Net 0 11-06-2003 04:10 PM
Adding Multiple values to DataGrid HyperLinkColumn dynamically vtreddy ASP .Net Datagrid Control 0 11-06-2003 04:10 PM



Advertisments