<MdsMenu:MenuItem Text="Button" Href="#"> <asp:Button ID="Button1" runat="server" Text="Button 01" OnClick="Button_Click" /> <asp:Button ID="Button2" runat="server" Text="Button 02" OnClick="Button_Click" /> </MdsMenu:MenuItem>
protected void Button_Click(object sender, EventArgs e) { Button senderButton = sender as Button; Label1.Text = senderButton.ID.ToString(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)