admin/taoti_insert.aspx.cs

(完整代码) 1KB

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

public partial class admin_taoti_insert : System.Web.UI.Page
{
    DataCode dataconn = new DataCode();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            dataconn.DownList(DropDownList1, "select * from tb_Lesson", "Name", "id");
        }
    }
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        dataconn.dataos("insert into tb_TaoTi (name,LessonID)values('"
         + this.TextBox1.Text + "','" + Convert.ToInt32(this.DropDownList1.Text) + "')");
        Page.Response.Redirect("taoti_xinxi.aspx");
    }
    protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
    {
        Page.Response.Redirect("taoti_xinxi.aspx");
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。