http://dotnetspider.com/resources/ViewResource.aspx?resourceId=20803

http://dotnetspider.com/resources/ViewResource.aspx?resourceId=20803

Define XSLT

XSL stands for Extensible Stylesheet Language.its a language used to desing and apply style sheets especially for xml documents.XSL consists of three parts,
1)xslt2)xpath3)xsl-fo
XSLT:-
XSLT which stands for xsl Transformation.XSLt is also used to tranform xml document to another xml.
XSL-FO:-
Its used to formatting the xml data.xsl-Fo is now formally named xsl.its stands for Extensible stylesheet Language formatting Objects.xslt-fo is a w3c recommendation.XSL-FO documents are stored in files with a .fo or a .fob file extension
X-Path:
XPath is a major element in the XSLT standard. Without XPath knowledge you will not be able to create XSLT documents.XPath is a syntax for defining parts of an XML document.It contain a library of standard functions.its also W3C Standard.XPath uses path expressions to navigate in XML documents

How to call two javascript function in one button click

In button click we call the two javascript function:-
just drag and drop the button control to Page.In page load assing the javascript function to button control.[code]Partial Class _Default Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 'bind the alertbox() and confirmbox function to button control Button1.Attributes.Add("onclick", "alertbox();confirmbox();") End SubEnd Class
[/code]

Transforming XML through XSLT

XSL stands for Extensible Stylesheet Language.its a language used to desing and apply style sheets especially for xml documents.XSL consists of three parts1)xslt2)xpath3)xsl-foXSLT which stands for xsl Transformation.XSLt is also used to tranform xml document to another xml.
[CODE]<?xml version="1.0" encoding="utf-8" ?><Biodata> <bd> <name>G.Renganathan</name> <username>Ultimaterengan</username> <age>20</age> <Qualification>MCA</Qualification> </bd> <bd> <name>S</name> <username>S</username> <age>90</age> <Qualification>Msc</Qualification> </bd> </Biodata>
[/code]
XSLT file:-
[code]<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&GT;
<xsl:template match="/"> <html> <body> <!-- This is an XSLT template file. Fill in this area with the XSL elements which will transform your XML to XHTML. -->
<table border="1"> <tr bgcolor="#0acg10"> <th>name</th> <th>age</th> <th>username</th> <th>Qualification</th> </tr > <xsl:for-each select="Biodata/bd"> <tr> <td> <xsl:value-of select="name" /> </td> <td> <xsl>age</xsl> </td> <td> <xsl:value-of select="username" /> <xsl></xsl> </td> <td> <xsl:value-of select="Qualification" />
</td> </tr> </xsl:for-each > </table> </body> </html></xsl:template>
</xsl:stylesheet>
[/code]
aspx:-[code]<html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server"> <title>Untitled Page</title></head><body> <form id="form1" runat="server"> <div> <asp:Xml ID="Xml1" DocumentSource="XMLFile.xml" TransformSource="XSLTFile.xsl" runat="server" /> </div> </form></body></html>
[/CODE]

Sitemenu

How to use SiteMap in asp.net?
Create menu using SiteMap
1)Right click the Project Name
2)Choose The New Item
3)Choose "SiteMap" From Add NewItem window
Web.DotNetSiteMap Its look like,
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="" title="" description="">
<siteMapNode url="" title="" description="" />
<siteMapNode url="" title="" description="" />
</siteMapNode>
</siteMap>

In Form
1)Add the Menu controls to Form
2)Go to the Property window
3)choose New Datasource from Datasource ID of Menu control
4)DataSource Configuration Wizard window will display
5)then coose the "Site Map"
Example :-
web.SiteMap:-
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="File" title="File" description="File">
<siteMapNode url="Default2.aspx" title="SecondPage" description="ThirdPage" />
<siteMapNode url="Default3.aspx" title="ThirdPage" description="ThirdPage" />
</siteMapNode>
</siteMap>
Default.aspx:-
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1">
</asp:Menu>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
</div>
</form>
</body>
</html>