摘要: 当鼠标经过某一行时,使其突出显示,增加视觉效果,代码如下:if(e.Item.ItemType==ListItemType.Item||e.Item.ItemType==ListItemType.AlternatingItem) { e.Item.Attributes.Add("onmouseover", "c=this.style.backgroundColor;this.style... 阅读全文
posted @ 2006-11-04 17:45 chy710 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 工作中有时遇到分割字符串的问题、在.Net中用String.Split方法实现,举例如下:string str="中国|美国|日本"; string [] mystr=str.Split('|'); foreach (string i in mystr) { Response .Write (i.T 阅读全文
posted @ 2006-11-04 17:41 chy710 阅读(864) 评论(0) 推荐(0) 编辑
摘要: 习惯用Access的朋友都知道:ADO.NET链接Access数据库经常这么写:strcon="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+Server.MapPath("datebase/indexDB.mdb");这里用Server.MapPath得到应用程序的物理路径!如果你是在当前web项目下的一个类中如上写链接语句,可能会提示找不到Ser... 阅读全文
posted @ 2006-11-04 17:40 chy710 阅读(31406) 评论(3) 推荐(0) 编辑
摘要: 解决下拉列表框显示在层上面的问题在层里面加上一个iframe,优先级就比下拉列表框高了<iframe style="position:absolute; visibility:inherit; top:0px; left:0px; width:640px; height:100%; z-index: 阅读全文
posted @ 2006-11-04 17:39 chy710 阅读(402) 评论(0) 推荐(0) 编辑