public void checkmobile()
    {
        Object MobileDuplicate = new Object();

        MobileDuplicate.Mobile = TxtPhone.Text;
        DataTable dt = BSLAYER.DuplicateMobile(MobileDuplicate);
        int       r  = dt.Rows.Count;

        if (r < 1)
        {
            Panelmsg.Visible = false;
            Txtotp.Visible   = true;
            generateotp();
            SendOtpSms();
            Btnotp.Text       = "Resend";
            Btnverify.Visible = true;
            //Response.AddHeader("Refresh", "5");
        }
        else
        {
            Panelmsg.Visible     = true;
            Txtotp.Visible       = false;
            TxtPhone.Text        = "";
            TxtPhone.BorderColor = System.Drawing.Color.Red;
            Btnotp.Enabled       = true;
        }
    }