-
1 Attachment(s)
[RESOLVED] XSLT doubt?
I used the following lines of coding in the child webpage,
Code:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Main" Runat="Server">
</asp:Content>
Code:
In the page load event of the client page I mentioned the following coding
System.Xml.XPath.XPathDocument xmlDoc = new System.Xml.XPath.XPathDocument(Server.MapPath("~\\app_Data\\xmldatafile.xml"));
System.Xml.Xsl.XslTransform xslt = new System.Xml.Xsl.XslTransform();
xslt.Load(Server.MapPath("~/app_Data/ContactsX.xsl"));
xslt.Transform(xmlDoc, null, this.Response.OutputStream);
I am using a logo in the top of the master page. The above code displays the result of the xslt transformation in the top of the child page. It means the output is displayed above the LOGO in the master page. How to solve this?. The result of the above code should be displayed in the content place holder. Help need! Please see the attachment for clarification.
-
Re: XSLT doubt?
It's a problem with your page coding and your xslt code. Not your codebehind. Show us your page layout and xslt.
-
Re: XSLT doubt?
Using a xml control, it displays as i need. thanks
-
Re: XSLT doubt?
:ehh:
Well, that didn't make sense. :)