How to manage asp.net page from asp site

G

Guest

Hi,

I made a web site by using asp method. Now I set up framework.net in the web
server. Since to convert asp into aspx is time consuming task, I'd like to
keep the web site in asp, but I want to add the new page in aspx. I want to
know what is the easiest way to make it working, ie, call a aspx page from
asp. I made a try and it seemed it was dosable, however, when I put some
behind codes, the site could not performed them (the compiled dll was not
executed). What I have to do?

Thanks in advance
 
J

jlthurber

Make sure and have the call to the aspx page be an html link, not a
response.redirect, this ensures that the call is being made from the
client and NOT from the server
 
G

Guest

Mark Rae,

Since Global.asa is application dependant, ie, there is only one Global.asa
per application. Since I want to manage asp and aspx within one single
application, how to maintain Global.asa and Global.asax separately?
 
G

Guest

ALL,

I have created a asp.net project in the same server of asp Web site. The
aspx project contains a page named WebForm1.aspx and behind code page
WebForm1.vb. I wrote some code in the WebForm1.vb page, then compiled the
whole project. Then I browsed the WebForm1.aspx from a client PC. It works
fine. Then I redirect from a asp page in my asp Web site to WebForm1.aspx
page, then it also works. However, when I just copied WebForm1.aspx and
WebForm1.vb and Global.asax and Webconfig pages into asp Web site folder, and
redirect to it then the ASP web site could not perform the compiled codes of
WebForm1.vb.

What I want is to use aspx as the same way as asp, the key point is how to
maintain the compiled codes within asp web site.
 
J

Juan T. Llibre

J

John Rivers

This is because CodeBehind pages need to be compiled into an assembly
(usually DLL) before they can be used.

Only ASPX pages are JIT compiled.
 
G

Guest

I find the solution by myself.

Using code declaration block to hold the server-side codes which will be
compiled into MSIL, or using src="WebForm1.vb" instead of
Codebehind="WebForm1.vb"

Quite simple.
 
M

Mark Rae

Since Global.asa is application dependant, ie, there is only one
Global.asa
per application.

Yes I know, but who mentioned Global.asa...?
Since I want to manage asp and aspx within one single
application, how to maintain Global.asa and Global.asax separately?

Er, have two separate files...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top