上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
摘要: 以前都没怎么注意两者的区别(我甚至都不知道“&”),因为它们都是“与”运算符。我昨天看C#高编第三版的时候,才注意到这点,查了下MSDN,把区别贴出来,时时提醒自己。二元运算符 (&) 为整型和 bool 类型预定义了二进制 & 运算符。对于整型,& 计算操作数的按位“与”。对于 bool 操作... 阅读全文
posted @ 2009-02-17 11:42 chinaifne 阅读(48435) 评论(4) 推荐(5) 编辑
摘要: 我们在写页面代码的时候,有时把一个表格的宽度定死后会出现里面的文字不见了,特别是英文。这就是他换行了所导致的,这时我们就需要加些CSS元素让它来听我们的话!根据自己以往的经验,也参考了些网上的文章,具体如下:强制不换行div{white-space:nowrap;}自动换行div{word-wrap: break-word;word-break: normal;}强制英文单词断行div{word-... 阅读全文
posted @ 2009-02-09 14:44 chinaifne 阅读(2689) 评论(0) 推荐(0) 编辑
摘要: 要在c#中获取路径有好多方法,一般常用的有以下五种: //获取应用程序的当前工作目录。 String path1 = System.IO.Directory.GetCurrentDirectory(); MessageBox.Show("获取应用程序的当前工作目录:" + path1); //获取程序的基目录。 String path2 = System.AppDomain.CurrentDo... 阅读全文
posted @ 2008-12-31 16:58 chinaifne 阅读(675) 评论(1) 推荐(0) 编辑
摘要: 今天改以前同事做的项目,在datagrid里用了个HyperLink,我开始是这样绑定的,<asp:HyperLink ID="lnkUpdate" runat="server" NavigateUrl='HolidayDateAdd.aspx?id=<%#Eval("HolidayID")%>&mod=edit&Pager=<%#this.Pagerdg.... 阅读全文
posted @ 2008-09-17 18:10 chinaifne 阅读(5101) 评论(3) 推荐(0) 编辑
摘要: 1.设计期Attribute 设计期Attribute对于控件在可视化设计器内正确运行是很重要的.设计器,属性浏览器和其它的设计期元素使用由设计期attribute提供的元数据的作用如下: 显示属性和事件 执行设计期的序列化 把用来实现设计期的功能的类与控件或者属性类型关联起来 1.1 显示属性和事件的Attribute System.ComponentModel.BindableAttribut... 阅读全文
posted @ 2008-09-02 18:16 chinaifne 阅读(507) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;namespace Console11{ class Program { static void Main(string[] args) { System.Data.DataTable table =... 阅读全文
posted @ 2008-08-23 15:21 chinaifne 阅读(3628) 评论(0) 推荐(2) 编辑
摘要: using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using ... 阅读全文
posted @ 2008-08-18 16:13 chinaifne 阅读(852) 评论(0) 推荐(0) 编辑
摘要: 在后台page_load中加入: explain.Attributes["onpropertychange"] = "limitLength(this.value,10,'explain')"; 完整的页面前台代码是: DropdownList ... 阅读全文
posted @ 2008-07-31 13:58 chinaifne 阅读(1022) 评论(1) 推荐(0) 编辑
摘要: '> protected void OnUpdate(object sender, EventArgs e) { GridViewRow t = (GridViewRow)(((ImageButton)sender).Parent.Parent); Label LblGoodsID = (Label)t.FindControl("Lb... 阅读全文
posted @ 2008-07-29 19:20 chinaifne 阅读(1274) 评论(0) 推荐(0) 编辑
摘要: +++++++++++++++++第一种情况: 1.后台方法: protected string CsharpVoid(string strCC) { return strCC; } 2.javascript 调用 +++++++++++++++++第二种情况: 1.后代码: protected void CsharpVoid() { string strCC... 阅读全文
posted @ 2008-07-28 18:53 chinaifne 阅读(753) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页