-
大小: 1.52MB文件類型: .rar金幣: 2下載: 0 次發布日期: 2023-09-21
- 語言: ASP
- 標簽: Silverlight??webservice??大文件??進度條??
資源簡介
1:服務器端采用webservice;
2:SilverLight端可同時選擇多個文件;
3:顯示每個文件的上傳進度;
4:采用SilverLight3
詳細說明:http://blog.csdn.net/luminji/archive/2009/12/11/4987539.aspx

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Net;
using?System.Windows;
using?System.Windows.Controls;
using?System.Windows.Documents;
using?System.Windows.Input;
using?System.Windows.Media;
using?System.Windows.Media.Animation;
using?System.Windows.Shapes;
namespace?SilverlightApplication6
{
????public?partial?class?App?:?Application
????{
????????public?App()
????????{
????????????this.Startup?+=?this.Application_Startup;
????????????this.Exit?+=?this.Application_Exit;
????????????this.UnhandledException?+=?this.Application_UnhandledException;
????????????InitializeComponent();
????????}
????????private?void?Application_Startup(object?sender?StartupEventArgs?e)
????????{
????????????this.RootVisual?=?new?MainPage();
????????}
????????private?void?Application_Exit(object?sender?EventArgs?e)
????????{
????????}
????????private?void?Application_UnhandledException(object?sender?ApplicationUnhandledExceptionEventArgs?e)
????????{
????????????//?如果應用程序是在調試器外運行的,則使用瀏覽器的
????????????//?異常機制報告該異常。在?IE?上,將在狀態欄中用一個?
????????????//?黃色警報圖標來顯示該異常,而?Firefox?則會顯示一個腳本錯誤。
????????????if?(!System.Diagnostics.Debugger.IsAttached)
????????????{
????????????????//?注意:?這使應用程序可以在已引發異常但尚未處理該異常的情況下
????????????????//?繼續運行。?
????????????????//?對于生產應用程序,此錯誤處理應替換為向網站報告錯誤
????????????????//?并停止應用程序。
????????????????e.Handled?=?true;
????????????????Deployment.Current.Dispatcher.BeginInvoke(delegate?{?ReportErrorToDOM(e);?});
????????????}
????????}
????????private?void?ReportErrorToDOM(ApplicationUnhandledExceptionEventArgs?e)
????????{
????????????try
????????????{
????????????????string?errorMsg?=?e.Exceptionobject.Message?+?e.Exceptionobject.StackTrace;
????????????????errorMsg?=?errorMsg.Replace(‘“‘?‘\‘‘).Replace(“\r\n“?@“\n“);
????????????????System.Windows.Browser.HtmlPage.Window.Eval(“throw?new?Error(\“Unhandled?Error?in?Silverlight?Application?“?+?errorMsg?+?“\“);“);
????????????}
????????????catch?(Exception)
????????????{
????????????}
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????..A..H.?????58880??2009-12-11?17:43??SilverlightApplication6.suo
?????文件????????306??2009-12-10?09:49??SilverlightApplication6\App.xaml
?????文件???????2359??2009-12-10?09:49??SilverlightApplication6\App.xaml.cs
?????文件???????1324??2009-12-10?10:31??SilverlightApplication6\Bin\Debug\AppManifest.xaml
?????文件??????18336??2009-07-21?16:43??SilverlightApplication6\Bin\Debug\de\System.ComponentModel.DataAnnotations.resources.dll
?????文件??????38808??2009-07-21?16:43??SilverlightApplication6\Bin\Debug\de\System.Windows.Controls.Data.Input.resources.dll
?????文件?????116608??2009-07-21?16:43??SilverlightApplication6\Bin\Debug\de\System.Windows.Controls.Data.resources.dll
?????文件?????173936??2009-07-21?16:43??SilverlightApplication6\Bin\Debug\de\System.Windows.Controls.resources.dll
?????文件??????11624??2009-07-21?16:43??SilverlightApplication6\Bin\Debug\de\System.Windows.Data.resources.dll
?????目錄??????????0??2009-12-10?10:31??SilverlightApplication6\Bin\Debug\de
?????文件??????17824??2009-07-21?16:43??SilverlightApplication6\Bin\Debug\es\System.ComponentModel.DataAnnotations.resources.dll
?????文件??????38792??2009-07-21?16:43??SilverlightApplication6\Bin\Debug\es\System.Windows.Controls.Data.Input.resources.dll
?????文件?????116608??2009-07-21?16:43??SilverlightApplication6\Bin\Debug\es\System.Windows.Controls.Data.resources.dll
?????文件?????173936??2009-07-21?16:43??SilverlightApplication6\Bin\Debug\es\System.Windows.Controls.resources.dll
?????文件??????11640??2009-07-21?16:43??SilverlightApplication6\Bin\Debug\es\System.Windows.Data.resources.dll
?????目錄??????????0??2009-12-10?10:31??SilverlightApplication6\Bin\Debug\es
?????文件??????18336??2009-07-21?16:43??SilverlightApplication6\Bin\Debug\fr\System.ComponentModel.DataAnnotations.resources.dll
?????文件??????38808??2009-07-21?16:43??SilverlightApplication6\Bin\Debug\fr\System.Windows.Controls.Data.Input.resources.dll
?????文件?????116616??2009-07-21?16:43??SilverlightApplication6\Bin\Debug\fr\System.Windows.Controls.Data.resources.dll
?????文件?????173952??2009-07-21?16:43??SilverlightApplication6\Bin\Debug\fr\System.Windows.Controls.resources.dll
?????文件??????11640??2009-07-21?16:43??SilverlightApplication6\Bin\Debug\fr\System.Windows.Data.resources.dll
?????目錄??????????0??2009-12-10?10:31??SilverlightApplication6\Bin\Debug\fr
?????文件??????17824??2009-07-21?16:43??SilverlightApplication6\Bin\Debug\it\System.ComponentModel.DataAnnotations.resources.dll
?????文件??????38792??2009-07-21?16:43??SilverlightApplication6\Bin\Debug\it\System.Windows.Controls.Data.Input.resources.dll
?????文件?????116608??2009-07-21?16:43??SilverlightApplication6\Bin\Debug\it\System.Windows.Controls.Data.resources.dll
?????文件?????173936??2009-07-21?16:43??SilverlightApplication6\Bin\Debug\it\System.Windows.Controls.resources.dll
?????文件??????11624??2009-07-21?16:43??SilverlightApplication6\Bin\Debug\it\System.Windows.Data.resources.dll
?????目錄??????????0??2009-12-10?10:31??SilverlightApplication6\Bin\Debug\it
?????文件??????18832??2009-07-21?16:43??SilverlightApplication6\Bin\Debug\ja\System.ComponentModel.DataAnnotations.resources.dll
?????文件??????38808??2009-07-21?16:43??SilverlightApplication6\Bin\Debug\ja\System.Windows.Controls.Data.Input.resources.dll
............此處省略101個文件信息
- 上一篇:一個簡單的在線考試系統
- 下一篇:Idea Pad Y430 開啟VT 工具
評論
共有 條評論