Хочу переменную сессии созданную в 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>
Что не так?
Здравствуйте, 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/).
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
Если у Вас нет паранойи, то это еще не значит, что они за Вами не следят.