<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Eilon Lipton&amp;#39;s Blog - All Comments</title><link>http://weblogs.asp.net/leftslipper/default.aspx</link><description>Technical blog on Microsoft ASP.NET and ASP.NET AJAX.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Debug Build: 20510.895)</generator><item><title>Run a Http Response Filter together with an Ajax Update Panel</title><link>http://weblogs.asp.net/leftslipper/archive/2007/02/26/sys-webforms-pagerequestmanagerparsererrorexception-what-it-is-and-how-to-avoid-it.aspx#6576786</link><pubDate>Fri, 29 Aug 2008 19:46:05 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6576786</guid><dc:creator>Erik Lenaerts</dc:creator><description>&lt;p&gt;This post continues from part one . In this previous post we created a Http Response Filter that translated&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6576786" width="1" height="1"&gt;</description></item><item><title>re: Sys.WebForms.PageRequestManagerParserErrorException - what it is and how to avoid it</title><link>http://weblogs.asp.net/leftslipper/archive/2007/02/26/sys-webforms-pagerequestmanagerparsererrorexception-what-it-is-and-how-to-avoid-it.aspx#6575484</link><pubDate>Fri, 29 Aug 2008 13:17:12 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6575484</guid><dc:creator>Vince Miccio</dc:creator><description>&lt;p&gt;Thanks - I was using a button in an update panel to kick off a Crystal Report via an ExportToHttpResponse call to open the report as a PDF file. &amp;nbsp;One of the arguments to the function is the Response object. &amp;nbsp;I got the parser error exception until I added the postback trigger as mentioned in RiskyT&amp;#39;s comment.&lt;/p&gt;
&lt;p&gt;This is the reason I keep using and recommending Microsoft&amp;#39;s products. &amp;nbsp;I was able to find this solution to a nasty problem in just a few minutes of Googling. &amp;nbsp;I feel comfortable I won&amp;#39;t be left out there dangling in the wind. &amp;nbsp;Great job all!&lt;/p&gt;
&lt;p&gt;--&amp;gt;Vince&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6575484" width="1" height="1"&gt;</description></item><item><title>Handling Null Database Values Using Data Source Controls</title><link>http://weblogs.asp.net/leftslipper/archive/2007/06/29/how-asp-net-databinding-deals-with-eval-and-bind-statements.aspx#6574845</link><pubDate>Fri, 29 Aug 2008 01:38:42 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6574845</guid><dc:creator>Maíra Wenzel's Blog</dc:creator><description>&lt;p&gt;This topic Handling Null Database Values Using Data Source Controls has now been updated on MSDN to fix&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6574845" width="1" height="1"&gt;</description></item><item><title>re: Sys.WebForms.PageRequestManagerParserErrorException - what it is and how to avoid it</title><link>http://weblogs.asp.net/leftslipper/archive/2007/02/26/sys-webforms-pagerequestmanagerparsererrorexception-what-it-is-and-how-to-avoid-it.aspx#6569204</link><pubDate>Tue, 26 Aug 2008 21:12:20 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6569204</guid><dc:creator>RiskyT</dc:creator><description>&lt;p&gt;I got this error while doing some coding that didn&amp;#39;t actually require a Response.Write, but the UI worked a lot better if I did it that way. &amp;nbsp;It&amp;#39;s a modal popup in an iFrame that needs to do something, and on success it writes out javascript to close itself. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;The page uses several updatepanels to update various parts of the form, then on AddToCart it does a complete page postback.&lt;/p&gt;
&lt;p&gt;I got this to work by putting this in the update panel that caused the page postback:&lt;/p&gt;
&lt;p&gt;&amp;lt;Triggers&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;asp:PostBackTrigger ControlID=&amp;quot;pricingHeader&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/Triggers&amp;gt;&lt;/p&gt;
&lt;p&gt;Hope that helps someone.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6569204" width="1" height="1"&gt;</description></item><item><title>re: Sys.WebForms.PageRequestManagerParserErrorException - what it is and how to avoid it</title><link>http://weblogs.asp.net/leftslipper/archive/2007/02/26/sys-webforms-pagerequestmanagerparsererrorexception-what-it-is-and-how-to-avoid-it.aspx#6555793</link><pubDate>Sat, 23 Aug 2008 09:42:13 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6555793</guid><dc:creator>Jilani</dc:creator><description>&lt;p&gt;hi, in my client site its not showing but my client getting this message they got “thin Client Environment”&lt;/p&gt;
&lt;p&gt;i didnt use Response.Write(). but still getting my client following message:&lt;/p&gt;
&lt;p&gt;&amp;quot;Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.&lt;/p&gt;
&lt;p&gt;Details: Error parsing near ‘&lt;/p&gt;
&lt;p&gt;&amp;lt;!DOCTYPE HTML PUB’.&amp;quot;&lt;/p&gt;
&lt;p&gt;can anyone tell me whats the reason?? its urgent&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6555793" width="1" height="1"&gt;</description></item><item><title>re: MVC: Locking the RouteCollection</title><link>http://weblogs.asp.net/leftslipper/archive/2008/03/31/mvc-locking-the-routecollection.aspx#6545739</link><pubDate>Thu, 21 Aug 2008 06:01:58 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6545739</guid><dc:creator>Bruce Pierson</dc:creator><description>&lt;p&gt;I have a thread safe dictionary that uses ReaderWriterLockSlim. I decided your method made things more explicit, so I set my dictionary to be &amp;quot;thread-unsafe&amp;quot;, added the GetXXLock() methods and ran it in a test method. Here&amp;#39;s the test method:&lt;/p&gt;
&lt;p&gt;		[TestMethod]&lt;/p&gt;
&lt;p&gt;		public void TestSafeDictionary()&lt;/p&gt;
&lt;p&gt;		{&lt;/p&gt;
&lt;p&gt;			Random rand = new Random(1000);&lt;/p&gt;
&lt;p&gt;			ISafeDictionary&amp;lt;string, string&amp;gt; dict =&lt;/p&gt;
&lt;p&gt;				new SafeDictionary&amp;lt;string, string&amp;gt;();&lt;/p&gt;
&lt;p&gt;			dict.SetSafety(ThreadSafeType.None);&lt;/p&gt;
&lt;p&gt;			for (int i = 0; i &amp;lt; 50; i++)&lt;/p&gt;
&lt;p&gt;			{&lt;/p&gt;
&lt;p&gt;				Thread tenum = new Thread(&lt;/p&gt;
&lt;p&gt;					o =&amp;gt;&lt;/p&gt;
&lt;p&gt;					{&lt;/p&gt;
&lt;p&gt;						using (dict.GetReadLock())&lt;/p&gt;
&lt;p&gt;						{&lt;/p&gt;
&lt;p&gt;							foreach (object item in ((IEnumerable)o))&lt;/p&gt;
&lt;p&gt;								Thread.SpinWait(10000);&lt;/p&gt;
&lt;p&gt;						}&lt;/p&gt;
&lt;p&gt;					});&lt;/p&gt;
&lt;p&gt;				Thread tmutate = new Thread(&lt;/p&gt;
&lt;p&gt;					o =&amp;gt;&lt;/p&gt;
&lt;p&gt;					{&lt;/p&gt;
&lt;p&gt;						using (dict.GetWriteLock())&lt;/p&gt;
&lt;p&gt;						{&lt;/p&gt;
&lt;p&gt;							IDictionary&amp;lt;string, string&amp;gt; d = o as IDictionary&amp;lt;string, string&amp;gt;;&lt;/p&gt;
&lt;p&gt;							string randKey = rand.Next().ToString();&lt;/p&gt;
&lt;p&gt;							if (!d.ContainsKey(randKey))&lt;/p&gt;
&lt;p&gt;								d.Add(randKey, randKey);&lt;/p&gt;
&lt;p&gt;						}&lt;/p&gt;
&lt;p&gt;					});&lt;/p&gt;
&lt;p&gt;				Thread tenumkeys = new Thread(&lt;/p&gt;
&lt;p&gt;					o =&amp;gt;&lt;/p&gt;
&lt;p&gt;					{&lt;/p&gt;
&lt;p&gt;						using (dict.GetReadLock())&lt;/p&gt;
&lt;p&gt;						{&lt;/p&gt;
&lt;p&gt;							foreach (string key in ((IDictionary&amp;lt;string, string&amp;gt;)o).Keys)&lt;/p&gt;
&lt;p&gt;								Thread.SpinWait(10000);&lt;/p&gt;
&lt;p&gt;						}&lt;/p&gt;
&lt;p&gt;					});&lt;/p&gt;
&lt;p&gt;				Thread tenumvals = new Thread(&lt;/p&gt;
&lt;p&gt;					o =&amp;gt;&lt;/p&gt;
&lt;p&gt;					{&lt;/p&gt;
&lt;p&gt;						using (dict.GetReadLock())&lt;/p&gt;
&lt;p&gt;						{&lt;/p&gt;
&lt;p&gt;							foreach (string key in ((IDictionary&amp;lt;string, string&amp;gt;)o).Values)&lt;/p&gt;
&lt;p&gt;								Thread.SpinWait(10000);&lt;/p&gt;
&lt;p&gt;						}&lt;/p&gt;
&lt;p&gt;					});&lt;/p&gt;
&lt;p&gt;				tenum.Start(dict);&lt;/p&gt;
&lt;p&gt;				tmutate.Start(dict);&lt;/p&gt;
&lt;p&gt;				tenumkeys.Start(dict);&lt;/p&gt;
&lt;p&gt;				tenumvals.Start(dict);&lt;/p&gt;
&lt;p&gt;			}&lt;/p&gt;
&lt;p&gt;		}&lt;/p&gt;
&lt;p&gt;This test resulted in a massive cascade of exceptions, all the same type:&lt;/p&gt;
&lt;p&gt;&amp;quot;One of the background threads threw exception: System.Threading.SynchronizationLockException: The lock is being disposed while still being used. It either is being held by a thread and/or has active waiters waiting to acquire the lock.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at System.Threading.ReaderWriterLockSlim.Dispose(Boolean disposing)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at System.Threading.ReaderWriterLockSlim.Dispose()&amp;quot;&lt;/p&gt;
&lt;p&gt;So it appears the using() statement will be a non-starter in a true multi-threaded environment.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6545739" width="1" height="1"&gt;</description></item><item><title>re: Using ObjectDataSource to do the dirty work for your custom data source</title><link>http://weblogs.asp.net/leftslipper/archive/2007/04/26/using-objectdatasource-to-do-the-dirty-work-for-your-custom-data-source.aspx#6544292</link><pubDate>Wed, 20 Aug 2008 22:46:41 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6544292</guid><dc:creator>fairbanj</dc:creator><description>&lt;p&gt;The problem I am having is the way that ObjectDataSource is when passing in a DataSet. &amp;nbsp;The selection works great, but the update requires a method on the object that has all the parameters in the updated row... why not just return a DataRow? &amp;nbsp;This makes it impossible for me to use a generic object over different tables. &amp;nbsp;I even tried to use the params keyword to allow a variable parameter list and it still barfs. &amp;nbsp;Very frustrating. &amp;nbsp;&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6544292" width="1" height="1"&gt;</description></item><item><title>re: Sys.WebForms.PageRequestManagerParserErrorException - what it is and how to avoid it</title><link>http://weblogs.asp.net/leftslipper/archive/2007/02/26/sys-webforms-pagerequestmanagerparsererrorexception-what-it-is-and-how-to-avoid-it.aspx#6538234</link><pubDate>Tue, 19 Aug 2008 12:12:26 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6538234</guid><dc:creator>BlueG</dc:creator><description>&lt;p&gt;Can someone give me a tip for solving this problem?:&lt;/p&gt;
&lt;p&gt;I have textbox with user login, button &amp;quot;OK&amp;quot; and updatePanel with label (error messages).&lt;/p&gt;
&lt;p&gt;I change login, hit &amp;quot;OK&amp;quot;. Server checks, if changed login is available (must be unique).&lt;/p&gt;
&lt;p&gt; - if no, error is shown /* { lblError.Visible=true; updPnlError.Update() } */ - THIS WORKS FINE&lt;/p&gt;
&lt;p&gt; - if login is available, i save change and than I WANT TO REDIRECT TO ANOTHER PAGE - How can i do that?? (In (STUPID) IE7, Server.Transfer() and Response.Redirect() don&amp;#39;t work - both shows the PageRequestManagerParserErrorException)&lt;/p&gt;
&lt;p&gt;Thx..&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6538234" width="1" height="1"&gt;</description></item><item><title>Sys.WebForms.PageRequestManagerParserErrorException</title><link>http://weblogs.asp.net/leftslipper/archive/2007/02/26/sys-webforms-pagerequestmanagerparsererrorexception-what-it-is-and-how-to-avoid-it.aspx#6507417</link><pubDate>Tue, 12 Aug 2008 08:41:44 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6507417</guid><dc:creator>cnblogs.com</dc:creator><description>&lt;p&gt;最近需要用timer局部刷新label，是用.NET 2008的AJAX 扩展的 ScriptManager ， ScriptManager ，Timer控件，结果在运行的时候就出现异常： Microsoft&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6507417" width="1" height="1"&gt;</description></item><item><title>re: MVC: Unit testing controller actions that use TempData</title><link>http://weblogs.asp.net/leftslipper/archive/2008/04/13/mvc-unit-testing-controller-actions-that-use-tempdata.aspx#6502446</link><pubDate>Sun, 10 Aug 2008 19:12:06 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6502446</guid><dc:creator>Haacked</dc:creator><description>&lt;p&gt;This post is now out-dated due to MVC Preview 4 which makes testing TempData much easier.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6502446" width="1" height="1"&gt;</description></item></channel></rss>