半点优化网 http://www.bdxc.net/
当前位置首页 > 网站建设> 正文

求教mysql数据库,我下了个帝国网站后台管理系统,安装时它要我填mysql数据库用户名和密码。

2022-04-14 22:56:32 暂无评论 157 网站建设 数据库   mysql   帝国

Table table = new Table();//新建一个表格

            table.ID = table1;

            if (strWhere != )

            {

                for (int j = 0; j < Convert.ToInt32(表格数量); j++)

                {

                    //Response.Redirect(GetFiles.aspx?table=789);

                    TableRow row = new TableRow();//创建一行

                    row.ID = j.ToString();

                    row.Attributes.Add(onclick, work_click(this););

                    row.Attributes.Add(ondblclick, work_out(this););//双击取消选择

                    TableCell cell = new TableCell();//创建单元格,也就是第一列

                    ////////start//////新建一个表格

                    Table tb = new Table();//创建一个表格

                    tb.ID = tb + (j + 1);

                    tb.BorderWidth = Unit.Parse(1);

                    tb.Width = Unit.Parse(100%);

                    TableRow tr = new TableRow();//创建第一行

                    TableCell cell1 = new TableCell();//创建单元格,也就是第一列

                    cell1.Text = ;//设置单元格内的文本

                    tr.Cells.Add(cell1);//添加到行中

                    TableCell cell2 = new TableCell();//创建第二列

                    cell2.Text = 教程地址: + (j + 1);//设置单元格内的文本

                    tr.Cells.Add(cell2);//添加到行中

                    TableCell cell3 = new TableCell();//创建第三列

                    TextBox txtVote = new TextBox();

                    txtVote.ID = txtJiaoCheng + j;

                    txtVote.Enabled = true;

                    //FileUpload fu = new FileUpload();

                    //fu.ID = fuPhoto + j;

                    //fu.Width = 73;

                    //fu.Height = 22;

                    //fu.BorderWidth = 0;

                    //fu.Attributes.Add(onpropertychange, document.all. + txtJiaoCheng + j + .value='file:///'+this.value;);

                    Button button = new Button();

                    button.ID = btn + j;

                    button.Text = 打 开;

                    button.Attributes.Add(onclick, window.open('GetFiles.aspx?table=txtJiaoCheng + j + ','',''));

                    cell3.Controls.Add(txtVote);

                    //cell3.Controls.Add(fu);

                    cell3.Controls.Add(button);

                    tr.Cells.Add(cell3);

                    TableRow tr1 = new TableRow();//创建第二行

                    TableCell cell11 = new TableCell();//创建单元格,也就是第一列

                    cell11.Text = ;//设置单元格内的文本

                    //CheckBox cb = new CheckBox();

                    //cb.ID = cb+j;

                    //cb.Enabled = true;

                    //cell11.Controls.Add(cb);

                    tr1.Cells.Add(cell11);//添加到行中

                    TableCell cell12 = new TableCell();//创建第二列

                    cell12.Text = 标题: + (j + 1);//设置单元格内的文本

                    tr1.Cells.Add(cell12);//添加到行中

                    TableCell cell13 = new TableCell();//创建第三列

                    TextBox txtVote1 = new TextBox();

                    txtVote1.ID = txtTitle + j;

                    txtVote1.Enabled = true;

                    cell13.Controls.Add(txtVote1);

                    tr1.Cells.Add(cell13);

                    TableRow tr2 = new TableRow();//创建第三行

                    TableCell cell21 = new TableCell();//创建单元格,也就是第一列

                    cell21.Text = ;//设置单元格内的文本

                    tr2.Cells.Add(cell21);//添加到行中

                    TableCell cell22 = new TableCell();//创建第二列

                    cell22.Text = 内容: + (j + 1);//设置单元格内的文本

                    tr2.Cells.Add(cell22);//添加到行中

                    TableCell cell23 = new TableCell();//创建第三列

                    TextBox txtVote2 = new TextBox();

                    txtVote2.ID = txtContent + j;

                    txtVote2.Enabled = true;

                    txtVote2.TextMode = System.Web.UI.WebControls.TextBoxMode.MultiLine;

                    txtVote2.Attributes.Add(TextMode, MultiLine);

                    txtVote2.CausesValidation = true;

                    txtVote2.Width = 300;

                    txtVote2.Height = 150;

                    cell23.Controls.Add(txtVote2);

                    tr2.Cells.Add(cell23);

                    tb.Rows.Add(tr);//添加到表格中

                    tb.Rows.Add(tr1);//添加到表格中

                    tb.Rows.Add(tr2);//添加到表格中

                    ////////end//////新建一个表格

                    cell.Controls.Add(tb);//添加到表格中

                    row.Cells.Add(cell);//添加到表格中

                    table.Rows.Add(row);//添加到表格中

                }

                //txtJiaoCheng

            } this.PlaceHolder1.Controls.Add(table);//输出控件

如果你装的是帝国cms一键安装包的话,它的mysql数据库用户名一般是root,密码为空 ,如果要填mysql数据库地址的话,一般填localhost或者127.0.0.1都行。这里有一键安装包的地址

猜你喜欢