sys.aspx.cs
来自「多种模式留言系统 本留言系统 支持多种模式 一 签写留言模式 二 留言本模」· CS 代码 · 共 34 行
CS
34 行
using 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;
public partial class admin_sys : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Server.Execute("chklog.aspx");
}
protected void Button1_Click(object sender, EventArgs e)
{
string title = ((TextBox)FormView1.FindControl("TextBox1")).Text.ToString();
string name = ((TextBox)FormView1.FindControl("TextBox2")).Text.ToString();
string email = ((TextBox)FormView1.FindControl("TextBox3")).Text.ToString();
string qq = ((TextBox)FormView1.FindControl("TextBox4")).Text.ToString();
string moshi=((DropDownList)FormView1.FindControl("DropDownList1")).SelectedValue.ToString();
string booknum = ((TextBox)FormView1.FindControl("TextBox5")).Text.ToString();
string bbsnum = ((TextBox)FormView1.FindControl("TextBox6")).Text.ToString();
string adminnum = ((TextBox)FormView1.FindControl("TextBox7")).Text.ToString();
int adcut = Convert.ToInt32(((TextBox)FormView1.FindControl("TextBox8")).Text.ToString());
if (odb.insert("UPDATE config SET title ='" + title + "', name ='" + name + "', email ='" + email + "', qq ='" + qq + "', moshi ='" + moshi + "', booknum ='" + booknum + "', bbsnum ='" + bbsnum + "', adminnum ='" + adminnum + "',adcut="+adcut+""))
Response.Write("更新成功");
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?