protected void Button2_Click(object sender, EventArgs e) { RegistrationService.Rs reg = new RegistrationService.Rs(); int j; string dt; dt = System.DateTime.Now.ToString(); j = reg.update1(textbox.Text, dt, TextBox3.Text); }
protected void Submit_Click(object sender, EventArgs e) { string z; z = (string)Session["firstname"]; Session["fname"]=z; MyWebReference1.Ls login = new MyWebReference1.Ls(); string aid = login.questions(z); RegistrationService.Rs reg = new RegistrationService.Rs(); int j; j = reg.updating(ques.Text ,aid); if (j == 0) { Label2.Text = "Failed"; } else { Label2.Text = "Sent Successfully"; } }