Results 1 to 2 of 2

Thread: Server.Execute

  1. #1
    Join Date
    Dec 1969

    Default Server.Execute

    When a page is "executed" from within another page via Server.Execute, it appears that the executed page does not have access to variables defined in the executing page. Has anyone else experienced this? Is it a bug or a design flaw? I was really hoping to use Server.Execute to achieve "conditional includes"....<BR><BR>For example, the following produces no output:<BR><BR>PageOne.asp:<BR><BR>&#060;%<BR>intN umber = 1<BR>Server.Execute "PageTwo.asp"<BR>%&#062;<BR><BR><BR>PageTwo.asp:<B R><BR>&#060;%<BR>If intNumber = 1 Then<BR> Response.Write "intNumber = 1"<BR>End If<BR>%&#062;<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default My vote : Design Flaw

    I whole hearted ly believed that conditional includes and the like was the goal of S.Execute.<BR><BR>Sadly, it seems this isn&#039t so...

Posting Permissions

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