• 大小: 5.38M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-25
  • 语言: 其他
  • 标签: 其他  

资源简介

test.rar

资源截图

代码片段和文件信息

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;

public partial class admin : System.Web.UI.Page
{
    protected void Page_Load(object sender EventArgs e)
    {
        if (Roles.IsUserInRole(“admin“))
        {
            Label2.Text = Membership.GetNumberOfUsersOnline().ToString();
            Page.RegisterStartupscript(“200905161525“ “ript>page1.style.display=‘‘;ript>“);
        }
        else
        {
            Page.RegisterClientscriptBlock(“200905161526“ “ript>error();ript>“);
        }
    } 
    protected void Button1_Click(object sender EventArgs e)
    {
        Roles.CreateRole(TextBox1.Text);
        db.zx_sql(“insert  into bumen (bumen) values=‘“ + DropDownList1.SelectedValue + “‘“);
        Response.Redirect(“admin.aspx“);
    }
    protected void Button2_Click(object sender EventArgs e)
    {
        Roles.DeleteRole(DropDownList1.SelectedValuefalse);
        db.zx_sql(“delete from bumen where bumen=‘“ + DropDownList1.SelectedValue + “‘“);
        Response.Redirect(“admin.aspx“);
    }
    protected void Button6_Click(object sender EventArgs e)
    {
        Roles.AddUsersToRole(Roles.GetUsersInRole(DropDownList2.SelectedValue) DropDownList3.SelectedValue);
    }
    protected void GridView1_RowDeleted(object sender GridViewDeletedEventArgs e)
    {
        string temp = e.Values[“username“].ToString();
        if (Membership.GetUser(temp false) != null)
        {
            Membership.DeleteUser(temp);
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       9448  2009-05-16 17:16  test\admin.aspx

     文件       1800  2009-05-16 17:21  test\admin.aspx.cs

     文件       6709  2009-05-17 09:39  test\App_Code\db.cs

     文件       6241  2009-05-17 09:19  test\App_Code\dt.cs

     文件   10485760  2009-05-17 17:28  test\App_Data\ASPNETDB.MDF

     文件     516096  2009-05-17 17:28  test\App_Data\aspnetdb_log.LDF

     文件    2293760  2009-05-17 17:28  test\App_Data\Database.mdf

     文件    1114112  2009-05-17 17:28  test\App_Data\Database_log.LDF

     文件          0  2009-05-02 19:32  test\App_Data\NeatUpload_Temp\03d49d8222d6430195fb1086706645a6.config

     文件          0  2009-05-02 19:32  test\App_Data\NeatUpload_Temp\043ff887d79a4022ba845ed6b6de765b.config

     文件     510511  2009-05-02 19:24  test\App_Data\NeatUpload_Temp\054d023e945e49cea98e7f0f8c5ea5b7.config

     文件          0  2009-05-02 19:32  test\App_Data\NeatUpload_Temp\10e1daa1771445d08a82fc78a8641785.config

     文件          0  2009-05-02 19:41  test\App_Data\NeatUpload_Temp\377df2663ada4830a070f68fd7338b66.config

     文件          0  2009-05-02 19:24  test\App_Data\NeatUpload_Temp\432457923b144d7ab948c2998fa765f5.config

     文件          0  2009-05-02 19:06  test\App_Data\NeatUpload_Temp\4be4cdaf782949acb8750c9effe5cff1.config

     文件          0  2009-05-02 19:06  test\App_Data\NeatUpload_Temp\6879aecc562c42fa88587ec9e3a1b375.config

     文件          0  2009-05-02 19:06  test\App_Data\NeatUpload_Temp\7fd816947ff9488cb2119690c26761f8.config

     文件          0  2009-05-02 19:32  test\App_Data\NeatUpload_Temp\9c6961beff5d49d59db4ba8b423461ab.config

     文件          0  2009-05-02 19:24  test\App_Data\NeatUpload_Temp\9ff644ce56ae4d9cb4b7aa24129b935e.config

     文件    1661353  2009-05-02 19:41  test\App_Data\NeatUpload_Temp\a3e8a0345ade4bd0bf14f15a45f37cfa.config

     文件          0  2009-05-02 19:41  test\App_Data\NeatUpload_Temp\a75c4eab889e476994c38544522a1864.config

     文件          0  2009-05-02 19:06  test\App_Data\NeatUpload_Temp\bf162ed0072a4ab8918bd335434f267e.config

     文件          0  2009-05-02 19:41  test\App_Data\NeatUpload_Temp\c04de679b0e7432aa292951c0669daee.config

     文件          0  2009-05-02 19:24  test\App_Data\NeatUpload_Temp\d970b6fecbf64304b1723db3daa2ab49.config

     文件     510511  2009-05-02 19:06  test\App_Data\NeatUpload_Temp\daa979673a8f4c1c96f498c24b1f5f14.config

     文件          0  2009-05-02 19:24  test\App_Data\NeatUpload_Temp\e3f0d45ffa8a4f61819a9d84ac0e6ded.config

     文件      43418  2009-05-02 19:32  test\App_Data\NeatUpload_Temp\f19a8724df86418f9dd9070af4af09ec.config

     文件        752  2009-05-16 23:29  test\App_Themes\button\SkinFile.skin

     文件       3010  2009-05-16 20:55  test\App_Themes\button\styleSheet.css

     文件        399  2009-04-20 11:57  test\BBS.aspx

............此处省略213个文件信息

评论

共有 条评论