help me in asp.net

Discussion in 'C#' started by bhuppi890109, Aug 9, 2010.

  1. akshaykalia

    akshaykalia Member

    Messages:
    77
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #21
    .Net provides validation controls itself.
    YOu can opt from requiredfieldvalidator ( eg, to make sure user cant leave something blank, like mayb username ) or comparefieldvalidator ( to make sure two entered passwords are same) , regularexpressionvalidator ( mayb to check if email or phone is in correct format ).
    And implementaion of these controls is very easy.
     
    akshaykalia, Nov 1, 2010 IP
  2. shiv.cec

    shiv.cec Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #22
    u can try this code

    protected void lklogout_Click(object sender, EventArgs e)
    {
    FormsAuthentication.SignOut();
    HttpContext.Current.Session.Clear();
    HttpContext.Current.Session.Abandon();
    Response.Redirect("~/adminlogin.aspx");
    }




    below code paste in web config

    <authentication mode="Forms">
    <forms loginUrl="default.aspx" protection="All" path="/"/>

    </authentication>
     
    shiv.cec, Nov 1, 2010 IP