• 大小: 5.12MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-25
  • 语言: C#
  • 标签: MVC  JQuary  测试  

资源简介

C#ASP_NET仿新浪微博客V2 本人收藏了3年的资源 现放出 都是总结了很多系统 软件项目实施过程中的经验的 慢慢积累的

资源截图

代码片段和文件信息

using System;
using System.Data;
using System.Configuration;
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;
using System.IO;
using System.xml;
using System.Text;

public partial class ControlProvinceCity : System.Web.UI.UserControl
{
    protected void Page_Load(object sender EventArgs e)
    {
        if (!IsPostBack)
        {
            BindProvince(DDLProvince DDLCity);
        }
    }
    protected void DDLProvince_SelectedIndexChanged(object sender EventArgs e)
    {
        BindCity(DDLProvinceDDLCity);
    }
    public void BindProvince(DropDownList ddlProvince DropDownList ddlCity)
    {

        DataSet dsProvince = ReadData();
        ddlProvince.DataSource = dsProvince;
        ddlProvince.DataTextField = “Province“;
        ddlProvince.DataBind();
        BindCity(ddlProvince ddlCity);

    }
    public void BindCity(DropDownList ddlProvince DropDownList ddlCity)
    {
        string str = ddlProvince.SelectedItem.Text;
        DataSet dsCitys = ReadData();
        DataRow[] drArr = dsCitys.Tables[0].Select(“Province=‘“ + str + “‘“);
        string strCity = drArr[0][“City“].ToString();
        StringReader sr = new StringReader(strCity);
        DataSet dsCity = new DataSet(“dsCity“);
        dsCity.Readxml(sr);
        ddlCity.DataSource = dsCity.Tables[0].DefaultView;
        ddlCity.DataTextField = “City“;
        ddlCity.DataValueField = “City“;
        ddlCity.DataBind();
    }

    private static DataSet ReadData()
    {
        DataSet ds = new DataSet();
        ds.Readxml(HttpContext.Current.Server.MapPath(“./Provinces.xml“));
        return ds;
    }
    
}

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

     文件      11701  2010-05-15 10:15  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\App_Code\CommonClass.cs

     文件    1803810  2011-11-18 13:01  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\asp.net技术精粹.chm

     文件       3504  2010-05-05 13:57  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\BackStage\Backstage.master

     文件        299  2010-05-05 10:43  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\BackStage\Backstage.master.cs

     文件       4175  2010-05-07 07:34  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\BackStage\BackStageStatistics.aspx

     文件        467  2010-05-07 10:24  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\BackStage\BackStageStatistics.aspx.cs

     文件        371  2010-05-05 11:09  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\BackStage\CommentSearch.aspx

     文件        333  2010-05-05 14:07  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\BackStage\CommentSearch.aspx.cs

     文件        361  2010-05-05 13:41  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\BackStage\HotTopic.aspx

     文件        328  2010-05-05 14:07  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\BackStage\HotTopic.aspx.cs

     文件        379  2010-05-05 13:44  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\BackStage\ManagementSetting.aspx

     文件        337  2010-05-05 14:07  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\BackStage\ManagementSetting.aspx.cs

     文件       2822  2010-05-07 12:40  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\BackStage\MessageSearch.aspx

     文件       1407  2010-05-07 12:37  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\BackStage\MessageSearch.aspx.cs

     文件        373  2010-05-05 13:43  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\BackStage\PopularityUser.aspx

     文件        334  2010-05-05 14:07  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\BackStage\PopularityUser.aspx.cs

     文件        367  2010-05-05 11:09  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\BackStage\TopicSearch.aspx

     文件        331  2010-05-05 14:08  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\BackStage\TopicSearch.aspx.cs

     文件       3523  2010-05-07 12:02  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\BackStage\UserSearch.aspx

     文件       1671  2010-05-07 12:16  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\BackStage\UserSearch.aspx.cs

     文件      45056  2008-07-26 14:53  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\Bin\FredCK.FCKeditorV2.dll

     文件      85504  2008-07-26 14:53  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\Bin\FredCK.FCKeditorV2.pdb

     文件      69632  2009-10-12 12:02  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\Bin\Vincent.AutoAuthCode.dll

     文件      44544  2009-10-12 12:02  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\Bin\Vincent.AutoAuthCode.pdb

     文件      11340  2009-10-12 12:02  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\Bin\Vincent.AutoAuthCode.xml

     文件        656  2010-05-16 18:45  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\ControlProvinceCity.ascx

     文件       1850  2010-05-04 15:16  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\ControlProvinceCity.ascx.cs

     文件       8326  2010-05-18 15:55  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\Default.aspx

     文件       1113  2010-05-14 10:37  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\Default.aspx.cs

     文件        236  2007-04-07 16:52  C#ASP.NET仿新浪微博客V2\ASP TinyBlog\fckeditor\editor\css\behaviors\disablehandles.htc

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

评论

共有 条评论

相关资源