如何从asp站点管理asp.net页面 [英] How to manage asp.net page from asp site

查看:72
本文介绍了如何从asp站点管理asp.net页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我使用asp方法创建了一个网站。现在我在web

服务器上设置framework.net。由于将asp转换为aspx是一项耗时的任务,我想将这个网站保存在asp中,但我希望在aspx中添加新页面。我想

知道什么是最简单的工作方式,即从

asp调用aspx页面。我试了一下,看起来它是dosable,但是,当我把一些

放在代码后面时,网站无法执行它们(编译后的dll没有执行
) 。我需要做什么?


提前致谢

解决方案

" Li Pang" <黎**** @ discussions.microsoft.com>在留言中写道

news:06 ********************************** @ microsof t.com ...

我该怎么做?




别忘了Global.asax .. 。


确保将aspx页面的调用设为html链接,而不是

response.redirect,这样可以确保调用是由

客户而非服务器制作


Mark Rae,


由于Global.asa是依赖于应用程序的,即每个应用程序只有一个Global.asa

。由于我想在一个单独的

应用程序中管理asp和aspx,如何分别维护Global.asa和Global.asax?


" Mark Rae"写道:

" Li Pang" <黎**** @ discussions.microsoft.com>在消息中写道
新闻:06 ********************************** @ microsof t.com。 ..

我该怎么做?



不要忘记Global.asax ......



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

解决方案

"Li Pang" <Li****@discussions.microsoft.com> wrote in message
news:06**********************************@microsof t.com...

What I have to do?



Don''t forget Global.asax...


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


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...



这篇关于如何从asp站点管理asp.net页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