private void SetLabelText(int productTypeId) { ProductType pt = ProductTypeHandler.GetProductType(productTypeId); prodName.Text = pt.Name; prodDesc.Text = pt.Description; }
public static Product_Type GetProductType(int ID) { return(ProductTypeHandler.GetProductType(ID)); }
protected void Page_Load(object sender, EventArgs e) { Gv_ProductType.DataSource = ProductTypeHandler.GetProductType(); Gv_ProductType.DataBind(); }