Content

ASP.NET Category

Render RadioButtonList as an Unordered List UL

28 Jan

+ 0

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 and label’s with BR’s if you don’t specify RepeatDirection of Horizontal. And choosing Table gives you a nicely unaccessible table you can’t format easily. Because of these limitation’s, I have always stayed away from CheckBoxList and RadioButtonList controls.

  Leave Comment, 0 Comments

Prevent Multiple Button Clicks in ASP.NET - How to Implement the Netflix "Please Wait…" Button

22 Dec

+ 0

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 spent time trying to solve it.

You would think all you need to do is wire up the button to some Javascript that would just disable the button. That is what I thought. The problem is once you do that, it prevents the postback from happening.

  Leave Comment, 0 Comments

Binding a DropDownList to an Enumeration

18 Aug

+ 0

Ok, well its not really binding to it.

  Leave Comment, 0 Comments

String to Enum

15 Jul

+ 0

I have to do this now and then and each time I don't write this code perfect the first time.

  Leave Comment, 0 Comments