runat=”server”

The only way for an ASP.NET page to realize that you are using a server control (like asp:Textbox or input type=”text”) is to have runat=”server” in the control tag. This is very important; forgetting it will cause the ASP.NET engine to pass over the control as HTML. By Bryan Xu

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