CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2005
    Posts
    35

    Unhappy 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!

  2. #2
    Join Date
    Nov 2002
    Location
    .NET 3.5 VS2008
    Posts
    1,039

    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.

  3. #3
    Join Date
    Jan 2005
    Posts
    35

    Smile 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
  •  





Click Here to Expand Forum to Full Width

Featured