p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 (http://p2p.wrox.com/forumdisplay.php?f=389)
-   -   Page 210 Try it out. (http://p2p.wrox.com/showthread.php?t=79230)

flapjack April 28th, 2010 05:13 PM

Page 210 Try it out.
Hi Imar,

I have tried this exercise twice and have gone through it carefully both times. The results are as follows in the TestPage code behind file:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class TestPage : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)


Notice that it still inherits from System.Web.UI.Page. I'm sure that it should inherit from BasePage and I don't know where I'm going wrong! Can you throw any light on this please. I'm doing exactly what it says in Step 2 i.e. changing it so it inherits from BasePage instead of System.Web.UI.Page as well as changing the class name to $safeitemname$. Any ideas please.


Imar April 28th, 2010 05:24 PM

Might be a stupid question, but are you sure you're basing your new page on your custom template in the Add New Item dialog and not on the standard Web Form template?


flapjack April 29th, 2010 01:38 PM

Page 210 Try it out.
Its not a stupid question at all as I was doing just that!! Feeling slightly foolish now[:o] Thanks very much Imar.


Imar May 1st, 2010 03:23 AM

;-) No need to feel foolish.... Glad it's working now...


All times are GMT -4. The time now is 01:55 AM.

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