-
大小: 9.15MB文件類型: .zip金幣: 2下載: 0 次發布日期: 2023-11-03
- 語言: Html/CSS
- 標簽: dhtmlx??dhtmlx5??dhtmlx5.0.2??
資源簡介
dhtmlxSuite是一個用JavaScript建立的富客戶端開發框架。它是一個JavaScript UI庫,用于建立一個完整的具有Ajax能力的前臺組件。用戶可以使用它建立一個企業級的跨瀏覽器Web應用和移動應用程序,它能提供優秀的性能和更豐富的用戶體驗。

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Web;
namespace?dhtmlxForm
{
????///?
????///?Summary?description?for?dhtmlxform_item_upload
????///?
????public?class?dhtmlxform_item_upload?:?IHttpHandler
????{
????????public?void?ProcessRequest(HttpContext?context)
????????{
????????????/*
????????????HTML5/FLASH?MODE
????????????(MODE?will?detected?on?client?side?automaticaly.?Working?mode?will?passed?to?server?as?GET?param?“mode“)
????????????response?format
????????????if?upload?was?good?you?need?to?specify?state=true?and?name?-?will?passed?in?form.send()?as?serverName?param
????????????{state:?‘true‘?name:?‘filename‘}
????????????*/
????????????string?filename?=?““;
????????????
????????????if?(context.Request[“mode“]?==?“html5“?||?context.Request[“mode“]?==?“flash“)?{???????????????
????????????filename?=?context.Request.Files[“file“].FileName;
????????????context.Response.ContentType?=?“text/json“;
????????????context.Response.Write(“{state:?true?name:‘“?+?filename.Replace(“‘““\\‘“)+“‘}“);
????????????}
????????????/*
????????????HTML4?MODE
????????????response?format:
????????????to?cancel?uploading
????????????{state:?‘cancelled‘}
????????????if?upload?was?good?you?need?to?specify?state=true?name?-?will?passed?in?form.send()?as?serverName?param?size?-?filesize?to?update?in?list
????????????{state:?‘true‘?name:?‘filename‘?size:?1234}
????????????*/
????????????if?(context.Request[“mode“]?==?“html4“)?{
???????????? ????context.Response.ContentType?=?“text/html“;
????????????if?(context.Request[“action“]?==?“cancel“)?{
????????????context.Response.Write(“{state:‘cancelled‘}“);
????????????}?else?{
????????????filename?=?context.Request.Files[“file“].FileName; ??? ?????????
?????????????context.Response.Write(“{state:?true?name:‘“?+?filename.Replace(“‘““\\‘“)+“‘?size:“?+?context.Request.Files[“file“].ContentLength+“}“);
????????????}
????????????}
????????????
????????}
????????public?bool?IsReusable
????????{
????????????get
????????????{
????????????????return?false;
????????????}
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2016-07-12?11:51??codeba
?????文件??????231575??2016-07-12?11:51??codeba
?????文件?????1551735??2016-07-12?11:51??codeba
?????文件???????41963??2016-07-12?11:51??codeba
?????目錄???????????0??2016-07-12?11:51??codeba
?????文件???????23436??2016-07-12?11:51??codeba
?????文件???????26351??2016-07-12?11:51??codeba
?????文件????????3646??2016-07-12?11:51??codeba
?????目錄???????????0??2016-07-12?11:51??codeba
?????目錄???????????0??2016-07-12?11:51??codeba
?????目錄???????????0??2016-07-12?11:51??codeba
?????文件???????35319??2016-07-12?11:51??codeba
?????文件???????27470??2016-07-12?11:51??codeba
?????文件??????????52??2016-07-12?11:51??codeba
?????目錄???????????0??2016-07-12?11:51??codeba
?????文件???????70807??2016-07-12?11:51??codeba
?????文件??????366270??2016-07-12?11:51??codeba
?????文件??????142072??2016-07-12?11:51??codeba
?????文件???????83588??2016-07-12?11:51??codeba
?????文件???????66624??2016-07-12?11:51??codeba
?????文件??????109688??2016-07-12?11:51??codeba
?????目錄???????????0??2016-07-12?11:51??codeba
?????文件?????????747??2016-07-12?11:51??codeba
?????文件?????????610??2016-07-12?11:51??codeba
?????文件?????????464??2016-07-12?11:51??codeba
?????文件?????????125??2016-07-12?11:51??codeba
?????文件?????????482??2016-07-12?11:51??codeba
?????文件???????44556??2016-07-12?11:51??codeba
?????文件?????????383??2016-07-12?11:51??codeba
?????文件?????????396??2016-07-12?11:51??codeba
?????文件?????????952??2016-07-12?11:51??codeba
............此處省略5037個文件信息
評論
共有 條評論