您目前尚未登陆,请选择【登陆】或【注册
首页->行政办公->网上办公系统源码>>ClientInfo/Client_ListAll.aspx.cs>>代码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:网上办公系统源码


当前文件路径:OfficeOnline/ClientInfo/Client_ListAll.aspx.cs 文件类型
普通视图
		            
1using System; 2using System.Data; 3using System.Configuration; 4using System.Collections; 5using System.Web; 6using System.Web.Security; 7using System.Web.UI; 8using System.Web.UI.WebControls; 9using System.Web.UI.WebControls.WebParts; 10using System.Web.UI.HtmlControls; 11 12public partial class ClientInfo_Client_ListAll : System.Web.UI.Page 13{ 14 WebService webService = new WebService(); 15 protected void Page_Load(object sender, EventArgs e) 16 { 17 // Response.Write("Session是:"+Session["UserLevel"]); 18 19 //if (Session["UserID"] == null || Session["UserLevel"] == null) 20 //{ 21 // Response.Redirect("~/Error.aspx"); 22 //} 23 //if (Session["UserLevel"] != "总经理" && Session["UserLevel"] != "副总经理") 24 //{ 25 // Response.Redirect("~/Error.aspx"); 26 //} 27 if (!Page.IsPostBack) 28 { 29 string strSql = "Select * from z_Department"; 30 DataTable dtTable = webService.ExcuteSelect(strSql); 31 this.DropDownList1.DataSource = dtTable.DefaultView; 32 this.DropDownList1.DataBind(); 33 if (Request.QueryString["did"] == null) 34 { 35 this.DropDownList1.SelectedValue = "1"; 36 } 37 else 38 this.DropDownList1.SelectedValue = Request.QueryString["did"]; 39 this.lblDept.Text = this.DropDownList1.SelectedItem.Text; 40 } 41 } 42 protected void Button1_Click(object sender, EventArgs e) 43 { 44 Response.Redirect("Client_ListAll.aspx?did=" + this.DropDownList1.SelectedValue); 45 } 46 protected void LinkButton1_Command(object sender, CommandEventArgs e) 47 { 48 Response.Redirect("Client_Info.aspx?cid="+e.CommandArgument); 49 } 50} 51
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:网上办公系统源码

- I-favourite3.0Beta多用户博..

- 简单用户管理源码(入门级)

- CD拍卖网51aspx调测版源码

- asp.net权限管理系统Demo源码

- 某医院网站管理后台源码

- 简单友情链接(GridView+SqlD..

- 邓西网站帮助系统NET+SQL开源..

- 明日供求信息网源码

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