p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 23rd, 2004, 06:39 AM
Authorized User
Points: 281, Level: 5
Points: 281, Level: 5 Points: 281, Level: 5 Points: 281, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2004
Location: Delhi, Delhi, India.
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

__________________
-.. -..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old June 24th, 2004, 04:19 PM
Friend of Wrox
Points: 2,549, Level: 20
Points: 2,549, Level: 20 Points: 2,549, Level: 20 Points: 2,549, Level: 20
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,111
Thanks: 0
Thanked 3 Times in 3 Posts
Default

huh??!?!

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old June 27th, 2004, 11:21 AM
planoie's Avatar
Friend of Wrox
Points: 16,368, Level: 55
Points: 16,368, Level: 55 Points: 16,368, Level: 55 Points: 16,368, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,394
Thanks: 0
Thanked 2 Times in 2 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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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 07: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 10:49 PM
Display full value in text box, including "" BurhanKhan ASP Forms 3 July 18th, 2004 04:59 PM



All times are GMT -4. The time now is 08:26 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc