Results 1 to 2 of 2

Thread: Server.execute

  1. #1
    Join Date
    Dec 1969

    Default Server.execute

    I am modifying an existing ASP application. On one page there is a call as such: server.execute("test.asp"). On, test.asp, I need to figure out where test.asp was called from. Is there a way to do that?

  2. #2
    Join Date
    Dec 1969

    Default Nope. Have to do it yourself

    Pass the value along in a Session variable.<BR><BR>&#060;%<BR>Session("CalledFrom") = "xyz.asp"<BR>Server.Execute("test.asp")<BR>%&#062; <BR><BR>ANd then, in test.asp, you could do:<BR><BR>&#060;%<BR>calledFrom = Session("CalledFrom")<BR>If calledFrom &#060;&#062; "" Then<BR> Session.Contents.Clear("CalledFrom") &#039; no reason to leave it around<BR>Else<BR> calledFrom = Request.ServerVariables("HTTP_REFERER")<BR>End If<BR>%&#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