Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 23rd, 2004, 05:39 AM
Authorized User
 
Join Date: Feb 2004
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to mahulda
Default Including a text file

I have created a number of ASPX Files
In each of these Files There are some common lines of codes
I have stored these lines in a text file. and included the file
in my ASPX file using the statement

This works only for the Client Side

Is there any such method where i can include a text file within
my server side script as well

__________________
-.. -..
 
Old June 24th, 2004, 03:19 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

huh??!?!

Look up User Controls and see if that's what you're looking for.

 
Old June 27th, 2004, 10:21 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

When you write .NET code, you can compile the server code into an assembly (.DLL). And code that runs from this assembly (i.e. ASPX page code-behind) can access any public classes that are in that assembly. This is how you create a code library.

This differs greatly from the old ASP way of doing this where (as your question demonstrates) you created a common file for functions and had to include this in every page that wanted to use it. The programming model is entirely different.

Please describe your environment a little more and perhaps we can provide you some direction. What are you coding with? Notepad, Web Matrix, Visual Studio? What kind of code are you trying to include?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Read Text file and convert to Binary file VB.net sjlsysprg1 Pro VB.NET 2002/2003 4 June 29th, 2007 06:53 AM
Including .chm file in deployment Setup.exe nutrino VB How-To 1 March 23rd, 2006 09:50 AM
including header file(.h) in .NET karveajit General .NET 0 March 17th, 2006 12:41 AM
Extract text from text file & put in dropdown box tsukey Beginning PHP 5 July 20th, 2004 09:49 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.