• 大小: 10.3MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-06
  • 语言: C#
  • 标签: ASP.NET  站源码  

资源简介

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;

public partial class _Default : System.Web.UI.Page
{
    public string sql;

    protected void Page_Load(object sender EventArgs e)
    {
        if (!IsPostBack)
        {
            sql = “select top 6 idtitleaddtime from allgonggao order by id desc“;
            getdata(sql);
            sql = “select top 6 * from yonghuzhuce order by id desc“;
            getdata2(sql);
            sql = “select top 6 * from pinglun order by id desc“;
            getdata3(sql);
        }
    }
    private void getdata(string sql)
    {
        DataSet result = new DataSet();
        result = new Class1().hsggetdata(sql);
        if (result != null)
        {
            if (result.Tables[0].Rows.Count > 0)
            {
                DataGrid1.DataSource = result.Tables[0];
                DataGrid1.DataBind();
            }
            else
            {
                DataGrid1.DataSource = null;
                DataGrid1.DataBind();
            }
        }
    }
    private void getdata2(string sql)
    {
        DataSet result = new DataSet();
        result = new Class1().hsggetdata(sql);
        if (result != null)
        {
            if (result.Tables[0].Rows.Count > 0)
            {
                DataGrid2.DataSource = result.Tables[0];
                DataGrid2.DataBind();
            }
            else
            {
                DataGrid2.DataSource = null;
                DataGrid2.DataBind();
            }
        }
    }
    private void getdata3(string sql)
    {
        DataSet result = new DataSet();
        result = new Class1().hsggetdata(sql);
        if (result != null)
        {
            if (result.Tables[0].Rows.Count > 0)
            {
                DataGrid3.DataSource = result.Tables[0];
                DataGrid3.DataBind();
            }
            else
            {
                DataGrid3.DataSource = null;
                DataGrid3.DataBind();
            }
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-09-02 17:00  288ASP.NET个人网站\
     目录           0  2013-09-09 17:31  288ASP.NET个人网站\ASP.NET个人网站\
     目录           0  2013-09-02 16:40  288ASP.NET个人网站\ASP.NET个人网站\App_Code\
     文件        3704  2009-04-07 23:55  288ASP.NET个人网站\ASP.NET个人网站\App_Code\Class1.cs
     文件        1049  2008-04-21 02:28  288ASP.NET个人网站\ASP.NET个人网站\App_Code\DB.cs
     文件        8269  2007-06-04 11:25  288ASP.NET个人网站\ASP.NET个人网站\App_Code\Database.cs
     文件         756  2006-09-11 17:47  288ASP.NET个人网站\ASP.NET个人网站\App_Code\StrRegExp.cs
     文件        1354  2007-06-06 10:32  288ASP.NET个人网站\ASP.NET个人网站\App_Code\VCUtilities.cs
     文件         837  2009-04-07 23:56  288ASP.NET个人网站\ASP.NET个人网站\App_Code\book.cs
     文件        2382  2006-09-10 16:48  288ASP.NET个人网站\ASP.NET个人网站\App_Code\saveinfo.cs
     文件         120  2013-01-02 13:25  288ASP.NET个人网站\ASP.NET个人网站\Default.aspx
     文件        2295  2011-03-17 18:39  288ASP.NET个人网站\ASP.NET个人网站\Default.aspx.cs
     文件        1318  2007-08-08 17:14  288ASP.NET个人网站\ASP.NET个人网站\styleSheet.css
     文件        1789  2011-03-17 14:44  288ASP.NET个人网站\ASP.NET个人网站\Web.Config
     目录           0  2013-09-02 16:40  288ASP.NET个人网站\ASP.NET个人网站\bin\
     文件      229376  2007-06-07 12:14  288ASP.NET个人网站\ASP.NET个人网站\bin\ActiproSoftware.CodeHighlighter.Net20.dll
     文件      229376  2007-06-07 12:10  288ASP.NET个人网站\ASP.NET个人网站\bin\ActiproSoftware.Shared.Net20.dll
     文件       61440  2007-01-12 00:56  288ASP.NET个人网站\ASP.NET个人网站\bin\AspNetPager.dll
     文件          58  2007-06-04 09:24  288ASP.NET个人网站\ASP.NET个人网站\bin\AspNetPager.dll.refresh
     文件       17408  2007-06-07 12:14  288ASP.NET个人网站\ASP.NET个人网站\bin\CodeHighlighterTest.dll
     文件      198656  2007-12-22 23:09  288ASP.NET个人网站\ASP.NET个人网站\bin\DotNetTextBox.dll
     文件      143360  2007-06-06 15:27  288ASP.NET个人网站\ASP.NET个人网站\bin\Socut.Data.dll
     文件          84  2007-06-04 11:23  288ASP.NET个人网站\ASP.NET个人网站\bin\Socut.Data.dll.refresh
     文件         867  2010-10-19 18:31  288ASP.NET个人网站\ASP.NET个人网站\center.aspx
     目录           0  2013-09-02 16:40  288ASP.NET个人网站\ASP.NET个人网站\database\
     文件     1179648  2013-09-09 17:14  288ASP.NET个人网站\ASP.NET个人网站\database\netgerenwangqqxns_Data.MDF
     文件     1048576  2013-09-09 17:14  288ASP.NET个人网站\ASP.NET个人网站\database\netgerenwangqqxns_Log.LDF
     文件         439  2009-02-10 22:51  288ASP.NET个人网站\ASP.NET个人网站\delgg.aspx
     文件         777  2011-03-17 19:19  288ASP.NET个人网站\ASP.NET个人网站\delgg.aspx.cs
     文件         441  2009-03-23 01:27  288ASP.NET个人网站\ASP.NET个人网站\dellyb.aspx
     文件         629  2009-03-23 01:28  288ASP.NET个人网站\ASP.NET个人网站\dellyb.aspx.cs
............此处省略814个文件信息

评论

共有 条评论