protected void GridPackage_Sorting(object sender, GridViewSortEventArgs e)
    {
        DataSet ds = obj.DisplayBookingPackgeInfo("select * from tblPackageBookings order by " + e.SortExpression);

        GridPackage.DataSource = ds.Tables[0];
        GridPackage.DataBind();
    }
    public void GetData()
    {
        DataSet ds = obj.DisplayBookingPackgeInfo("select * from tblPackageBookings");

        GridPackage.DataSource = ds.Tables[0];
        GridPackage.DataBind();
    }
Beispiel #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["User"] == null)
     {
         Response.Redirect("frmLogin.aspx");
     }
     if (!IsPostBack)
     {
         DataSet ds = obj.GetPackageTours("select * from tblPakageInfo");
         GridPackage.DataSource = ds.Tables[0];
         GridPackage.DataBind();
     }
 }