|
-
Jan 20th, 2015, 08:38 PM
#1
Thread Starter
Member
Application object isn't visible in the cshtml page
Folks,
I'm clearly missing something, which is not surprising, because I'm new to ASP.NET.
I'm making a session counter, which is incremented in the Session_Start() event and decremented in Session_End(). (This is just an exercise. I found it here.)
I have created a Global.asax file and added the event handlers. So far so good.
Then I wanted to access the Application object in a .cshtml file, but the Application object is not available. It's underlined with a red squiggly line.
What could I be missing?
Any suggestion, insight or reference is really appreciated!
Cheers,
- Nick
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|