Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution 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 November 12th, 2003, 09:32 AM
Registered User
 
Join Date: Jun 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default .NET 1.1 version of Render procedure

On p62 of the original Wrox version of the book there is a Render procedure that transforms XML into HTML. This function that does this is now obsolete in .NET 1.1 and I was wondering what the correct code should now be. The code snippet is:

With xslt
    .Load(Context.Server.MapPath(...
    .Transform(xDoc, Nothing, writer)
End With

The Transform function (highlighted in red) is throwing a design time error.

TIA


Regards

Crispin Horsfield
Caz Limited, Bristol, UK
www.caz.ltd.uk
 
Old November 26th, 2003, 09:00 PM
Registered User
 
Join Date: Nov 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm actually going to work on this today so (fingers-crossed) will have an answer in a few hours...
 
Old November 27th, 2003, 06:12 AM
Authorized User
 
Join Date: Nov 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think you'll find it's a warning, not an error. The 1.1 framework now 'prefers' you use a Transform method with an XmlResolver.
Add an extra parameter after writer of New XmlUrlResolver()



brian
 
Old November 28th, 2003, 02:10 AM
Registered User
 
Join Date: Nov 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This seems to work OK!

With xslt
    .Load(xDoc, Nothing, Me.GetType().Assembly.Evidence)
End With






Similar Threads
Thread Thread Starter Forum Replies Last Post
VS .NET has detected...not running ASP.NET version rstelma ASP.NET 1.0 and 1.1 Professional 17 May 24th, 2008 04:04 AM
ASP.Net Render Problem dparsons ASP.NET 1.0 and 1.1 Professional 3 December 5th, 2005 11:27 AM
.net and IIS version badgolfer ASP.NET 1.0 and 1.1 Basics 1 February 4th, 2005 09:35 AM
ASP.NET Version rajivthakur BOOK: Beginning ASP.NET 1.0 2 August 18th, 2004 07:27 AM
ASP.NET Website Programming VB.NET version lean4huskytop Wrox Book Feedback 1 July 7th, 2003 10:35 AM





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