Пример #1
0
    protected void btn_submit_Click(object sender, EventArgs e)
    {
        us.user_name = txt_name.Text;
        us.pwd       = txt_password.Text;
        DataSet ds = new DataSet();

        ds = us.patient_login();
        int counter = ds.Tables[0].Rows.Count;

        //_______________________________ insert _________________________________________

        if (counter > 0)
        {
            Response.Redirect("m_ask_question.aspx?doc_id=" + Request.QueryString["id"].ToString() + "&pat_id=" + ds.Tables[0].Rows[0]["patient_id"].ToString());
        }
        else
        {
            lbl_msg.Text = "username and password does not match";
        }
        //_______________________________ insert _________________________________________
    }
Пример #2
0
    protected void btn_submit_Click(object sender, EventArgs e)
    {
        us.user_name = txt_name.Text;
        us.pwd       = txt_password.Text;
        DataSet ds = new DataSet();

        ds = us.patient_login();
        int counter = ds.Tables[0].Rows.Count;

        //_______________________________ insert _________________________________________

        if (counter > 0)
        {
            Response.Redirect("m_view_question.aspx");
        }
        else
        {
            lbl_msg.Text = "username and password does not match";
        }
        //_______________________________ insert _________________________________________
    }