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


当前文件路径:HouseManage/CompanyManage/PersonnelForm.aspx.cs 文件类型
普通视图
		            
1//文件名:PersonnelForm.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_PersonnelForm : 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("A2") > 1) 19 { 20 Server.Transfer("~/SystemManage/AllErrorHelp.aspx"); 21 } 22 } 23 protected void Button2_Click(object sender, EventArgs e) 24 {//新增公司职员信息 25 this.SqlDataSource1.Insert(); 26 } 27 protected void Button3_Click(object sender, EventArgs e) 28 {//修改公司职员信息 29 this.SqlDataSource1.Update(); 30 } 31 protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e) 32 {//弹出删除操作确认对话框 33 if (e.Row.RowType == DataControlRowType.DataRow) 34 { 35 Button MyButton = (Button)e.Row.FindControl("Button1"); 36 MyButton.OnClientClick = "return confirm('是否确认删除当前选择的记录?')"; 37 } 38 } 39 protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) 40 {//在控件中显示选择的记录 41 this.TextBox2.Text = this.GridView1.SelectedRow.Cells[2].Text.ToString(); 42 this.TextBox3.Text = this.GridView1.SelectedRow.Cells[3].Text.ToString(); 43 this.DropDownList1.SelectedItem.Text = this.GridView1.SelectedRow.Cells[4].Text.ToString(); 44 this.DropDownList2.SelectedItem.Text = this.GridView1.SelectedRow.Cells[5].Text.ToString(); 45 this.TextBox6.Text = this.GridView1.SelectedRow.Cells[6].Text.ToString(); 46 this.TextBox7.Text = this.GridView1.SelectedRow.Cells[7].Text.ToString(); 47 this.TextBox8.Text = this.GridView1.SelectedRow.Cells[8].Text.ToString(); 48 this.TextBox9.Text = this.GridView1.SelectedRow.Cells[9].Text.ToString(); 49 this.TextBox10.Text = this.GridView1.SelectedRow.Cells[10].Text.ToString(); 50 this.DropDownList3.Text = this.GridView1.SelectedRow.Cells[11].Text.ToString(); 51 this.TextBox12.Text = this.GridView1.SelectedRow.Cells[12].Text.ToString(); 52 this.TextBox13.Text = this.GridView1.SelectedRow.Cells[13].Text.ToString(); 53 this.TextBox14.Text = this.GridView1.SelectedRow.Cells[14].Text.ToString(); 54 this.TextBox15.Text = this.GridView1.SelectedRow.Cells[15].Text.ToString(); 55 this.TextBox16.Text = this.GridView1.SelectedRow.Cells[16].Text.ToString(); 56 this.TextBox17.Text = this.GridView1.SelectedRow.Cells[17].Text.ToString(); 57 } 58} 59
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:Asp.net房产中介管理系统源码及常用文档

- 曼迪新闻系统测试版

- 天下新闻网程序源码

- 印像留言系统(Asp.net2.0+Ac..

- AjaxControlTookit的ModalPo..

- 深度学习留言板 v0.0.1源码

- 安徽某画室网站源码

- 掘客Digg新闻发掘系统源码

- 浩渺留言板源码

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