protected void btnRegister_Click(object sender, EventArgs e)
        {
            CarPoolingBLL carPoolingBll = new CarPoolingBLL();

            string strsql = "exec InsertRegDetails '" + Session["EmpId"].ToString() + "','" + txtEmail.Text + "','" + txtFrom.Text + "','" + txtTo.Text + "','" + txtVia.Text+ "','" +txtInTime.Text + "','" +txtOutTime.Text + "','" + txtseats.Text + "'" ;
            carPoolingBll.insertRegistrationDetails(strsql);

            lblMsg.Text = "Registration is Succesfully";
             //   Page.ClientScript.RegisterClientScriptBlock(this.GetType(),"test","javascript:alert(created Sucessfully)","window.location:Close();",1)
        }
Exemplo n.º 2
0
 public void TestMethod4()
 {
     try
     {
         CarPoolingBLL bll = new CarPoolingBLL();
         bll.insertRegistrationDetails("exec InsertRegDetails '1234','a4@ggs','porur','guindy','ramapuram','10','11','1'");
     }
     catch
     {
         Assert.Fail();
     }
 }
 protected void btnRegister_Click(object sender, EventArgs e)
 {
     CARREGDETAILDTO carRegDetail = new CARREGDETAILDTO();
     carRegDetail.Email = txtEmail.Text;
     carRegDetail.EmpId = txtEmpId.Text;
     carRegDetail.From = txtFrom.Text;
     carRegDetail.To = txtTo.Text;
     carRegDetail.InTime = txtInTime.Text;
     carRegDetail.OutTime = txtOutTime.Text;
     carRegDetail.Via = txtVia.Text;
     CarPoolingBLL bll = new CarPoolingBLL();
     bll.insertRegistrationDetails(carRegDetail);
 }
Exemplo n.º 4
0
        protected void grdView_RowEditing(object sender, GridViewEditEventArgs e)
        {
            GridViewRow row = grdView.Rows[e.NewEditIndex];
            int RespId = Convert.ToInt32(((Label)row.Cells[1].FindControl("lblReqId")).Text);

            string RespPerson = ((TextBox)row.Cells[5].FindControl("txtName")).Text;
            string RespSeat = ((TextBox)row.Cells[6].FindControl("txtSeats")).Text;
            string RespBoarding = ((TextBox)row.Cells[7].FindControl("txtBoarding")).Text;
            string RespNo = ((TextBox)row.Cells[7].FindControl("txtNo")).Text;

            string strsql = "exec InsertPoolingRequest " + RespId + ",'1234','" + RespSeat + "','" + RespBoarding + "','" + RespNo + "','" + RespPerson +"'";

            CarPoolingBLL carPoolingBll = new CarPoolingBLL();
            carPoolingBll.insertRegistrationDetails(strsql);
        }