Asp.net源码专业站
首页->商务办公->PowerOA办公自动化系统商业源码>>AddressList/AddressListView.aspx.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:PowerOA办公自动化系统商业源码
当前文件:文件类型 PowerOA/AddressList/AddressListView.aspx.cs[2K,2009-6-12 11:52:10]打开代码结构图
普通视图
		            
1/************************************************************************************** 2作者:蒲丰. 3创建日期:2003-11-24 4修改者: 5修改日期: 6修改部分: 7类功能: 通讯录的查看详情功能.. 8****************************/ 9using System; 10using System.Collections; 11using System.ComponentModel; 12using System.Data; 13using System.Drawing; 14using System.Web; 15using System.Web.SessionState; 16using System.Web.UI; 17using System.Web.UI.WebControls; 18using System.Web.UI.HtmlControls; 19 20namespace OI.AddressList 21{ 22 /// <summary> 23 /// AddressListView 的摘要说明。 24 /// </summary> 25 public class AddressListView : OI.PageBase 26 { 27 protected System.Web.UI.WebControls.Label LabelReletioner; 28 protected System.Web.UI.WebControls.Label LabelAddress; 29 protected System.Web.UI.WebControls.Label LabelTel; 30 protected System.Web.UI.WebControls.Label LabelEmail; 31 protected System.Web.UI.WebControls.Label LabelCompany; 32 int id; 33 protected System.Web.UI.WebControls.ImageButton ImageButton1; 34 protected System.Web.UI.WebControls.Label LabelSex; 35 OI.DatabaseOper .DatabaseConnect Dbc=new OI.DatabaseOper.DatabaseConnect (); 36 private void Page_Load(object sender, System.EventArgs e) 37 { 38 // 在此处放置用户代码以初始化页面 39 if (Session["userid"]==null) 40 { 41 Response.Write ("<script>alert('超时,请重新登录');top.location.href='../userpass.aspx';</script>"); 42 return ; 43 } 44 try 45 { 46 id=int.Parse (Request.Params ["id"].ToString ()); 47 } 48 catch 49 { 50 return ; 51 } 52 CreateDataSource(); 53 } 54 private void CreateDataSource() 55 { 56 string str="select * from addresslist where ListID=" +id; 57 DataSet ds=new DataSet (); 58 ds=Dbc.getBinding (str,"t"); 59 if (ds.Tables[0].Rows .Count >0) 60 { 61 DataRow dr=ds.Tables[0].Rows[0]; 62 LabelReletioner.Text =dr["Reletioner"].ToString (); 63 LabelAddress.Text =dr["Address"].ToString (); 64 LabelTel.Text =dr["Tel"].ToString (); 65 LabelEmail.Text =dr["Email"].ToString (); 66 LabelCompany.Text =dr["company"].ToString (); 67 if (dr["sex"].ToString ()=="True") 68 { 69 LabelSex.Text =""; 70 } 71 else 72 { 73 LabelSex.Text =""; 74 } 75 } 76 } 77 Web 窗体设计器生成的代码 97 98 99 } 100} 101
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:PowerOA办公自动化系统商业源码
51Aspx.com 版权所有 CopyRight © 2006-2010. 京ICP备06046876号 本站法律顾问:ITlaw-庄毅雄律师
返回顶部
客户服务:点击这里进行客户咨询 业务合作:点击这里洽谈业务合作 合作热线:010-68880146