Click here to Skip to main content
15,908,906 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear to all
i want to find bulletlist click event
Exaplain
i have one webpage
where i populate some data in bullet list to the database
like this
asp.net
vb.net
java
now i want that when user click asp.net then
a message show on a label that
you click on asp.net that so on..........
pls suggest me how can i do
Posted

1 solution

see this example
XML
<form id="form1" runat="server">
   <div>
   <asp:Label ID="lbl" runat="server" />
 <asp:BulletedList ID="lst"  DisplayMode="LinkButton" runat="server" onclick="lst_Click" >
     <asp:ListItem>Item1</asp:ListItem>
     <asp:ListItem>Item2</asp:ListItem>
       </asp:BulletedList>
   </div>
   </form>



C#
protected void lst_Click(object sender, BulletedListEventArgs e)
     {
         lbl.Text = lst.Items[e.Index].Value;
     }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900