摘要:
public void DropDownListBinding(DropDownList DDList, string sql, string strText, string strField, string str_qxz) { DataTable dt = MDGL.DBUtility.SQLServerHelper.GetDataTable(CommandType.Text, sql); DDList.DataSource = dt; DDList.DataValueField = strField; DDList.Dat... 阅读全文
摘要:
public void EmptyTextBox(ControlCollection controls) { foreach (Control c in controls) { if (c.Controls.Count > 0) { // 递归 this.EmptyTextBox(c.Controls); } else if (c is TextBox) {... 阅读全文
摘要:
1、使用linkbutton,首先把附件的地址绑定到 <asp:TemplateField HeaderText="附件名称"> <ItemTemplate> <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" Text='<%# Eval("FileTitle") %>' ... 阅读全文