-
February 9th, 2010, 10:47 PM
#1
Access to class properties in global.asax not happening...
Hi
I am using Visual Studio 2008 SP1, MVC.NET and the .NET Framework 3.5.
I have added two public properties to the Global.asax class which I want to access from the \Views\Home\Index.aspx page code. The RegisterRoutes is showing up as available but not the two properties I have added...
Is this behaviour as expected (newbie!!) or should I be able to expose these properties as well?
Thanks in advance.
Wee!
-
February 10th, 2010, 04:32 AM
#2
Re: Access to class properties in global.asax not happening...
I suspect that you have not marked the properties as 'static'. Can you show us how you defined the properties and show us how you are accessing them? It makes things easier if you put a little more detail into the post.
-
February 10th, 2010, 02:51 PM
#3
Re: Access to class properties in global.asax not happening...
Cheers Nelo. Simple and sorted.
Wee!
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
|