A
Arjen
Hi,
I load my website settings inside the global.asax file. For this I have to
use the context, to get the roles from the current browsing client.
The problem is that there is no context at that time. When I add these code
line inside an aspx file, then it works. Because there is a context.
How can I use this code inside the global.asax file?
I tried it in this:
protected void Application_BeginRequest(Object sender, EventArgs e) {}
protected void Application_AuthenticateRequest(Object sender, EventArgs e)
{}
But this did not work. I'm using asp.net 2.0.
Hope someone can help.
I load my website settings inside the global.asax file. For this I have to
use the context, to get the roles from the current browsing client.
The problem is that there is no context at that time. When I add these code
line inside an aspx file, then it works. Because there is a context.
How can I use this code inside the global.asax file?
I tried it in this:
protected void Application_BeginRequest(Object sender, EventArgs e) {}
protected void Application_AuthenticateRequest(Object sender, EventArgs e)
{}
But this did not work. I'm using asp.net 2.0.
Hope someone can help.