Example #1
0
        protected void send_Click(object sender, EventArgs e)
        {
            String usname = Session["username"].ToString();

            row          = ch.User.FindByUsername(usname);
            row.Password = cpassword.Text;

            g.Update(row);
            ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Password changed');", true);
            Response.Redirect("signin.aspx");
        }
Example #2
0
 protected void register_Click(object sender, EventArgs e)
 {
     row          = d.User.NewUserRow();
     row.FullName = rentername.Text;
     row.Password = rpassword.Text;
     row.Email    = remail.Text;
     row.Username = rusername.Text;
     d.User.Rows.Add(row);
     t.Update(row);
     Response.Redirect("signin.aspx");
 }
        protected void send_Click(object sender, EventArgs e)
        {
            String id = Request.QueryString["k"];

            row2 = qu.expert2.FindById(Convert.ToInt32(id));
            row  = qu.Question.NewQuestionRow();
            String usname = Session["username"].ToString();

            row3               = qu.User.FindByUsername(usname);
            row.Expertemail    = row2.expertemail;
            row.UserName       = usname;
            row.Ques           = question.Text;
            row.DateofQuestion = DateTime.Now.Date;
            qu.Question.Rows.Add(row);
            ns.Update(row);
            ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Question Sent To Expert');", true);
        }