When working in a custom validator control with client-side script I had issues with the javascript code in Firefox. Here is what I learnt.
Asp.net 2.0 uses expando properties to attach additional information to the validators, properties like ‘controltovalidate’, ‘errormessage’, ‘evaluationfunction’, etc. This is done programatically at the client, instead of just rendering invalid HTML attributes. Expando properties in [...]
Entries Tagged as ‘asp.net’
November 10, 2007
Expando properties and the DomElement.getAttribute method in Firefox
September 27, 2007
Using Forms Authentication without a Membership Provider
This might seem obvious to some, but surely wasn’t to me. How to use Forms Authentication(that is, use the Login control, LoginStatus, etc) without a Membership provider?
ASP.NET comes with the built-in SqlMembershipProvider, which stores membership info in a SqlServer Express database (and saves it in ~/App_Data). The are a couple of reasons why you might not want [...]
April 22, 2007
EnumHelper for List Controls
Inspired by this article and convinced that creating a derived type for adding just little functionality is not the best approach (specially in this case where the target are several ListControls), I wrote a simple EnumHelper class for working with ListControls (RadioButtonList, DropDownList, CheckBoxList, (others?)).
This class helps you create ListItems based on Enum types. You can do it programmatically [...]
April 7, 2007
Caption Template for GridView: It is possible.
On http://msdn2.microsoft.com/en-us/library/aa479300.aspx Dino Esposito shows us how to implement a Caption template for the GridView control. However he uses a regular tr element, not the caption element. Here is how you can implement a real Caption Template for the GridView control.
using System;
using System.Collections;
using System.Web.UI;
using System.ComponentModel;
using System.Web.UI.WebControls;
public class MyGridView : GridView { [...]