protected void Page_Load(object sender, EventArgs e) { sname = Request.QueryString["sname"]; gname= Request.QueryString["gname"]; supplierlist = SupplierList_C.GetSupplylistsByS_Name(sname); for(int i = 0; i < supplierlist.Count; i++) { if (supplierlist[i].G_Name == gname) { ssid.Value = supplierlist[i].S_ID.ToString(); ssname.Value= supplierlist[i].S_Name.ToString(); ggid.Value = supplierlist[i].G_ID.ToString(); ggname.Value = supplierlist[i].G_Name; gsprice.Value = supplierlist[i].SL_Price.ToString(); break; } } }
protected void Page_Load(object sender, EventArgs e) { supplierlist = SupplierList_C.GetSupplylistsByS_Name(""); }