In
this article I am going to explain how to generate alphabets A to Z in asp.net
In
the previous article I have explained how to change background and border ofasp.net textbox on focus using CSS, how to disable Dropdownlist some itemsbased on condition in asp.net using C#, VB.net and how to remove the selecteditem from dropdownlist in asp.net using C#, VB.net.
Implementation:
HTML Markup:
<asp:DataList ID="dtlalphabets" runat="server" RepeatDirection="Horizontal">
<ItemTemplate>
<asp:Label ID="lbl" runat="server" Text='<%#Eval("Value")%>' CssClass="lable" ></asp:Label>
</ItemTemplate>
</asp:DataList>
Generate
Alphabets
Create
a method to generate alphabets and show in datalist data control
C#
Code: