public CancelUser search_user1(string userid)
 {
     try
     {
         be2 = dal1.search_user(userid);
         return(be2);
     }
     catch
     {
         throw;
     }
 }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["bookingId"] != null)
            {
                string bkngid = Session["bookingId"].ToString();
                try
                {
                    be = bal1.search_user1(bkngid);
                }
                catch
                {
                    throw;
                }
                txtid1.Text            = be.userid.ToString();
                txtbid.Text            = be.busid;
                txtbname.Text          = be.busName;
                txtstart.Text          = be.start;
                txtdest.Text           = be.destination;
                txttickets.Text        = be.noOfTickets.ToString();
                txtname.Text           = be.userName;
                txtdoj.Text            = be.doj.ToString();
                Session["doj"]         = txtdoj.Text;
                Session["noOfTickets"] = txttickets.Text;
                Session["cost"]        = be.cost;
                Session["wt_type"]     = be.wt_type;
            }

            txtid1.ReadOnly     = true;
            txtbid.ReadOnly     = true;
            txtbname.ReadOnly   = true;
            txtstart.ReadOnly   = true;
            txtdest.ReadOnly    = true;
            txttickets.ReadOnly = true;
            txtname.ReadOnly    = true;
            txtdoj.ReadOnly     = true;
        }