06 2008 档案
摘要:页面中: 一、 把页面换成 然后在你的Code里面写 public string GetShortContent(object obj){ //你的字符串处理操作 string strtemp=obj.ToString(); if (strtemp.Length > 10) {...
阅读全文
摘要:写在pageload中 btnconfirm.Attributes.Add("onclick", "return confirm('是否确认提交信息?')"); 点“确定” 之后确认按钮“btnconfirm”的事件中代码才执行。
阅读全文
摘要:asp.net中的confirm分支确认轻松实现 1.放置一个服务器控件 在服务器控件的button1_onclick事件中执行插入命令 。在loadpage() 中增添button1.Attributes.Add("onclick","return confirm('确认提交数据吗?');") 2.单纯提醒!Response.Write(""); 3.if(超过额度) { Re...
阅读全文
摘要:public string StripHTML(string strHtml) { string strOutput = strHtml; Regex regex = new Regex(@"]+>|]+>"); strOutput = regex.Replace(strOutput, ""); return strOutp...
阅读全文
摘要:PagedDataSource pds = new PagedDataSource(); //这里用的IBatis for NET 做的,可以用普通的DATASET pds.DataSource = Mapper.Get().QueryForList("BaseSelectGoodPerson", null); ...
阅读全文
摘要:其中加了段鼠标放上去变成手的即红色部分,一开始没加“href="#"”,后来发现必须要加,否则不显示手
阅读全文

浙公网安备 33010602011771号