Browse by Tags

All Tags » ASP.NET   (RSS)

Render RadioButtonList as an Unordered List UL
In my latest project, I found the need to use the RadioButtonList which spits out the absolute nastiest HTML to render it unusable (for me anyway). The control gives you to HTML options using the RepeatLayout attribute. Flow spits out a series of span's Read More...
8 Comments
Filed under , ,
Prevent Multiple Button Clicks in ASP.NET - How to Implement the Netflix "Please Wait..." Button
Netflix has a nice submit button so that when you click it, it changes to "Please Wait..." and disables itself to prevent you from clicking it again. before submit after submit I have problems all the time with my users doing this, and I never Read More...
Binding a DropDownList to an Enumeration
Ok, well its not really binding to it. But at least it is close : (foreach(EnumNameHere enum in Enum.GetValues(typeof(EnumNameHere))){ DropDownListNameHere.Items.Add( new ListItem(enum.ToString(), Convert.ToInt32(enum).ToString()) );} Pretty Nifty. I Read More...
String to Enum
I have to do this now and then and each time I don't write this code perfect the first time. I either forget the typeof statement or to cast, etc. But, if you have a string, “Yoda” and you want to set an Enum called "Jedi", this Read More...