Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Professional ASP.NET 4 : in C# and VB
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Professional ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Professional ASP.NET 4 in C# and VB by Bill Evjen, Scott Hanselman, Devin Rader; ISBN: 9780470502204
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 23rd, 2012, 08:19 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Mar 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default @Page directive - Inherits vs. ClassName

I am returning to programming after a 10 year hiatus - when I last worked in programming I was pursuing certification in VB 6 and SQL Server 7, and I am fairly sure that ASP was referred to merely as ASP with no number after, just to give you an idea of how long it has been. So, I decided to make my way through this book to brush up on my VB and ASP skills.

So, sorry if this seems like a trivial question, but I like to know and understand absolutely everything. I am making my way through chapter 1, and I notice that the following example is used frequently for an example of using the @Page directive:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

Then in the first paragraph on page 9 it talks about this syntax, and states that the Inherits attribute "specifies the name of the class that is bound to the page when the page is compiled."

However, on page 10, Table 1-4 list all available attributes of the @Page directive, and Inherits is nowhere in the list. This table lists the attribute "ClassName" and states that it "Specifies the name of the class that is bound to the page when the page is compiled."

Are these 2 attributes interchangeable? Will both accomplish the exact same thing, and if so is one more common or preferred?


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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Base Page Problem with "safeitenames" carryover in the 'inherits" johnandrewmcknight BOOK: Beginning ASP.NET 4 : in C# and VB 3 April 22nd, 2011 04:08 PM
Using Inherit in page directive arnabghosh ASP.NET 2.0 Professional 0 July 13th, 2009 02:48 AM
ErrorPage in Page Directive balesh.mind ASP.NET 2.0 Professional 1 August 10th, 2007 09:14 AM
Inherits the page? frej ASP.NET 1.0 and 1.1 Basics 3 June 3rd, 2005 09:26 AM
Change Application classname ginoitalo Pro VB 6 0 April 8th, 2004 08:52 PM

All times are GMT -4. The time now is 07:46 PM.

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