⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gysinfo.aspx.cs

📁 ASP.NET的一些开发实例,有论坛管理系统等
💻 CS
字号:
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace com.ascs.plp.publics
{
	/// <summary>
	/// GYSInfo 的摘要说明。
	/// </summary>
	public class GYSInfo : com.unicafe.ui.UnicafePage 
	{
		protected System.Web.UI.WebControls.Label GYSJC;
		protected System.Web.UI.WebControls.Label LXR;
		protected System.Web.UI.WebControls.Label LXDH;
		protected System.Web.UI.WebControls.Label LXCZ;
		protected System.Web.UI.WebControls.Label LXDZ;
		protected System.Web.UI.WebControls.Label LXYB;
		protected System.Web.UI.WebControls.Label EMAIL;
		protected System.Web.UI.WebControls.Label SZCS;
		protected System.Web.UI.WebControls.Label GSZY;
		protected System.Web.UI.WebControls.Label KHYH;
		protected System.Web.UI.WebControls.Label YHZH;
		protected System.Web.UI.WebControls.Label SH;
		protected System.Web.UI.WebControls.Label XYJBDM;
		protected ArrayList resultset;
	
		private void Page_Load(object sender, System.EventArgs e)
		{
			com.ascs.plp.cp.GYSXX obj=null;
			com.ascs.plp.cp.GYSXXMgr  objmgr=new com.ascs.plp.cp.GYSXXMgr();
            obj=objmgr.GetGYSXX(Request.QueryString["gysdm"]);
			GYSJC.Text=obj.GYSJC;
			LXR.Text=obj.LXR;
			LXDH.Text=obj.LXDH;
			LXCZ.Text=obj.LXCZ;
			LXDZ.Text=obj.LXDZ;
			LXYB.Text=obj.LXYB;
			EMAIL.Text=obj.EMAIL;
			SZCS.Text=obj.SZCS;
			GSZY.Text="<a href=\"" + obj.GSZY + "\" target=\"_blank\">" + obj.GSZY + "</a>";
			KHYH.Text=obj.KHYH;
			YHZH.Text=obj.YHZH;
			SH.Text=obj.SH;
            
			SqlConnection cn = new SqlConnection (com.unicafe.common.Configuration.GetDBConnectionString());
			cn.Open();
				
			if(obj.XYJBDM!="")
			{
                string sql;
				sql = "select * from XYJB where XYJBDM="+obj.XYJBDM;
				
				SqlCommand cmd = new SqlCommand(sql,cn);
				
				SqlDataReader dr = cmd.ExecuteReader();
				if (dr.Read())
				{
					XYJBDM.Text=(string)dr["XYJBMC"];
				}
			}
			}

		#region Web Form Designer generated code
		override protected void OnInit(EventArgs e)
		{
			//
			// CODEGEN:该调用是 ASP.NET Web 窗体设计器所必需的。
			//
			InitializeComponent();
			base.OnInit(e);
		}
		
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{    
			this.Load += new System.EventHandler(this.Page_Load);

		}
		#endregion
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -