Forums
This topic is locked
Navigation ??
Posted 11 Sep 2001 23:52:14
1
has voted
11 Sep 2001 23:52:14 Torbjörn Schön posted:
Hello.My name is Torbjörn and I’m quite new to UD.
I have a question about how this site (www.udzone.com) is built that I hope you can help me with.
It’s about the linking. Allmost every link has the ending ...id=”some number”
My question is, can someone please explain how this is done and maybe send some examplefiles if it’s done with the database.
I’m doing a project in my class at the university of halmstad (www.hh.se) and this would help me out alot. I have tried to get this information from different tutorials but come up with nothing.
Thanks in advance.
/Tobbe
Replies
Replied 12 Sep 2001 01:50:07
12 Sep 2001 01:50:07 Owen Eastwick replied:
If you hover over the links at the top of UDzone you will notice that (excluding TalkZones) there are in fact only 4 pages at the UDzone:
index.asp, categories.asp, myUDzone.asp and search.asp
However each of the pages shows different content, which is retrieved from a database and displayed dynamically according to the QueryString criteria.
The QueryString is the part of the link after the question mark. For instanace the link for Books is www.udzone.com/categories.asp?TypeId=5 When you click the link to books it goes to the categories.asp page but includes the QueryString TypeId=5.
The categories.asp page will then pick up the QueryString and then display the relevant information from the Database according to the parameter held in the variable <b>TypeId</b>.
At the bottom of the page I have included a link to a tutorial. Whilst it does not specifically answer your question, you can download the tutorial which includes the completed web pages as shown in the demo. You can set these up to work on your own PC and see how they work.
NOTE the tutorial uses the POST method to pass data from one page to the next. Change this to GET and you will see the links working in a similar fashion to those on the UDzone. You will however also have to change the method that you collect the information on the recieving pages.
instead of <pre id=code><font face=courier size=2 id=code>Request("ParameterName"</font id=code></pre id=code>
you need <pre id=code><font face=courier size=2 id=code>Request.QueryString("ParameterName"</font id=code></pre id=code>
If all this is a bit advanced but you are familiar with Dreamweaver but not dynamic content I can recommend the following book:
Foundation Dreamweaver Ultradev 4 - Rob Paddock & Spencer Steel - ISBN 1-903450-34-9
Regards
Owen.
Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
index.asp, categories.asp, myUDzone.asp and search.asp
However each of the pages shows different content, which is retrieved from a database and displayed dynamically according to the QueryString criteria.
The QueryString is the part of the link after the question mark. For instanace the link for Books is www.udzone.com/categories.asp?TypeId=5 When you click the link to books it goes to the categories.asp page but includes the QueryString TypeId=5.
The categories.asp page will then pick up the QueryString and then display the relevant information from the Database according to the parameter held in the variable <b>TypeId</b>.
At the bottom of the page I have included a link to a tutorial. Whilst it does not specifically answer your question, you can download the tutorial which includes the completed web pages as shown in the demo. You can set these up to work on your own PC and see how they work.
NOTE the tutorial uses the POST method to pass data from one page to the next. Change this to GET and you will see the links working in a similar fashion to those on the UDzone. You will however also have to change the method that you collect the information on the recieving pages.
instead of <pre id=code><font face=courier size=2 id=code>Request("ParameterName"</font id=code></pre id=code>
you need <pre id=code><font face=courier size=2 id=code>Request.QueryString("ParameterName"</font id=code></pre id=code>
If all this is a bit advanced but you are familiar with Dreamweaver but not dynamic content I can recommend the following book:
Foundation Dreamweaver Ultradev 4 - Rob Paddock & Spencer Steel - ISBN 1-903450-34-9
Regards
Owen.
Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
Replied 12 Sep 2001 01:55:44
12 Sep 2001 01:55:44 Torbjörn Schön replied:
trying this out... Thanks alot