Sending parameters via url:s

Results 1 to 3 of 3

Thread: Sending parameters via url:s

  1. #1
    Martin Guest

    Default Sending parameters via url:s

    I have two asp&#039s that accesses a SQL-server.<BR><BR>The first one (FindGroup.asp)lists a particular group of items.<BR>The second one (FindItem.asp) displays information about an item.<BR><BR>Until now you would first have to use a webform to find a group, look up the id of an item you want information about and then use another webform (and manually type in the id).<BR><BR>What I want to do is to automate the second part a bit. I&#039ve managed to get the FindGroup.asp to set the item-id&#039s as hyperlinks so that instead of using the webform for FindItem.asp you can just click on the link.<BR><BR>Unfourtunatly it doesnt work... :o(<BR><BR>What is the syntax for calling an asp with a parameter?<BR>what I&#039ve tried is this:<BR>FindItem.asp?idnr=12345<BR><BR>If I call the asp from a regular webform it works fine, but I cant get it to work with a hyperlink...<BR><BR>Any suggestions/ideas/solutions?<BR><BR>/Martin

  2. #2
    Nathan Pond Guest

    Default RE: Sending parameters via url:s

    FindItem.asp?idnr=12345<BR><BR>In that example, idnr is the name of the form element being passed, and 12345 is the value.<BR><BR>If you call the ASP page like that, Request.QueryString("idnr") will hold the value "12345"<BR><BR>Make sure you are not using Request.Form()<BR><BR>Nathan

  3. #3
    Martin Guest

    Default Thank you it worked!

    Thanks alot!

Posting Permissions

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