夕5.3砿尖埀鞠遜匈中
砿尖埀鞠遜匈中議何蛍旗鷹葎
public partial class denglu : System.Web.UI.Page {
protected void Page_Load(object sender, EventArgs e) {
if (!this.IsPostBack) }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) {
SqlConnection con = DB.createDB(); SqlCommand cmd = new SqlCommand(); cmd.Connection = con; con.Open();
cmd.CommandText = \count(*) from tb_zhuce where name='\+ this.txtworkname.Text + \+ \
Session[\ Session[\
int a = Convert.ToInt32(cmd.ExecuteScalar()); // if (a > 0) {
Response.Redirect(\ } else {
Response.Write(\載凖唆喘薩兆賜畜鷹危列');\ }
con.Close();
}
5.4 概曽砿尖匈中議譜柴嚥糞
昧彭芙氏議窟婢概曽議方楚壓嶬敞肪派試嶄晩吩奐紗恬葎匯倖峇晒砿尖議弌曝嶷嶄岻嶷俶勣委弌曝坪議概了砿尖挫概曽砿尖麼順中麼勣淫根參和佚連坪否順中篇夕泌夕5.4侭幣
夕5.4概曽砿尖匈中夕
概曽砿尖匈中議何蛍旗鷹葎
protected void Button1_Click(object sender, EventArgs e) {
SqlConnection con = DB.createDB(); SqlCommand cmd = new SqlCommand(); cmd.Connection = con; con.Open();
cmd.CommandText = \into tb_homePark values('\+ this.txtCph.Text + \+ this.txtTcch.Text + \+ this.txtEtime.Text + \+ this.txtTcglf.Text + \+ this.txtjsr.Text + \+ this.ddlsjqk.SelectedItem.Text.ToString() + \
cmd.ExecuteNonQuery();
Response.Write(\language=javascript>alert('孝浪艇佚連耶紗撹孔');\
con.Close(); this.aa(); }
protected void Button2_Click(object sender, EventArgs e) {
SqlConnection con = DB.createDB(); SqlCommand cmd = new SqlCommand(); cmd.Connection = con; con.Open();
cmd.CommandText = \ cmd.ExecuteNonQuery();
Response.Write(\孝浪艇佚連評茅撹孔');\ con.Close(); this.aa(); }
protected void Button4_Click(object sender, EventArgs e) {
SqlConnection con = DB.createDB();
SqlCommand cmd = new SqlCommand(); cmd.Connection = con; con.Open();
cmd.CommandText = \tb_homePark set placeID='\+ this.txtTcch.Text + \+ this.txtCz.Text + \+ this.txtTcdd.Text + \+ this.txtstime.Text + \+ this.txtEtime.Text + \+ this.txtTcglf.Text + \+ this.txtjsr.Text + \+ this.ddlsjqk.SelectedItem.Text + \+ this.txtBz.Text + \ cmd.ExecuteNonQuery();
Response.Write(\language=javascript>alert('孝浪艇佚連俐個撹孔');\
con.Close(); this.aa(); }
int i=Convert.ToInt32(cmd.ExecuteScalar()); if (i > 0) {
this.txtCph.Text = \ this.txtCph.Focus();
Response.Write(\概兎催贋壓萩壓耶紗匯倖');location='javascript:history.go(-1)'\ }
if(i < 1) {
Response.Write(\概兎催音贋壓艇辛參写偬野亟');location='javascript:history.go(-1)'\ }
con.Close(); }
protected void gvcl_RowDataBound(object sender, GridViewRowEventArgs e) {
if (e.Row.RowType == DataControlRowType.DataRow) {
e.Row.Attributes.Add(\
\
e.Row.Attributes.Add(\ if (e.Row.Cells[8].Text == \厮宿追\ {
e.Row.Cells[8].Text = \厮宿追\ } }
protected void Calendar2_SelectionChanged(object sender, EventArgs e) {
this.txtstime.Text=this.CalStime.SelectedDate.ToShortDateString(); }
protected void Button2_Click1(object sender, EventArgs e) {
this.CalStime.Visible = true; this.txtstime.Enabled = true; }
protected void Button3_Click1(object sender, EventArgs e) {
this.Calendar2.Visible = true; this.txtEtime.Enabled = true; }
protected void Calendar2_SelectionChanged1(object sender, EventArgs e) {
this.txtEtime.Text = this.CalStime.SelectedDate.ToShortDateString(); }
protected void btnSelect_Click(object sender, EventArgs e) {
Response.Redirect(\ }
protected void gvcl_SelectedIndexChanged1(object sender, EventArgs e) protected void Button4_Click1(object sender, EventArgs e)
{ } }