摘要:
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...
阅读全文
posted @ 2013-05-30 14:12
小景
阅读(98)
推荐(0)
编辑
摘要:
public void EmptyTextBox(ControlCollection controls) { foreach (Control c in controls) { if (c.Controls.Count > 0) { // 递归 this.EmptyTextBox(c.Controls); } else if (c is TextBox) {...
阅读全文
posted @ 2013-05-30 14:11
小景
阅读(300)
推荐(0)
编辑
摘要:
1、使用linkbutton,首先把附件的地址绑定到 <asp:TemplateField HeaderText="附件名称"> <ItemTemplate> <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" Text='<%# Eval("FileTitle") %>' ...
阅读全文
posted @ 2013-05-30 14:08
小景
阅读(270)
推荐(0)
编辑