Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning 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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 4th, 2011, 06:33 PM
Authorized User
Points: 393, Level: 6
Points: 393, Level: 6 Points: 393, Level: 6 Points: 393, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2009
Posts: 68
Thanks: 6
Thanked 0 Times in 0 Posts
Default Basepage

Hi,

In Chapter 6 of "Beginning ASP.Net4" (page 210) by Imar, we need to create a BasePage, which has the sole purpose of checking the title of a page at runtime.
In the process of implementing this, we have to go to the Login.aspx and change the Inherits Code. My question is what if I do not have in my own website a login page or I do not wish to let the users get in by logging in? In this case, where do I include "Inherits BasePage"?

Please help.

Thanks
Khalil
Reply With Quote
  #2 (permalink)  
Old December 5th, 2011, 06:24 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi Khalil,

The idea of the BasePage is not specific to a Login page. It can be used for *all* ASPX pages in your site, as you'll see being done in the other pages of the Planet Wrox site (most of them; not all, pages in the Management center for example don't inherit BasePage, although you could do that if you wanted to. I haven't done this because the Management pages don't use the site theme which is set in BasePage as well).

Cheers,


Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #3 (permalink)  
Old December 5th, 2011, 04:30 PM
Authorized User
Points: 393, Level: 6
Points: 393, Level: 6 Points: 393, Level: 6 Points: 393, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2009
Posts: 68
Thanks: 6
Thanked 0 Times in 0 Posts
Smile BasePage

Dear Imar,

Thank you very much for the reply. I've understood.

Regards
Khalil
Reply With Quote
  #4 (permalink)  
Old December 7th, 2011, 06:42 AM
roofing210
Guest
 
Posts: n/a
Default Basepage

Really it's so helpful in ASP.NET

Miramar Roofing
Roofing Fort Lauderdale
Roofing Wellington
Roofing Delray Beach FL
Reply With Quote Received Infraction
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

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
BasePage Question Rushino BOOK: Beginning ASP.NET 4 : in C# and VB 9 April 9th, 2010 12:48 PM
Am I understanding how the BasePage is called up? kiwibrit BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 November 11th, 2009 05:08 AM
Reference to BasePage member4953 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 March 27th, 2009 01:45 PM
BasePage & MasterPage Rachel BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 December 25th, 2008 11:23 AM
BasePage and Namespace Issue Eric S. Smith BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 May 28th, 2008 08:43 AM



All times are GMT -4. The time now is 02:10 PM.


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