gaoxiaojiuye/CompanyCenter.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
public partial class CompanyCenter : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Session["qxuname"] == null)
{
Response.Redirect("UserLogin.aspx");
}
string sql;
sql = "select * from gongsi where id=" + Session["qxuserid"].ToString().Trim();
DataSet result = new DataSet();
sqlConn conn = new sqlConn();
result = conn.hsggetdata(sql);
if (result != null)
{
this.username.Value = result.Tables[0].Rows[0]["yonghuming"].ToString();
username.Disabled = true;
this.people.Value = result.Tables[0].Rows[0]["lianxiren"].ToString();
this.address.Value = result.Tables[0].Rows[0]["dizhi"].ToString();
this.code.Value = result.Tables[0].Rows[0]["jigoudaima"].ToString();
this.companyname.Value = result.Tables[0].Rows[0]["gongsimingcheng"].ToString();
this.Intro.Value = result.Tables[0].Rows[0]["jianjie"].ToString();
this.Text1.Value = result.Tables[0].Rows[0]["guimo"].ToString();
this.tel.Value = result.Tables[0].Rows[0]["dianhua"].ToString();
this.Text1.Value = result.Tables[0].Rows[0]["guimo"].ToString();
for (int i = 0; i < hangye.Items.Count; i++)
{
if (hangye.Items[i].Value == result.Tables[0].Rows[0]["hangye"].ToString())
{
hangye.Items[i].Selected = true;
}
}
HiddenFieldPic.Value = result.Tables[0].Rows[0]["pic"].ToString();
}
}
}
protected void Button1_Click(object sender, EventArgs e)
{
string yonghuming = this.username.Value;
string gongsimingcheng = this.companyname.Value;
string lianxiren = this.people.Value;
string dianhua = this.tel.Value;
string dizhi = this.address.Value;
string jigoudaima = this.code.Value;
string guimo = this.Text1.Value;
string hangye = this.hangye.Items[this.hangye.SelectedIndex].Value;
string jianjie = this.Intro.Value;
string strsql = "";
sqlConn conn = new sqlConn();
后面还有 14 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
