Context and global.asax

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top