asp.net 新闻发布系统完美版(数据库+代码)


新闻发布系统,div+css+asp.net+javascript.... 系统完整,代码齐全,包括数据库,有需要的拿去好了
资源截图
代码片段和文件信息
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.SqlClient;
using System.IO;

public partial class AddNews : System.Web.UI.Page
{
    protected void Page_Load(object sender EventArgs e)
    {        
    }
    protected void ImageButton1_Click(object sender ImageClickEventArgs e)
    {
        if (this.CheckBox1.Checked == true)              //添加新闻
        {
            if (this.imgfile.Value != ““)
            {
                string path = ““;                //上传文件 
                string extension = Path.GetExtension(imgfile.PostedFile.FileName).ToLower();
                string fileName = DateTime.Now.ToString(“yyyyMMddhhmmss“);
                path = Server.MapPath(“.“) + “../imgs/“ + fileName + extension;
                imgfile.PostedFile.SaveAs(path);
                this.Label2.Text = “上传成功!“;
                //this.Response.Write(“ript language=javascript>alert(‘上传成功!...⊙∫⊙‘)ript>“);                
                path = “http://localhost/News_System/imgs/“ + fileName + extension;
                string name = this.TextBox1.Text;
                string type = this.DropDownList1.SelectedValue;
                string bj = this.TextBox3.Text;
                string author = this.TextBox4.Text;
                string pic = path;
                string nr = this.FreeTextBox1.Text;
                string ly = this.TextBox2.Text;
                string wm = this.TextBox5.Text;
                string ht = this.TextBox6.Text;
                if (NewsBus.AddNews(name type bj author pic nr ly wm ht))
                {
                    this.Label1.Text = “录入成功!“;
                }
                else
                {                    
                    this.Label1.Text = “录入失败!“;
                }
            }
            else
            {
                this.Label2.Text = “录入失败,请选择图片!“;
            }
        }
        else
        {
            string name = this.TextBox1.Text;
            string type = this.DropDownList1.SelectedValue;
            string bj = this.TextBox3.Text;
            string author = this.TextBox4.Text;
            string nr = this.FreeTextBox1.Text;
            string ly = this.TextBox2.Text;
            string wm = this.TextBox5.Text;
            string ht = this.TextBox6.Text;
            if (NewsBus.AdNews(name type bj author nr ly wm ht))
            {
                this.Label1.Text = “录入成功!“;
            }
            else
            {
                this.Label1.Text = “录入失败!“;
            }
        }
    }
    protected void ImageButton2_Click(object sender ImageClickEventArgs e)
    {
       Response.Write(“ript language=javascript>history.go(-2);ript>“);
    }
 

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

     文件      10426  2009-05-22 18:07  asp.net新闻发布系统News_SystemAddNews.aspx

     文件       3751  2009-05-29 18:54  asp.net新闻发布系统News_SystemAddNews.aspx.cs

     文件       1506  2009-05-24 09:20  asp.net新闻发布系统News_SystemApp_CodeAdminDB.cs

     文件      17761  2009-05-29 15:29  asp.net新闻发布系统News_SystemApp_CodeNewsBus.cs

     文件       1688  2009-05-22 14:02  asp.net新闻发布系统News_SystemApp_CodeNewsDB.cs

     文件       2293  2009-05-27 23:24  asp.net新闻发布系统News_SystemApp_CodePubWays.cs

     文件    3407872  2009-06-16 14:32  asp.net新闻发布系统News_SystemApp_DataNewsNetwork_Data.MDF

     文件    3932160  2009-06-16 14:32  asp.net新闻发布系统News_SystemApp_DataNewsNetwork_Log.LDF

     文件      10489  2009-05-24 14:09  asp.net新闻发布系统News_SystemBackHome.aspx

     文件       9726  2009-05-24 14:18  asp.net新闻发布系统News_SystemBackHome.aspx.cs

     文件     159744  2009-05-20 19:44  asp.net新闻发布系统News_SystemBinFreeTextBox.dll

     文件        318  2009-05-20 19:44  asp.net新闻发布系统News_SystemBinFreeTextBox.dll.refresh

     文件        823  2009-05-24 13:41  asp.net新闻发布系统News_SystemCssh_back.css

     文件       2185  2009-05-21 13:36  asp.net新闻发布系统News_SystemCssh_users.css

     文件       4734  2009-05-29 17:05  asp.net新闻发布系统News_SystemCssq_main.css

     文件       3969  2009-05-29 15:35  asp.net新闻发布系统News_SystemCssq_more_sear.css

     文件       2614  2009-05-19 18:15  asp.net新闻发布系统News_SystemCssq_show.css

     文件       1619  2009-05-19 19:33  asp.net新闻发布系统News_SystemCssq_users.css

     文件      26949  2009-05-28 11:08  asp.net新闻发布系统News_SystemFlashmore_bom.swf

     文件       9909  2009-01-13 15:37  asp.net新闻发布系统News_SystemFlashpicc.swf

     文件      33375  2009-04-16 15:15  asp.net新闻发布系统News_SystemFlashserach_news.swf

     文件      30322  2009-03-10 08:54  asp.net新闻发布系统News_SystemFlashshow_new.swf

     文件       2657  2009-05-20 20:36  asp.net新闻发布系统News_Systemftb.colorpicker.aspx

     文件        977  2009-04-11 22:46  asp.net新闻发布系统News_Systemftb.colorpicker.aspx.cs

     文件       1733  2002-01-29 22:04  asp.net新闻发布系统News_Systemftb.colorpicker.aspx.resx

     文件      14832  2009-05-20 20:36  asp.net新闻发布系统News_Systemftb.imagegallery.aspx

     文件        979  2009-04-11 22:46  asp.net新闻发布系统News_Systemftb.imagegallery.aspx.cs

     文件       1733  2002-01-29 22:04  asp.net新闻发布系统News_Systemftb.imagegallery.aspx.resx

     文件       3689  2009-05-20 20:36  asp.net新闻发布系统News_Systemftb.inserttable.aspx

     文件        977  2009-04-11 22:46  asp.net新闻发布系统News_Systemftb.inserttable.aspx.cs

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

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

发表评论

评论列表(条)