protected void Page_Load(object sender, EventArgs e)
    {
        int busTypeId = Convert.ToInt32(Request.QueryString["BusTypeID"].ToString());

        busType = BLLBusType.getBusTypeByID(busTypeId)[0];
        if (!Page.IsPostBack)
        {
            BusTypeName.Text = busType.Type;
            cbStatus.Checked = busType.Status;
        }
    }
    protected void gvBusList_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            Label       lblBusType  = (Label)e.Row.FindControl("lblBusType");
            Label       lblCategory = (Label)e.Row.FindControl("lblCategory");
            HiddenField hfBusType   = (HiddenField)e.Row.FindControl("hfBusType");
            HiddenField hfCategory  = (HiddenField)e.Row.FindControl("hfCategory");

            int busTypeID  = Int32.Parse(hfBusType.Value);
            int categoryID = Int32.Parse(hfCategory.Value);

            BusType  busType = BLLBusType.getBusTypeByID(busTypeID)[0];
            Category cat     = BLLCategory.getCategoryByID(categoryID)[0];

            lblBusType.Text  = busType.Type;
            lblCategory.Text = cat.CategoryName;
        }
    }