English 中文(简体)
坐下来
原标题:stuck with enable session state

i) 有申请,在共同居住地契档案中,一进入会场标。 但是,当会议反对时,申请会给我留下一个错误:

只有在组合档案或页指令中能够确定国家的真实性时,才能使用国家开会。 还请确保这一制度。 Web.SessionState 模块或习俗会议国家单元列入申请组合的“灰色”部分。

现在,我已经使本届会议能够把国家财产放在网上。 简编文件,这里是我从网上发表的守则。 专案:

<pages enableSessionState="true" autoEventWireup="true">
    <controls>
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    </controls>
</pages>

I dont understand why am i still getting that error !! please help !

非常感谢。

最佳回答

i 我在此问题上第一次解决了自己的问题。

简要答复:

我试图从Load页中获取会议变量,直到那时才装上。

解决我上述问题的细节可见:

http://weblogs.asp.net/anasghanem/archive/2008/05/07/aave-using-the-session-in-the-page-ructor.aspx

感谢任何人!

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签