Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:849966
More Search Options
RSS Available
Matching Posts
Re: Caching XML file when using XmlTextReader
Ah, brilliant - thanks. I am now trying to work out how to cache the xslt files, so I don't have to load each one... K
Posted to
XML and XmlDataSource Control
(Forum)
by
katebp
on 7/2/2009
Caching XML file when using XmlTextReader
Hello all, I am currently working on a site when the navigation elements (top nav, left menu, breadcrumbs etc) are contained within user controls which individually load in the sitemap xml and use XslCompiledTransform to parse it through dfferent XSLT files. I am currently working on how I can cache the sitemap xml so it isn't loaded from scratch four or five times every time the page is loaded. from sitetemplate.master.cs using System; using System.Collections; using System.Collections.Generic;
Posted to
XML and XmlDataSource Control
(Forum)
by
katebp
on 7/1/2009
Filed under: xml, XmlTextReader, Cache problem
Re: Leaving the URL alone, but loading in alternative page (for every page in site)
Thanks for your reply, my problem however is that I wanted to change the page that loaded, NOT the url. I have posted the same message on webmaster world, where someone wrote some code to pop into the Global.asax file which seems to do what I need it to: http://www.webmasterworld.com/microsoft_asp_net/3935014.htm#msg3935209 (In case anyone arrives at this page through google)
Posted to
Getting Started
(Forum)
by
katebp
on 6/18/2009
Re: Is it possible to apply an XSLT to the XML SiteMap file in place of the .NET menu, tree etc. controls?
You're a genius! I'd updated the XML from an example in W3Schools and forgotten to change it back to check your new code. (the example code I used replaced <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > with <siteMap> which stopped your code from working. Thanks so much for your help.
Posted to
XML and XmlDataSource Control
(Forum)
by
katebp
on 6/16/2009
Re: Is it possible to apply an XSLT to the XML SiteMap file in place of the .NET menu, tree etc. controls?
Thanks for your reply but I'm afraid it didn't make any difference - still no output or errors.
Posted to
XML and XmlDataSource Control
(Forum)
by
katebp
on 6/16/2009
Is it possible to apply an XSLT to the XML SiteMap file in place of the .NET menu, tree etc. controls?
Hello all, I want to load in my .sitemap file and transform the content using XSLT rather than the standard .NET controls. Although I've seen this question asked before, it was never answered. Code in masterpage.master.cs // load site xml XmlDocument siteXML = new XmlDocument(); siteXML.Load(Server.MapPath( "~/xml/dotnettemplate.sitemap" )); //Bottom menu XslTransform siteXSL = new XslTransform(); siteXSL.Load(Server.MapPath( "~/xslt/sectionmenu.xslt" )); SectionMenu.Document
Posted to
XML and XmlDataSource Control
(Forum)
by
katebp
on 6/16/2009
Filed under: sitemap, XSLT
Re: Error loading .xml file, but not .sitemap with same code?
Ignore me - there was some white space in the xml doc I hadn't spotted. Back to the drawing board as regards to working out how to manipulate the sitemap doc with XSLT then.
Posted to
Getting Started
(Forum)
by
katebp
on 6/16/2009
Leaving the URL alone, but loading in alternative page (for every page in site)
Hello, I am looking for a way to load a page when the page URL and its physical location differ, and to load that file without rewriting the URL. For every page throughout my site. I have a simple site CMS that generates pages according to their entry in the database and outputs a classic asp file in the format pages/14/content.asp (where 14 is the id of that page in the dbase). For each page request (in the form www..... index.asp?pageid=14) the file index.asp loads in the site xml, matches the
Posted to
Getting Started
(Forum)
by
katebp
on 6/16/2009
Filed under: asp.net
Error loading .xml file, but not .sitemap with same code?
I am trying to load an XML file (with the .sitemap extension) and transform it with an XSLT file (I want to generate the site navigation using XSLT rather than the .NET defaults). To begin I loaded an .sitemap file and attempted to transform it with XSLT - but was unable to get any output, so attempted to test it using a .xml and .xslt file from W3schools - when I got the following error: "Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space
Posted to
Getting Started
(Forum)
by
katebp
on 6/15/2009
Filed under: xml, sitemap, XSLT
Re: Dynamic stylesheets in ASP.NET
Right, after playing around with the code, I've worked out the following code: in the head: <link rel="stylesheet" href="style/style.aspx?pageid=<%=pageid%>" type="text/css" /> in style.asp <%@ Page Language="C#" %> <% Response.ContentType = "text/css"; Server.Execute("template/typography.css"); Server.Execute("template/template.css"); Server.Execute("template/navigation.css"); Server.Execute
Posted to
Migrating from ASP to ASP.NET
(Forum)
by
katebp
on 1/29/2009
Page 1 of 2 (15 items) 1
2
Next >
WindowsClient:
Getting ready to relaunch my site on Umbraco CMS
Channel 10:
Four Holiday Themes for Windows 7
Channel 10:
Windows Live Plugin "LiveUpload for YouTube" Updated
TechNet Edge:
Windows 7 BranchCache™ Explained
ASP.NET:
Localizing ASP.NET MVC Validation
WindowsClient:
Debugging Crash Dumps with Visual Studio 2010
WindowsClient:
Debugging Crash Dumps with Visual Studio 2010
Channel 9:
Channel 9 Live at PDC09 Kurt DelBene
Channel 9:
Channel 9 Live at PDC09 Mike Anguilo
Channel 9:
Channel 9 Live at PDC09: Dean Hachamovitch
Channel 9:
Channel 9 Live at PDC09: Gary Flake
Channel 9:
Channel 9 Live at PDC09: Mark Russinovich and Patrick Dussud
Channel 9:
Ping 40: Black screen claims- retracted, Windows 7, Bing Maps, Office 2010
WindowsClient:
WPF Touch Basics
WindowsClient:
WPF Touch Basics
TechNet Edge:
AlignIT IT Manager Podcast #32: Agile Application Lifecycle Management
Channel 9:
Bharat Shah: Microsoft Online Services Overview
WindowsClient:
Holland America adds Surface to several ships in it’s new Mix lounge
ASP.NET:
RIA Services Link Listing #1
Channel 9:
Reactive Extensions API in depth: Merge
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online