private void PageInit() { if (DropDownList1.Items.Count > 0) { Norm.DataSource = ULCode.QDA.XSql.GetDataTable("SELECT Name,Cost FROM [Count_TypeNorm] where TypeID=" + DropDownList1.SelectedValue + " order by Cost asc"); Norm.DataTextField = "Name"; Norm.DataValueField = "Cost"; Norm.DataBind(); } Literal1.Text = Literal2.Text = ""; }
private void PageInit() { if (DropDownList1.Items.Count > 0) { Norm.DataSource = ULCode.QDA.XSql.GetDataTable("SELECT Name,Cost FROM [Count_TypeNorm] where TypeID=" + DropDownList1.SelectedValue + " order by Cost asc"); Norm.DataTextField = "Name"; Norm.DataValueField = "Cost"; Norm.DataBind(); Literal1.Text = ULCode.QDA.XSql.GetDataTable("Select ColumStr3 from Count_Type where ID=" + DropDownList1.SelectedValue).Rows[0][0].ToString().Replace("<td>", "<td><div style='width:100px;'>").Replace("</td>", "</div></td>"); Repeater2.DataSource = WX.Model.Sell.GetList(DropDownList1.SelectedValue, "", ""); Repeater2.DataBind(); } Norm.Visible = Norm.Items.Count > 0; }