Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
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 October 5th, 2004, 12:51 AM
Authorized User
 
Join Date: Sep 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default Difference between SSI and server.execute

Any one can tell me the basic difference between the Server side Includes and server.execute.

Thanks

Rekha

rekha
__________________
It is always safe to assume, not that the old way is wrong, but that there may be a better way...
*************************
Rekha
 
Old October 5th, 2004, 07:14 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

http://www.google.com/search?hl=en&l...+side+Includes

Do a google search on the topics.

http://www.google.com/search?hl=en&i...server.execute


 
Old October 5th, 2004, 11:09 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Rekha,

This should be a nice pointer - The low-down on #includes

Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old October 17th, 2004, 04:31 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Although that is a great article at 4guys, it applies to ASP. You should really not be using (and should have no need for) server-side includes in ASP.NET. You need to learn about code reuse with class library assemblies and the other techniques available to us with ASP.NET.
 
Old October 19th, 2004, 09:36 AM
Registered User
 
Join Date: Jun 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Please correct me if I'm wrong. A aspx file can have only one codebehind page, so you can attach only one class to you page? If not, how do I attach more than one codebehind pages? Then you can attach as much ascx controls to your page, so I can put all reuseable code in there? Then of course I can put it all in the web.config, but that does not sound right.

 
Old November 8th, 2004, 12:46 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

roog,

One aspx page is one class. A class can inherit only one class. One aspx (a page class) can contain as many user controls as you like.

Any classes that are compiled with the page class can be consumed by that page class. This is the idea behind an assembly. All classes in a single .NET project get compiled into an assembly. All classes in an assembly can consume all public classes in that assembly and in any assembly that the project has a reference to.





Similar Threads
Thread Thread Starter Forum Replies Last Post
connection.execute and command.execute difference vinod_yadav1919 Classic ASP Databases 0 September 28th, 2005 06:34 AM
Server.Execute muinaru Classic ASP Basics 9 March 13th, 2005 01:36 PM
Difference between '' and "" in sql server 2000 shoakat Classic ASP Databases 1 September 11th, 2004 04:57 AM
Server.Execute RobinR Classic ASP Basics 2 October 31st, 2003 11:44 AM





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