摘要:
在绑定GridView的时候,其中有的项过长,就可以通过以下语句处理<%#getnewstring(DataBinder.Eval(Container.DataItem, "name").ToString())%> public string getnewstring(string wangzhe) { if(wangzhe.Length<2) { return wan... 阅读全文
摘要:
如果是Win Form中,用:MessageBox.Show("Your message"); using System.Windows.Forms; MessageBox.Show("你显示的信息","标题",MessageBoxButtons.类型,MessageIcon.类型); 如果是Web Form,用: Response.Write("<script language=Ja... 阅读全文