dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: unsure

  1. #1
    Join Date
    Jan 2003
    Posts
    2

    unsure

    I have started working with ASP, well since yesterday.. I have been reading all of the pages on ASP at htmlgoodies.com and I have a perty decent grasp on it. Well theres something that I didn't See in his totorials.

    I was looking at a page ( http://www.artofwarcentral.com ) there main page is default.asp well thats fine but when you click on the sidebar like say clicking on General Info It adds the ?action=info&cmd=default and it brings up a completely different page. I figure he is useing SSI to link pages to the default.asp But how do I do this?

  2. #2
    Join Date
    Jan 2003
    Location
    USA
    Posts
    688
    Example URL with a querystring:
    http://www.mysite.com/mydir/mypg.asp...=hey&myvar2=ho

    Because a variable might contain some odd characters like spaces, it's usually a good idea to use Server.URLEncode when creating a querystring from a variable:
    <a href="http://www.mysite.com/mypage?id=<%= Server.URLEncode(objRS("MyIDFldFromDB")) %>">objRS("MyIDFldFromDB")</a>

    And in the page that is opened you can use Request.QueryString("id") to get the value of id.

  3. #3
    Join Date
    Jan 2003
    Posts
    2
    So What I was talking about is called a Querystring? Hmmm I really need to find a book on ASP. Thanks alot for your help.

  4. #4
    Join Date
    Jan 2003
    Location
    USA
    Posts
    688
    And here are a few good ASP sites:
    o ASP101 (See the Samples Section) - http://www.asp101.com
    o 4GuysFromRolla - http://www.4guysfromrolla.com
    o Microsoft VBScript Language Reference - http://msdn.microsoft.com/scripting/...bscripttoc.htm

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles