Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling an aspx page from an asp page
Message
 
To
13/10/2005 15:26:18
General information
Forum:
ASP.NET
Category:
Other
Environment versions
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01058818
Message ID:
01058877
Views:
12
>Tom,
>
>Maybe I'm missing the obvious, but won't Response.Redirect do it for you? I don't have seperate servers to test...
>
>>I want to call an aspx page from an asp page. How is it done? My aspx and asp projects are on different servers.


Response.redirect fires immediately, and I want to use the page redirection within an OnClick method. In fact by commenting out the code and adding spaces it still fires! This produces the error below.
sub cmdQCEOpinion_OnClick() 
 ‘ " < %= response.redirect ("isid6431/qmds/tally1.aspx")  " 
end sub
I am using:
location.href = "isid6431/qmds/tally1.aspx"
sub cmdQCEOpinion_OnClick()
 
'location.href = "QCEOpinion.asp"  This works (calling an ASP form) when it is uncommented

'location.href = "isid6431/qmds/tally1.aspx"  This produces the error given below

end sub
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
  <configuration>    
    <system.web>        
      <customErrors mode="Off"/>    
    </system.web>
  </configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
  <configuration>    
    <system.web>        
      <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>    
    </system.web>
  </configuration>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform