andrew4582

AlphabitSelectionCnt ASP.NET

Aug 15th, 2010
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.57 KB | None | 0 0
  1. public partial class AlphabitSelectionCnt : System.Web.UI.UserControl
  2. {
  3.     protected void Page_Load(object sender, EventArgs e)
  4.     {
  5.         List<string> alphabits = new List<string>();
  6.        
  7.         for (int i = 65; i < 91; i++) {
  8.             alphabits.Add(char.ConvertFromUtf32(i));
  9.         }
  10.         lstOutput.Text = "";
  11.         foreach (string s in alphabits) {
  12.             string a = "<a href='?q="+ s +"'>"+ s +"</a>";
  13.             lstOutput.Text += a + " ";
  14.         }
  15.         string all = " - <a href=''>All</a>";
  16.         lstOutput.Text += all + " ";
  17.  
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment