Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5 : in C# and VB 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 February 1st, 2013, 03:10 AM
Registered User
 
Join Date: Feb 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 6 - Template Export Issue

Hello,

I'm following along and having a problem with the template export piece. I created the Temporary.aspx file and changed the class name and the inherits piece in the markup view to:

$relurlnamespace$_$safeitemname$


After I export the template per the instructions and then try to create a new page using the new template, I see this in the code behind and in the inherits area of the new page:

$relurlnamespace$_TestPage


Is there a reason $relurlnamespace$ isn't getting replaced correctly? I also checked the Template Parameters page on MSDN for Visual Studio 2012 and I don't see a parameter called $relurlnamespace$. I've tried some of the others listed on that MSDN page, but they don't work either.

Any ideas?
 
Old February 1st, 2013, 01:12 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

That's odd. A few things:

1. Did you create a Web Site (File | New Web Site rather than File | New Project)

2. Did you copy / enter the exactly as shown in the book?

3. Do the templates in the Resources\Chapter 06 folder of the code download for the book work for you?

4. Did you create the template for the correct programming language?

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!





Similar Threads
Thread Thread Starter Forum Replies Last Post
File -> Export Template Option Missing Sandrier BOOK: Beginning ASP.NET 4 : in C# and VB 1 July 22nd, 2011 06:49 AM
Export query param from Access form 2 XLS template gfranco Access VBA 0 April 14th, 2008 03:19 PM
Export to multiple Excel files using template ecapox Access VBA 0 February 5th, 2008 10:38 AM
Help Please with Template issue ckroon Dreamweaver (all versions) 2 August 12th, 2005 09:18 PM
How to export SQL RS data to Excel template johnilett BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 August 4th, 2005 03:39 AM





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