Home All Groups Group Topic Archive Search About
Author
31 Aug 2006 1:00 PM
martin1
Hi, All,

I used to use include file (filename.inc) in asp to incude common varibles'
value and DB connection, I tried to use same include file but failed, so
anyone knows how to use include file in VB 2005 ASP? or has another solution
on how to use separeate file to include comman varible vaule like session
varible?

Thanks,
Ma

Author
31 Aug 2006 1:26 PM
Scott M.
Use User Controls.  Create a User Control, add whatever code you want,
compile the project and then open whatever web page(s) you need that code in
and drag the .ascx file from your solution explorer into the page.


Show quoteHide quote
"martin1" <mart***@discussions.microsoft.com> wrote in message
news:339C54E9-CAB1-4138-9B9D-81D307FA7A8E@microsoft.com...
> Hi, All,
>
> I used to use include file (filename.inc) in asp to incude common
> varibles'
> value and DB connection, I tried to use same include file but failed, so
> anyone knows how to use include file in VB 2005 ASP? or has another
> solution
> on how to use separeate file to include comman varible vaule like session
> varible?
>
> Thanks,
> Ma
Author
31 Aug 2006 1:41 PM
Cor Ligthert [MVP]
Martin,

In slightly other words than Scott wrote but in fact telling the same.

Make (not shared) classes from that what you want to reuse.
That can be a user control but as well everything else.

Cor

Show quoteHide quote
"martin1" <mart***@discussions.microsoft.com> schreef in bericht
news:339C54E9-CAB1-4138-9B9D-81D307FA7A8E@microsoft.com...
> Hi, All,
>
> I used to use include file (filename.inc) in asp to incude common
> varibles'
> value and DB connection, I tried to use same include file but failed, so
> anyone knows how to use include file in VB 2005 ASP? or has another
> solution
> on how to use separeate file to include comman varible vaule like session
> varible?
>
> Thanks,
> Ma