亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? default.aspx.cs

?? 包含有簡單網頁的設計
?? CS
字號:
?using System;
using System.Data;
using System.Configuration;
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;

public partial class _Default : System.Web.UI.Page
{
    static int m;
    static int n;
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        Label2.Text = null;
        Label1.Text = null;
        TextBox3.Text = "列名        數據類型" + "\r";
        try
        {
            sqlconntection connection = new sqlconntection();
            connection.con = @"Data Source=WWW-59CE1982991;Initial Catalog=Northwind;Integrated Security=True";
            connection.com = TextBox1.Text;
            GridView1.DataSource = connection.ds(connection.com, connection.com);
            GridView1.DataBind();
            //        char[] chars1 ={ ' ' };
            //string select2= TextBox1.Text;
            //string[] selectarry2 = select2.Split(chars1);
            for (int i = 0; i < connection.ds(connection.con, connection.com).Tables[0].Columns.Count; i++)
            {
                TextBox3.Text += connection.ds(connection.con, connection.com).Tables[0].Columns[i].ColumnName + "      " + connection.ds(connection.con, connection.com).Tables[0].Columns[i].DataType + "\r";
            }
        }
        catch (Exception E)
        {
            Label1.Text = @"查詢語句有誤,請重新輸入";
        }
    }


    protected void Button2_Click(object sender, EventArgs e)
    {
        Label2.Text = "";
        string[] strings ={ " ", "  ", "   ", "    ", "     ", "(", ")", "     ", "," };
        string select1 = TextBox1.Text;
        string[] selectarry1 = select1.Split(strings, StringSplitOptions.RemoveEmptyEntries);
        //sqlconntection connection = new sqlconntection();
        //string a1 = @"Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=petshop;Data Source=88EADCE47451494\SQLEXPRESS";
        //string a2 = TextBox1.Text;
        //SqlConnection conne = new SqlConnection(a1);
        //SqlCommand command = new SqlCommand(a2, conne);
        //SqlDataAdapter mydataadapter = new SqlDataAdapter(command);
        //SqlCommandBuilder mybuilder = new SqlCommandBuilder(mydataadapter);
        //DataSet ds = new DataSet();
        //mydataadapter.Fill(ds);

        sqlconntection connection = new sqlconntection();
        connection.con = @"Data Source=WWW-59CE1982991;Initial Catalog=Northwind;Integrated Security=True";
        connection.com = TextBox1.Text;
        GridView1.DataSource = connection.ds(connection.com, connection.com);
        GridView1.DataBind();

        //connection.ds(connection.con,connection.com).Tables[0].TableName=selectarry1[2];
        //DataSet dt=connection.ds(connection.con,connection.com);
        //GridView1.DataBind();

        string select = TextBox2.Text;
        string[] selectarry = select.Split(strings, StringSplitOptions.RemoveEmptyEntries);
        //foreach (string s in selectarry)
        //{
        //    TextBox3.Text += s + "\r";
        //}

        if (selectarry[0] != "insert" || selectarry[1] != "into" || selectarry[3] != "values")
        {
            Label2.Text = "請輸入正確的插入語句語句!例如:insert into TableName values()";
        }
        if (selectarry[2] != selectarry1[3])
        {
            Label2.Text = "請輸入正確的表名";
        }
        if (selectarry.Length != connection.ds(connection.con, connection.com).Tables[0].Columns.Count + 4)
        {
            Label2.Text = "請輸入正確的插入數據!";

        }
        bool loop = true;
        for (int i = 0; i < connection.ds(connection.con, connection.com).Tables[0].Rows.Count; i++)
        {
            if (connection.ds(connection.con, connection.com).Tables[0].Rows[i][0].ToString() == selectarry[4])
            {
                loop = false;
                Label2.Text = "主鍵違反完整性約束規則";
            }

        }
        if (selectarry[2] == selectarry1[3] && selectarry[0] == "insert" && selectarry[1] == "into" && selectarry[3] == "values" && selectarry.Length == connection.ds(connection.con, connection.com).Tables[0].Columns.Count + 4 && loop == true)
        {
            try
            { //sqlconntection connection = new sqlconntection();
                string a1 = @"Data Source=WWW-59CE1982991;Initial Catalog=Northwind;Integrated Security=True";
                string a2 = TextBox1.Text;
                SqlConnection conne = new SqlConnection(a1);
                conne.Open();
                SqlCommand command = new SqlCommand(a2, conne);
                SqlDataAdapter mydataadapter = new SqlDataAdapter(command);
                SqlCommandBuilder mybuilder = new SqlCommandBuilder(mydataadapter);
                DataSet ds = new DataSet();
                mydataadapter.Fill(ds);
                DataRow myrow = ds.Tables[0].NewRow();
                for (int i = 0; i < selectarry.Length - 4; i++)
                {
                    myrow[i] = selectarry[i + 4];
                }
                ds.Tables[0].Rows.Add(myrow);
                mydataadapter.Update(ds);
                GridView2.DataSource = ds;
                GridView2.DataBind();
                Response.Write("<script>alert('添加成功')</script>");
            }
            catch (Exception e2)
            {
                Label2.Text = "請參照數據類型錄入正確的數據!";

            }

        }

        // if(
        //bool loop1 = false;
        // if (selectarry[1] == "*"||selectarry[selectarry.Length-1]==connection.ds(connection.con,connection.com).Tables[0].TableName)
        // {GridView2.DataSource = connection.ds(connection.con,connection.com).Tables[0];
        //     GridView2.DataBind();

        // }

        // for (int i = 0; i < dt.Tables[0].Columns.Count; i++)
        // {
        //     string[] lieming = new string[dt.Tables[0].Columns.Count];
        //     lieming[i] = dt.Tables[0].Columns[i].ColumnName;
        //     if (selectarry[1] == lieming[i])
        //         loop1 = true;

        // }
        // if (loop1 ==false)
        // {
        //     Label2.Text = @"請輸入正確的列名!"; 
        // }
        // if (loop1 == true || selectarry[selectarry.Length - 1] == connection.ds(connection.con, connection.com).Tables[0].TableName || selectarry1[3] == "from")
        // {
        //     DataColumn co1 = new DataColumn();
        //     DataSet ds1 = new DataSet();
        //     DataTable dt1 = new DataTable();
        //     dt1.Columns.Add(selectarry[1]);
        //     ds1.Tables.Add(dt1);
        //     GridView2.DataSource = ds1;
        //     GridView2.DataBind();
        // }
    }
    protected void Button3_Click(object sender, EventArgs e)
    {
        Label2.Text = "";
        string[] strings ={ " ", "  ", "   ", "    ", "     ", "(", ")", "     ", ",", "=","= "," =" };
        string select1 = TextBox1.Text;
        string[] selectarry1 = select1.Split(strings, StringSplitOptions.RemoveEmptyEntries);
        string select2 = TextBox4.Text;
        string[] selectarry2 = select2.Split(strings, StringSplitOptions.RemoveEmptyEntries);
        //foreach (string s in selectarry2)
        //{
        //    TextBox3.Text += s + '\r';
        //}
        sqlconntection connection = new sqlconntection();
        connection.con = @"Data Source=WWW-59CE1982991;Initial Catalog=Northwind;Integrated Security=True";
        connection.com = TextBox1.Text;
        GridView1.DataSource = connection.ds(connection.com, connection.com);
        GridView1.DataBind();

        if (selectarry2[0] != "update" || selectarry2[2] != "set" || selectarry2[5] != "where")
        {
            Label3.Text = "請錄入正確的update語句!";
        }
        if (selectarry2[1] != selectarry1[3])
        {
            Label3.Text = "請輸入正確的表名";
        }
        bool loop1 = false;
        bool loop3 = false;
        if (selectarry2[6] ==connection.ds(connection.con,connection.com).Tables[0].Columns[0].ColumnName)
        {
            loop3 = true;
        }
        else Label3.Text = "請輸入正確的列名";
        for (int i = 0; i < connection.ds(connection.con, connection.com).Tables[0].Columns.Count; i++)
        {
            if (connection.ds(connection.con, connection.com).Tables[0].Columns[i].ColumnName != selectarry2[3] )
            {
                loop1 = true;
               
            }
            
        }
        bool loop2 = true ;
        for (int i = 0; i < connection.ds(connection.con, connection.com).Tables[0].Rows.Count; i++)
        {
            if (connection.ds(connection.con, connection.com).Tables[0].Rows[i][0].ToString() == selectarry2[7])
            {
                loop2 = true;
            }
            //else
            //{
            //    Label3.Text = "請輸入正確的查詢條件!";
            //}

        }
        if (selectarry2[0] == "update" && selectarry2[2] == "set" && selectarry2[5] == "where" && selectarry2[1] == selectarry1[3]&& loop1 == true && loop2 == true && loop3 == true)
        {
            try
            { //sqlconntection connection = new sqlconntection();
                string a11 = @"Data Source=WWW-59CE1982991;Initial Catalog=Northwind;Integrated Security=True";
                string a21 = TextBox1.Text;
                SqlConnection conne1 = new SqlConnection(a11);
                conne1.Open();
                SqlCommand command1 = new SqlCommand(a21, conne1);
                SqlDataAdapter mydataadapter1 = new SqlDataAdapter(command1);
                
                DataSet ds1 = new DataSet();
                mydataadapter1.Fill(ds1);
                SqlCommandBuilder mybuilder1 = new SqlCommandBuilder(mydataadapter1);
                for (int i = 0; i < connection.ds(connection.con, connection.com).Tables[0].Rows.Count; i++)
                { if (selectarry2[7] == connection.ds(connection.con, connection.com).Tables[0].Rows[i][0].ToString())m = i; }
                for (int j = 0; j < connection.ds(connection.con, connection.com).Tables[0].Columns.Count; j++)
                {
                    if (selectarry2[3] == connection.ds(connection.con, connection.com).Tables[0].Columns[j].ColumnName)
                        n = j;
                }
                ds1.Tables[0].Rows[m][n] = selectarry2[4];
                mydataadapter1.Update(ds1);
                GridView3.DataSource = ds1;
                GridView3.DataBind();
                Response.Write("<script>alert('修改成功')</script>");
            }
            catch (Exception e2)
            {
                Label2.Text = e2.Message ;

            }




        }
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕免费观看一区| 精品亚洲免费视频| 亚洲欧美偷拍三级| 日本一区二区视频在线| 久久一区二区三区国产精品| 亚洲精品一区二区在线观看| 日韩免费性生活视频播放| 欧美一区二区三区免费视频| 69堂亚洲精品首页| 欧美一区二区福利在线| 日韩免费看网站| 精品国产凹凸成av人导航| 精品日本一线二线三线不卡| 日韩一区二区在线观看| 26uuu精品一区二区| 久久综合精品国产一区二区三区| 久久品道一品道久久精品| 久久精品亚洲一区二区三区浴池| 久久久久久影视| 国产精品国产三级国产aⅴ原创| 欧美国产精品久久| 亚洲啪啪综合av一区二区三区| 夜色激情一区二区| 天堂成人国产精品一区| 老司机精品视频导航| 国产精品一区三区| 97se狠狠狠综合亚洲狠狠| 在线视频欧美区| 日韩精品一区二区三区中文精品| 精品sm在线观看| 国产精品美女一区二区三区| 亚洲欧美日韩在线播放| 亚洲成人动漫一区| 精品一区二区三区欧美| zzijzzij亚洲日本少妇熟睡| 91极品视觉盛宴| 欧美一级淫片007| 欧美激情综合在线| 亚洲国产三级在线| 国产一区二区三区在线观看精品| 成人a区在线观看| 欧美日韩的一区二区| 久久久av毛片精品| 亚洲一线二线三线视频| 麻豆精品视频在线观看免费| 成人激情小说乱人伦| 欧美日韩一卡二卡| 亚洲国产成人私人影院tom| 亚洲大型综合色站| 国产成人鲁色资源国产91色综| 色欧美片视频在线观看| 精品成人在线观看| 亚洲一级电影视频| 国产成人在线电影| 555夜色666亚洲国产免| 国产精品美女久久久久aⅴ| 日韩制服丝袜av| 99久久精品情趣| 日韩免费在线观看| 亚洲日本成人在线观看| 精品一区二区三区在线播放视频| 在线观看av不卡| 欧美激情一区二区三区不卡| 午夜一区二区三区视频| 不卡的av网站| 久久久久久久久久久99999| 亚洲国产成人av网| 91色视频在线| 国产三级三级三级精品8ⅰ区| 婷婷六月综合亚洲| 欧洲精品中文字幕| 国产精品久久777777| 精品午夜一区二区三区在线观看| 在线观看一区二区视频| 国产精品三级电影| 激情亚洲综合在线| 欧美一级精品大片| 亚洲国产aⅴ成人精品无吗| 94色蜜桃网一区二区三区| 久久久亚洲精品一区二区三区| 天天亚洲美女在线视频| 99久久99久久精品免费看蜜桃| 26uuu国产电影一区二区| 日本欧美一区二区三区乱码 | av不卡免费在线观看| 精品对白一区国产伦| 日韩av中文在线观看| 欧美性受xxxx| 亚洲精品v日韩精品| 成人激情视频网站| 国产日韩影视精品| 国产剧情一区二区三区| 欧美一卡2卡3卡4卡| 日韩av电影天堂| 欧美精品久久99久久在免费线| 亚洲免费高清视频在线| 99精品欧美一区二区三区小说| 欧美激情中文不卡| 成人午夜精品在线| 国产婷婷色一区二区三区四区 | 理论片日本一区| 日韩女优电影在线观看| 免费看精品久久片| 日韩午夜中文字幕| 老色鬼精品视频在线观看播放| 欧美顶级少妇做爰| 奇米精品一区二区三区在线观看| 欧美精品xxxxbbbb| 日本中文在线一区| 精品国产一区二区在线观看| 国产精品自拍在线| 国产欧美一区二区精品秋霞影院| 国产精品一卡二| 国产精品欧美久久久久无广告| 成人理论电影网| 亚洲精品写真福利| 欧美日韩亚洲综合一区 | 欧美精品日韩一本| 首页国产丝袜综合| 日韩女优制服丝袜电影| 国产乱人伦偷精品视频免下载| 国产欧美精品一区二区色综合| 成人午夜精品在线| 亚洲精品精品亚洲| 欧美日韩综合在线免费观看| 日韩影院免费视频| 精品免费视频一区二区| 成人永久免费视频| 亚洲一区二区三区自拍| 91 com成人网| 国产一区二区三区在线观看免费| 国产精品天干天干在线综合| 91福利在线导航| 蜜臂av日日欢夜夜爽一区| 欧美激情一区二区三区| 一本大道久久a久久综合| 亚洲观看高清完整版在线观看 | 视频一区在线视频| xnxx国产精品| 94色蜜桃网一区二区三区| 日韩高清电影一区| 国产精品网站在线| 9191久久久久久久久久久| 国产露脸91国语对白| 亚洲视频在线一区| 日韩免费性生活视频播放| 成人国产精品视频| 天天av天天翘天天综合网 | 日韩无一区二区| av电影天堂一区二区在线| 日韩一区精品字幕| 综合久久一区二区三区| 欧美一区二区三区成人| 本田岬高潮一区二区三区| 亚洲成人一区在线| 欧美激情在线一区二区| 欧美久久久久久蜜桃| 国产成人精品三级| 五月天一区二区| 国产精品情趣视频| 欧美成人艳星乳罩| 一本到三区不卡视频| 国产激情视频一区二区在线观看| 伊人夜夜躁av伊人久久| 欧美刺激脚交jootjob| 色综合色狠狠综合色| 韩国成人福利片在线播放| 亚洲一区二区成人在线观看| 久久久久久毛片| 91精品久久久久久蜜臀| 91视频免费播放| 国产夫妻精品视频| 日韩成人一区二区| 一二三四社区欧美黄| 国产精品五月天| 精品久久久三级丝袜| 欧美日韩你懂得| 91在线看国产| 国产91综合网| 狠狠色综合色综合网络| 爽爽淫人综合网网站| 亚洲国产一区二区a毛片| 中文字幕一区二区三区不卡| 精品久久人人做人人爽| 欧美一区二区私人影院日本| 欧美午夜精品久久久久久超碰| 国产盗摄一区二区| 美女视频黄久久| 肉肉av福利一精品导航| 亚洲综合免费观看高清完整版在线 | 国产欧美日韩在线视频| 精品国精品国产尤物美女| 欧美精品 日韩| 欧美日韩一级片在线观看| 91成人网在线| 一本到一区二区三区| 色哟哟亚洲精品| 99re热视频这里只精品| av资源网一区| 色综合视频在线观看|