Пример #1
0
    void binddropdown()
    {
        try
        {
            General_Function gf = new General_Function();

            db_conn cn = new db_conn();
            gf.fillcombo("select City_Id,City_Name from City_M", ddlcity, "City_Name", "City_Id", "select");
        }
        catch
        {
        }
    }
    void binddropdown()
    {
        try
        {
            General_Function gf = new General_Function();

            db_conn cn = new db_conn();
            gf.fillcombo("select Tpid,RatePerSeat from TravelPackage_M", ddltpid, "RatePerSeat", "Tpid", "select");
        }
        catch
        {
        }
    }
Пример #3
0
    void binddropdown()
    {
        try
        {
            General_Function gf = new General_Function();

            db_conn cn = new db_conn();
            gf.fillcombo("select Package_Id,Package_Name from Package_M", ddlpackageid, "Package_Name", "Package_Id", "select");
            gf.fillcombo("select Bus_Id,Bus_Name from Bus_M", ddlbusid, "Bus_Name", "Bus_Id", "select");
            gf.fillcombo("select Train_Id,Train_No from Train_M", ddltrainid, "Train_No", "Train_Id", "select");
            gf.fillcombo("select Plane_Id,Plane_Name from Plane_M", ddlplaneid, "Plane_Name", "Plane_Id", "select");
            gf.fillcombo("select Car_Id,Car_Name from Car_M", ddlcarid, "Car_Name", "Car_Id", "select");
        }
        catch
        {
        }
    }
Пример #4
0
    void binddropdown()
    {
        try
        {
            General_Function gf = new General_Function();

            db_conn cn = new db_conn();
            gf.fillcombo("select Customer_Id,First_Name from Customer_M where email = '" + Session["Email"].ToString() + "'", ddlcustomerid, "First_Name", "Customer_Id", "select");
            gf.fillcombo("select Package_Id,Package_Name from Package_M", ddlpackageid, "Package_Name", "Package_Id", "select");
            DataSet ds = new DataSet();
            ds = cn.select("select * from Package_M where Package_Id='" + ddlpackageid.SelectedValue + "'");
            Double amt = Convert.ToDouble(ds.Tables[0].Rows[0]["Price"].ToString());


            lblamt.Text = amt.ToString();

            //  gf.fillcombo("select Tpid,RatePerSeat from TravelPackage_M", ddltpid, "RatePerSeat", "Tpid", "select");
        }
        catch
        {
        }
    }