protected void Button1_Click(object sender, EventArgs e) { PatientNaming pn = new PatientNaming(); String username= pn.getUniqueName(); User user = new User(username, 0, "http://www.", null,""); Button1.Text+=user.insertUser(); Session["username"] = username; Session["privilege"] = 0; Response.Redirect("../careSeekersUI.aspx"); }
protected void Button1_Click(object sender, EventArgs e) { byte[] imgByte = new byte[FileUpload1User_pic.PostedFile.InputStream.Length + 1]; FileUpload1User_pic.PostedFile.InputStream.Read(imgByte,0,imgByte.Length); String email = TextBoxEmailId.Text; User user=new User(TextBox1CareGiverID.Text,1,"",imgByte,email); Button1.Text+= user.insertUser(); Session["username"] = TextBox1CareGiverID.Text; Session["privilege"] = 1; Response.Redirect("showProblemsTable.aspx"); }