<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ASP.net | KC's Blog</title>
	<atom:link href="https://www.kjctech.net/tag/asp-net/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.kjctech.net</link>
	<description></description>
	<lastBuildDate>Tue, 24 Jan 2023 18:21:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://i0.wp.com/www.kjctech.net/wp-content/uploads/2016/12/cropped-KC-Logo.png?fit=32%2C32&#038;ssl=1</url>
	<title>ASP.net | KC's Blog</title>
	<link>https://www.kjctech.net</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">24634607</site>	<item>
		<title>Adding Lightbox on A ASP.net Powered Website</title>
		<link>https://www.kjctech.net/adding-lightbox-on-a-asp-net-powered-website/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=adding-lightbox-on-a-asp-net-powered-website</link>
					<comments>https://www.kjctech.net/adding-lightbox-on-a-asp-net-powered-website/#respond</comments>
		
		<dc:creator><![CDATA[Kent Chen]]></dc:creator>
		<pubDate>Wed, 03 May 2017 04:56:18 +0000</pubDate>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[Lightbox]]></category>
		<guid isPermaLink="false">http://www.kjctech.net/?p=3468</guid>

					<description><![CDATA[<p>ASP.net doesn&#8217;t have many plugins like WordPress. So if you would like to add Lightbox-kind effect on your ASP.net powered website, you will need to do it manually. Here is how you can do it. 1. Go to this Lightbox site and click Download button to download the script package. 2. Extract the package and save both css and js folder into [&#8230;]</p>
The post <a href="https://www.kjctech.net/adding-lightbox-on-a-asp-net-powered-website/">Adding Lightbox on A ASP.net Powered Website</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></description>
										<content:encoded><![CDATA[<p>ASP.net doesn&#8217;t have many plugins like WordPress. So if you would like to add Lightbox-kind effect on your ASP.net powered website, you will need to do it manually.</p>
<p>Here is how you can do it.</p>
<p>1. Go to this <a href="http://lokeshdhakar.com/projects/lightbox2/#getting-started" target="_blank" rel="noopener noreferrer">Lightbox site</a> and click Download button to download the script package.</p>
<p><a href="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/05/Lightbox-2017-05-02-21_54_59.png" data-rel="lightbox-image-0" data-rl_title="" data-rl_caption="" title=""><img data-recalc-dims="1" fetchpriority="high" decoding="async" class="alignnone size-full wp-image-3469" src="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/05/Lightbox-2017-05-02-21_54_59.png?resize=490%2C296" alt="" width="490" height="296" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/05/Lightbox-2017-05-02-21_54_59.png?w=490&amp;ssl=1 490w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/05/Lightbox-2017-05-02-21_54_59.png?resize=250%2C151&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/05/Lightbox-2017-05-02-21_54_59.png?resize=450%2C272&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/05/Lightbox-2017-05-02-21_54_59.png?resize=360%2C217&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2017/05/Lightbox-2017-05-02-21_54_59.png?resize=100%2C60&amp;ssl=1 100w" sizes="(max-width: 490px) 100vw, 490px" /></a></p>
<p>2. Extract the package and save both css and js folder into your website. For example, I created a separate folder called source and saved both folders in it.</p>
<p>3. Add the following three lines at the top of the page in <code>&lt;head&gt;</code> tag.</p>
<pre class="lang:default decode:true ">    &lt;script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"&gt;&lt;/script&gt;
    &lt;script src="/source/js/lightbox.js"&gt;&lt;/script&gt;
    &lt;link href="/source/css/lightbox.css" rel="stylesheet" /&gt;
</pre>
<p>4. Update the link by adding <code>rel="lightbox"</code> and title for image caption. For example,</p>
<pre><code>&lt;a href="images/image-1.jpg" rel="lightbox" title="my caption"&gt;&lt;img src='</code><code>images/image-1.jpg'/&gt;&lt;/a&gt;</code></pre>
<p>That&#8217;s about it, as simple as like that.</p>The post <a href="https://www.kjctech.net/adding-lightbox-on-a-asp-net-powered-website/">Adding Lightbox on A ASP.net Powered Website</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.kjctech.net/adding-lightbox-on-a-asp-net-powered-website/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3468</post-id>	</item>
		<item>
		<title>UpdateProgress control disappeared before the Page gets updated on ASP.net Web App</title>
		<link>https://www.kjctech.net/updateprogress-control-disappeared-before-the-page-gets-updated-on-asp-net/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=updateprogress-control-disappeared-before-the-page-gets-updated-on-asp-net</link>
					<comments>https://www.kjctech.net/updateprogress-control-disappeared-before-the-page-gets-updated-on-asp-net/#comments</comments>
		
		<dc:creator><![CDATA[Kent Chen]]></dc:creator>
		<pubDate>Sat, 23 May 2009 22:16:20 +0000</pubDate>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[ASP.net]]></category>
		<guid isPermaLink="false">http://kjctech.net/blog/archive/2009/05/23/updateprogress-control-disappeared-before-the-page-gets-updated-on-asp.net.aspx</guid>

					<description><![CDATA[<p>I have a small web application written in ASP.net 2.0 (works on 3.5 as well) with Ajax enabled. What it does is to search information on a online database and downloads as PDF.Â  I use &#60;asp:UpdatePanel&#62;&#60;/asp:UpdatePanel&#62; to wrap up the web form content, and use &#60;asp:UpdateProgress&#62; to show a modal popup type of progress icon during the actual download. It [&#8230;]</p>
The post <a href="https://www.kjctech.net/updateprogress-control-disappeared-before-the-page-gets-updated-on-asp-net/">UpdateProgress control disappeared before the Page gets updated on ASP.net Web App</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></description>
										<content:encoded><![CDATA[<p><img data-recalc-dims="1" decoding="async" style="border-right-width: 0px; margin: 0px 0px 10px 10px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" align="right" src="https://i0.wp.com/www.kjctech.net/images/blog/UpdateProgresscontroldisappearedbeforeth_D210/image.png?resize=320%2C165" width="320" height="165" />I have a small web application written in ASP.net 2.0 (works on 3.5 as well) with Ajax enabled. What it does is to search information on a online database and downloads as PDF.Â  I use &lt;asp:UpdatePanel&gt;&lt;/asp:UpdatePanel&gt; to wrap up the web form content, and use &lt;asp:UpdateProgress&gt; to show a modal popup type of progress icon during the actual download.</p>
<p>It works great except when the PDF is bigger than a few megabyte this nice Ajax type of progress modal disappears without any results returning to the content in the UpdatePanel. I scratched my head many times without any luck finding it why, until I fired up <a href="http://getfirebug.com/" target="_blank" rel="noopener">Firebug</a> in my Firefox and tried again the same process. Bingo. the following error was thrown out in Firebug console.</p>
<blockquote>
<p>Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out</p>
</blockquote>
<p>Searching for <strong>Sys.WebForms.PageRequestManagerTimeoutException </strong>brought me to <a href="http://forums.asp.net/p/1042916/1459117.aspx" target="_blank" rel="noopener">this page on ASP.net forum</a>, in which a poster explained very well what it is and how to solve it.</p>
<blockquote>
<p>For Sys.WebForms.PageRequestManagerTimeoutException, check <a href="http://asp.net/ajax/documentation/live/ClientReference/Sys.WebForms/Exceptions/PageRequestManagerTimeoutException.aspx" target="_blank" rel="noopener">here</a> and <a href="http://asp.net/ajax/documentation/live/tutorials/CustomizingErrorHandlingforUpdatePanel.aspx" target="_blank" rel="noopener">here</a> for what it is.</p>
<p>To solve this problem we can increase the timeout. You can change the timeout time by adding a new property to the script manager control. This property is called AsyncPostBackTimeOut and it can help us to define the number of seconds before the request will throw a request timeout exception*. <b></b></p>
<p>For example if you want that the timeout will take maximum 10 minutes your code should be look like this:</p>
<p>&lt;asp:ScriptManager ID=&#8221;ScriptManager1&#8243; runat=&#8221;server&#8221;</p>
<p>AsyncPostBackTimeOut=&#8221;600&#8243; &gt;</p>
<p>&lt;/asp:ScriptManager&gt;</p>
<p>The default value of the AsyncPostBackTimeOut property is 90 seconds.</p>
</blockquote>
<p>Sure enough, adding the AsyncPostBackTimeout property and setting it to 3600 seconds solved my problem nicely.</p>The post <a href="https://www.kjctech.net/updateprogress-control-disappeared-before-the-page-gets-updated-on-asp-net/">UpdateProgress control disappeared before the Page gets updated on ASP.net Web App</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.kjctech.net/updateprogress-control-disappeared-before-the-page-gets-updated-on-asp-net/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">911</post-id>	</item>
	</channel>
</rss>
