91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

里面有詳細(xì)的源代碼,可以直接在電腦上運(yùn)行

資源截圖

代碼片段和文件信息

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;
using?System.Data.SqlClient;
using?System.Data;

using?System.IO;
public?partial?class?Default2?:?System.Web.UI.Page
{
????protected?void?Page_Load(object?sender?EventArgs?e)
????{

????}

????///?
????///?上傳文件方法
????///?

????///?獲取上傳文件路徑
????protected?string?uploadFile()
????{

????????string?fileUrl?=?““;
????????if?(this.fuFile.HasFile)
????????{
????????????//存儲(chǔ)路徑
????????????string?strFilePath?=?System.Web.HttpContext.Current.Server.MapPath(“uploadfile\\“);
????????????//string?strFilePath?=?“~//uploadfile//“;
????????????//判斷文件夾是否存在
????????????if?(!Directory.Exists(strFilePath))
????????????{
????????????????//文件夾不存在,創(chuàng)建文件夾
????????????????Directory.CreateDirectory(strFilePath);
????????????}
????????????//上傳大小單位M?
????????????string?strFileExt?=?“100“;
????????????int?strFileSize?=?Convert.ToInt32(strFileExt)?*?1024?*?1024;
????????????//用這一行代碼獲得擴(kuò)展名時(shí),會(huì)多加一個(gè)點(diǎn),比如.png,所以要把這個(gè)點(diǎn)去掉
????????????string?newExt?=?Path.GetExtension(this.fuFile.FileName).Replace(“.“?““);
????????????try
????????????{
????????????????//檢查文件大小
????????????????if?(this.fuFile.PostedFile.ContentLength?>?strFileSize)
????????????????{
????????????????????Response.Write(“ript>alert(‘上傳文件大小超過限制!‘)ript>“);
????????????????????return?fileUrl;
????????????????}
????????????????//檢查文件類型PostedFile.ContentType進(jìn)行檢查,確保不能上傳asp之類的木馬
????????????????string?allowFileMIME?=?“pptaviwmvdocdocxpptxpdfrarzipmp3flv“;
????????????????if?(allowFileMIME.IndexOf(newExt)?==?-1)
????????????????{
????????????????????Response.Write(“ript>alert(‘您只能傳送doc/ppt/wmv/avi/docx/pptx/rar/zip/mp3類型文件!‘);ript>“);
????????????????????return?fileUrl;
????????????????}
????????????????//按當(dāng)前時(shí)間重命名文件,以免上傳同名文件???
????????????????System.DateTime?dt?=?DateTime.Now;
????????????????string?newName?=?dt.Year.ToString();
????????????????newName?+=?dt.Month.ToString();
????????????????newName?+=?dt.Day.ToString();
????????????????newName?+=?dt.Hour.ToString();
????????????????newName?+=?dt.Minute.ToString();
????????????????newName?+=?dt.Second.ToString();
????????????????newName?+=?“.“;
????????????????newName?+=?newExt;
????????????????this.fuFile.SaveAs(strFilePath?+?newName);
????????????????fileUrl?=?newName;

????????????????return?fileUrl;
????????????}
????????????catch?(Exception?ex)
????????????{
????????????????Response.Write(“ript>alert(‘文件上傳失敗!‘)ript>“);
????????????????return?fileUrl;
????????????}
????????}
????????else
????????{
????????????Response.Write(“ript>alert(‘您還沒有選擇上傳的文件或上傳文件的內(nèi)容為空!‘)ript>“);
????????????return?fileUrl;
????????}
????}


?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件????3437807??2012-02-21?15:05??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\錄像\錄像.exe

?????文件???????8659??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\App_Code\Common.cs

?????文件???????3901??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\App_Code\CookieHelper.cs

?????文件???????3791??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\App_Code\CutString.cs

?????文件???????6959??2012-05-13?11:10??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\App_Code\DB.cs

?????文件???????6210??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\App_Code\EncryptHelper.cs

?????文件???????7409??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\App_Code\javascriptHelper.cs

?????文件????3145728??2012-05-13?14:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\App_Data\DataDB.mdf

?????文件?????110592??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\Bin\AspNetPager.dll

?????文件?????????74??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\Bin\AspNetPager.dll.refresh

?????文件??????36864??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\Bin\FredCK.FCKeditorV2.dll

?????文件????????144??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\Bin\FredCK.FCKeditorV2.dll.refresh

?????文件??????73728??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\Bin\Vincent.AutoAuthCode.dll

?????文件????????106??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\Bin\Vincent.AutoAuthCode.dll.refresh

?????文件???????3802??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\buzhi.aspx

?????文件???????4549??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\buzhi.aspx.cs

?????文件???????9339??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\Com_Admin\Add_HuiYuan.aspx

?????文件???????1737??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\Com_Admin\Add_HuiYuan.aspx.cs

?????文件????????539??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\Com_Admin\css\css.css

?????文件???????1302??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\Com_Admin\css\FlashPic.css

?????文件????????701??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\Com_Admin\css\grid.css

?????文件????????158??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\Com_Admin\css\login.css

?????文件???????3091??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\Com_Admin\css\style.css

?????文件???????1689??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\Com_Admin\css\style_left.css

?????文件????????341??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\Com_Admin\images\11.gif

?????文件????????215??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\Com_Admin\images\22.gif

?????文件????????337??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\Com_Admin\images\33.gif

?????文件???????1849??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\Com_Admin\images\ajax-loader.gif

?????文件????????306??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\Com_Admin\images\back_jt.gif

?????文件????????273??2012-04-19?16:59??022ASP.NET學(xué)生作業(yè)管理系統(tǒng)\程序\Com_Admin\images\bg.gif

............此處省略671個(gè)文件信息

評(píng)論

共有 條評(píng)論

相關(guān)資源