
silverlight
nivana999
java,c/c++,python,linux
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Silverlight POST请求并返回数据后保存文件
需要注意的地方:1.HttpWebResponse 取Headers 的问题:HttpWebResponse response = state as HttpWebResponse; string result_code = response.Headers["RESULT_CODE"];以上代码需要在应用的第一个构造函数中添加代码bool registerResult =原创 2011-11-08 13:30:10 · 3184 阅读 · 0 评论 -
Silverlight HttpUtil 封装Post调用
using System;using System.Net;using System.Windows;using System.Windows.Controls;using System.Windows.Documents;using System.Windows.Ink;using System.Windows.Input;using System.Windows.M原创 2011-11-27 15:35:11 · 2791 阅读 · 2 评论 -
Silverlight使用HttpWebRequest和HttpWebResponse时发生System.Security.SecurityException: 安全性错误
异常代码发生在第二句HttpWebRequest request = result.AsyncState as HttpWebRequest;WebResponse response = request.EndGetResponse(result);提示信息:System.Security.SecurityException ---> System.Secu原创 2011-11-05 12:23:57 · 5446 阅读 · 3 评论 -
Silverlight 中使用 zip
Silverlight除了从资源文件加载文件进行UnZip之外,并不支持开放的Zip和UnZip操作。如果需要进行Zip和UnZip操作需要使用第三方库SharpZipLib,其提供了sl的版本,目前支持sl 3.0及其以上的sl。可参见:http://slsharpziplib.codeplex.com/releases/view/50561,以下是pmias中用到的一段代码,贴此以作备用。没有原创 2011-11-08 13:08:46 · 1559 阅读 · 0 评论 -
在Silverlight中使用HttpWebResponse 获取Header信息
在Silverlight 3 中使用HttpWebResponse获取header代码:HttpWebResponse response = state as HttpWebResponse;string para = response.Headers["PARA"];第二句发生异常:System.NotImplementedException: 该类没有实现这一属性。原创 2011-11-05 14:39:28 · 2193 阅读 · 0 评论