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
Scott M. - 31 Aug 2006 14:26 GMT
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.
> Hi, All,
>
[quoted text clipped - 8 lines]
> Thanks,
> Ma
Cor Ligthert [MVP] - 31 Aug 2006 14:41 GMT
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
> Hi, All,
>
[quoted text clipped - 8 lines]
> Thanks,
> Ma