Session_OnStart无法启动 [英] Session_OnStart does not start

查看:66
本文介绍了Session_OnStart无法启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


Session_OnStart如果网站将.htm文件作为

启动文档,则不会触发事件。如果我将默认文档的扩展名从

..htm更改为.asp,那么我可以看到事件触发,但现在我无法将

默认页面更改为。 asp。

如何在这种情况下使Session_OnStart激活?请建议。


谢谢

Prabhat

Hi All,

The "Session_OnStart" event doesnot fire if the website has .htm file as the
startup document. If I change the extension of the default document from
..htm to .asp then I can see the event fires, But now I cant change the
default page to .asp.

How can I make the Session_OnStart fire in that situation? Please suggest.

Thanks
Prabhat


推荐答案

Prabhat于2005年9月27日在microsoft.public.inetserver.asp.general中写道:
Prabhat wrote on 27 sep 2005 in microsoft.public.inetserver.asp.general:
Session_OnStart"如果网站有.htm文件
作为启动文件,则不会触发事件。如果我将默认
文档的扩展名从.htm更改为.asp,那么我可以看到事件触发,但现在我无法将默认页面更改为.asp。
如何在这种情况下使Session_OnStart激活?请
建议。
The "Session_OnStart" event doesnot fire if the website has .htm file
as the startup document. If I change the extension of the default
document from .htm to .asp then I can see the event fires, But now I
cant change the default page to .asp.

How can I make the Session_OnStart fire in that situation? Please
suggest.




我想你将.htm定义为iis中的asp页面。


- -

Evertjan。

荷兰。

(用我的电子邮件中的点替换所有十字架)



I suppose you define .htm as an asp-page in iis.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)




" Evertjan。" <前************** @ interxnl.net>在留言中写道

news:Xn ******************** @ 194.109.133.242 ...

"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.242...
I假设您将.htm定义为iis中的asp页面。

- Evertjan。
荷兰。
(在我的电子邮件地址中用点替换所有十字架)
I suppose you define .htm as an asp-page in iis.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)




我没有明白你的观点。你可以解释吗。


谢谢

Prabhat



Hi, I did not get your point. can you please explain.

Thanks
Prabhat


由于页面是静态的,为什么会这样你需要为这个htm

页面开始一个会话吗?无论如何,当你第一次点击动态页面时它会启动...


整个场景可能会有所帮助,但你可能会弄乱文件

扩展名,使用链接将htm文件重定向到default.asp。从您的htm页面到一个

dnyamic页面以触发启动等...现在我不会给你b $ b,看看为什么你真的需要在你之前打开会话点击任意动态

内容...


-

Patrice


" PRABHAT" <无******** @ hotmail.com> écritdansle message de

news:uj ************** @ TK2MSFTNGP15.phx.gbl ...
As the page is static, why would you need to start a session for this htm
page ? It will start anyway the first time you hit a dynamic page...

The whole scenario could help but you could likely mess with the file
extension, have the htm file redirected to default.asp, using a "link" to a
dnyamic page from your htm page to trigger the start etc... For now I don''t
see why you really need to open the session before you hit any dynamic
content...

--
Patrice

"Prabhat" <no********@hotmail.com> a écrit dans le message de
news:uj**************@TK2MSFTNGP15.phx.gbl...
大家好,

Session_OnStart如果网站的.htm文件为
启动文件,则不会触发事件。如果我将默认文档的扩展名从
.htm更改为.asp,那么我可以看到事件触发,但现在我无法将
默认页面更改为.asp。
如何在这种情况下使Session_OnStart激活?请提出建议。

谢谢
Prabhat
Hi All,

The "Session_OnStart" event doesnot fire if the website has .htm file as the startup document. If I change the extension of the default document from
.htm to .asp then I can see the event fires, But now I cant change the
default page to .asp.

How can I make the Session_OnStart fire in that situation? Please suggest.

Thanks
Prabhat



这篇关于Session_OnStart无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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