protected void Page_Load(object sender, EventArgs e)
    {
        string    name = this.Session["unm"].ToString();
        DataTable dt   = DBComponent.getUser(name);

        if (dt != null)
        {
            txtque.Text = dt.Rows[0]["Secque"].ToString();
            ans         = dt.Rows[0]["Secans"].ToString();
        }
    }
Beispiel #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string name = this.Session["unm"].ToString();

        if (name == "")
        {
            Response.Redirect("Login.aspx");
        }
        DataTable dt = DBComponent.getUser(name);

        if (dt != null)
        {
            txtadd.Text      = dt.Rows[0][2].ToString();
            txtfnm.Text      = dt.Rows[0][9].ToString();
            txtlnm.Text      = dt.Rows[0][10].ToString();
            txtLoginId.Text  = dt.Rows[0]["LoginId"].ToString();
            txtLoginId2.Text = dt.Rows[0]["LoginId2"].ToString();
            txtPwd.Text      = dt.Rows[0]["LoginPwd"].ToString();
            txtPwd2.Text     = dt.Rows[0]["LoginPwd2"].ToString();
        }
    }
Beispiel #3
0
    protected void btnReg_Click(object sender, EventArgs e)
    {
        string name, num, pass;

        name = txtunm.Text;
        DataTable dt = DBComponent.getUser(name);

        if (dt != null)
        {
            num  = dt.Rows[0]["MobileNo"].ToString();
            pass = dt.Rows[0]["Password"].ToString();

            SMS sobj = (SMS)Application["SmsObject"];
            sobj.sendSMS(num, "Your Password is : " + pass + ".    oPas - A User Verification Protocol");
            lblMsg.Text = "Password Sent on your Mobile";
        }
        else
        {
            lblMsg.Text = "User Name not Found";
        }
    }