班级网站源码


这是我刚学习asp.net的时候做的一个班级网站,或许与您有所交流
资源截图
代码片段和文件信息
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;
using System.Data.OleDb;
public partial class accept : System.Web.UI.Page
{
    public connection conn = new connection();
    protected void Page_Load(object sender EventArgs e)
    {
        if (Session[“name“] == null)
        {
            Response.Redirect(“error.htm“);
        }
        else
        {
            conn.sercher(DataList1 “select * from accept where ego=‘“ + Session[“name“] + “‘ or ego=‘sa‘ order by etime DESC“);
        }
    }

    protected void DataList1_ItemCommand(object source DataListCommandEventArgs e)
    {
        if (e.CommandName == “read“)
        {
            DataList1.SelectedIndex = e.Item.ItemIndex;
            conn.sercher(DataList1 “select * from accept where ego=‘“ + Session[“name“] + “‘ or ego=‘sa‘ order by etime DESC“);
        }
        if (e.CommandName == “close“)
        {
            DataList1.SelectedIndex = -1;
            conn.sercher(DataList1 “select * from accept where ego=‘“ + Session[“name“] + “‘ or ego=‘sa‘ order by etime DESC“);
        }
    }
    protected void DataList1_DeleteCommand(object source DataListCommandEventArgs e)
    {
        int id = (int)DataList1.DataKeys[e.Item.ItemIndex];
        conn.insert(“delete from accept where id=“+id+““);
        conn.sercher(DataList1 “select * from accept where ego=‘“ + Session[“name“] + “‘ or ego=‘sa‘ order by etime DESC“);
    }
}

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

     文件      14198  2008-06-20 01:20  InsertFlashclass.htm

    ..A.SH.      6144  2008-06-20 21:01  InsertFlashupfileThumbs.db

     文件      10255  2008-06-21 15:12  InsertFlashmessage.htm

     文件    1897860  2008-06-19 21:56  InsertFlashclass.swf

     文件        675  2008-06-19 22:44  InsertFlashlink.aspx.cs

     文件      10762  2008-06-20 00:07  InsertFlash
ewsfb.aspx

     文件       1695  2008-06-21 20:37  InsertFlashWeb.Config

     文件       7855  2008-06-20 00:07  InsertFlash
eadnews.aspx

     文件       1244  2008-07-13 23:14  InsertFlash
ewsfb.aspx.cs

     文件        730  2008-07-04 22:16  InsertFlashclassbbs.aspx

     文件        409  2008-06-19 21:05  InsertFlashclassbbs.aspx.cs

     文件        443  2008-06-19 21:05  InsertFlashmessage.aspx

     文件        408  2008-06-19 21:05  InsertFlashmessage.aspx.cs

     文件        135  2008-06-18 16:00  InsertFlashimagemz_topbg.gif

     文件       1489  2008-06-18 16:00  InsertFlashimagemz_top1.gif

     文件        828  2008-06-18 16:00  InsertFlashimagemz_kbg.gif

    ..A.SH.    158208  2008-07-21 09:44  InsertFlashimageThumbs.db

     文件       1200  2008-06-18 16:00  InsertFlashimagemz_k1.gif

     文件       1386  2008-06-18 16:00  InsertFlashimagemz_ka.gif

     文件       1219  2008-06-18 16:00  InsertFlashimagemz_k4.gif

     文件         87  2008-06-18 16:00  InsertFlashimagesz.gif

     文件        829  2008-06-18 16:00  InsertFlashimagemz_votebg.gif

     文件        986  2008-06-18 16:01  InsertFlashimagemz_vote1.gif

     文件       4584  2008-06-18 16:00  InsertFlashimagemz_05.gif

     文件       2041  2008-06-18 16:00  InsertFlashimagemz_bottom.gif

     文件      21158  2008-06-10 23:19  InsertFlashimage op.gif

     文件       1548  2008-06-18 16:00  InsertFlashimagemz_main1.gif

     文件       1192  2008-06-18 20:11  InsertFlashimagewzfb.gif

     文件       1200  2008-06-18 20:11  InsertFlashimagewzsy.gif

     文件       1263  2008-06-18 20:23  InsertFlashimagejgk.gif

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

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)