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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top