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 just starting my first MVC Web Application and have noticed that I now not only have a Web.config file in the root, but 2 sub-files, for Debug and Release configurations. I've read up a bit on what this is, in that I can put specific configurations for my different environments in each file, but I am confused as to when these seperate files are actually used.
Do I HAVE to use the built in Deployment/Publish tools within Visual Studio in order to benefit from this, or, if I set my build mode to Release, and do a simple build of my web application, then deploy the compiled files, along with the Web.config AND Web.Release.config, would that work?
I'm just not sure what deployment options I have to take advantage of these seperate config files?
I am currently trying to publish a web application in TestRelease mode and when I do, the following dll is compiled and put into the bin folder.Microsoft.VisualStudio.Settings.dll.I do not get this dll when I comple in release or debug mode so wondered if there is a setting I can change so this dll does not appear in the bin folder when I compile in TestRelease or TestDebug mode ?When I get that dll in the bin folder and try to deploy the application to our test server, I receive the following message: Could not load file or assembly 'Microsoft.VisualStudio.Settings.dll' or one of its dependencies.Any suggestions on why that dll appears in the bin folder and how I can prevent it from being deployed when I pusblish through visual studio ?
I'm struggling to get web.config transformations working with automated builds. We have a reasonably large solution, containing one ASP.NET web application and eight class libraries. We have three developers working on the project and, up to now, each has "published" the solution to a local folder then used file copy to deploy to a test server. I'm trying to put an automated build/deploy solution in place using TFS 2010. I created a build definition and added a call to msdeploy.exe in the build process template, to get the application deployed to the test server. So far, so good!
I then tried to implement web.config transforms and I just can't get them to work. If I build and publish locally on my PC, the "publish" folder has the correct, transformed web.config file. Using team build, the transformation just does not happen, and I just have the base web.config file. I tried adding a post-build step in the web application's project file, as others have suggested, similar to:
but this fails beacuse the source web.config file has an "applicationSettings" section. I get the error Could not find schema information for the element 'applicationSettings'.I've seen suggstions around adding arguments to the MSBuild task in the build definition like
/t:TransformWebConfig /p:Configuration=Debug
But this falls over when the class library projects are built, presumably because they don't have a web.config file.
I'm using the web.config transformations on an ASP.NET site so I have .config settings for dev, test, and release environments. I need to run the source code in Visual Studio against the test database using the settings in Web.Test.config and I can't figure out how to do it. I tried changing the configuration to Test but it still uses the base Web.config settings.
I am working on an ASP.NET project in Visual Studio .NET 2010 and attempting to make an MSI installer using a Web Setup Project. I added the Primary output from the project (which seems to pull in the relevant dependencies) and the Content Files from the project (which pulls in the Web.config and the .svc files).
The issue is that rather than applying the XDT transform and creating the Web.config using the Web.Release.config, it just copies the Web.config, the Web.Release.config, and the Web.Debug.config into the installer without doing any transformation at all.
How do I get it to apply the Web.config transformation before creating the installer?
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'm using an ASP:Menu control declared in markup as:
[Code]....
This is a simple menustrip that just gives the viewer of my webpage the ability to set the natural size of the page to something more suitable to the size of their browser window or screen resolution. The onclick code:
[Code]....
This is ridiculously simple stuff; the Session Resolution set by the click event is checked and accounted for in Page Init and PreRender and isn't relevant to this issue.In Visual Studio 2008 Debug mode on Windows 7, the page and its Menustrip load and work just fine in Firefox and also IE8 - everything works exactly as expected.After moving the project to my deployment platform (a Windows 2003 STD Server running IIS), the page continues to work just fine in Firefox but in IE8 (from the same Win7 machine I tested IE8 with in debug mode) the Menustrip won't work in IE8... the top-level shows, but when I move my mouse over the Page Size link it doesn't pop out the various size options - the left border edge disappears but the menu items don't appear. I've verified that Javascript is enabled in IE8.
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 a panel that uses the RoundedConersExtender to round the corners on the border around the panel. It was working fine in IE7 but now in IE8 the top and bottom seem to be separated. I looked through previous questions and it seems that this was a problem with Firefox as well but no solution. Does anyone know a workaround other than using compatibility mode?