随笔分类 - WebForm
摘要:1.怎么把页面上的所有txtbox框清空?winform : foreach(Control c in this.Controls){ if(c.GetType().Name.Equals("TextBox")) { c.Text = ""; }}webform: ???---------------------------------对form.elements进行循环,判断是不是textbox...
阅读全文
摘要:1.用cssStyleHtml控件设置可见属性(hgcClaim是DIV): hgcClaim.Attributes.CssStyle["display"] = "block"; hgcClaim.Attributes.CssStyle["display"] = "none"; hgcClaim.Attributes.CssStyle["visibility"] = "visible"; h...
阅读全文
摘要:1.增加操作: public static void StockIns(string ps_SupplierName, int pn_ItemQty, string ps_ItemDesc, string ps_ComeDate, string ps_AttachedFile, string ps_SupAddress, string ps_SupPhone, string ps_SupFax...
阅读全文
摘要:典型的例子:下载附件列(有附件的显示下载链接,无附件的显示为空)<asp:TemplateColumn HeaderText="附件"><HeaderStyle Width="7%"></HeaderStyle><ItemTemplate><asp:LinkButton id="LinkButton1" CommandName="downloa...
阅读全文
摘要:1.提示错误消息框 /// <param name="msgKey">提示信息的名称</param> /// <param name="msgBody">提示信息的内容</param> private void ShowMessage(string msgKey, string msgBody) { string strScript = ""; st...
阅读全文
浙公网安备 33010602011771号