No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
How do I reference an application state variable from a .net component class? I know how to do it from a web page, eg. application("myVariable"). But this doesn't work in my business object. |
|
When I start up my application from within VS .NET the Sesssion_Start fires twice and my counter goes up by 2s. Why? Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs) ' Fires when the session is started Application("SessCount") += 1 End Sub |
|
Specified cast is not valid. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidCastException: Specified cast is not valid. Source Error: Line 12: Public Sub … |