Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
ASP.net Include files
Old 01-11-2007, 12:21 PM ASP.net Include files
Skilled Talker

Posts: 95
Trades: 0
Hi.

I've been using asp for years now and i'm currently in the process of teaching my self ASP.Net.

I know ASP.NET is and OO language and doesnt proscess the information in the same was as ASP did (run code as from top to bottom).

I have a page full of functions that i used to include in my ASP pages via the code

<!-- #INCLUDE virtual="includes/AspireConnect.asp" -->

this would allow me to call anyfunction from that page as if it where in the current page i'm working on.

How do i perform the same task in ASP.net as i've read that although supported i shouldn't really use include files any more.

Thanks for any help.
Rob
higginbt is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-13-2007, 12:51 AM Re: ASP.net Include files
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
Quote:
Originally Posted by higginbt View Post
How do i perform the same task in ASP.net as i've read that although supported i shouldn't really use include files any more.
Well your best bet is to use object orientation; create a new class that inherits System.Web.UI.Page and add whatever code you'd like to it, then make all the pages in your app inherit from this new class.
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Reply     « Reply to ASP.net Include files
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09294 seconds with 12 queries