您目前尚未登陆,请选择【登陆】或【注册
首页->行政办公->Asp.net房产中介管理系统源码及常用文档>>ContractManage/QuerySalePrint.aspx.cs>>代码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:Asp.net房产中介管理系统源码及常用文档


当前文件路径:HouseManage/ContractManage/QuerySalePrint.aspx.cs 文件类型
普通视图
		            
1//文件名:QuerySalePrint.aspx.cs 2using System; 3using System.Data; 4using System.Configuration; 5using System.Collections; 6using System.Web; 7using System.Web.Security; 8using System.Web.UI; 9using System.Web.UI.WebControls; 10using System.Web.UI.WebControls.WebParts; 11using System.Web.UI.HtmlControls; 12 13using System.Data.SqlClient; 14public partial class ContractManage_QuerySalePrint : System.Web.UI.Page 15{ 16 private ContractManage_QuerySaleForm MyPrintForm; 17 protected void Page_Load(object sender, EventArgs e) 18 {//将查询结果输出到Excel文件中 19 MyPrintForm = (ContractManage_QuerySaleForm)Context.Handler; 20 string MySQL = MyPrintForm.MyPrintSQL; 21 this.Label1.Text = Session["MyCompanyName"].ToString() + "售房信息查询结果表"; 22 this.Label2.Text = MyPrintForm.MyPrintDate; 23 string MyConnectionString = ConfigurationManager.ConnectionStrings["MyHouseDBConnectionString"].ConnectionString; ; 24 SqlDataAdapter MyAdapter = new SqlDataAdapter(MySQL, MyConnectionString); 25 DataSet MySet = new DataSet(); 26 MyAdapter.Fill(MySet); 27 this.DataGrid1.DataSource = MySet; 28 this.DataGrid1.DataBind(); 29 this.Response.ContentType = "application/vnd.ms-excel"; 30 this.Response.Charset = ""; 31 this.EnableViewState = false; 32 System.IO.StringWriter MyWriter; 33 System.Web.UI.HtmlTextWriter MyWeb; 34 MyWriter = new System.IO.StringWriter(); 35 MyWeb = new System.Web.UI.HtmlTextWriter(MyWriter); 36 this.DataGrid1.RenderControl(MyWeb); 37 Response.Write(MyWriter.ToString()); 38 } 39} 40
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:Asp.net房产中介管理系统源码及常用文档

- 稻草人Asp.net(C#)留言簿

- 学生管理系统(类库测试版)源码

- 坏孩子无限级树型菜单(JS+Sql)

- IFNuke1.1.0版源码

- 腾飞在线小说网源码

- 千狐网站管理系统1.01

- CocowoBlog V2.0修正版源码

- 我的VS2008通讯录项目源码

51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号