1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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.
    SEMrush
     
    akshaykalia, Nov 1, 2010 IP
    SEMrush
  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