Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

use to parameters in asp: hyperlink

Status
Not open for further replies.

ersatz

Programmer
Oct 29, 2002
114
US
Hi,

How to change this code to send 2 parameters in a new page?

This is the code that i found for only one parameter:

Function MakeURL(ByVal strURL As String) As String
Return "prodpage.aspx?sName=" & strURL
End Function

<asp:HyperLink Runat=server NavigateUrl='<%# MakeURL(DataBinder.Eval(Container.DataItem,"sName"))%>' ID="Hyperlink1">
<%#DataBinder.Eval(Container.DataItem,"sName")%>
</asp:HyperLink>


Thanks a lot
 
Each parameter in a querysting is separated by a "?". You can have multiple parameters.

Jim
 
The first parameter is declared by the ? sign, but each additional parameter will be seperated by a & e.g.
Code:
myfile.aspx?MyParameter1=Y&MyParameter2=N


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top