473,378 Members | 1,416 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

How to manage asp.net page from asp site

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
Nov 19 '05 #1
11 1368
"Li Pang" <Li****@discussions.microsoft.com> wrote in message
news:06**********************************@microsof t.com...
What I have to do?


Don't forget Global.asax...
Nov 19 '05 #2
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

Nov 19 '05 #3
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?

"Mark Rae" wrote:
"Li Pang" <Li****@discussions.microsoft.com> wrote in message
news:06**********************************@microsof t.com...
What I have to do?


Don't forget Global.asax...

Nov 19 '05 #4
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.

"Li Pang" wrote:
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

Nov 19 '05 #5
Li Pang :

I don't think that what you are trying to do can work.

What you *can* do is share session variables between
your ASP application and your ASP.NET application,
and that way achieve the interoperability you are looking for.

See this article for an explanation :

http://msdn.microsoft.com/library/de...asp?frame=true

For sample code, go to :

http://www.microsoft.com/downloads/d...displaylang=en

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Li Pang" <Li****@discussions.microsoft.com> wrote in message
news:82**********************************@microsof t.com...
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.

"Li Pang" wrote:
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

Nov 19 '05 #6
Thanks Juan T. Llibre,

To share session variables is good enough.

"Juan T. Llibre" wrote:
Li Pang :

I don't think that what you are trying to do can work.

What you *can* do is share session variables between
your ASP application and your ASP.NET application,
and that way achieve the interoperability you are looking for.

See this article for an explanation :

http://msdn.microsoft.com/library/de...asp?frame=true

For sample code, go to :

http://www.microsoft.com/downloads/d...displaylang=en

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Li Pang" <Li****@discussions.microsoft.com> wrote in message
news:82**********************************@microsof t.com...
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.

"Li Pang" wrote:
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


Nov 19 '05 #7
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.

Li Pang wrote:
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.

"Li Pang" wrote:
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


Nov 19 '05 #8
Is that possible to pre-compile the codes then add it into a asp site to use?

"John Rivers" wrote:
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.

Li Pang wrote:
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.

"Li Pang" wrote:
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


Nov 19 '05 #9
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.

"Li Pang" wrote:
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

Nov 19 '05 #10
Don't forget to move the .dlls in the Bin directory!

Nov 19 '05 #11
"Li Pang" <Li****@discussions.microsoft.com> wrote in message
news:EA**********************************@microsof t.com...
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...
Nov 19 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bob Bedford | last post by:
We are 3 persons contacting various potential clients/customers and also potential advertisers for our website. Each person work at home, and it becomes ever difficult to manage our contacts....
7
by: Village | last post by:
I have installed PHP a number of times following tutorials from online and from a book. I have been able to process simple functions such at date() but when it comes to simply sending information...
0
by: AMDRIT | last post by:
Hello Every, Today I am exploring async operations. In my scenario, I have a windows form with a webbrowser control. The exercise reads a starting webpage and populates a Queue with additional...
3
by: Max2006 | last post by:
Hi, I am using asp.net 2 SQL membership provider. Is there any tool or application that helps me manage my users' password? I am trying to do that without writing any code.
3
by: teo | last post by:
I have two .aspx pages they use two different Global.asax files when I "Publish" the first .aspx page, its Global.asax is transformed in App_global.asax.compiled App_global.asax.dll to put...
3
by: teo | last post by:
Hallo, I have vs2005. I'm not a able to find a way to create and manage FRAMEs for a simple .html page in the VS2005 IDE (any toolbox, wizard, property window...). Am I missing something ?...
4
by: laziers | last post by:
Hi there Anybody knows what is the best way to manage creation 2000 of the database connections at the same time? Now Im doing it somethink like this: using ( Connection conn =...
0
by: steven | last post by:
Hi We want to use the Web Site Administration Tool to manage all our sites. However, it seems that WSAT always looks for a separate copy of aspnetdb in each site's app_data folder. Is there a...
1
luckysanj
by: luckysanj | last post by:
I have a one problem on www.best4knowledge.com site. On the front page of this site there is a paragraph fetch from data base. but the paragraph is display on the middle of page. Sow how can i...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.