Selected Menu Item Display in Label
If Select List Of Menu Item Display the Label After Selected Items Only Using Asp.Net
Download Coding
Download
DEMO
Html Coding
If Select List Of Menu Item Display the Label After Selected Items Only Using Asp.Net
Download Coding
Download
DEMO
Html Coding
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Menu ID="Menu1" runat="server" OnMenuItemClick="Menu1_MenuItemClick">
<Items>
<asp:MenuItem Text="India" Value="India"></asp:MenuItem>
<asp:MenuItem Text="Australia" Value="Australia"></asp:MenuItem>
<asp:MenuItem Text="Africa" Value="Africa"></asp:MenuItem>
</Items>
</asp:Menu>
<asp:Label ID="lblMenu" runat="server" ForeColor="#CC3300"></asp:Label>
</div>
</form>
</body>
</html>
C# Coding
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Menusss : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Menu1_MenuItemClick(object sender, MenuEventArgs e)
{
lblMenu.Text = e.Item.Value;
}
}
0 comments:
Post a Comment