Использование переменной сессии
От: zimka  
Дата: 25.03.05 14:06
Оценка:
Хочу переменную сессии созданную в asp на JScript использовать в aspx написанном на VB.
Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive
Хотя прописано
<script runat="server" language="VBScript" EnableSessionState=true>
Что не так?
Re: Использование переменной сессии
От: zimka  
Дата: 25.03.05 14:12
Оценка:
Имелось в виду, что такое сообщение об ошибке выдается:

Z>Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive
Re: Использование переменной сессии
От: Oyster Украина https://github.com/devoyster
Дата: 25.03.05 14:14
Оценка:
Здравствуйте, zimka, Вы писали:

Z>Хочу переменную сессии созданную в asp на JScript использовать в aspx написанном на VB.

Z>Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive
Z>Хотя прописано
Z><script runat="server" language="VBScript" EnableSessionState=true>
Z>Что не так?

ВОзможности работать с ASP сессией в ASP.NET нету. В таком случае можно использовать БД вместо сессии или заюзать third-party продукт для синхронизации ASP и ASP.NET сессий (например, StateStitch — http://www.consonica.com/solutions/statestitch/).
Re: Использование переменной сессии
От: Joker3D Россия http://blog.trunin.com
Дата: 26.03.05 09:51
Оценка:
Здравствуйте, zimka, Вы писали:

Z>Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive


enableSessionState должен включаться для всей страницы.
Konstantin Trunin
http://blog.trunin.com — эффективное управление людьми, проектами, собой
Re: Использование переменной сессии
От: TK Лес кывт.рф
Дата: 28.03.05 21:05
Оценка:
Hello, "zimka"
> Хочу переменную сессии созданную в asp на JScript использовать в aspx написанном на VB.
> Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive
>

Изобрети какой-нибудь свой COM объект. и используй свойство страницы ASPCompat=true

[b]AspCompat[b]
When set to true, this allows the page to be executed on a single-threaded apartment (STA) thread. This allows the page to call STA components, such as a component developed with Microsoft Visual Basic 6.0. Setting this attribute to true also allows the page to call COM+ 1.0 components that require access to unmanaged Active Server Pages (ASP) built-in objects. These are accessible through the ObjectContext object or the OnStartPage method. The default is false.
Note Setting this attribute to true can cause your page's performance to degrade. For more information, see the Remarks section.

Posted via RSDN NNTP Server 1.9
Если у Вас нет паранойи, то это еще не значит, что они за Вами не следят.
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.