<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1235021290914346174</id><updated>2024-10-24T23:18:14.455-07:00</updated><category term="ajax"/><category term="javascript"/><category term="Function.createCallback"/><category term="Function.createDelegate"/><category term="asp.net"/><category term="RegisterClientScriptBlock"/><category term="application pools"/><category term="custom tool namespace"/><category term="debugging"/><category term="namespace"/><category term="profiles"/><category term="sql server"/><category term="timeout"/><category term="typed dataset"/><category term="web project"/><title type='text'>Dot Net World</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dot-net-world.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1235021290914346174/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://dot-net-world.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03075006814233121682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1235021290914346174.post-4039007274045692117</id><published>2010-02-03T21:44:00.001-08:00</published><updated>2010-02-03T21:44:04.263-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ajax"/><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="RegisterClientScriptBlock"/><title type='text'>Using Original HTML IDs of Controls in JavaScript</title><content type='html'>&lt;p&gt;One of the first problems I found went I started using JavaScript code within ASP .Net pages was that the controls from ASP.Net where at many times not directly accessible by JavaScript. &lt;/p&gt;  &lt;p&gt;The IDs used for the controls within the ASP.Net page cannot be reliably used in JavaScript to reference that control. The reason is simple. To avoid conflicts in naming, ASP.Net automatically converts the IDs to unique IDs in HTML. These IDs generated for HTML are usually much bigger that the actual Control’s ID. This generated ID is called &lt;strong&gt;CllientID&lt;/strong&gt;. &lt;/p&gt;  &lt;p&gt;Almost all ASP.Net controls have a ClientID property. So, to get the ClientID in server code one could use:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font color=&quot;#333333&quot;&gt;string clientId = &lt;em&gt;myControl&lt;/em&gt;.ClientID;&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Where &lt;em&gt;myControl&lt;/em&gt; is an ASP.Net Control.&lt;/p&gt;  &lt;p&gt;Now the tricky part is to access this ClientID property from within JavaScript. One easy way I found to do this was to pass the ClientID of required controls at page start up. To do so, we should use &lt;strong&gt;ClientScript.RegisterClientScriptBlock&lt;/strong&gt;. A sample usage:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;ClientScript.RegisterClientScriptBlock(this.GetType(), &amp;quot;StartupScript&amp;quot;, String.Format(@&amp;quot;     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; var &lt;em&gt;txtControlClientID&lt;/em&gt; = &#39;{0}&#39;;      &lt;br /&gt;&amp;quot;,      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;em&gt;txtControl&lt;/em&gt;.ClientID)      &lt;br /&gt;, true);&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Now, in JavaScript, we access the control as:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;var txtControl = $get(txtControlClientID);&lt;/p&gt;&lt;/blockquote&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dot-net-world.blogspot.com/feeds/4039007274045692117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dot-net-world.blogspot.com/2010/02/using-original-html-ids-of-controls-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1235021290914346174/posts/default/4039007274045692117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1235021290914346174/posts/default/4039007274045692117'/><link rel='alternate' type='text/html' href='http://dot-net-world.blogspot.com/2010/02/using-original-html-ids-of-controls-in.html' title='Using Original HTML IDs of Controls in JavaScript'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03075006814233121682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1235021290914346174.post-8173398843125601632</id><published>2009-03-06T04:29:00.001-08:00</published><updated>2009-03-06T04:29:11.406-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="profiles"/><category scheme="http://www.blogger.com/atom/ns#" term="web project"/><title type='text'>Web Profile in Visual Studio Web Projects</title><content type='html'>&lt;p&gt;Recently I had a need to implement Memberships, Roles, and Profiles on my web project. After going to several websites and blogs, I was finally able to setup the Membership and Roles without much problem. Then came along the Profiles. I found the post “&lt;a target=&quot;_blank&quot; href=&quot;http://www.odetocode.com/articles/440.aspx&quot;&gt;Profiles in ASP.NET&lt;/a&gt;” by Scott on how to setup Profiles. It looked quiet easy. Just a few lines in the web.config and I should be ready to go. So, I went along and set-it-up. According to the article, a class called Profile should be automatically generated. After dozens of searched in Google, I finally found out what the problem was. &lt;/p&gt;  &lt;p&gt;It appears that automatic profile creation only works for ASP.NET web sites (not web projects). Now, mine was a web project. I searched several websites but couldn’t find a way to implement profiles in a web projects. &lt;/p&gt;  &lt;p&gt;Then at last, I came across &lt;a target=&quot;_blank&quot; href=&quot;http://code.msdn.microsoft.com/WebProfileBuilder&quot;&gt;Web Profile Builder&lt;/a&gt;. A detailed usage instruction is available at &lt;a target=&quot;_blank&quot; href=&quot;http://weblogs.asp.net/joewrobel/archive/2008/02/03/web-profile-builder-for-web-application-projects.aspx&quot;&gt;Joe Wrobel’s blog&lt;/a&gt;. This profile builder is compatible with both Visual Studio 2005 &amp;amp; Visual Studio 2008.&lt;/p&gt;  &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:e27627dd-9783-4933-8404-af1b06a68ef7&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;Technorati Tags: &lt;a href=&quot;http://technorati.com/tags/ASP.NET&quot; rel=&quot;tag&quot;&gt;ASP.NET&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/Profiles&quot; rel=&quot;tag&quot;&gt;Profiles&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/Web+Project&quot; rel=&quot;tag&quot;&gt;Web Project&lt;/a&gt;&lt;/div&gt;  &lt;br /&gt;  &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:5c4ce322-a1b6-433e-9bd0-d599dfccfb57&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;del.icio.us Tags: &lt;a href=&quot;http://del.icio.us/popular/ASP.NET&quot; rel=&quot;tag&quot;&gt;ASP.NET&lt;/a&gt;,&lt;a href=&quot;http://del.icio.us/popular/Profiles&quot; rel=&quot;tag&quot;&gt;Profiles&lt;/a&gt;,&lt;a href=&quot;http://del.icio.us/popular/Web+Project&quot; rel=&quot;tag&quot;&gt;Web Project&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dot-net-world.blogspot.com/feeds/8173398843125601632/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dot-net-world.blogspot.com/2009/03/web-profile-in-visual-studio-web.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1235021290914346174/posts/default/8173398843125601632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1235021290914346174/posts/default/8173398843125601632'/><link rel='alternate' type='text/html' href='http://dot-net-world.blogspot.com/2009/03/web-profile-in-visual-studio-web.html' title='Web Profile in Visual Studio Web Projects'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03075006814233121682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1235021290914346174.post-5326469659067222264</id><published>2009-03-05T20:36:00.001-08:00</published><updated>2009-03-05T20:36:24.790-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ajax"/><category scheme="http://www.blogger.com/atom/ns#" term="Function.createCallback"/><category scheme="http://www.blogger.com/atom/ns#" term="Function.createDelegate"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><title type='text'>Using Function.createCallback with Function.createDelegate</title><content type='html'>&lt;p&gt;In my earlier posts, I had described the functionalities of both Function.createCallback and Function.createDelegate. Basically, Function.createCallback can be used to pass extra data to the callback method (in the form of context) and Function.createDelegate creates wrapper function which in-turn calls the callback method as a part of the object instance passed to the createDelegate function. &lt;/p&gt;  &lt;p&gt;But, what can we do, if we need both the functionalities? Well, basic logics says simply join both the functions. So, an affecting callback would be:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;var callback = Function.createDelegate(this, Function.createCallback(this.callbackMethod, { id: id }));      &lt;br /&gt;      &lt;br /&gt;$addHandler($get(‘TestElement’), ‘click’, callback);&lt;/p&gt; &lt;/blockquote&gt;  &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:daeb86c1-96ea-493f-a1f5-876c1c1ce757&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;del.icio.us Tags: &lt;a href=&quot;http://del.icio.us/popular/Function&quot; rel=&quot;tag&quot;&gt;Function&lt;/a&gt;,&lt;a href=&quot;http://del.icio.us/popular/createCallback&quot; rel=&quot;tag&quot;&gt;createCallback&lt;/a&gt;,&lt;a href=&quot;http://del.icio.us/popular/createDelegate&quot; rel=&quot;tag&quot;&gt;createDelegate&lt;/a&gt;&lt;/div&gt;  &lt;br /&gt;  &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:c84b1bc4-754f-4cf5-b2cb-382b23dc54a9&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;Technorati Tags: &lt;a href=&quot;http://technorati.com/tags/Function&quot; rel=&quot;tag&quot;&gt;Function&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/createCallback&quot; rel=&quot;tag&quot;&gt;createCallback&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/createDelegate&quot; rel=&quot;tag&quot;&gt;createDelegate&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dot-net-world.blogspot.com/feeds/5326469659067222264/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dot-net-world.blogspot.com/2009/03/using-functioncreatecallback-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1235021290914346174/posts/default/5326469659067222264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1235021290914346174/posts/default/5326469659067222264'/><link rel='alternate' type='text/html' href='http://dot-net-world.blogspot.com/2009/03/using-functioncreatecallback-with.html' title='Using Function.createCallback with Function.createDelegate'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03075006814233121682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1235021290914346174.post-8504276916211487004</id><published>2009-03-05T20:07:00.001-08:00</published><updated>2009-03-05T20:07:25.124-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ajax"/><category scheme="http://www.blogger.com/atom/ns#" term="Function.createCallback"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><title type='text'>Function.createCallback</title><content type='html'>&lt;p&gt;In my &lt;a title=&quot;Function.createDelegate&quot; href=&quot;http://dot-net-world.blogspot.com/2009/03/functioncreatedelegate-and.html&quot;&gt;earlier post&lt;/a&gt;, I had given some details about the &lt;em&gt;&lt;strong&gt;Function.createDelegate&lt;/strong&gt; &lt;/em&gt;function. Actually there exists another function &lt;strong&gt;&lt;em&gt;Function.createCallback&lt;/em&gt;&lt;/strong&gt; with similar functionality. It doesn’t actually maintain the &lt;strong&gt;&lt;em&gt;instance&lt;/em&gt;&lt;/strong&gt; of the object. The only similarity is that it creates a wrapper function around the callback method provided. &lt;/p&gt;  &lt;p&gt;The format of the function is:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Function.createCallback(&lt;em&gt;callbackMethod&lt;/em&gt;, &lt;em&gt;context&lt;/em&gt;)&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;So, what is the purpose of this function?&amp;#160; Let me demonstrate this with a simple example. Let us assume that we have a table with id “TestTable”. Clicking each row should bring up an alert box showing the row number clicked. The callback method used should be the same for all the rows. &lt;/p&gt;  &lt;p&gt;Let us try:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;var table = $get(‘TestTable’);      &lt;br /&gt;var rows = table.getElementsByTagName(‘tr’);       &lt;br /&gt;      &lt;br /&gt;for(var i = 0; i &amp;lt; rows.length; i++) {       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; $addHandler(rows[i], ‘click’, callbackMethod);       &lt;br /&gt;}&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Now the problem. From within the callback method, how can we know which row was clicked. We need to show the row number clicked. This is where &lt;em&gt;&lt;strong&gt;Function.createCallback&lt;/strong&gt;&lt;/em&gt; kicks in. The &lt;em&gt;context&lt;/em&gt; parameter given to this function would be passed on to the callback function when it is called by the $addHandler method. We could re-write the loop as:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;for(var i = 0; i &amp;lt; rows.length; i++) {      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; var callback = Function.createCallback(callbackMethod, { num:i });       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; $addHandler(rows[i], ‘click’, callback);       &lt;br /&gt;}&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Now the callback function can be implemented as:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;function callbackMethod(e, context) {      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; alert(‘Row Clicked: ‘ + (context[‘num’] + 1));       &lt;br /&gt;}&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;This should display the row number clicked. &lt;/p&gt;  &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:87dfb661-612f-4f95-9c46-66f69d3de3eb&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;Technorati Tags: &lt;a href=&quot;http://technorati.com/tags/Function&quot; rel=&quot;tag&quot;&gt;Function&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/createCallback&quot; rel=&quot;tag&quot;&gt;createCallback&lt;/a&gt;&lt;/div&gt;  &lt;br /&gt;  &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:3a93c903-4916-418a-95a9-64dac455a7cf&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;del.icio.us Tags: &lt;a href=&quot;http://del.icio.us/popular/Function&quot; rel=&quot;tag&quot;&gt;Function&lt;/a&gt;,&lt;a href=&quot;http://del.icio.us/popular/createCallback&quot; rel=&quot;tag&quot;&gt;createCallback&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dot-net-world.blogspot.com/feeds/8504276916211487004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dot-net-world.blogspot.com/2009/03/functioncreatecallback.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1235021290914346174/posts/default/8504276916211487004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1235021290914346174/posts/default/8504276916211487004'/><link rel='alternate' type='text/html' href='http://dot-net-world.blogspot.com/2009/03/functioncreatecallback.html' title='Function.createCallback'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03075006814233121682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1235021290914346174.post-7645104248258806105</id><published>2009-03-05T01:12:00.001-08:00</published><updated>2009-03-05T01:12:42.958-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="application pools"/><category scheme="http://www.blogger.com/atom/ns#" term="debugging"/><category scheme="http://www.blogger.com/atom/ns#" term="sql server"/><category scheme="http://www.blogger.com/atom/ns#" term="timeout"/><title type='text'>The web server process that was being debugged has been terminated by Internet Information Services (IIS)</title><content type='html'>&lt;p&gt;By default, debugging a website or web project within Visual Studio bring up the built-in server of Visual Studio. But, we do have a problem to change the server to an IIS instance. I recently switched to debugging on IIS on my Windows 2008 Server Machine. Debugging works fine. The only problem is that if your code hit some breakpoint and if you leave the program in ‘break’ mode for more than 90 seconds, Visual Studio shows the following message:&lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;http://lh6.ggpht.com/_nq57k-zaB5A/Sa-XQKl2Y1I/AAAAAAAACSM/qZxLx60vwbw/s1600-h/image%5B2%5D.png&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; margin-left: 0px; border-top: 0px; margin-right: 0px; border-right: 0px&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;http://lh5.ggpht.com/_nq57k-zaB5A/Sa-XS6rS_dI/AAAAAAAACSQ/Jh8zRqGsRmg/image_thumb%5B1%5D.png?imgmax=800&quot; width=&quot;412&quot; height=&quot;169&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;After a bit tweaking around in the new IIS interface, I got the solution:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;&lt;a href=&quot;http://lh4.ggpht.com/_nq57k-zaB5A/Sa-XVe5jcUI/AAAAAAAACSU/l3L3iD3I69Y/s1600-h/image%5B10%5D.png&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; margin-left: 0px; border-top: 0px; margin-right: 0px; border-right: 0px&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; align=&quot;right&quot; src=&quot;http://lh4.ggpht.com/_nq57k-zaB5A/Sa-XXsvaDTI/AAAAAAAACSY/X_uOMz_kxdk/image_thumb%5B7%5D.png?imgmax=800&quot; width=&quot;200&quot; height=&quot;244&quot; /&gt;&lt;/a&gt; Open &lt;strong&gt;Internet Information Services (IIS) Manager&lt;/strong&gt;.&lt;/li&gt;    &lt;li&gt;From the server tree (the item with the name as the server name), choose &lt;strong&gt;Application Pools&lt;/strong&gt;.&lt;/li&gt;    &lt;li&gt;Choose the Application Pool corresponding to your testing IIS website (usually it has the same name as your IIS website)&lt;/li&gt;    &lt;li&gt;Right-click and choose &lt;strong&gt;Advanced Settings&lt;/strong&gt;.&lt;/li&gt;    &lt;li&gt;From the &lt;strong&gt;Process Model&lt;/strong&gt; node, change the &lt;strong&gt;Ping Maximum Response Time (seconds)&lt;/strong&gt; to a comfortably higher value (I have set the value to 900 seconds which is 15 minutes).&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;Alternatively, you can also set the &lt;strong&gt;Ping Enabled&lt;/strong&gt; property to &lt;em&gt;False&lt;/em&gt;.&lt;/p&gt;  &lt;p&gt;Apparently what happens is that the server keeps pinging the worker process and waits for a response. When in debugging mode, the worker process is affectively suspended, which results in the ping not being responded.&lt;/p&gt;  &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:2186bed4-acf4-40e6-ac61-a4d41107b0ef&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;Technorati Tags: &lt;a href=&quot;http://technorati.com/tags/SQL+Server&quot; rel=&quot;tag&quot;&gt;SQL Server&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/Application+Pools&quot; rel=&quot;tag&quot;&gt;Application Pools&lt;/a&gt;&lt;/div&gt;  &lt;br /&gt;  &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:80abea2c-b6e1-4a5e-a2bf-7c5178958eef&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;del.icio.us Tags: &lt;a href=&quot;http://del.icio.us/popular/SQL+Server&quot; rel=&quot;tag&quot;&gt;SQL Server&lt;/a&gt;,&lt;a href=&quot;http://del.icio.us/popular/Application+Pools&quot; rel=&quot;tag&quot;&gt;Application Pools&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dot-net-world.blogspot.com/feeds/7645104248258806105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dot-net-world.blogspot.com/2009/03/web-server-process-that-was-being.html#comment-form' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1235021290914346174/posts/default/7645104248258806105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1235021290914346174/posts/default/7645104248258806105'/><link rel='alternate' type='text/html' href='http://dot-net-world.blogspot.com/2009/03/web-server-process-that-was-being.html' title='The web server process that was being debugged has been terminated by Internet Information Services (IIS)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03075006814233121682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh5.ggpht.com/_nq57k-zaB5A/Sa-XS6rS_dI/AAAAAAAACSQ/Jh8zRqGsRmg/s72-c/image_thumb%5B1%5D.png?imgmax=800" height="72" width="72"/><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1235021290914346174.post-7154678517501174979</id><published>2009-03-04T23:54:00.000-08:00</published><updated>2009-03-05T03:46:11.631-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ajax"/><category scheme="http://www.blogger.com/atom/ns#" term="Function.createDelegate"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><title type='text'>Function.createDelegate</title><content type='html'>&lt;p&gt;In order to manipulate callback event of DOM objects, Asp.Net Ajax comes with a handy set of functions. One of such handy method is the $addHandler method. Usage is straight forward. The syntax is:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;$addHandler(&lt;em&gt;domObject&lt;/em&gt;, &lt;em&gt;eventName&lt;/em&gt;, &lt;em&gt;callbackFunction&lt;/em&gt;);&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Everything works perfectly. The only problem is when you use the function with the callback method as a method within an object,&amp;#160; &lt;/p&gt;  &lt;p&gt;For example, we have a class:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;var TestClass = function() {      &lt;br /&gt;&amp;#160;&amp;#160; this.testVar = “Test Variable”;       &lt;br /&gt;}&lt;/p&gt;    &lt;p&gt;TestClass.prototype = {      &lt;br /&gt;&amp;#160;&amp;#160; testFunction: function() {       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; alert(this.testVar);       &lt;br /&gt;&amp;#160;&amp;#160; }       &lt;br /&gt;}&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Now, if we have a DOM element with ID ‘TestElement’, we could register the click event of the element using:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;$addHandler($get(‘TestElement’), ‘click’, this.testFunction);&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;When clicked, the element will show a dialog box ‘Undefined’. This is because, when an element is ‘clicked’, within the callback method, &lt;em&gt;this&lt;/em&gt; refers to the instance of the event object. Since the event object instance does not have a variable called &lt;em&gt;testVar&lt;/em&gt;, we get an ‘undefined’ prompt.&lt;/p&gt;  &lt;p&gt;To overcome this limitation, we have the Function.createDelegate method. The format of this method is:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Function.createDeleagte(&lt;em&gt;instance&lt;/em&gt;, &lt;em&gt;event&lt;/em&gt;, &lt;em&gt;callbackMethod&lt;/em&gt;);&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;This essential creates a wrapper function around the callback-method. When the wrapper function is called by the event handler, it delegates the call to the callbackMethod in the proper manner so that the &lt;em&gt;this&lt;/em&gt; keyword will refer to object &lt;em&gt;instance&lt;/em&gt;, which was provided as the first parameter to the &lt;em&gt;createDelegate&lt;/em&gt; method. An example usage would be:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;var del = Function.createDelegate(this, this.testFunction);      &lt;br /&gt;$addHandler($get(‘TestElement’), ‘click’, del);&lt;/p&gt; &lt;/blockquote&gt;  &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:4d662338-3ce4-4cb3-87a5-e9c40bac8577&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;Technorati Tags: &lt;a href=&quot;http://technorati.com/tags/Function&quot; rel=&quot;tag&quot;&gt;Function&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/createDelegate&quot; rel=&quot;tag&quot;&gt;createDelegate&lt;/a&gt;&lt;/div&gt;  &lt;br /&gt;  &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:dc912631-5e3f-4025-8284-072caf114fe5&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;del.icio.us Tags: &lt;a href=&quot;http://del.icio.us/popular/Function&quot; rel=&quot;tag&quot;&gt;Function&lt;/a&gt;,&lt;a href=&quot;http://del.icio.us/popular/createDelegate&quot; rel=&quot;tag&quot;&gt;createDelegate&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dot-net-world.blogspot.com/feeds/7154678517501174979/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dot-net-world.blogspot.com/2009/03/functioncreatedelegate-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1235021290914346174/posts/default/7154678517501174979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1235021290914346174/posts/default/7154678517501174979'/><link rel='alternate' type='text/html' href='http://dot-net-world.blogspot.com/2009/03/functioncreatedelegate-and.html' title='Function.createDelegate'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03075006814233121682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1235021290914346174.post-3067785891364077341</id><published>2009-03-01T23:28:00.000-08:00</published><updated>2009-03-06T02:11:00.446-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="custom tool namespace"/><category scheme="http://www.blogger.com/atom/ns#" term="namespace"/><category scheme="http://www.blogger.com/atom/ns#" term="typed dataset"/><title type='text'>Changing Namespace of Typed Data Set</title><content type='html'>&lt;p&gt;Last day, I spent half my day searching for a way to change the Namespace of a generated typed dataset class. Although there was no strict requirement for the same, still it would be nice to have a clean namespace for the generated classes. After searching a lot, I came up with various solutions. But none of them seemed to solve my problem. After a lot of pondering with the various properties of the file, I came up with the very simple solution.    &lt;br /&gt;    &lt;br /&gt;&lt;a href=&quot;http://lh5.ggpht.com/_nq57k-zaB5A/SbDJVS5nQNI/AAAAAAAACS8/MA4UNAK5RYY/s1600-h/image%5B3%5D.png&quot;&gt;&lt;img style=&quot;border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; align=&quot;right&quot; src=&quot;http://lh4.ggpht.com/_nq57k-zaB5A/SbDJW3wE-RI/AAAAAAAACTA/mRWi8fnZsMM/image_thumb%5B1%5D.png?imgmax=800&quot; width=&quot;244&quot; height=&quot;201&quot; /&gt;&lt;/a&gt;Simply right-click the DataSet file and choose Property (or press F4) and from the Properties box, type the namespace in the &amp;quot;Custom Tool Namespace&amp;quot; field.     &lt;br /&gt;    &lt;br /&gt;Thats it. Such a simple solution. Anyway, I dont believe many people need to change the namespace of the typed dataset, as it automatically generates namespace based on the folder structure.&lt;/p&gt;  &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:9454524b-07c0-494b-8cab-b0c18c2ac041&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;Technorati Tags: &lt;a href=&quot;http://technorati.com/tags/ASP.NET&quot; rel=&quot;tag&quot;&gt;ASP.NET&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/Typed+DataSet&quot; rel=&quot;tag&quot;&gt;Typed DataSet&lt;/a&gt;&lt;/div&gt;  &lt;br /&gt;  &lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:fd0d98c0-cc29-4f49-95ee-32948e88841d&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;del.icio.us Tags: &lt;a href=&quot;http://del.icio.us/popular/ASP.NET&quot; rel=&quot;tag&quot;&gt;ASP.NET&lt;/a&gt;,&lt;a href=&quot;http://del.icio.us/popular/Typed+DataSet&quot; rel=&quot;tag&quot;&gt;Typed DataSet&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://dot-net-world.blogspot.com/feeds/3067785891364077341/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dot-net-world.blogspot.com/2009/03/changing-namespace-of-typed-data-set.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1235021290914346174/posts/default/3067785891364077341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1235021290914346174/posts/default/3067785891364077341'/><link rel='alternate' type='text/html' href='http://dot-net-world.blogspot.com/2009/03/changing-namespace-of-typed-data-set.html' title='Changing Namespace of Typed Data Set'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03075006814233121682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/_nq57k-zaB5A/SbDJW3wE-RI/AAAAAAAACTA/mRWi8fnZsMM/s72-c/image_thumb%5B1%5D.png?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1235021290914346174.post-2826512588102265599</id><published>2009-03-01T23:25:00.001-08:00</published><updated>2009-03-01T23:27:19.763-08:00</updated><title type='text'>Welcome to Dot Net World</title><content type='html'>Welcome to Dot Net World. I am relatively new to the world of .Net and so decided to post all the new stuff that I learn on this blog so that it might be useful to other newbies in .Net.</content><link rel='replies' type='application/atom+xml' href='http://dot-net-world.blogspot.com/feeds/2826512588102265599/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dot-net-world.blogspot.com/2009/03/welcome-to-dot-net-world.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1235021290914346174/posts/default/2826512588102265599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1235021290914346174/posts/default/2826512588102265599'/><link rel='alternate' type='text/html' href='http://dot-net-world.blogspot.com/2009/03/welcome-to-dot-net-world.html' title='Welcome to Dot Net World'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/03075006814233121682</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>