Passing variables wtih Response.Redirect

Results 1 to 2 of 2

Thread: Passing variables wtih Response.Redirect

  1. #1
    Jeff P. Guest

    Default Passing variables wtih Response.Redirect

    I&#039m trying to pass the value of the variable "Projmgr" to the next ASP file "reportmgr.asp" using Response.Redirect.<BR><BR>Here&#039s my annotated code:<BR><BR>*****************<BR>Dim Projmgr<BR><BR>Projmgr = Request.Form("manager")<BR>Response.Redirect("repo rtmgr.asp?name=Projmgr&value="xxx")<BR><BR>******* **********<BR><BR>Where "xxx" is the value I&#039d like to pass (so far unsuccessfully).<BR><BR>I&#039m probably just missing something small, but haven&#039t been able to find any advice on exactly how to do this yet.<BR><BR>Thanks!<BR>-Jeff P.

  2. #2
    Join Date
    Dec 1969
    Posts
    168

    Default RE: Passing variables wtih Response.Redirect

    myURL="reportmgr.asp?Name=""" & Request.Form("manager") & """&value=""xxx"""<BR>Response.Redirect(myURL)<BR> <BR>and to retrieve it....<BR>Response.Write(Request.QueryString("Name "))<BR>Response.Write(Request.QueryString("value") )<BR><BR>Hope this helps... Cheers!

Posting Permissions

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