web/Businessziliaoxiugai.aspx.cs
(完整代码) 1KBusing System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using US.CommonLib;
using US.DBUtility;
using US.Dal;
using US.Model;
public partial class Businessziliaoxiugai : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string id = Session["i_BUId"].ToString();
SqlDataReader dr = SQLHelper.ExecuteReader(SQLHelper.ConnectionStringLocalTransaction, CommandType.Text, "select * from BusinessUsers where i_BUId='" + id + "'", null);
dr.Read();
TextBox1.Text = dr.GetValue(2).ToString();
}
}
protected void Button1_Click(object sender, EventArgs e)
{
string id = Session["i_BUId"].ToString();
int ret= SQLHelper.ExecuteNonQuery(SQLHelper.ConnectionStringLocalTransaction, CommandType.Text, "update BusinessUsers set Vc_BUPassWord='" + TextBox2.Text + "' where i_BUId='" + id + "'", null);
if (ret>0)
{
JavaScriptHelper.Alert("密码修改成功!");
}
else
{
JavaScriptHelper.Alert("密码修改失败,请重新修改!");
}
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
string id = Session["i_BUId"].ToString();
Response.Redirect("Businessziliao.aspx");
}
protected void LinkButton4_Click(object sender, EventArgs e)
{
string id = Session["i_BUId"].ToString();
Response.Redirect("Businessshouye.aspx");
}
protected void LinkButton3_Click(object sender, EventArgs e)
{
Response.Redirect("index.aspx");
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
