private void Control_FillData() { string Product_VariantID = Request["Product_VariantID"]; bool variantFound = false; if (!DataEval.IsEmptyQuery(Product_VariantID)) { ProductVariantMgr myProductVariantMgr = new ProductVariantMgr(); if (myProductVariantMgr.Chk_Product_Variant(Product_VariantID)) { Variant myVariant = myProductVariantMgr.Get_Product_Variant(Product_VariantID); lbl_Variant_Name.Text = myVariant.Variant_Name; tbx_Variant_Name.Text = myVariant.Variant_Name; lbl_Variant_Type.Text = StringEnum.GetStringValue(myVariant.Variant_Type); tbx_Table_Name.Text = myVariant.Table_Name; // Spliter tbx_Spliter_Name.Text = ""; variantFound = true; } } if (!variantFound) { Response.Redirect("Default.aspx"); } }