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


当前文件路径:HouseManage/CompanyManage/ManualForm.aspx.cs 文件类型
普通视图
		            
1//文件名:ManualForm.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 13public partial class CompanyManage_ManualForm : System.Web.UI.Page 14{ 15 protected void Page_Load(object sender, EventArgs e) 16 { 17 string MyForbidString = Session["MyForbid"].ToString(); 18 if (MyForbidString.IndexOf("A3") > 1) 19 { 20 Server.Transfer("~/SystemManage/AllErrorHelp.aspx"); 21 } 22 } 23 protected void btnUpload_Click(object sender, EventArgs e) 24 {//上传指定资料文件 25 string MyFileName = this.FileUpload1.FileName; 26 string MyTargetFile = System.IO.Path.Combine(HttpContext.Current.Server.MapPath("~/FileData/"), MyFileName); 27 this.FileUpload1.PostedFile.SaveAs(MyTargetFile); 28 } 29 protected void Button2_Click(object sender, EventArgs e) 30 {//新增业务资料信息 31 this.SqlDataSource1.Insert(); 32 } 33 protected void Button3_Click(object sender, EventArgs e) 34 {//修改业务资料信息 35 this.SqlDataSource1.Update(); 36 } 37 protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e) 38 {//弹出删除操作确认对话框 39 if (e.Row.RowType == DataControlRowType.DataRow) 40 { 41 Button MyButton = (Button)e.Row.FindControl("Button1"); 42 MyButton.OnClientClick = "return confirm('是否确认删除当前选择的记录?')"; 43 } 44 } 45 protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) 46 {//在控件中显示选择的记录 47 this.TextBox2.Text = this.GridView1.SelectedRow.Cells[2].Text.ToString(); 48 this.TextBox3.Text = this.GridView1.SelectedRow.Cells[3].Text.ToString(); 49 this.TextBox4.Text = this.GridView1.SelectedRow.Cells[4].Text.ToString(); 50 this.TextBox5.Text = this.GridView1.SelectedRow.Cells[5].Text.ToString(); 51 this.TextBox6.Text = this.GridView1.SelectedRow.Cells[6].Text.ToString(); 52 this.TextBox7.Text = this.GridView1.SelectedRow.Cells[7].Text.ToString(); 53 } 54 protected void Button4_Click(object sender, EventArgs e) 55 {//显示指定资料文件 56 string MyPath = HttpContext.Current.Server.MapPath("~/FileData/") + this.TextBox7.Text; 57 System.Diagnostics.Process.Start(MyPath); 58 } 59} 60
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:Asp.net房产中介管理系统源码及常用文档

- 嘟嘟狗网上家园系统多用户开源版

- 小计天空企业管理 Asp.Net(C..

- 仿CodeProject论坛程序源码

- 仿QQ空间个人站点源码

- JaneLee简单购物车源码

- 拖动的个性化网页布局源码(Ajax)

- 协同OA办公自动化系统源码

- 山建大校内购物网V1.1源码

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