Passing parameters to another page in ASP.NET

Posted on 2003-03-13
Medium Priority
Last Modified: 2008-02-26
I'm fairly new to ASP.NET.  I have a simple web album site where I have links on the first page that link to specific web albums.  The link to a given web album passes the album name along to the next PHP script in the URL, for example, href="http://www.jamezzz.com/photos/thumbs.php?album=Hawaii".

So now in ASP.NET I use a Repeater to create the list of links to my albums.  Question can I still just pass the album name along in the navigationURL like I did in my PHP scripts?  And how to a access that parameter in my thumbs.aspx? I know there are other ways of doing this too, but I'm really curious what would be roughly equivalent to my PHP scripts.

I'm sure this is an easy one...thanks any help offered!

Question by:jamezzz
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

dcavazos earned 200 total points
ID: 8143098
You can still pass paremeters in the URL (this is just one way of passing parameters) using ASP.NET - in name and value pairs- You do that in the following form: www.yoursite.com/page.aspx?name1=value1&name2=value2

You access the parameters using the Request object:

variable1 = Request.QueryString["name1"];

and so on...

Hope this helps...

Expert Comment

ID: 9474541
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Expert Comment

by:Yann de Champlain, PMP
ID: 9861048
 you helped me.  I saw that you did not get your point on that one.
You solution was working and i would like to give you the points.

I d'ont know how this could work.  Let me know if you are interested.

Thanks for your post.


Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Navigation is an important part of web design from a usability perspective. But it is often a pain when it comes to a developer’s perspective. By navigation, it often means menuing. This is less theory and more practical of how to get a specific gro…
Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This video teaches viewers about errors in exception handling.
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question