• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

Passing parameters to another page in ASP.NET

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!

KJ
0
jamezzz
Asked:
jamezzz
1 Solution
 
dcavazosCommented:
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...
David
0
 
CleanupPingCommented:
jamezzz:
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 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
Yann de ChamplainAssociateCommented:
dcavazos
 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.

Yann.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now