TextBox txtbx = (TextBox)Master.FindControl("txtMaster"); txtbx .Text = "DotnetFunda";
20 to 100 --- good maintainability 10 to 19 --- moderately maintainable 0 to 9 --- low maintainability
FormsAuthentication.SignOut();
web.config file
programmatically in the code
<system.web> <authentication mode="Forms"> <forms name="Deviant_Akiii" loginUrl="login.aspx" timeout="30" defaultUrl="default.aspx" cookieless="UseCookies" slidingExpiration="true"> </forms> </authentication> </system.web>
HttpCookie cookie = FormsAuthentication.GetAuthCookie (txtUserName.Text, true); ' Expires in 30 days, 10 hours and 00 minutes from today. cookie.Expires = DateTime.Now.Add(New TimeSpan(30, 10, 20, 0)); Response.Cookies.Add (cookie); Response.Redirect (FormsAuthentication.GetRedirectUrl (txtUserName.Text, true));
btnSubmit.Attributes.Add("onMouseOver","someClientCode();")
<asp:RangeValidator id="ProgrammaticID" ControlToValidate="ProgrammaticID of control to validate" MinimumValue="value" MaximumValue="value" Type="DataType" ErrorMessage="Message to display in ValidationSummary control" Text="Message to display in control" ForeColor="value" BackColor="value" runat="server" > </asp:RangeValidator>