JobsOnline/Account/frmSelfInformation.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 SqlDataClass;
public partial class Account_frmSelfInformation : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
txtdate.Text = DateTime.Now.ToShortDateString();
int id = 0;
if (Session["userID"] != null)
{
id = Convert.ToInt32(Session["userID"]);
TextBind(id);
}
hideid.Value = id.ToString();
}
}
private void TextBind(int sid)
{
SelfInformation sf = BaseData.Instanse.SelectSelfInformationBySbh(sid);
if (sf != null)
{
txtsname.Text = sf.sname;
dsex.Text = sf.sex;
txtdate.Text =Convert.ToDateTime(sf.brithdate).ToString("yyyy-MM-dd");
cbrithday.SelectedDate =(DateTime) sf.brithdate;
txtbrithPlace.Text = sf.brithPlace;
txtMajor.Text = sf.major;
txtdegree.Text = sf.degree;
txtSelfIntroduction.Text = sf.selfintroduction;
txtWorkHour.Text = sf.workhour.ToString();
txtWorkdetail.Text = sf.workdetail;
txtselfability.Text = sf.selfabiity;
}
}
protected void btnSave_Click(object sender, EventArgs e)
{
try
{
if (txtsname.Text == "" )
{
ClientScript.RegisterClientScriptBlock(this.GetType(), "s", "<script>alert('姓名不能为空');</script>");
return;
}
if (txtdate.Text=="")
{
ClientScript.RegisterClientScriptBlock(this.GetType(), "s", "<script>alert('出生日期不能为空');</script>");
return;
}
string sqlstr = "";
后面还有 32 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
