Multiple querystring in datagrid

G

Guest

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
 
G

Guest

Hi

Please check the following articles

http://www.datawebcontrols.com/faqs/Hyperlinks/HyperlinkWithMultipleQuerystringValues.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]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top