submit a .net page to asp page

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I new with .net and asp.
I can't find a way to link a asp page from a asp.net page.
I have tried a button and even a simple hyper link is not working.
When I click the hyper link in asp.net(in the navigateUrl I have an asp page), it let me down load the asp file.

Can anybody help me?

Jim
 
What OS are you using? In Windows 2003 Server, ASP support is not installed
by default and you need to use the Add/Remove control panel to enabled the
ASP components.

Can you visit the ASP page if you directly enter the URL in the address bar?

jim said:
I new with .net and asp.
I can't find a way to link a asp page from a asp.net page.
I have tried a button and even a simple hyper link is not working.
When I click the hyper link in asp.net(in the navigateUrl I have an asp
page), it let me down load the asp file.
 
I followed the link. Response.Redirect works very well.
When I use Server.Transfer I got "Invalid path for child request 'C:\Inetpub\wwwroot\sdb1.asp'. A virtual path is expected."
Can you tell me what is that?
I got Response.Redirect works any way.

Thanks a lot.
jim
 
You can not specify a hard coded path. Use server.transfer("sdb1.asp")

jim said:
I followed the link. Response.Redirect works very well.
When I use Server.Transfer I got "Invalid path for child request
'C:\Inetpub\wwwroot\sdb1.asp'. A virtual path is expected."
 
I do not believe you can "transfer" control an ASP page anymore then you
could an HTML page.

Redirect is the way to go when crossing boundaries because Redirect sends a
command to the browser to use a different page while Transfer will transfer
control within the current request without talking to the browser.

Also, Transfer cannot be used across virtual directory boundaries. If you
have the page A.aspx in virtual root A and B.aspx in virtual root B, A.aspx
cannot "transfer" control to B.aspx, you would have to use Redirect.
 
Back
Top