protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.QueryString["RoomPackageID"] != null)
     {
         txtprice.Value = pd.GetData("select * from RoomPackage where RoomPackageID=" + Request.QueryString["RoomPackageID"].ToString()).Rows[0]["Amount"].ToString();
     }
     if (Request.QueryString["RoomParkPackageID"] != null)
     {
         txtprice.Value = pd.GetData("select * from RoomParkPackage where RoomParkPackageID=" + Request.QueryString["RoomParkPackageID"].ToString()).Rows[0]["Amount"].ToString();
     }
     if (Request.QueryString["ParkPackageID"] != null)
     {
         txtprice.Value = pd.GetData("select * from ParkPackage where ParkPackageID=" + Request.QueryString["ParkPackageID"].ToString()).Rows[0]["Amount"].ToString();
     }
 }
Exemple #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        PackageBookDal pbd = new PackageBookDal();

        Repeater1.DataSource = pbd.GetData("select * from PackageBook");
        Repeater1.DataBind();
    }
Exemple #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        DataTable dt = new DataTable();

        if (!IsPostBack)
        {
            Repeater1.DataSource = pd.GetData("select * from RoomParkPackageBookView where UserID=" + Session["UserID"]);
            Repeater1.DataBind();

            Repeater2.DataSource = pd.GetData("select * from RoomPackageBookView where UserID=" + Session["UserID"]);
            Repeater2.DataBind();

            Repeater3.DataSource = pd.GetData("select * from ParkPackageBookView where UserID=" + Session["UserID"]);
            Repeater3.DataBind();
        }
    }