Results 1 to 2 of 2

Thread: QueryString

  1. #1
    Join Date
    Dec 1969

    Default QueryString

    Help!I have an asp page with a table created from data from a component The table contains links to html pages.Is there anyway once the user clicks on a link to set a variable in my asp page to the value of the parameter from the query string on the link.<BR>Thanks in advance

  2. #2
    rajit Guest

    Default RE: QueryString

    when user clicks on a link, call a some function with OnClick event. Write a little Javascript out side of asp (but in the same page) to set the variable value.<BR><BR>ex:<BR><BR>see if this is helpful:<BR><BR>&#039build the HREF string dynamically from the source data<BR>&#060;%<BR>Sub test()<BR> NewContents = "&#060;a href =xyz.html onClick=setVar(varArg)"<BR> response.write NewContents<BR>end sub<BR><BR>call test()<BR>%&#062;<BR><BR>&#060;SCRIPT LANGUAGE="JavaScript"&#062;<BR>function setVar(varArg) {<BR> set var1 = varArg;<BR>&#060;/SCRIPT&#062;<BR><BR><BR>

Posting Permissions

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