摘要: 之前做过对日外包将近1年的时间,这一年可以说是得失兼备吧。得是靠自己,失主要在那些对日的项目上,我没发现自己在项目上增加代码量的同时增加了编程的能力。得,我比较好学,下班后,能有时间学习喜欢的东西,一段时间内都在学习ExtJS这个华丽(css+ajax+js)的东西,天天都有收获。下面谈谈从对日转到国内之后的一些感受,>>>>>>>需求方面。 外包 情... 阅读全文
posted @ 2009-08-03 17:02 iZiYue 阅读(2337) 评论(7) 推荐(1) 编辑
摘要: 这样做的目的一个是为了减少文件的量,相比较放在数据库里要比放文件夹里要少一些,第二个可以减少对图片文件的暴漏。不知道能不能有效防止“**门”事件的发生。示例代码如下:using System;using System.Data;using System.Data.SqlClient;using System.Configuration;using System.Collec... 阅读全文
posted @ 2009-07-22 14:10 iZiYue 阅读(331) 评论(0) 推荐(0) 编辑
摘要: '用户 'sa' 登录失败。该用户与可信 SQL Server 连接无关联问题一、忘记了登录Microsoft SQL Server 2005 的sa的登录密码解决方法:先用windows身份验证的方式登录进去,然后在‘安全性’-‘登录’-右键单击‘sa’-‘属性’,修改密码点击确定就可以了。问题二、已... 阅读全文
posted @ 2009-07-21 21:53 iZiYue 阅读(1538) 评论(0) 推荐(0) 编辑
摘要: protected void Button1_Click(object sender, EventArgs e) { Export("application/ms-excel", "Nor.xls"); } private void Export(string FileType,string FileName) { Response.Charset = "GB2312"; Response.Con... 阅读全文
posted @ 2009-07-20 17:03 iZiYue 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 在GridView控件中增加DataBound事件,for (int i = 0; i <= GridView1.Rows.Count - 1; i++) { DataRowView mydrv = myds.Tables["AllUsers"].DefaultView[i]; int iDate = Convert.ToInt32(mydrv["UserId"]); if (Convert... 阅读全文
posted @ 2009-07-20 13:59 iZiYue 阅读(548) 评论(0) 推荐(0) 编辑
摘要: 用css即可为GridView控件增加滚动条,style="overflow-y:scroll;width:***px;height:***px;“ 阅读全文
posted @ 2009-07-20 10:10 iZiYue 阅读(515) 评论(0) 推荐(0) 编辑
摘要: 在Page_Load事件中给GridView控件增加属性,添加CSS样式来达到让GridView换行的目的。//正常换行 GridView1.Attributes.Add("style", "world-break:keep-all;word-wrap:normal"); //下面是自动换行 GridView1.Attributes.Add("style", "word-break:break-a... 阅读全文
posted @ 2009-07-20 08:35 iZiYue 阅读(382) 评论(0) 推荐(0) 编辑
摘要: <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" AllowSorting="True" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRo... 阅读全文
posted @ 2009-07-18 15:52 iZiYue 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 在GridView中显示的数据可能不是按照某种排列书序的,例如ID列,假如我们让它按照升序来进行排序,参照CSDN上清清月儿的写法,在RowDataBound中增加代码如下:if (e.Row.RowIndex != -1) { int id = e.Row.RowIndex + 1; e.Row.Cells[0].Text = id.ToString(); } 阅读全文
posted @ 2009-07-18 15:11 iZiYue 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 只需要在RowDataBound中增加以下代码就可以简单实现 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { //判断当前行是否是数据行 if (e.Row.RowType == DataControlRowType.DataRow) { //正常状态和交互状态 if (e.Row.Row... 阅读全文
posted @ 2009-07-18 14:17 iZiYue 阅读(241) 评论(0) 推荐(0) 编辑
ChinaHDTV.ORG