469,626 Members | 1,369 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Multiple querystring in datagrid

Amy
All,
I'd like to use multiple querystring in hyperlink column in Datagrid

I want to create a hyperlink column in my datagrid which contains two query
strings
ex: nextpage.aspx?id=11&name=somename
for one querystring i would use nextpage.aspx?id={0}
when i trying nextpage.aspx?id={0}&name={1} its raising errors

Thanks,
Amy
Jul 21 '05 #1
1 1915
Hi

Please check the following articles

http://www.datawebcontrols.com/faqs/...ngValues.shtml

Some times its necessity for programmers to send multiple parameters in

Datagrid using HyperLink Column. Following code explains how to do
< asp:TemplateColumn HeaderText="View Details">
< ItemTemplate>
< asp:Hyperlink runat="server" Text='View Details'

NavigateUrl='< %# "page.aspx?ViewID=" &
Server.UrlEncode(Container.DataItem("ListingNo"))
"&Param2="&Server.UrlEncode(DropDown1.SelectedItem .Value)%> '

ID="Hyperlink1" NAME="Hyperlink1" />
< /ItemTemplate>
< /asp:TemplateColumn>

HTH
Ravikanth[MVP]

"Amy" wrote:
All,
I'd like to use multiple querystring in hyperlink column in Datagrid

I want to create a hyperlink column in my datagrid which contains two query
strings
ex: nextpage.aspx?id=11&name=somename
for one querystring i would use nextpage.aspx?id={0}
when i trying nextpage.aspx?id={0}&name={1} its raising errors

Thanks,
Amy

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Evan Kontos | last post: by
2 posts views Thread by Carl Howarth | last post: by
1 post views Thread by Amy | last post: by
4 posts views Thread by Jeff | last post: by
1 post views Thread by Beginner | last post: by
4 posts views Thread by Landes | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.