B
Beginner
Hello,
I'm designing a webpage about trees and I have two questions.
I currently have a /Default.aspx webpage; it is a content page of a master
page (Main.master) with the main menu and the logo. When you select one
category from the menu (say, deciduous trees), I query a database and
present the results to the user. So far so good.
The problem comes when the user clicks on a result (say, cork oak). My
initial though was to link to a page named /Trees.aspx?ID=1234, where "1234"
is the identifier of the cork oak, but I don't know how to do this. I
suppose that I need to parse the parameter from the URL, then get the
content about cork oaks and present it to the user, but I need your help. If
you could sketch the code of my /Trees.aspx page...
My second question is "Is it possible to have a more user-friendly URL such
as www.mysite.com/Articles/CorkOak instead of
www.mysite.com/Trees.aspx?ID=1234"? If so, how to do this? I though about
creating the directory layout /Articles/CorkOak and then place a simple
Default.aspx in there, but maybe there are better, more professional
options.
Thanks,
P.S: I'm using ASP.net 2.0
I'm designing a webpage about trees and I have two questions.
I currently have a /Default.aspx webpage; it is a content page of a master
page (Main.master) with the main menu and the logo. When you select one
category from the menu (say, deciduous trees), I query a database and
present the results to the user. So far so good.
The problem comes when the user clicks on a result (say, cork oak). My
initial though was to link to a page named /Trees.aspx?ID=1234, where "1234"
is the identifier of the cork oak, but I don't know how to do this. I
suppose that I need to parse the parameter from the URL, then get the
content about cork oaks and present it to the user, but I need your help. If
you could sketch the code of my /Trees.aspx page...
My second question is "Is it possible to have a more user-friendly URL such
as www.mysite.com/Articles/CorkOak instead of
www.mysite.com/Trees.aspx?ID=1234"? If so, how to do this? I though about
creating the directory layout /Articles/CorkOak and then place a simple
Default.aspx in there, but maybe there are better, more professional
options.
Thanks,
P.S: I'm using ASP.net 2.0