Windows Develop Bookmark and Share   
 index > Windows Forms General > Multi Variables in URL
 

Multi Variables in URL

Hi,

Perhaps this is a silly question, but I need to pass more than one variable in my URL, for example, my current URL uses only one variable and it looks like this:

http://localhost:49480/FIN/propDetails.aspx?pid=A002

What I need is to add more variables in the above URL. I need something in this format:

http://localhost:49480/FIN/propDetails.aspx/?Category=tools/?City=NJ/?pid=A002

I need to pass more than one variable in the link like the above example:

Variables:

Category, ID, City

Is that possible in ASP.Net?

Linkin_Parts  Thursday, October 09, 2008 12:30 PM

Hi!

Yes, it is possible. Use &: http://localhost:49480/FIN/propDetails.aspx?Category=tools&City=NJ&pid=A002

Also, from now on, use the ASP.NET Forums for ASP.NET questions.

Regards,

Lucian Baciu  Thursday, October 09, 2008 1:04 PM

Hi!

Yes, it is possible. Use &: http://localhost:49480/FIN/propDetails.aspx?Category=tools&City=NJ&pid=A002

Also, from now on, use the ASP.NET Forums for ASP.NET questions.

Regards,

Lucian Baciu  Thursday, October 09, 2008 1:04 PM

Lucian,

I tried what you told me but it kept giving me errors. How do I pass the values in the URL? I know how to receive them. I have used the following but it gives error:

"propDetails.aspx?cat=" + Eval("Category") &pid=" + Eval("PropCode")

What shall I use mate?

Linkin_Parts  Friday, October 10, 2008 5:46 PM
http://aspnet.4guysfromrolla.com/articles/020205-1.aspx

Please use the ASP.NET forums from now on.

Regards,
Lucian Baciu  Friday, October 10, 2008 7:32 PM

You can use google to search for other answers

Custom Search

More Threads

• Drawable Items in TreeView
• could use some help on an event firing problem
• suppressing automatic scrolling within FlowLayoutPanel with AutoScroll
• Integrating MS Word in your .NET application
• cannot fill a datagridview
• How to simulate press system key or handle security dialog
• Deployment error on windows 2000
• getting window client area coordinates in large windows
• Property Grid: Adding new 'expandable' objects
• Handling Events from listBox