摘要: 前台代码: 1 <asp:GridView ID="gv_demonstrate_for_planning_item" runat="server" 2 AutoGenerateColumns="False" OnRowDeleting="gv_RowDeleting"> 4 <RowStyle BackColor="#EFF3FB" /> 5 <Columns> 6 <asp:BoundField HeaderText="施工单位" 阅读全文
posted @ 2012-05-09 11:46 phoenix_fling 阅读(543) 评论(0) 推荐(0) 编辑
摘要: 界面上的内容1 <asp:DropDownList ID="company" runat="server" AppendDataBoundItems=true>2 <asp:ListItem Selected="true">-请选择-</asp:ListItem>3 </asp:DropDownList>后台代码1 for (int i = company.Items.Count - 1; i > 0; i--)2 {3 company.Items.RemoveAt(i);4 .. 阅读全文
posted @ 2012-05-07 11:44 phoenix_fling 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 1.问题说明 一般情况下,存储图片只需要使用BitMap.Save(string Path,ImageFormat)函数即可,但是默认的jpeg保存质量应该是在60左右.如果默认值不能满足我们的需求,那么就需要根据实际需求修改图片的保存质量.2.解决方案 ImageCodecInfo类指定需要保存的格式(如jpg等等). System.Drawing.Imaging.Encoder类用于定制图片需要呈现的方式和各种参数,例如图片质量参数(Quality),扫描方法参数,色度表参数,压缩参数(Compression),颜色深度(ColorDepth)等等,该类型是EncoderParame... 阅读全文
posted @ 2012-04-01 16:26 phoenix_fling 阅读(1757) 评论(3) 推荐(0) 编辑