![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Asp.Net
文章平均质量分 59
MrLee_
这个作者很懒,什么都没留下…
展开
-
动态添加表行 并 超链接指定路径下的文件
#region 添加附件 if (dtfjinfo.Rows.Count != 0) { for (int fj = 0; fj { HtmlTableRow row = new HtmlTableRow(); HtmlTableCell cell = new HtmlTableCell(); cell.InnerText = "附件说明";原创 2010-12-01 17:12:00 · 643 阅读 · 0 评论 -
file 控件上传 以及多上传
要在页面添加 enctype否则等不到file控件中的值//保存附件 //添加附件路径 ArrayList arl = new ArrayList(); //遍历file控件 HttpFileCollection files = HttpContext.Current.Request.Files; for (int j = 0; j原创 2010-12-01 17:17:00 · 452 阅读 · 0 评论 -
数字转换成大写汉字
#region 数字转换大写 private string dxnum(string strnum) { if (string.IsNullOrEmpty(strnum)) { return ""; } else { string strResult = ""; string[] strSZ = new string[strnum.Length];原创 2010-12-01 17:11:00 · 492 阅读 · 0 评论 -
后台获取前台动态生成控件的值
方法一:using System.Collections.Specialized;//遍历所有控件 NameValueCollection nvc = new NameValueCollection(Request.Form);//txtqcsj为html 控件name string qcsj= nvc.GetValues("txtqcsj")[0].ToString();方法二:string str = this.Request.Params.Get("txtqcsj").ToString();原创 2010-12-01 17:16:00 · 1380 阅读 · 0 评论 -
创建与旧的DataTable同样架构的DataTable 并把符合条件的数据填充的新DataTable中 并把旧表的重复数据去掉
//查询数据库并创建表 GetDataTableBySql为查询方法 DataTable dt1= GetDataTableBySql("select * from table where a="" ); //创建相同架构的表 DataTable dt2= dt1.Clone(); / /循环旧表取出某条件下的表行 for(int i=0;i {原创 2010-12-02 08:34:00 · 866 阅读 · 0 评论 -
动态生成linkButton控件 onclick事件
//创建linkButton protected void Page_Load(object sender, EventArgs e) { for(int i=0;i { LinkButton lBtn = new LinkButton();原创 2010-12-02 08:35:00 · 1632 阅读 · 0 评论 -
时间格式
this.txttime.Text = string.Format("{0:yyyy-MM-dd HH:mm}", DateTime.Now);原创 2010-12-02 08:37:00 · 363 阅读 · 0 评论