Validation Controls

ASP.NET supplies 6 different validation controls, each with some distinct properties besides the few common ones: RequiredFieldValidator RangeValidator MaximumValue (In code behind, MaximumValue=DateTime.Today.ToString(“yyyy/MM/dd”)) MinimumValue (1850/1/1) Type (String or Date) RegularExpressionValidator ValidationExpression – put in regular expression here. There are a few of pre-defined ones. CompareValidator ControlToValidate & ControlToCompare CustomValidator Double-click on design mode to get … Continued

ASP.NET Profile

ASP.NET Quickstart Tutorials – Storing User Profiles MSDN – SqlProfileProvider Class MSDN – ASP.NET Profile Properties MSDN – ASP.NET Profile Properties Overview MSDN – ASP.NET User Identification for ASP.NET Profile Properties MSDN – Defining ASP.NET Profile Properties MSDN – ASP.NET Profile Provider MSDN – Implementing a Profile Provider MSDN – How to: Build and Run … Continued

ASP.NET Roles

MSDN – Roles Class – first place to consult if anything! MSDN – Role Provider MSDN – How To: Use Role Manager in ASP.NET 2.0 MSDN – roleManager Element (ASP.NET Settings Schema) ASP.NET Quickstart Tutorials – Using the Membership and Role Manager APIs By Bryan Xu

The .NET Framework type to ADO.NET data type mappings

.NET Framework Type ADO.NET Database Type SQL Data Type String Varchar Varchar() String Nvarchar Nvarchar() String NChar Nchar() String NText NText String Text Text Double BigInt Float DateTime DateTime Datetime DateTime SmallDateTime Smalldatetime Int Int Int Int64 BigInt Bigint Int16 SmallInt smallint Byte[] Binary Binary() Byte[] Image Image Byte[] VarBinary Varbinary() Byte TinyInt Tinyint Bool … Continued

Binding Data to Data Web Controls

4GuysFromRolla – Binding a Scalar Array to Data Web Control The ASP.NET data Web controls can display any data that implements either the IEnumerable interface or the IListSource interface. They are bound through two lines of codes: The object is assigned to the data Web control’s DataSource property The data Web control’s DataBind() method is … Continued