|
|
 |
| 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.
|
 |

June 23rd, 2004, 06:39 AM
|
|
Authorized User
|
|
Join Date: Feb 2004
Location: Delhi, Delhi, India.
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
__________________
-.. -..
|

June 24th, 2004, 04:19 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: , , USA.
Posts: 1,111
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
huh??!?!
Look up User Controls and see if that's what you're looking for.
|

June 27th, 2004, 11:21 AM
|
 |
Friend of Wrox
Points: 16,368, Level: 55 |
|
|
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,394
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
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?
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |