~Roxy's Blog~

Easy come,easy go~

2007年6月2日

保存为Excel文件的代码例子(B/S)

摘要: protectedvoidButton1_Click(objectsender,EventArgse){Response.Clear();Response.Buffer=true;Response.Charset="GB2312";Response.AppendHeader("Content-Disposition","attachment;filename=FileName.xls");//如果... 阅读全文

posted @ 2007-06-02 11:59 Roxy_sy 阅读(411) 评论(0) 推荐(0)
关于.NET2.0中GridView的一些使用

摘要: <1>将某行的单列值以不同色标记显示1protectedvoidGridView1_RowDataBound(objectsender,GridViewRowEventArgse)2{3if(e.Row.RowType==DataControlRowType.DataRow)4{5if(e.Row.Cells[8].Text=="USA")6{7//e.Row.BackColor=Sy... 阅读全文

posted @ 2007-06-02 11:51 Roxy_sy 阅读(376) 评论(0) 推荐(0)