<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>旁观者 - 郑昀 - ASP.NET</title><link>http://blog.csdn.net/zhengyun_ustc/category/30537.aspx</link><description /><dc:language>zh-CN</dc:language><lastUpdateTime>Mon, 21 Apr 2008 11:53:00 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>郑昀</dc:creator><title>ASP.NET 2.0的异步页面刷新真给劲</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2006/08/08/1038104.aspx</link><pubDate>Tue, 08 Aug 2006 16:04:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2006/08/08/1038104.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/1038104.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2006/08/08/1038104.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/1038104.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1038104</trackback:ping><description>ASP.NET 2.0的异步页面刷新功能真得很酷，今天尝试用它解决我的一个应用问题，真是帮了大忙了。

我的页面要向后台的socket服务提交一个查询，首先这是一个可能长时间不返回的操作；其次为了拿到socket服务返回的长度不定、有可能很大的Response数据，我不得不采用了dotNET的IAsyncResult BeginReceive(byte[] buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback, object state);办法来异步提交socket命令，然后在回调函数中迭代调用int EndReceive(IAsyncResult asyncResult);来获取Response数据直到数据被取完，这一系列的数据片断都缓存在一个MemoryBlock链表中。

这种情况下，ASP.NET页面要想用表格展示Response数据，必须能够被异步刷新。&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/1038104.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>郑昀</dc:creator><title>[EntLibFAQ]“不允许所请求的注册表访问权”的解释[0508Update]</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2006/05/03/706243.aspx</link><pubDate>Wed, 03 May 2006 01:23:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2006/05/03/706243.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/706243.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2006/05/03/706243.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/706243.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=706243</trackback:ping><description>首先，这种情况发生在第一次使用Microsoft Enterprise Library June 2005的库(不限定是哪一个库，可以是Caching，或者Security)时，并且你的应用是Web应用：
在Windows2000上，你也许会看到错误“拒绝对注册表项的访问”；
在Windows2003上，你将看到“System.Security.SecurityException: 不允许所请求的注册表访问权。”

此种情形，蝈蝈俊在他的《使用企业库在某些站点会报试图执行安全策略不允许的操作异常的解决方法。》中已经谈及了。我下面将试图详细说明原因。&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/706243.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>郑昀</dc:creator><title>[SMS&amp;WAP]实例讲解制作OTA短信来自动配置手机WAP书签[附源码] </title><link>http://blog.csdn.net/zhengyun_ustc/archive/2005/09/05/471765.aspx</link><pubDate>Mon, 05 Sep 2005 16:21:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2005/09/05/471765.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/471765.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2005/09/05/471765.aspx#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/471765.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=471765</trackback:ping><description>OTA，即Over The Air，国内翻译为空中下载。
OTA标准由爱立信和诺基亚共同制订。OTA涵盖了许多范围，比如Kjava中的应用程序下载也是通过OTA。我们这篇文章主要讲的是，通过短信方式空中下载配置信息，参考的文档是OTA_settings_general_7_0.pdf。
规范中定义了三种Setting：
	浏览器设置
	浏览器的书签设置
	SyncML设置
也就是说，你通过发送短信可以帮助用户手机配置这三种设置。

