Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / August 2006

Tip: Looking for answers? Try searching our database.

include file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
martin1 - 31 Aug 2006 14:00 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.