Im using the ASP.NET Xml control and want to pass it a url to a rss feed and a stylesheet - so that i can style the rss myself on my website. When applying the full web path to the xml control [URL] i get an exception telling me that the document source is not a valid virtual path. What am i doing wrong? I would hate to download the file before showing it...
I have added some properties and local variables to a class and would like to parse the object with XSLT to an XML/HTMLfile.Now here is the strange thing: hen I have this:
private double _invoicePrice = 0; [XmlAttribute("invoicePrice")] public double InvoicePrice{ get { return _invoicePrice; } set { _invoicePrice = value; } [code]...
The situation is I have two xslt files: one is called from my ASP.NET code, and there, the second xslt file is imported.What I'd like to accomplish is to pass a parameter to the first one so the second xslt(the one that is imported at the first xslt) can read it.
My c# code looks like this:
var oArgs = new XsltArgumentList(); oArgs.AddParam("fbLikeFeatureName", "", "Facebook_Like_Button"); ltlContentBody.Text = xmlUtil.TransformXML(oXmlDoc, Server.MapPath(eSpaceId + "/styles/ExploringXSLT/ExploreContentObjects.xslt"), true);
And I'm catching the param at the first xslt this way: <xsl:param name="fbLikeFeatureName" />
And then, passing it to the second xslt like this(previously, I import that file):
My XSLT was compiled via xsltc, the performance is hugely improved. However, I am wondering how the compiled XSLT works on IIS? Will there any cached of the compiled XSLT instance on the IIS after 1st JIT'ing. As I am seeing my page slightly slow in response from server, but if the page after being called once, subsequent access to the page will faster. So I am suspecting all the transformation processes was not cached for long time on server side.
I cant get to directcontroller url (I have change the routing so it will fit into my paging system but I cant fit it also to get the controller url without action (I can gethttp://localhost:51443/home/inde )but I would like to get also "clean" url like http://localhost:51443/home
The web app uses XML from a web service, which is then transformed to HTML using XSLT. The app uses a HttpModule to get the XML using AddOnPreRequestHandlerExecuteAsync.
Classes Used:
XmlDocument - stores the xml. XslCompiledTransform - stores the transform, is cached in Application. Asynchronous HttpWebRequest using BeginGetResponse/EndGetResponse HttpModule with hooked AddOnPreRequestHandlerExecuteAsync events.
I do not want to use the XPathDocument unless there are no other possible optimizations. It would take some complicated code to get all the XML together without the ability to write to the XmlDocument. There is additional XML that does not come from the web service that must also be added to the document.
I have a problem with my XML that I am trying to display on my ASP.NET page. What I would like to do is display it on a multi-line so I have an XML file that looks like this:
<?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="News.xslt" ?> <newslist> <news> <date>20th June 2010</date> <detail>Detail line 1.
[Code]....
When it displays the first detail line everything is on the same line. I've done some digging about and I have tried the following:
xml:space="preserve" in the XSLT file in the XML file<br />
I've even tried leaving it as it is.
I am using Microsoft Visual Web Developer 2010. The control I am using is the XML control under the standard tab, and the language I am using is C#.
how to use/call ajaxToolkit:CalendarExtender in an xslt as I have an xslt control that renders data to my page but I am using ajax for the site now and I have to update a few xslt pages so that I can use ajax controls.PS : I don't understand xslt's much but do understand that they use standard html/javascript controls.
I would like to read the username and password values from the XSL and use them for authentication. I am using ASP.Net and C# to perform the actual transform on an XML file.
share code with me that would allow me to read the XSL variables from ASP.NET/C#.
I have an XSLT transform I am using to process an XML file, inserting it into the body of my aspx page.Reference the following for background information:
I have used the xslt code from Steven Sandersons book 'Pro ASP.NET MVC2 Framework' for the xslt view engine and that is working perfectly. However I am now looking at using a master page for the header, footer, and navigation sections and only need to use my other xslt files to populate the content part.
I have a number of XSLT files in my ASP.NET Web Application solution. Should these go in the App_Data folder?
The MSDN 'Project Folder Structure' article suggests that the App_Data folder is for 'data files'. As XSLT files are not strictly 'data files' then should they go elsewhere?
I do not want end users to be able to access the XSLT files from their browsers, so App_Data seems like an obvious location for this, but I am not sure.
Removing this and replacing it with a normal text, it will work. The way I setup the XML datasource:
xmlDataSource.TransformArgumentList.AddExtensionObject("ds:HttpUtility", new System.Web.HttpUtility()); xmlDataSource.Data = Cache.FetchPageMenu();
I've been searching the Microsoft pages for any changes in v4, but can't find any. All this worked fine in v3.5 (and before v2). Not receiving any errors, the data is just not displaying.
i am using xslt file in a aspx page which uses a master page.in Action method i called the xslt file and returned the view();Now in my page first xslt content displays and after that master page content is displayed .how can i put the xslt content in content holder of master page in asp.net MVC
I have a ASP.NET page called admin.aspx that needs to be protected from direct access.
I want it to be accessed only when the user enter his name & password in another page called login.aspx I'm working in ASP.NET with Visual Basic .NET 2008,how to do it.
I'm working on a website where I need to prevent the direct linking to a few pdf files. I'm using ASP.net 2.0. Is there an easy way in code to do this? or some simple IIS setting?
Right now i'm just using a standard anchor tag to link to the files. i can validate the user on the page containing the anchor tag but that still doesn't stop the user from nabbing the url and passing it on to someone else.