CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 ASP ActiveX Control

Print topic Send  topic

Author Message
jaccee
Posted: 09/02/2003, 6:09 AM

Hi,

wonder if any codechargers here have any experience in this.

I am trying to keep an ActiveX Control loaded across several pages. Does
anyone here have any experience in this? Now everytime I change pages, the
ActiveX gets reloaded.


Thanks,

Jaccee

DonB
Posted: 09/03/2003, 5:07 AM

This is normal ASP behavior (even non-ASP). Each page exists as long as
the page appears in the browser. All variables and objects exists for the
lifetime of the page. I think the only thing you can do (if you really,
really need to) is to declare the control and stick it into a session
variable so it WILL persist between page loads. This is not a good
practice as it presents a bit of a resource hog (memory) and will cause you
scalability issues if this application is to support lots and lots of users.

--
DonB

http://www.gotodon.com/ccbth


"jaccee" <jaccee@moneymind.com> wrote in message
news:bj24qb$m2r$1@news.codecharge.com...
> Hi,
>
> wonder if any codechargers here have any experience in this.
>
> I am trying to keep an ActiveX Control loaded across several pages. Does
> anyone here have any experience in this? Now everytime I change pages,
the
> ActiveX gets reloaded.
>
>
> Thanks,
>
> Jaccee
>
>

jaccee
Posted: 09/03/2003, 4:51 PM

Hi DonB,

Thanks for your answer DonB!

I'd like to explore putting a control as a session variable, how would I do
that, do you mind sharing a snippet ? I dont expect too many visitors on
this particular site.

Much appreciated!

Jaccee


"DonB" <~ccbth~@gotodon.com> wrote in message
news:bj4lhb$to8$1@news.codecharge.com...
> This is normal ASP behavior (even non-ASP). Each page exists as long as
> the page appears in the browser. All variables and objects exists for the
> lifetime of the page. I think the only thing you can do (if you really,
> really need to) is to declare the control and stick it into a session
> variable so it WILL persist between page loads. This is not a good
> practice as it presents a bit of a resource hog (memory) and will cause
you
> scalability issues if this application is to support lots and lots of
users.
>
> --
> DonB
>
> http://www.gotodon.com/ccbth
>
>
> "jaccee" <jaccee@moneymind.com> wrote in message
>news:bj24qb$m2r$1@news.codecharge.com...
> > Hi,
> >
> > wonder if any codechargers here have any experience in this.
> >
> > I am trying to keep an ActiveX Control loaded across several pages. Does
> > anyone here have any experience in this? Now everytime I change pages,
> the
> > ActiveX gets reloaded.
> >
> >
> > Thanks,
> >
> > Jaccee
> >
> >
>
>

DonB
Posted: 09/03/2003, 6:38 PM

Just like any other variable:

Set Session("objControl") = Server.CreateObject("clsControl") [if the
control is registered]

Be sure to "extract" the object before trying to interact with it:

Set objTemp = Session("objControl")

objTemp.someproperty = True


--
DonB

http://www.gotodon.com/ccbth


"jaccee" <jaccee@moneymind.com> wrote in message
news:bj5up9$ko6$1@news.codecharge.com...
> Hi DonB,
>
> Thanks for your answer DonB!
>
> I'd like to explore putting a control as a session variable, how would I
do
> that, do you mind sharing a snippet ? I dont expect too many visitors on
> this particular site.
>
> Much appreciated!
>
> Jaccee
>
>
> "DonB" <~ccbth~@gotodon.com> wrote in message
>news:bj4lhb$to8$1@news.codecharge.com...
> > This is normal ASP behavior (even non-ASP). Each page exists as long
as
> > the page appears in the browser. All variables and objects exists for
the
> > lifetime of the page. I think the only thing you can do (if you really,
> > really need to) is to declare the control and stick it into a session
> > variable so it WILL persist between page loads. This is not a good
> > practice as it presents a bit of a resource hog (memory) and will cause
> you
> > scalability issues if this application is to support lots and lots of
> users.
> >
> > --
> > DonB
> >
> > http://www.gotodon.com/ccbth
> >
> >
> > "jaccee" <jaccee@moneymind.com> wrote in message
> >news:bj24qb$m2r$1@news.codecharge.com...
> > > Hi,
> > >
> > > wonder if any codechargers here have any experience in this.
> > >
> > > I am trying to keep an ActiveX Control loaded across several pages.
Does
> > > anyone here have any experience in this? Now everytime I change pages,
> > the
> > > ActiveX gets reloaded.
> > >
> > >
> > > Thanks,
> > >
> > > Jaccee
> > >
> > >
> >
> >
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.