原则上，你只要看了OTA_settings_general_7_0.pdf，并参照OTA_service_settings_example_v11.pdf，就可以轻松地制作出符合规范的OTA短信。
但是，本文档的目的就是让你简单粗暴地直奔主题，看完这篇文档后，就了解了OTA短信的概念，通过以下代码：
OTAMessage
OTAMessage message = new OTAMessage();
txtOTAResult.Text = message.GetSMSBytes(txtBookmarkName.Text, txtB&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/471765.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>郑昀</dc:creator><title>[C#]利用VSTO操作Office文档而无需安装Office</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2005/09/01/469522.aspx</link><pubDate>Thu, 01 Sep 2005 14:38:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2005/09/01/469522.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/469522.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2005/09/01/469522.aspx#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/469522.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=469522</trackback:ping><description>VSTO，就是Visual Studio Tools for the Microsoft Office System。 
不用安装Office即可使用。 
本文章演示了： 
1.2. Word.ApplicationClass打开文档 
1.3. Word.Range选定文档范围 
1.4. 销毁一切 
三个内容，来说明如何通过VSTO操作Office文档。&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/469522.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>郑昀</dc:creator><title>[ASP.NET]重构Session确实让代码简洁干净了不少 </title><link>http://blog.csdn.net/zhengyun_ustc/archive/2005/09/01/469369.aspx</link><pubDate>Thu, 01 Sep 2005 10:59:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2005/09/01/469369.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/469369.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2005/09/01/469369.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/469369.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=469369</trackback:ping><description>CodeProject的这篇文章确实对我有所启迪，
http://www.codeproject.com/useritems/SessionWrapper.asp#xx1208856xx。

诚如作者所说，我们经常在ASP.NET用许多类似于下面的代码来检测Session中存储的对象，来防止Session过期后存储的变量丢失问题.&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/469369.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>郑昀</dc:creator><title>[Wap] 制作自定义WmlListAdapter来实现Mobile.List控件的各种效果</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2005/08/20/459385.aspx</link><pubDate>Sat, 20 Aug 2005 03:10:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2005/08/20/459385.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/459385.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2005/08/20/459385.aspx#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/459385.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=459385</trackback:ping><description>自定义的mobile.List的横排效果 
现有的mobile.List输出效果，每一个Item之间一定会换行，如果你看了WmlListAdapter的源代码就知道了，这是因为他们在输出每一个Item渲染时调用了RenderLink(writer, item.Value, null, false, false, item.Text, true);，最后一个参数就是是否在本Item渲染后输出换行标记。 
我们可以改变这种渲染方式，从而让mobile.List变成横排效果。 
自定义的mobile.List的图片效果 
现有的mobile.List输出效果，每一个Item前后无法插入一张image。 
我们可以改变这种渲染方式，从而让mobile.List变成可以自定义每一行的插入图片效果。 

下面，我们来介绍一下步骤：&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/459385.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>郑昀</dc:creator><title>[Java] 利用Axis库调用C#的Web Service</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2005/08/03/445035.aspx</link><pubDate>Wed, 03 Aug 2005 15:32:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2005/08/03/445035.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/445035.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2005/08/03/445035.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/445035.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=445035</trackback:ping><description>试图从Java调用C#编写的Web Service，借用了王咏刚的wsCaller源代码中DynamicInvoker类。

请求一个C#编写的Web Service，利用DynamicInvoker类遍历web service每一个方法，获取serverName、参数列表以及类型。&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/445035.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>郑昀</dc:creator><title>[Wap]自定义asp.net mobile control</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2005/07/29/438006.aspx</link><pubDate>Fri, 29 Jul 2005 00:12:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2005/07/29/438006.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/438006.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2005/07/29/438006.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/438006.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=438006</trackback:ping><description>按照MSDN《Walkthrough: Adding Support for Devices》的指示：

我们要想自定义MMIT(Microsoft Mobile Internet Toolkit)提供的控件，那么可以改变Adapter在最后关头的渲染工作。

 

首先，我们要说明render的概念，最好的动画教程就是http://www.asp.net/mobile/2514A_01A001.swf，它是Mobile Web Application Architecture的flash讲解。

所有的ASP.NET mobile device adapter都是通过text writer做render的。这些text writer均继承自MobileTextWriter。它提供了Write, WriteLine, 以及WriteBeginTag等方法。对于WML来说，这个Text Writer是System.Web.UI.MobileControls.Adapters.WmlMobileTextWriter。

 

第一步，下载http://go.micr&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/438006.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>郑昀</dc:creator><title>[C#]log4net写SQLServer数据库日志的配置方法</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2005/07/19/429290.aspx</link><pubDate>Tue, 19 Jul 2005 18:46:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2005/07/19/429290.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/429290.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2005/07/19/429290.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/429290.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=429290</trackback:ping><description>这部分是参考了cgq214 的Blog讲到的写法，同时根据实际效果作了点修正.&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/429290.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>郑昀</dc:creator><title>[Wap]command和selectionList冲突的分析</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2005/07/14/424830.aspx</link><pubDate>Thu, 14 Jul 2005 14:42:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2005/07/14/424830.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/424830.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2005/07/14/424830.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/424830.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=424830</trackback:ping><description>现象
我们的Wap页面由dotNET 编写而成，一个页面上使用了mobile:command和mobile:selectionlist控件。

当使用Opera、Microsoft Mobile Explorer 3.0和M3Gate模拟器浏览页面，都没有问题。

当使用OpenwaveSDK6.2.2的模拟器浏览时，却发现command控件下面出现了一个“确定”的按钮。如下图所示：&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/424830.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>郑昀</dc:creator><title>[EnterpriseLibrary]为什么拒绝ASPNET对性能数据进行访问</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2005/06/27/404286.aspx</link><pubDate>Mon, 27 Jun 2005 13:07:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2005/06/27/404286.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/404286.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2005/06/27/404286.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/404286.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=404286</trackback:ping><description>Windows 2000限制了只有Administrators组才可以访问WMI数据。而Microsoft Enterprise Library需要访问WMI记录的性能数据. 
如果是一个未授权的账号，比如ASPNET要访问WMI数据，就会得到这样的错误：“从 C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_wp.exe 对性能数据进行访问”。 

解决方法 
我们可以授权ASPNET账号以访问WMI API的权限，通过如下步骤：&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/404286.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>郑昀</dc:creator><title>[WSE]Web Service与Windows Service通过WSE2.0建立订阅/发布关系[更新版本]</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2005/06/01/385741.aspx</link><pubDate>Wed, 01 Jun 2005 15:09:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2005/06/01/385741.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/385741.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2005/06/01/385741.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/385741.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=385741</trackback:ping><description>目的：

我们建立这种交互关系的目的是，在Web Service和Windows Service(或者其他Windows应用)之间建立起一种稳固的可扩展的不受地域限制的交互关系。
&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/385741.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>郑昀</dc:creator><title>[收藏]Web Service故障处理[Matt Powell&amp;Scott Seely]</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2005/03/30/333990.aspx</link><pubDate>Wed, 30 Mar 2005 12:52:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2005/03/30/333990.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/333990.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2005/03/30/333990.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/333990.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=333990</trackback:ping><description>Web Service 的故障处理会是一件很困难的事情，因为很多方面都会发生问题。这篇文章描述了你可能会遇到的各种问题，并说明应如何来处理它们。特别的，我们将讨论如下问题：

　　　· 回顾SOAP请求

　　　· 深入服务器端Visual Basic代码

　　　· 深入服务器端Visual C++代码

　　　· 跟踪SSL问题

　　　· 深入Favorites Service中的问题&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/333990.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>郑昀</dc:creator><title>[dotNET]用HttpWebRequest加载证书建立SSL通道时发生异常的解决办法</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2005/03/29/333173.aspx</link><pubDate>Tue, 29 Mar 2005 11:30:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2005/03/29/333173.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/333173.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2005/03/29/333173.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/333173.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=333173</trackback:ping><description>目的：
对于用HttpWebRequest加载证书请求远端https服务器时，发生的
“基础连接已经关闭: 无法与远程服务器建立信任关系。”/
“The underlying connection was closed. Could not establish a secure SSL/TLS connection”错误，我们可以用如下方式解决。

原因：
在“http://msdn.microsoft.com/library/chs/default.asp?url=/library/CHS/cpguide/html/cpconhostingremoteobjectsininternetinformationservicesiis.asp”提到：

“ 

证书标识特定的计算机，该计算机的名称位于证书的公共名称中。但是，很容易就会更改计算机的名称或使用客户端配置文件中的“localhost”，这会在客户端和服务器证书中的公共名称之间造成不匹配的情况。在 .NET Framework 1.0 版中，这一不匹配的情况将被忽略，并且将在服务器上引发调用。

从 .NE&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/333173.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>郑昀</dc:creator><title>[dotNET]如何利用ConfigurationSettings.AppSettings.GetValues读取配置文件中多个同Key的value</title><link>http://blog.csdn.net/zhengyun_ustc/archive/2005/03/25/330406.aspx</link><pubDate>Fri, 25 Mar 2005 18:11:00 GMT</pubDate><guid>http://blog.csdn.net/zhengyun_ustc/archive/2005/03/25/330406.aspx</guid><wfw:comment>http://blog.csdn.net/zhengyun_ustc/comments/330406.aspx</wfw:comment><comments>http://blog.csdn.net/zhengyun_ustc/archive/2005/03/25/330406.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://blog.csdn.net/zhengyun_ustc/comments/commentRss/330406.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=330406</trackback:ping><description>默认情况下，
string[] strArray = System.Configuration.ConfigurationSettings.AppSettings.GetValues("Uri");
是无法读取配置文件中多个同Key的value的。&lt;img src ="http://blog.csdn.net/zhengyun_ustc/aggbug/330406.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>