Ask a Question related to ASP, Design and Development.
-
Alex #1
Com objects using the same global obj ref.
I'm sure that the following is possible, I just need a little help
please.
I have a object which I declare as a application object "gObj".
I need to use "gObj" with all sessions. I need "gObj" to have access
based on the user's id. Is this possible without creating multiple
gObj's?
Code would be something like:
Application_OnStart
set gobj = Server.Create( "someDll" )
gobj.uname = "somename"
gobj.port = 1234
gobj.pwd = "pwd"
Alex Guest
-
#40604 [NEW]: Objects disappear from the global scope
From: dagdamor at simps dot ru Operating system: Windows PHP version: 5.2.1 PHP Bug Type: Class/Object related Bug... -
using static objects (declared in global.asax) in webforms
Hi. I'm in the process of moving an application from ASP to ASP.NET, & I'm writing in VB, using VS.NET. I'm new to the .NET framework & have a... -
Global Error handling in Applicatio_Error() of Global.asax
Hi all, For a web application if we are using web farm, and if i want to do Global Error handling can i use Applicatio_Error() method in... -
Help Please: 'Warning 5001 global variable "iF_timer" already defined in global scope
Hi there, I have just started to get this error: 'Warning 5001 global variable "iF_timer" already defined in global scope The variable name... -
accessing Global.asax design time objects
hi, how to access to Global.asax design time objects from my asp.net page? thanks in advance ..Javier Ros. -
Cowboy \(Gregory A. Beamer\) #2
Re: Com objects using the same global obj ref.
First thought: Use an ActiveX EXE for the global functionality. You can then
use GetObject(). A COM+ component might help in this regard, but I am not
sure. This is just a thought, as I have not tested any of this.
The best method, if you have the inclination (which I know will work) is to
extend the IIS model with an ISAPI component. You have to use C++ for COM
based implementations (ASP, for example), so it is not an easy matter. But,
it can be done.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Alex" <sharpe_a@hotmail.com> wrote in message
news:d9a9df34.0310222121.1dd2a587@posting.google.c om...> I'm sure that the following is possible, I just need a little help
> please.
>
> I have a object which I declare as a application object "gObj".
>
> I need to use "gObj" with all sessions. I need "gObj" to have access
> based on the user's id. Is this possible without creating multiple
> gObj's?
>
> Code would be something like:
>
> Application_OnStart
> set gobj = Server.Create( "someDll" )
>
> gobj.uname = "somename"
> gobj.port = 1234
> gobj.pwd = "pwd"
Cowboy \(Gregory A. Beamer\) Guest



Reply With Quote

