Click here to Skip to main content
15,889,116 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAsp pages Pin
5fingers29-Jan-09 20:22
5fingers29-Jan-09 20:22 
AnswerRe: Asp pages Pin
Christian Graus29-Jan-09 20:23
protectorChristian Graus29-Jan-09 20:23 
GeneralRe: Asp pages Pin
N a v a n e e t h29-Jan-09 21:11
N a v a n e e t h29-Jan-09 21:11 
QuestionCustom Control Problem Pin
Vishal0929-Jan-09 20:10
Vishal0929-Jan-09 20:10 
AnswerRe: Custom Control Problem Pin
Christian Graus29-Jan-09 20:22
protectorChristian Graus29-Jan-09 20:22 
QuestionProblem Regarding XML Menu Tree Pin
ais0729-Jan-09 19:56
ais0729-Jan-09 19:56 
AnswerRe: Problem Regarding XML Menu Tree Pin
Christian Graus29-Jan-09 20:04
protectorChristian Graus29-Jan-09 20:04 
GeneralRe: Problem Regarding XML Menu Tree [modified] Pin
ais0729-Jan-09 20:14
ais0729-Jan-09 20:14 
Thanks For Reply

This My XML File

////////


<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes" encoding="utf-8">

<xsl:template match="/Menus">
<menuitems>
<xsl:call-template name="MenuListing">




<xsl:template name="MenuListing">
<xsl:apply-templates select="MENU_TREE_STRUCTURE">


<xsl:template match="MENU_TREE_STRUCTURE">
<menuitem>

<xsl:attribute name="Text">
<xsl:value-of select="MTS_GUID_DESC">

<xsl:attribute name="ToolTip">
<xsl:value-of select="MTS_GUID_DESC">

<xsl:attribute name="NavigateUrl">

<xsl:value-of select="MTS_GUID">



<xsl:if test="count(MENU_TREE_STRUCTURE) > 0">
<xsl:call-template name="MenuListing">





////////////////

I had Written Following Code On Master Pages Page Load Event

///////////////

DataSet ds = new DataSet();
string connStr = "Integrated Security=SSPI;Persist Security Info=False;User ID=pank;Initial Catalog=MARKETING;Data Source=ASP6";
using (SqlConnection conn = new SqlConnection(connStr))
{
string sql = "Select MTS_ID, MTS_GUID_DESC, MTS_GUID, MTS_SUBID from MENU_TREE_STRUCTURE";
SqlDataAdapter da = new SqlDataAdapter(sql, conn);
da.Fill(ds);
da.Dispose();
}
ds.DataSetName = "Menus";
ds.Tables[0].TableName = "MENU_TREE_STRUCTURE";
DataRelation relation = new DataRelation("ParentChild",
ds.Tables["MENU_TREE_STRUCTURE"].Columns["MTS_ID"],
ds.Tables["MENU_TREE_STRUCTURE"].Columns["MTS_SUBID"],
true);

relation.Nested = true;
ds.Relations.Add(relation);

xmlDataSource.Data = ds.GetXml();

if (Request.Params["Sel"] != null)
Page.Controls.Add(new System.Web.UI.LiteralControl("You selected " + Request.Params["Sel"]));

///////////////

This Is My Menu Trees Controls Source Code
///////////////

<asp:menu id="Menu1" runat="server" datasourceid="xmlDataSource" skinid="Menu" orientation="Horizontal" onmenuitemclick="Menu1_MenuItemClick" xmlns:asp="#unknown">

<databindings>
<asp:menuitembinding datamember="MenuItem" navigateurlfield="NavigateUrl" textfield="Text" tooltipfield="ToolTip">




////////////////

Thanks

modified on Friday, January 30, 2009 2:26 AM

GeneralRe: Problem Regarding XML Menu Tree Pin
Christian Graus29-Jan-09 20:24
protectorChristian Graus29-Jan-09 20:24 
GeneralRe: Problem Regarding XML Menu Tree Pin
ais0729-Jan-09 20:28
ais0729-Jan-09 20:28 
GeneralRe: Problem Regarding XML Menu Tree Pin
ais0729-Jan-09 22:01
ais0729-Jan-09 22:01 
QuestionRepeater Pin
Karthick_gc29-Jan-09 19:54
Karthick_gc29-Jan-09 19:54 
AnswerRe: Repeater Pin
Christian Graus29-Jan-09 20:06
protectorChristian Graus29-Jan-09 20:06 
AnswerRe: Repeater Pin
Frauke29-Jan-09 23:26
Frauke29-Jan-09 23:26 
QuestionWMI Pin
siva45529-Jan-09 19:48
siva45529-Jan-09 19:48 
AnswerRe: WMI Pin
Christian Graus29-Jan-09 20:06
protectorChristian Graus29-Jan-09 20:06 
GeneralRe: WMI Pin
siva45529-Jan-09 20:10
siva45529-Jan-09 20:10 
GeneralRe: WMI Pin
Christian Graus29-Jan-09 20:16
protectorChristian Graus29-Jan-09 20:16 
GeneralRe: WMI Pin
siva45529-Jan-09 20:21
siva45529-Jan-09 20:21 
GeneralRe: WMI Pin
Abhijit Jana29-Jan-09 20:53
professionalAbhijit Jana29-Jan-09 20:53 
GeneralRe: WMI Pin
siva45529-Jan-09 21:25
siva45529-Jan-09 21:25 
GeneralRe: WMI Pin
Abhijit Jana29-Jan-09 22:08
professionalAbhijit Jana29-Jan-09 22:08 
GeneralRe: WMI Pin
siva45529-Jan-09 22:18
siva45529-Jan-09 22:18 
AnswerRe: WMI Pin
Ashutosh Phoujdar29-Jan-09 22:30
Ashutosh Phoujdar29-Jan-09 22:30 
GeneralRe: WMI Pin
siva45529-Jan-09 22:34
siva45529-Jan-09 22:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.