include file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.
 
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
 
Back
Top