<?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: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-3837585369292252718</id><updated>2012-01-26T08:23:01.927-08:00</updated><category term='How to perform client-side validation for FileUpload server control?'/><category term='Button not posting back after disabling it in javascript?'/><category term='free calls'/><category term='Is ViewState affecting the performance of your webpage?'/><category term='free phone calls'/><category term='free international calls'/><category term='jaxtr'/><category term='Why doesn&apos;t RowCommand event fire when GridView is inside the UpdatePanel ?'/><category term='How to disable UpdatePanel contents during asynchronous postbacks?'/><category term='Why is my webpage slow?'/><category term='Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out'/><category term='How to show control menu when mouse moved in full screen mode in vlc player ?'/><title type='text'>Answers Unlimited</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>67</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-1415105366266829263</id><published>2011-05-06T02:14:00.000-07:00</published><updated>2011-05-06T02:15:05.624-07:00</updated><title type='text'>How to programmatically create a deep zoom composition on the fly?</title><content type='html'>In the following example, I am programmically creating a deep zoom composition&lt;br&gt;--------------------------------------------------------------------------------------------------------------------&lt;br&gt;&lt;br&gt;        protected void Button1_Click(object sender, EventArgs e)&lt;br&gt;          {&lt;br&gt;             ImageCreator creator = new ImageCreator();  &lt;br&gt;             creator.TileFormat = ImageFormat.Jpg;  &lt;br&gt;             creator.TileOverlap = 1;  &lt;br&gt;             creator.TileSize = 256;  &lt;br&gt;&lt;br&gt;             List&amp;lt;string&amp;gt; files = new List&amp;lt;string&amp;gt;()  &lt;br&gt;               {  &lt;br&gt;                 @&amp;quot;C:\Users\Public\Pictures\Sample Pictures\Toco Toucan.jpg&amp;quot;,  &lt;br&gt;&lt;br&gt;                 @&amp;quot;C:\Users\Public\Pictures\Sample Pictures\Winter Leaves.jpg&amp;quot;,  &lt;br&gt;&lt;br&gt;                 @&amp;quot;C:\Users\Public\Pictures\Sample Pictures\Humpback Whale.jpg&amp;quot; &lt;br&gt;               };&lt;br&gt;&lt;br&gt;             string root = @&amp;quot;C:\Users\XXXX\Desktop\mytest\MyGeneratedImages&amp;quot;;  &lt;br&gt;             List&amp;lt;string&amp;gt; dzi = new List&amp;lt;string&amp;gt;();  &lt;br&gt;             foreach (var name in files)  &lt;br&gt;               {  &lt;br&gt;                 string output = Path.Combine(root, Path.GetFileNameWithoutExtension(name) + &amp;quot;.dzi&amp;quot;);  &lt;br&gt;                 dzi.Add(output);  &lt;br&gt;                 creator.Create(name, output);  &lt;br&gt;               }  &lt;br&gt;&lt;br&gt;             CollectionCreator ccreator = new CollectionCreator();  &lt;br&gt;             ccreator.TileFormat = ImageFormat.Jpg;  &lt;br&gt;             ccreator.TileOverlap = 1;  &lt;br&gt;             ccreator.TileSize = 256;  &lt;br&gt;               ccreator.Create(dzi, Path.Combine(root, &amp;quot;da.dzc&amp;quot;));  &lt;br&gt;        }&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-1415105366266829263?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/1415105366266829263/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2011/05/how-to-programmatically-create-deep.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/1415105366266829263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/1415105366266829263'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2011/05/how-to-programmatically-create-deep.html' title='How to programmatically create a deep zoom composition on the fly?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-203480276740236509</id><published>2011-05-05T04:57:00.001-07:00</published><updated>2011-05-05T04:57:07.294-07:00</updated><title type='text'>How to overlap an image or text on another image using css? (Div overlapping, Div absolute, relative position)</title><content type='html'>&lt;div&gt;Here I am trying to overlap some text on the Image.&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;font size="4"&gt;&lt;strong&gt;&amp;lt;div style=&amp;quot;position:relative&amp;quot;&amp;gt;&lt;br&gt; &amp;lt;img src=&amp;quot;../images/MyImage.jpg&amp;quot; /&amp;gt;&lt;br&gt;  &amp;lt;div style=&amp;quot;text-align: center; right:10px; position:absolute&amp;quot;&amp;gt;&lt;br&gt;  Overlapped Text&lt;br&gt;  &amp;lt;/div&amp;gt;&lt;br&gt;&amp;lt;/div&amp;gt;&lt;/strong&gt;&lt;/font&gt;&lt;/div&gt; &lt;p&gt;&lt;br&gt;In the above example, the outer Div is styled to align relatively to the parent control, and the inner div is styled to align in absolute position with respective to the parent Div.&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-203480276740236509?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/203480276740236509/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2011/05/how-to-overlap-image-or-text-on-another.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/203480276740236509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/203480276740236509'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2011/05/how-to-overlap-image-or-text-on-another.html' title='How to overlap an image or text on another image using css? (Div overlapping, Div absolute, relative position)'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-2934627641267120864</id><published>2011-03-05T01:47:00.001-08:00</published><updated>2011-03-06T20:11:37.161-08:00</updated><title type='text'>Things to remember when implementing WebFarm</title><content type='html'>1. Make sure you do not use Application object to store data, as this&lt;br /&gt;data is stored as part of the Application Domain&lt;br /&gt;2. Make sure you use the OutProc mode to store the session data&lt;br /&gt;3. Be aware that session_OnEnd event of the HttpApplication object will not&lt;br /&gt;fire when OutProc mode is used&lt;br /&gt;4. Make sure that all the clusters in the webfarm use the same value for &lt;br /&gt;ValidationKey attribute of the MachineKey element in the configuration&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-2934627641267120864?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/2934627641267120864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2011/03/things-to-remember-when-implementing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/2934627641267120864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/2934627641267120864'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2011/03/things-to-remember-when-implementing.html' title='Things to remember when implementing WebFarm'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-3963833248201542610</id><published>2011-03-05T00:29:00.001-08:00</published><updated>2011-03-05T00:57:53.871-08:00</updated><title type='text'>How to save the picture captured from webcam in Silverlight? Saving captured images in Silverlight. ImageTools.</title><content type='html'>Silverlight does not have built-in encoders for saving images in different formats. There is a library available for this.&lt;br /&gt;&lt;br /&gt;1) Just go to &lt;a href="http://imagetools.codeplex.com/"&gt;http://imagetools.codeplex.com/&lt;/a&gt; and download ImageTools.&lt;br /&gt;2) Add reference to ImageTools&lt;br /&gt;3) Add reference to ImageTools.Utils&lt;br /&gt;4) Add reference to ImageTools.IO.&amp;lt;preferred file format&amp;gt;&lt;br /&gt;&lt;br /&gt;The Code&lt;br /&gt;-------------------------&lt;br /&gt;If the requirement is to save the captured image to local machine&lt;br /&gt;&lt;br /&gt;void source_CaptureImageCompleted(object sender, CaptureImageCompletedEventArgs e)&lt;br /&gt;{&lt;br /&gt;if (e.Result != null)&lt;br /&gt;{&lt;br /&gt;//CapturedImage is an Image control&lt;br /&gt;CapturedImage.Source = e.Result;&lt;br /&gt;//Cannot directly call 'showDialog' here. Dialog must be user-initiated.&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;private void SavePicture_Click(object sender, RoutedEventArgs e)&lt;br /&gt;{&lt;br /&gt;SaveFileDialog saveFileDialog = new SaveFileDialog { DefaultExt = ".png", Filter = "PNG Files (*.png)*.pngAll Files (*.*)*.*", FilterIndex = 1 };&lt;br /&gt;bool? dialogResult = saveFileDialog.ShowDialog();&lt;br /&gt;if (dialogResult.HasValue &amp;amp;&amp;amp; dialogResult.Value)&lt;br /&gt;{&lt;br /&gt;var image = CapturedImage.ToImage(); //ToImage is an Extension Method, which returns an ExtendedImage&lt;br /&gt;var encoder = new PngEncoder();&lt;br /&gt;using (Stream stream = saveFileDialog.OpenFile())&lt;br /&gt;{&lt;br /&gt;encoder.Encode(image, stream);&lt;br /&gt;stream.Close();&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;-----------------------------------------------------------&lt;br /&gt;If the requirement is to send the image as byte stream to a service&lt;br /&gt;&lt;br /&gt;using (Stream stream = saveFileDialog.OpenFile())&lt;br /&gt;{&lt;br /&gt;byte[] bytes = null;&lt;br /&gt;stream.Write(bytes, 0, bytes.Length);&lt;br /&gt;//Pass the bytes to the sevice&lt;br /&gt;stream.Close();&lt;br /&gt;}&lt;br /&gt;&lt;hr/&gt;&lt;br /&gt;&lt;div align="center"&gt;Complete Code&lt;/div&gt;&lt;div align="left"&gt;&lt;u&gt;XAML&lt;/u&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;a href="http://4.bp.blogspot.com/-rADyDEeOl8g/TXH5fi02RPI/AAAAAAAAAEc/4Tt2VssTELs/s1600/Xaml.png"&gt;&lt;img style="WIDTH: 400px; HEIGHT: 142px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5580515733608482034" border="0" alt="" src="http://4.bp.blogspot.com/-rADyDEeOl8g/TXH5fi02RPI/AAAAAAAAAEc/4Tt2VssTELs/s400/Xaml.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;u&gt;CODE&lt;/u&gt;&lt;/div&gt;&lt;a href="http://3.bp.blogspot.com/-UJBVNLJnf3A/TXH6QENr0cI/AAAAAAAAAEk/6wzkqpSDMzA/s1600/Code1.png"&gt;&lt;img style="WIDTH: 400px; HEIGHT: 253px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5580516567204745666" border="0" alt="" src="http://3.bp.blogspot.com/-UJBVNLJnf3A/TXH6QENr0cI/AAAAAAAAAEk/6wzkqpSDMzA/s400/Code1.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/-s1Cc8sFrmow/TXH6ucGrQPI/AAAAAAAAAEs/NwMSJiIv0Tg/s1600/code2.png"&gt;&lt;img style="WIDTH: 400px; HEIGHT: 130px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5580517089013874930" border="0" alt="" src="http://4.bp.blogspot.com/-s1Cc8sFrmow/TXH6ucGrQPI/AAAAAAAAAEs/NwMSJiIv0Tg/s400/code2.png" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-3963833248201542610?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/3963833248201542610/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2011/03/how-to-save-picture-captured-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/3963833248201542610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/3963833248201542610'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2011/03/how-to-save-picture-captured-from.html' title='How to save the picture captured from webcam in Silverlight? Saving captured images in Silverlight. ImageTools.'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-rADyDEeOl8g/TXH5fi02RPI/AAAAAAAAAEc/4Tt2VssTELs/s72-c/Xaml.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-8629554362771552115</id><published>2011-02-25T02:41:00.001-08:00</published><updated>2011-02-25T02:41:41.324-08:00</updated><title type='text'>How to use a Windows Forms Class Libary in Asp.Net</title><content type='html'>&lt;p&gt;1. Create a new Windows Forms Control Library Project&lt;br&gt;2. Add reference to any dependent controls (Com components or activeX controls)&lt;br&gt;3. Design control according to the requirement&lt;br&gt;4. Select &amp;#39;Make assembly COM Visible&amp;#39; under &amp;#39;Properties of the project &amp;gt; Application &amp;gt; Assembly Information&amp;#39;.  &lt;br&gt;  5. Add &amp;quot;c:\windows\Microsoft.NET\framework\v4.0.30319\regAsm.exe /u &amp;lt;TheTargetDll.dll&amp;gt;&amp;quot;  Under Build Events &amp;gt; Pre build event command line&lt;br&gt;6. Add &amp;quot;c:\windows\Microsoft.NET\framework\v4.0.30319\regAsm.exe &amp;lt;TheTargetDll.dll&amp;gt;&amp;quot;  Under Build Events &amp;gt; Post build event command line&lt;br&gt;  7. Select &amp;#39;Register for COM interop&amp;#39; under Build &amp;gt; Output&lt;br&gt;8. Sign the assembly if you are planning to install the assembly in the GAC&lt;/p&gt; &lt;div&gt;Code to use the component created in the previous step:&lt;/div&gt; &lt;div&gt;---------------------------------------------------------------------------------&lt;/div&gt; &lt;div&gt;1. To find the ClassID of the component we just created, go to registry editor and find the name of the dll &amp;#39;&amp;lt;TheTargetDll&amp;gt;&amp;#39;.  Copy the classid of that node.&lt;br&gt;2. Place the following code in the webpage.  &lt;/div&gt;   &lt;p&gt;&amp;lt;object  ID=&amp;quot;MyId&amp;quot; classid=&amp;quot;Paste the class id&amp;quot;/&amp;gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-8629554362771552115?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/8629554362771552115/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2011/02/how-to-use-windows-forms-class-libary.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/8629554362771552115'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/8629554362771552115'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2011/02/how-to-use-windows-forms-class-libary.html' title='How to use a Windows Forms Class Libary in Asp.Net'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-1068542107003978860</id><published>2010-07-14T23:28:00.000-07:00</published><updated>2010-07-14T23:36:34.158-07:00</updated><title type='text'>How to resolve the "The document was understood, but it could not be  processed." error occurred while Adding Service Reference to a WCF Service  hosted on a Vista machine?</title><content type='html'>&lt;div&gt; &lt;/div&gt; &lt;div&gt;Do the following on the server&lt;br&gt;------------------------------&lt;br&gt;go to - &lt;strong&gt;Start &amp;gt; Run&lt;br&gt;&lt;/strong&gt;type - &lt;strong&gt;%windir%&lt;br&gt;&lt;/strong&gt;locate the &amp;#39;&lt;strong&gt;Temp&lt;/strong&gt;&amp;#39; folder&lt;br&gt;open &lt;strong&gt;properties&lt;/strong&gt; of the &amp;#39;Temp&amp;#39; folder&lt;br&gt;  select &lt;strong&gt;&amp;#39;Security&amp;#39;&lt;/strong&gt; tab&lt;br&gt;click &lt;strong&gt;&amp;#39;Advanced&amp;#39;&lt;/strong&gt; button&lt;br&gt;click &lt;strong&gt;&amp;#39;Edit&amp;#39;&lt;/strong&gt;&lt;br&gt;select &lt;strong&gt;&amp;#39;Network Service&amp;#39;&lt;/strong&gt; and click &amp;#39;Edit&amp;#39;&lt;br&gt;  check &lt;strong&gt;&amp;#39;List folder / read data&amp;#39;&lt;/strong&gt;&lt;br&gt;check &lt;strong&gt;&amp;#39;Create files / write data&amp;#39;&lt;/strong&gt;&lt;br&gt;and click &amp;#39;&lt;strong&gt;Ok&lt;/strong&gt;&amp;#39; &lt;/div&gt; &lt;p&gt;&lt;br&gt;Now try adding a Service Reference to the WCF Service.&lt;/p&gt; &lt;p&gt;&lt;br&gt;Worked for me.&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-1068542107003978860?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/1068542107003978860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2010/07/how-to-resolve-the-document-was.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/1068542107003978860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/1068542107003978860'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2010/07/how-to-resolve-the-document-was.html' title='How to resolve the &quot;The document was understood, but it could not be  processed.&quot; error occurred while Adding Service Reference to a WCF Service  hosted on a Vista machine?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-7465576913979365041</id><published>2010-05-04T04:34:00.001-07:00</published><updated>2010-05-04T04:34:34.046-07:00</updated><title type='text'>Is there any free IMAP SSL library for c#.Net ?</title><content type='html'>&lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;a href="http://hellowebapps.com/products/imapx/"&gt;http://hellowebapps.com/products/imapx/&lt;/a&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-7465576913979365041?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/7465576913979365041/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2010/05/is-there-any-free-imap-ssl-library-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/7465576913979365041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/7465576913979365041'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2010/05/is-there-any-free-imap-ssl-library-for.html' title='Is there any free IMAP SSL library for c#.Net ?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-1785288708317036071</id><published>2010-04-10T20:28:00.001-07:00</published><updated>2010-04-10T20:28:44.988-07:00</updated><title type='text'>Is there any free WMV to AVI / MPEG / MPG converter ?</title><content type='html'>&lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;a href="http://download.cnet.com/Free-WMV-to-AVI-MPEG-Converter/3000-2194_4-10895648.html"&gt;http://download.cnet.com/Free-WMV-to-AVI-MPEG-Converter/3000-2194_4-10895648.html&lt;/a&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-1785288708317036071?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/1785288708317036071/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2010/04/is-there-any-free-wmv-to-avi-mpeg-mpg.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/1785288708317036071'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/1785288708317036071'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2010/04/is-there-any-free-wmv-to-avi-mpeg-mpg.html' title='Is there any free WMV to AVI / MPEG / MPG converter ?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-3156332940977712063</id><published>2010-04-07T01:53:00.001-07:00</published><updated>2010-04-07T01:53:21.910-07:00</updated><title type='text'>Is there any free IMAP client for .Net ? How to access mailbox from  asp.net code?</title><content type='html'>&lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;strong&gt;Koolwired.Imap&lt;/strong&gt; is a fully managed IMAP client library written in C#.  &lt;a href="http://sourceforge.net/projects/imapnet/"&gt;Download&lt;/a&gt;&lt;/div&gt; &lt;div&gt;This library can be used for accessing and making changes to your mail box.&lt;/div&gt; &lt;div&gt;Download the documentation at &lt;a href="http://imapnet.codeplex.com/Wikipage"&gt;http://imapnet.codeplex.com/Wikipage&lt;/a&gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;u&gt;Sample code&lt;/u&gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;protected&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Page_Load(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;EventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/div&gt;  &lt;div&gt; &lt;font size="2"&gt;{&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ImapConnect&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; imapConnect = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ImapConnect&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&lt;a href="http://mail.mysmtp.com"&gt;mail.mysmtp.com&lt;/a&gt;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ImapCommand&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; imapCommand = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ImapCommand&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(imapConnect);&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ImapAuthenticate&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; imapAuthenticate = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ImapAuthenticate&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(imapConnect, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;username&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;password&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;imapConnect.Open();&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;imapAuthenticate.Login();&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ImapMailbox&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; imapMailbox = imapCommand.Select(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;INBOX&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;int&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; totalRecords = imapMailbox.Exist;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;imapMailbox = imapCommand.Fetch(imapMailbox);&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;imapAuthenticate.Logout();&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;imapConnect.Close();&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;GridView1.DataSource = imapMailbox.Messages;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;GridView1.DataBind();&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-3156332940977712063?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/3156332940977712063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2010/04/is-there-any-free-imap-client-for-net.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/3156332940977712063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/3156332940977712063'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2010/04/is-there-any-free-imap-client-for-net.html' title='Is there any free IMAP client for .Net ? How to access mailbox from  asp.net code?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-3626156022835781308</id><published>2010-04-06T23:42:00.001-07:00</published><updated>2010-04-06T23:42:10.535-07:00</updated><title type='text'>Is there any free tool for merging multiple pdf documents in one  document in .Net ?</title><content type='html'>&lt;div&gt;&lt;a href="http://sourceforge.net/projects/itextdotnet/"&gt;iTextDotNet&lt;/a&gt; is a free library for working with pdf documents in .Net.  You can download the &lt;a title="iTextDotNet .NET Library" href="http://alex.buayacorp.com/wp-content/uploads/2007/07/itextnet2005-dll-146-2cab..cab"&gt;&lt;font color="#3478e3"&gt;iTextDotNet .NET Library&lt;/font&gt;&lt;/a&gt; from this blog or the &lt;a href="http://sourceforge.net/projects/itextdotnet/"&gt;&lt;font color="#3478e3"&gt;official Website&lt;/font&gt;&lt;/a&gt;.&lt;/div&gt;  &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;u&gt;Sample Code&lt;/u&gt;&lt;/div&gt; &lt;div&gt;&lt;u&gt;&lt;/u&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;using&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; com.lowagie.tools;&lt;/font&gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;partial&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;class&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;_Default&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; : System.Web.UI.&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;Page&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;  protected&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Page_Load(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;EventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;  {&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;   string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;[] myFileList = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;String&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;[]{&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;@&amp;quot;E:\Pdf\Writer001.pdf&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;@&amp;quot;E:\Pdf\Writer002.pdf&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;@&amp;quot;E:\Pdf\Writer003.pdf&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;@&amp;quot;E:\Pdf\Writer004.pdf&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;,&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;@&amp;quot;E:\Pdf\Writer005.pdf&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;,&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;@&amp;quot;E:\Pdf\Merged.pdf&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;};&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;   concat_pdf&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.main(myFileList);  &lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//Merges the files and saves them in &amp;quot;E:\Pdf\Merged.pdf&amp;quot;, which is the last element in the myFileList array&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;  }&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/div&gt; &lt;p&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-3626156022835781308?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/3626156022835781308/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2010/04/is-there-any-free-tool-for-merging.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/3626156022835781308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/3626156022835781308'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2010/04/is-there-any-free-tool-for-merging.html' title='Is there any free tool for merging multiple pdf documents in one  document in .Net ?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-3914673058820217348</id><published>2010-04-06T00:35:00.001-07:00</published><updated>2010-04-06T00:35:13.430-07:00</updated><title type='text'>Is there any free online tool similar to Visio ?</title><content type='html'>&lt;div&gt; &lt;/div&gt; &lt;div&gt;go to &lt;a href="http://www.gliffy.com/" rel="nofollow"&gt;&lt;font color="#4a6b82"&gt;http://www.gliffy.com&lt;/font&gt;&lt;/a&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-3914673058820217348?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/3914673058820217348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2010/04/is-there-any-free-online-tool-similar.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/3914673058820217348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/3914673058820217348'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2010/04/is-there-any-free-online-tool-similar.html' title='Is there any free online tool similar to Visio ?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-999487273247881282</id><published>2010-03-09T23:11:00.001-08:00</published><updated>2010-03-09T23:11:33.860-08:00</updated><title type='text'>What is the best free Video File Converting software available?</title><content type='html'>&lt;div&gt;&lt;span class="texten"&gt;&lt;/span&gt; &lt;/div&gt; &lt;div&gt;&lt;span class="texten"&gt;My favorite tool for video conversion is &lt;span class="texten"&gt;&lt;strong&gt;WinAVI Video Converter.&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span class="texten"&gt;&lt;span class="texten"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt; &lt;div&gt;&lt;span class="texten"&gt;&lt;strong&gt;WinAVI Video Converter&lt;/strong&gt; is an incredibly powerful and effective converting software program. It can convert video files from various formats with great stability. The possibilities are nearly endless with AVI, MPEG1/2/4, VCD/SVCD/DVD, DivX, XVid, ASF, WMV and even RM support and others. Also, it can support batch video files conversion of different video formats such as DVD, AVI, ASP, MOV, SWF, MPEG1, and MPEG2 all at the same time. In addition, WinAVI Video Converter can burn to VCD/SVCD/DVD. And best of all, it has a powerful video decompress/compress engine that can convert a whole AVI movie to DVD &lt;i&gt;&lt;strong&gt;in just 90 minutes&lt;/strong&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;  &lt;div&gt;&lt;span class="texten"&gt;&lt;strong&gt;&lt;em&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt; &lt;/div&gt; &lt;div&gt;&lt;span class="texten"&gt;&lt;em&gt;Download WinAVi at &lt;a href="http://www.winavi.com/en/download/download.htm"&gt;http://www.winavi.com/en/download/download.htm&lt;/a&gt; &lt;/em&gt;&lt;/span&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-999487273247881282?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/999487273247881282/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2010/03/what-is-best-free-video-file-converting.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/999487273247881282'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/999487273247881282'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2010/03/what-is-best-free-video-file-converting.html' title='What is the best free Video File Converting software available?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-7406565124448616180</id><published>2010-03-04T23:47:00.001-08:00</published><updated>2010-03-04T23:47:40.547-08:00</updated><title type='text'>How to disable submit button while waiting for AJAX response?</title><content type='html'>&lt;div align="center"&gt;&lt;strong&gt;&lt;u&gt;&lt;/u&gt;&lt;/strong&gt; &lt;/div&gt; &lt;div align="center"&gt;&lt;strong&gt;&lt;u&gt;Disabling a submit button during asynchronous postback&lt;/u&gt;&lt;/strong&gt;&lt;/div&gt; &lt;div align="center"&gt;&lt;strong&gt;&lt;u&gt;&lt;/u&gt;&lt;/strong&gt; &lt;/div&gt; &lt;div align="left"&gt;&lt;font color="#333333" size="2" face=""&gt;ScriptManager control of ASP.Net Ajax Extensions provides both Server-Side and Client-Side Framework to deal with the sequence of events that are fired during asynchronous postback.  Client-Side framework is automatically available to the browser if the page has a ScriptManager control placed on it.  We can use this framework, with a bit of javascript, to disable the submit button or contents of any container control during the time the asynchronous postback takes place.  Following is the example:&lt;/font&gt;&lt;/div&gt;  &lt;div align="left"&gt;&lt;font color="#333333"&gt;&lt;/font&gt; &lt;/div&gt; &lt;div align="left"&gt;&lt;font color="#333333" size="2"&gt;-------------------------------------------Design File-----------------------------------------------------------------&lt;/font&gt;&lt;/div&gt; &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;html&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;xmlns&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;&lt;a href="http://www.w3.org/1999/xhtml"&gt;http://www.w3.org/1999/xhtml&lt;/a&gt;&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;head&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;title&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;Disabling a submit button during asynchronous postback&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;title&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;head&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;body&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;form&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;id&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;form1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;blockquote style="MARGIN-RIGHT: 0px" dir="ltr"&gt; &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;div&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;ScriptManager&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;ScriptManager1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;ScriptManager&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;div&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div align="left"&gt; &lt;/div&gt; &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;UpdatePanel&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;UpdatePanel1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;ContentTemplate&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;blockquote style="MARGIN-RIGHT: 0px" dir="ltr"&gt; &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;TextBox&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;TextBox1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;TextBox&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;Button&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;Button1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;OnClick&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;Button1_Click&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;Text&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;Button&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;input&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;type&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;button&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;id&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;buttonPleaseWait&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;value&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;Please wait...&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;style&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;display&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;: &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;none&amp;quot; &lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;disabled&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;true&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;/blockquote&gt; &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;ContentTemplate&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;UpdatePanel&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;/blockquote&gt;&lt;font size="2"&gt; &lt;div align="left"&gt;&lt;/div&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;script&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;type&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;text/javascript&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;language&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;javascript&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt; &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;var&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; prm = Sys.WebForms.PageRequestManager.getInstance(); &lt;/font&gt;&lt;/div&gt; &lt;div align="left"&gt;&lt;font size="2"&gt;prm.add_beginRequest(BeginRequestHandler);   &lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//registering beginRequest event&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div align="left"&gt;&lt;font size="2"&gt;prm.add_endRequest(EndRequestHandler);        &lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//registering endRequest event&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div align="left"&gt; &lt;/div&gt; &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;function&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; BeginRequestHandler(sender, args) { &lt;/font&gt;&lt;/div&gt; &lt;div align="left"&gt;&lt;font size="2"&gt;document.getElementById(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;lt;%=Button1.ClientID%&amp;gt;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;).style.display = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;none&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;; &lt;/font&gt;&lt;/div&gt;  &lt;div align="left"&gt;&lt;font size="2"&gt;document.getElementById(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;buttonPleaseWait&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;).style.display = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;inline&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/div&gt;  &lt;div align="left"&gt;&lt;font size="2"&gt;} &lt;/font&gt;&lt;/div&gt; &lt;div align="left"&gt; &lt;/div&gt; &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;function&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; EndRequestHandler(sender, args) { &lt;/font&gt;&lt;/div&gt; &lt;div align="left"&gt;&lt;font size="2"&gt;document.getElementById(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;lt;%=Button1.ClientID%&amp;gt;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;).style.display = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;inline&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;; &lt;/font&gt;&lt;/div&gt;  &lt;div align="left"&gt;&lt;font size="2"&gt;document.getElementById(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;buttonPleaseWait&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;).style.display = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;none&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/div&gt;  &lt;div align="left"&gt;&lt;font size="2"&gt;} &lt;/font&gt;&lt;/div&gt; &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;script&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&lt;/font&gt; &lt;/div&gt; &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;form&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;body&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;html&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&lt;/font&gt; &lt;/div&gt; &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&lt;/font&gt; &lt;/div&gt; &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;------------------------------------------------------------------------------------Code-behind file---------------------------------------------------------------------------------&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt; &lt;/div&gt; &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;protected&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Button1_Click(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;EventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;blockquote style="MARGIN-RIGHT: 0px" dir="ltr"&gt; &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font size="2"&gt;System.Threading.&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;Thread&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Sleep(4000);&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font size="2"&gt;TextBox1.Text = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Completed&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;/blockquote&gt; &lt;div align="left"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-7406565124448616180?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/7406565124448616180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2010/03/how-to-disable-submit-button-while.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/7406565124448616180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/7406565124448616180'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2010/03/how-to-disable-submit-button-while.html' title='How to disable submit button while waiting for AJAX response?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-3150639835123678839</id><published>2010-02-26T01:59:00.001-08:00</published><updated>2010-02-26T01:59:10.146-08:00</updated><title type='text'>Why Page.FindControl is returning null ?</title><content type='html'>&lt;div&gt;Page.FindControl() finds any control that is only a direct child of Page control (form).&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;u&gt;example.&lt;/u&gt;&lt;/div&gt; &lt;div&gt;&lt;u&gt;&lt;/u&gt; &lt;/div&gt; &lt;div&gt; Form&lt;br&gt;  |&lt;br&gt;  |&lt;br&gt;  |_____TextBox1&lt;br&gt;  |_____TextBox1&lt;br&gt;  |_____DropDownList1&lt;br&gt;  |_____UpdatePanel1&lt;br&gt;  |_____UpdatePanel2&lt;br&gt;  |              |&lt;br&gt;  |              |_____TextBoxName&lt;br&gt;  |              |&lt;br&gt;   |              |_____TextBoxAge&lt;br&gt;  |&lt;br&gt;  |&lt;br&gt;  |_____DropDownList1&lt;br&gt;  |_____UpdatePanel1&lt;br&gt;  |&lt;br&gt;  |&lt;br&gt;  |&lt;br&gt;&lt;/div&gt; &lt;div&gt;In the above case, Page.FindControl() will only be able to find control that are direct childs of the form.  So, Page.FindControl() will return null if you try to find TextBoxName or TextBoxAge.&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;u&gt;Solution:&lt;/u&gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;I found this solution from a blog.&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//Function for finding a control using recursion&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;private&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;Control&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; findControlRecursive(&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;Control&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; root, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; controlIdToFind)&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (root.ID == controlIdToFind)&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; root;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;foreach&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;Control&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; currentControl &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; root.Controls)&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;Control&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; foundControl = findControlRecursive(currentControl, controlIdToFind);&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (foundControl != &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; foundControl;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//Using the function &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;Control&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; foundControl = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;foundControl = findControlRecursive(Page, &amp;quot;TextBoxName&amp;quot;);&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-3150639835123678839?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/3150639835123678839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2010/02/why-pagefindcontrol-is-returning-null.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/3150639835123678839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/3150639835123678839'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2010/02/why-pagefindcontrol-is-returning-null.html' title='Why Page.FindControl is returning null ?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-26170374287611891</id><published>2010-02-22T03:51:00.000-08:00</published><updated>2010-02-22T03:52:12.234-08:00</updated><title type='text'>How to show javascript alert from code-behind in asp.net?</title><content type='html'>&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;div&gt;&lt;u&gt;In code-behind file:&lt;/u&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt; (!FormAttached(fileList))&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; str = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;str = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Please Attach a copy of the form.&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;StringBuilder&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; builder = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;StringBuilder&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;();&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;builder.Append(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&amp;lt;script language=JavaScript&amp;gt;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;builder.Append(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;alert(&amp;#39;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; + str + &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&amp;#39;);&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;br&gt; builder.Append(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&amp;lt;/script&amp;gt;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.&lt;strong&gt;RegisterStartupScript&lt;/strong&gt;(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;PreAuthAttachment&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, builder.ToString());&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/div&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-26170374287611891?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/26170374287611891/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2010/02/how-to-show-javascript-alert-from-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/26170374287611891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/26170374287611891'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2010/02/how-to-show-javascript-alert-from-code.html' title='How to show javascript alert from code-behind in asp.net?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-2936296089651882393</id><published>2010-02-17T22:56:00.001-08:00</published><updated>2010-02-17T22:56:22.283-08:00</updated><title type='text'>How can I save a whole web page in Image format?</title><content type='html'>&lt;div&gt; &lt;/div&gt; &lt;div&gt;Use &lt;font color="#ff6666" size="4"&gt;&lt;strong&gt;EasyWeb2Pic Pro&lt;/strong&gt;&lt;/font&gt;.  It&amp;#39;s free IE toolbar, using which the whole web page can be saved in image format like JPEG, BMP, etc.&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-2936296089651882393?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/2936296089651882393/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2010/02/how-can-i-save-whole-web-page-in-image.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/2936296089651882393'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/2936296089651882393'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2010/02/how-can-i-save-whole-web-page-in-image.html' title='How can I save a whole web page in Image format?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-2677604582339119350</id><published>2010-02-15T03:43:00.001-08:00</published><updated>2010-02-15T03:43:56.231-08:00</updated><title type='text'>Where can I find free video tutorials for learning WCF ?</title><content type='html'>&lt;div&gt;Try... &lt;/div&gt; &lt;ol&gt; &lt;li&gt;&lt;a href="http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2006/09/13/8875.aspx"&gt;http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2006/09/13/8875.aspx&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="http://www.dasblonde.net/2007/06/24/WCFWebcastSeries.aspx"&gt;http://www.dasblonde.net/2007/06/24/WCFWebcastSeries.aspx&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-2677604582339119350?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/2677604582339119350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2010/02/where-can-i-find-free-video-tutorials.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/2677604582339119350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/2677604582339119350'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2010/02/where-can-i-find-free-video-tutorials.html' title='Where can I find free video tutorials for learning WCF ?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-5909498849614883480</id><published>2010-02-10T23:31:00.001-08:00</published><updated>2010-02-10T23:31:28.964-08:00</updated><title type='text'>Control focus is lost when using UpdatePanel - Solution</title><content type='html'>&lt;div&gt;I had a problem with UpdatePanels.  The focus of the control was getting lost after asynchronous postback gets completed, and even the data entered, while the asynchronous postback was going on, was getting lost.&lt;/div&gt;  &lt;div&gt; &lt;/div&gt; &lt;div&gt;Key points: &lt;/div&gt; &lt;div&gt;1. &lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;UpdateMode&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;conditional&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff"&gt;2. &lt;/font&gt;&lt;font color="#000000"&gt;Using seperate UpdatePanel for each control.&lt;/font&gt;&lt;/div&gt; &lt;div&gt;3. &lt;font size="2"&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;ScriptManager&lt;/font&gt;&lt;/font&gt;.SetFocus()  method&lt;/font&gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;Problemetic Code:&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;UpdatePanel&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;UpdatePanel1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;ContentTemplate&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;TextBox1&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;&amp;amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;TextBox&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;TextBox1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;AutoPostBack&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;True&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;OnTextChanged&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;TextBox1_TextChanged&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;TabIndex&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;1&amp;quot;&amp;gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;TextBox&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;br&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;TextBox2&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;&amp;amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;TextBox&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;TextBox2&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;TabIndex&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;2&amp;quot;&amp;gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;TextBox&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;ContentTemplate&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;UpdatePanel&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;br&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;UpdatePanel&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;UpdatePanel2&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;ContentTemplate&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;TextBox3&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;&amp;amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;TextBox&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;TextBox3&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;AutoPostBack&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;True&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;OnTextChanged&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;TextBox1_TextChanged&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;TabIndex&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;3&amp;quot;&amp;gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;TextBox&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;br&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;TextBox4&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;&amp;amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;TextBox&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;TextBox4&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;TabIndex&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;4&amp;quot;&amp;gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;TextBox&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;ContentTemplate&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;UpdatePanel&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;protected&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; TextBox1_TextChanged(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;EventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;System.Threading.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;Thread&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Sleep(1000);&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;TextBox3.Text = TextBox1.Text;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;Problem with above code: Enter some text in TextBox1 and tab to TextBox2 and keep entering some text.  And once the asynchronous postback is completed, whatever the data you entered in TextBox2 is lost and even the focus is lost.&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;Solution:&lt;/font&gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;UpdatePanel&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;UpdatePanel1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;ContentTemplate&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;TextBox1&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;&amp;amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;TextBox&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;TextBox1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;AutoPostBack&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;True&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;OnTextChanged&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;TextBox1_TextChanged&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;TabIndex&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;1&amp;quot;&amp;gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;TextBox&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;ContentTemplate&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;UpdatePanel&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff"&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;UpdatePanel&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;UpdatePanel3&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;UpdateMode&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;Conditional&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;ContentTemplate&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;font size="2"&gt;TextBox2&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;&amp;amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;TextBox&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;TextBox2&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;TabIndex&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;2&amp;quot;&amp;gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;TextBox&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;ContentTemplate&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;UpdatePanel&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;strong&gt;&lt;font color="#0000ff"&gt;&lt;/font&gt;&lt;/strong&gt; &lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;br&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;UpdatePanel&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;UpdatePanel2&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;ContentTemplate&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;TextBox3&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;&amp;amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;TextBox&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;TextBox3&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;AutoPostBack&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;True&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;OnTextChanged&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;TextBox1_TextChanged&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;TabIndex&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;3&amp;quot;&amp;gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;TextBox&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;br&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;TextBox4&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;&amp;amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;TextBox&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;ID&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;TextBox4&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;TabIndex&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;4&amp;quot;&amp;gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;TextBox&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;ContentTemplate&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;asp&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;:&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;UpdatePanel&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff"&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;protected&lt;/font&gt;&lt;/font&gt;&lt;font color="#000000" size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font color="#000000" size="2"&gt; TextBox1_TextChanged(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font color="#000000" size="2"&gt; sender, &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;EventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font size="2"&gt;System.Threading.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;Thread&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Sleep(1000);&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font size="2"&gt;TextBox3.Text = TextBox1.Text;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff"&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;Now try entering the text the same way, the focus as well the text entered during the asynchronous postback is not lost.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;Please leave your comments. Thanks.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-5909498849614883480?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/5909498849614883480/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2010/02/control-focus-is-lost-when-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/5909498849614883480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/5909498849614883480'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2010/02/control-focus-is-lost-when-using.html' title='Control focus is lost when using UpdatePanel - Solution'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-5721367164464502512</id><published>2010-02-02T00:01:00.001-08:00</published><updated>2010-02-02T00:01:54.465-08:00</updated><title type='text'>Examples for validation using regular expressions in C#?</title><content type='html'>&lt;p&gt;&lt;font face="Verdana, Arial, Helvetica, sans-serif"&gt;The following example shows the &lt;strong&gt;use of &lt;b style="BACKGROUND-COLOR: #a0ffff; COLOR: black"&gt;Regular&lt;/b&gt; Expresssions in C#.&lt;/strong&gt;This program has basic validation scripts for validation easily useable in all programs.&lt;br&gt; &lt;br&gt;&lt;/font&gt;&lt;font face="Verdana, Arial, Helvetica, sans-serif"&gt;&lt;font color="#008000" size="2"&gt;/*&lt;br&gt;&amp;lt;HowToCompile&amp;gt;&lt;br&gt;csc /r:&lt;a style="POSITION: static; TEXT-DECORATION: underline !important" id="KonaLink1" class="kLink" onmouseover="adlinkMouseOver(event,this,1);" onmouseout="adlinkMouseOut(event,this,1);" onclick="adlinkMouseClick(event,this,1);" href="http://www.c-sharpcorner.com/UploadFile/prasad_1/RegExpressionSample111172005040853AM/RegExpressionSample1.aspx#" target="_top"&gt;&lt;font style="POSITION: static; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; COLOR: blue !important; FONT-WEIGHT: 400" color="blue" size="2"&gt;&lt;span style="POSITION: static; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; COLOR: blue !important; FONT-WEIGHT: 400" class="kLink"&gt;System&lt;/span&gt;&lt;/font&gt;&lt;/a&gt;.Text.RegularExpressions.dll,System.dll Validation.cs &lt;br&gt; &amp;lt;/HowToComplie&amp;gt;&lt;br&gt;*/&lt;br&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;using&lt;/font&gt;&lt;font size="2"&gt; System.Text.RegularExpressions;&lt;br&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;using&lt;/font&gt;&lt;font size="2"&gt; System;&lt;br&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;class&lt;/font&gt;&lt;font size="2"&gt; Validation&lt;br&gt; {&lt;br&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;static&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;font size="2"&gt; Main()&lt;br&gt;{&lt;br&gt;String strToTest;&lt;br&gt; Validation objValidate=&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; Validation();&lt;br&gt;Console.Write(&amp;quot;Enter a String to Test for Alphabets:&amp;quot;);&lt;br&gt;strToTest=Console.ReadLine();&lt;br&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;font size="2"&gt;(objValidate.IsAlpha(strToTest))&lt;br&gt; {&lt;br&gt;Console.WriteLine(&amp;quot;{0} is Valid Alpha String&amp;quot;,strToTest);&lt;br&gt;}&lt;br&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;else&lt;br&gt;&lt;/font&gt;&lt;font size="2"&gt;{&lt;br&gt;Console.WriteLine(&amp;quot;{0} is not a Valid Alpha String&amp;quot;,strToTest);&lt;br&gt; }&lt;br&gt;}&lt;br&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;// Function to test for Positive Integers.&lt;br&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;bool&lt;/font&gt;&lt;font size="2"&gt; IsNaturalNumber(String strNumber)&lt;br&gt; {&lt;br&gt;Regex objNotNaturalPattern=&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; Regex(&amp;quot;[^0-9]&amp;quot;);&lt;br&gt;Regex objNaturalPattern=&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; Regex(&amp;quot;0*[1-9][0-9]*&amp;quot;);&lt;br&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;font size="2"&gt; !objNotNaturalPattern.IsMatch(strNumber) &amp;amp;&amp;amp;objNaturalPattern.IsMatch strNumber);&lt;br&gt;}&lt;br&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;// Function to test for Positive Integers with zero inclusive&lt;br&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;bool&lt;/font&gt;&lt;font size="2"&gt; IsWholeNumber(String strNumber)&lt;br&gt;{&lt;br&gt;Regex objNotWholePattern=&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; Regex(&amp;quot;[^0-9]&amp;quot;);&lt;br&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;font size="2"&gt; !objNotWholePattern.IsMatch(strNumber);&lt;br&gt;}&lt;br&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;// Function to Test for Integers both Positive &amp;amp; Negative&lt;br&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;bool&lt;/font&gt;&lt;font size="2"&gt; IsInteger(String strNumber)&lt;br&gt; {&lt;br&gt;Regex objNotIntPattern=&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; Regex(&amp;quot;[^0-9-]&amp;quot;);&lt;br&gt;Regex objIntPattern=&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; Regex(&amp;quot;^-[0-9]+$|^[0-9]+$&amp;quot;);&lt;br&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;font size="2"&gt; !objNotIntPattern.IsMatch(strNumber) &amp;amp;&amp;amp;&lt;br&gt;objIntPattern.IsMatch(strNumber);&lt;br&gt;}&lt;br&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;// Function to Test for Positive Number both Integer &amp;amp; Real&lt;br&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;bool&lt;/font&gt;&lt;font size="2"&gt; IsPositiveNumber(String strNumber)&lt;br&gt;{&lt;br&gt;Regex objNotPositivePattern=&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; Regex(&amp;quot;[^0-9.]&amp;quot;);&lt;br&gt; Regex objPositivePattern=&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; Regex(&amp;quot;^[.][0-9]+$|[0-9]*[.]*[0-9]+$&amp;quot;);&lt;br&gt;Regex objTwoDotPattern=&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; Regex(&amp;quot;[0-9]*[.][0-9]*[.][0-9]*&amp;quot;);&lt;br&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;font size="2"&gt; !objNotPositivePattern.IsMatch(strNumber) &amp;amp;&amp;amp;&lt;br&gt;objPositivePattern.IsMatch(strNumber) &amp;amp;&amp;amp;!objTwoDotPattern.IsMatch(strNumber);&lt;br&gt;}&lt;br&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;// Function to test whether the string is valid number or not&lt;br&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;bool&lt;/font&gt;&lt;font size="2"&gt; IsNumber(String strNumber)&lt;br&gt;{&lt;br&gt;Regex objNotNumberPattern=&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; Regex(&amp;quot;[^0-9.-]&amp;quot;);&lt;br&gt; Regex objTwoDotPattern=&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; Regex(&amp;quot;[0-9]*[.][0-9]*[.][0-9]*&amp;quot;);&lt;br&gt;Regex objTwoMinusPattern=&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; Regex(&amp;quot;[0-9]*[-][0-9]*[-][0-9]*&amp;quot;);&lt;br&gt; String strValidRealPattern=&amp;quot;^([-]|[.]|[-.]|[0-9])[0-9]*[.]*[0-9]+$&amp;quot;;&lt;br&gt;String strValidIntegerPattern=&amp;quot;^([-]|[0-9])[0-9]*$&amp;quot;;&lt;br&gt;Regex objNumberPattern =&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; Regex(&amp;quot;(&amp;quot; + strValidRealPattern +&amp;quot;)|(&amp;quot; + &lt;br&gt; trValidIntegerPattern + &amp;quot;)&amp;quot;);&lt;br&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;font size="2"&gt; !objNotNumberPattern.IsMatch(strNumber) &amp;amp;&amp;amp;!objTwoDotPattern.IsMatch&lt;br&gt;strNumber) &amp;amp;&amp;amp; !objTwoMinusPattern.IsMatch(strNumber) &amp;amp;&amp;amp; objNumberPattern.IsMatch(strNumber);&lt;br&gt; }&lt;br&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;// Function To test for Alphabets.&lt;br&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;bool&lt;/font&gt;&lt;font size="2"&gt; IsAlpha(String strToCheck)&lt;br&gt; {&lt;br&gt;Regex objAlphaPattern=&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; Regex(&amp;quot;[^a-zA-Z]&amp;quot;);&lt;br&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;font size="2"&gt; !objAlphaPattern.IsMatch(strToCheck);&lt;br&gt; }&lt;br&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;// Function to Check for AlphaNumeric.&lt;br&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;bool&lt;/font&gt;&lt;font size="2"&gt; IsAlphaNumeric(String strToCheck)&lt;br&gt; {&lt;br&gt;Regex objAlphaNumericPattern=&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; Regex(&amp;quot;[^a-zA-Z0-9]&amp;quot;);&lt;br&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;font size="2"&gt; !objAlphaNumericPattern.IsMatch(strToCheck); &lt;br&gt; }&lt;br&gt;}&lt;br&gt;&lt;/font&gt;&lt;/font&gt;&lt;font face="Verdana, Arial, Helvetica, sans-serif"&gt;&lt;br&gt;There is another simple way to perform these validation think of it while the next article comes.&lt;/font&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-5721367164464502512?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/5721367164464502512/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2010/02/examples-for-validation-using-regular.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/5721367164464502512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/5721367164464502512'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2010/02/examples-for-validation-using-regular.html' title='Examples for validation using regular expressions in C#?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-2881137027189983294</id><published>2010-02-01T23:58:00.001-08:00</published><updated>2010-02-01T23:58:29.898-08:00</updated><title type='text'>A basics Regular Expression explained.</title><content type='html'>&lt;div&gt;To match a string that contains &lt;em&gt;only&lt;/em&gt; those characters (or an empty string) : &amp;quot;&lt;span class="str"&gt;&lt;strong&gt;^[a-zA-Z0-9_]*$&amp;quot;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span class="pln"&gt; &lt;p&gt;Breaking it down:&lt;/p&gt; &lt;p&gt;&lt;code&gt;&lt;span class="pun"&gt;&lt;font size="4" face="Arial"&gt;^     : start of string &lt;br&gt;[     : beginning of character group &lt;br&gt;a-z : any lowercase letter &lt;br&gt;A-Z: any uppercase letter &lt;br&gt;0-9: any digit &lt;br&gt;_   : underscore &lt;br&gt; ]    : end of character group &lt;br&gt;*    : zero or more of the given characters &lt;br&gt;$   : end of string &lt;/font&gt;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;&lt;pre class="prettyprint"&gt;&lt;font size="4"&gt;If you don&amp;#39;t want to allow empty strings, use + instead of *.&lt;/font&gt;&lt;/pre&gt; &lt;/span&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-2881137027189983294?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/2881137027189983294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2010/02/basics-regular-expression-explained.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/2881137027189983294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/2881137027189983294'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2010/02/basics-regular-expression-explained.html' title='A basics Regular Expression explained.'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-3076909199004832488</id><published>2010-01-25T01:08:00.001-08:00</published><updated>2010-01-25T01:08:53.795-08:00</updated><title type='text'>How to format a DateTime field in GridView?</title><content type='html'>&lt;div&gt;&lt;a href="http://www.codedigest.com/Articles/ASPNET/137_How_to_format_DateTime_in_GridView_BoundColumn_and_TemplateColumn.aspx"&gt;http://www.codedigest.com/Articles/ASPNET/137_How_to_format_DateTime_in_GridView_BoundColumn_and_TemplateColumn.aspx&lt;/a&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-3076909199004832488?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/3076909199004832488/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2010/01/how-to-format-datetime-field-in.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/3076909199004832488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/3076909199004832488'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2010/01/how-to-format-datetime-field-in.html' title='How to format a DateTime field in GridView?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-5237424146626864526</id><published>2010-01-20T22:08:00.001-08:00</published><updated>2010-01-20T22:08:21.563-08:00</updated><title type='text'>How to test browser compatibility of my web application?</title><content type='html'>&lt;div&gt;Useful material that I found on Internet for testing browser compatibility:&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;a href="http://freelancefolder.com/7-fresh-and-simple-ways-to-test-cross-browser-compatibility/"&gt;http://freelancefolder.com/7-fresh-and-simple-ways-to-test-cross-browser-compatibility/&lt;/a&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-5237424146626864526?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/5237424146626864526/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2010/01/how-to-test-browser-compatibility-of-my.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/5237424146626864526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/5237424146626864526'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2010/01/how-to-test-browser-compatibility-of-my.html' title='How to test browser compatibility of my web application?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-9121683404380243755</id><published>2010-01-07T03:23:00.001-08:00</published><updated>2010-01-07T03:23:12.319-08:00</updated><title type='text'>No files were found to look in. Find was stopped in progress.</title><content type='html'>&lt;div&gt; &lt;/div&gt; &lt;div&gt;Press &lt;strong&gt;Ctrl + Scroll Lock.  &lt;/strong&gt;Thanks to &lt;a href="http://blogs.ugidotnet.org/franny/"&gt;Franny&amp;#39;s Adobe&lt;/a&gt; blog.&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-9121683404380243755?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/9121683404380243755/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2010/01/no-files-were-found-to-look-in-find-was.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/9121683404380243755'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/9121683404380243755'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2010/01/no-files-were-found-to-look-in-find-was.html' title='No files were found to look in. Find was stopped in progress.'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-8350609482755233211</id><published>2009-12-21T23:48:00.001-08:00</published><updated>2009-12-21T23:48:50.900-08:00</updated><title type='text'>Operator '==' cannot be applied to operands of type 'method group'  and 'string'. Why?</title><content type='html'>&lt;div&gt;I didn&amp;#39;t understand why, but I worked it around the following way.&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;u&gt;Erroneous Code:&lt;/u&gt;  &lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (tpaResponse.ToUpper == &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;APPROVED&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;u&gt;Workaround&lt;/u&gt;:&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;tpaResponse = tpaResponse.ToUpper();&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;font size="2"&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (tpaResponse == &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;APPROVED&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/div&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-8350609482755233211?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/8350609482755233211/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/12/operator-cannot-be-applied-to-operands.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/8350609482755233211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/8350609482755233211'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/12/operator-cannot-be-applied-to-operands.html' title='Operator &apos;==&apos; cannot be applied to operands of type &apos;method group&apos;  and &apos;string&apos;. Why?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-6027841049400291209</id><published>2009-12-14T21:48:00.001-08:00</published><updated>2009-12-14T21:48:48.699-08:00</updated><title type='text'>Taking a backup of all the databases in Sql Server using script.</title><content type='html'>&lt;div&gt;I found this useful script on internet for taking a backup of all the databases in Sql Server using script.&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;DECLARE&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; @name &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;VARCHAR&lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;(&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;50&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;-- database name &lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;DECLARE&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; @path &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;VARCHAR&lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;(&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;256&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;-- path for backup files &lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;DECLARE&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; @fileName &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;VARCHAR&lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;(&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;256&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;-- filename for backup &lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;DECLARE&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; @fileDate &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;VARCHAR&lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;(&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;20&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;-- used for file name &lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#008000"&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;SET&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; @path &lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;&amp;#39;E:\Backups from C &amp;amp; D drive\\&amp;#39;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;SELECT&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; @fileDate &lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff00ff" size="2"&gt;&lt;font color="#ff00ff" size="2"&gt;CONVERT&lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;(&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;VARCHAR&lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;(&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;20&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;),&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff00ff" size="2"&gt;&lt;font color="#ff00ff" size="2"&gt;GETDATE&lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;(),&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;112&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;DECLARE&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; db_cursor &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;CURSOR&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;FOR&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;SELECT&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;name&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;FROM&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; master&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;.&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;dbo&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;.&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;sysdatabases &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;WHERE&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;name&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;NOT&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;IN&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;(&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;&amp;#39;master&amp;#39;&lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;,&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;&amp;#39;model&amp;#39;&lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;,&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;&amp;#39;msdb&amp;#39;&lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;,&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;&amp;#39;tempdb&amp;#39;&lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/div&gt;  &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;OPEN&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; db_cursor &lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;FETCH&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; NEXT &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;FROM&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; db_cursor &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;INTO&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; @name &lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;WHILE&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff00ff" size="2"&gt;&lt;font color="#ff00ff" size="2"&gt;@@FETCH_STATUS&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 0 &lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;BEGIN&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;SET&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; @fileName &lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; @path &lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;+&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; @name &lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;+&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;&amp;#39;_&amp;#39;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;+&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; @fileDate &lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;+&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;&amp;#39;.BAK&amp;#39;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;BACKUP&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;DATABASE&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; @name &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;TO&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;DISK&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; @fileName &lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;FETCH&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; NEXT &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;FROM&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; db_cursor &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;INTO&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; @name &lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;END&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;CLOSE&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; db_cursor &lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;DEALLOCATE&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; db_cursor &lt;/font&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-6027841049400291209?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/6027841049400291209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/12/taking-backup-of-all-databases-in-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/6027841049400291209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/6027841049400291209'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/12/taking-backup-of-all-databases-in-sql.html' title='Taking a backup of all the databases in Sql Server using script.'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-7289701381224756655</id><published>2009-12-14T20:05:00.001-08:00</published><updated>2009-12-14T20:05:44.308-08:00</updated><title type='text'>How to analyze ASP.NET Web Application Performance by Using the  Performance Administration Tool?</title><content type='html'>A good article: &lt;a href="http://support.microsoft.com/kb/815159"&gt;http://support.microsoft.com/kb/815159&lt;/a&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-7289701381224756655?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/7289701381224756655/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/12/how-to-analyze-aspnet-web-application.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/7289701381224756655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/7289701381224756655'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/12/how-to-analyze-aspnet-web-application.html' title='How to analyze ASP.NET Web Application Performance by Using the  Performance Administration Tool?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-740078221437033784</id><published>2009-11-09T21:25:00.001-08:00</published><updated>2009-11-09T21:25:14.139-08:00</updated><title type='text'>FileUpload control is not working with UpdatePanel. Is there any  alternative?</title><content type='html'>&lt;div&gt;FileUpload is one of the controls that cannot be placed inside an UpdatePanel control.  After a little search on internet, I found an alternative, &lt;strong&gt;FileUploadAjax&lt;/strong&gt;, which is free and worked perfect for me. This is also very easy to use.  More on the control at &lt;a href="http://en.fileuploadajax.subgurim.net/"&gt;http://en.fileuploadajax.subgurim.net/&lt;/a&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-740078221437033784?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/740078221437033784/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/11/fileupload-control-is-not-working-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/740078221437033784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/740078221437033784'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/11/fileupload-control-is-not-working-with.html' title='FileUpload control is not working with UpdatePanel. Is there any  alternative?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-4847770380147757253</id><published>2009-10-27T23:42:00.001-07:00</published><updated>2009-10-27T23:42:14.404-07:00</updated><title type='text'>Horizontal scrollbar is not displayed for Report Viewer control.</title><content type='html'>&lt;div&gt;&lt;font color="#a31515"&gt;I observed that this problem exists only with IE 7.&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#a31515"&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#a31515"&gt;One solution I have found after googling is to add a bottom-margin style to the reportviewer control in code-behind file.&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#a31515"&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#a31515"&gt;eg. &lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#a31515"&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#a31515"&gt;&lt;strong&gt;&lt;font size="2"&gt;ReportViewer1.Attributes.Add(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;style&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;margin-bottom: 50px;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#a31515"&gt;&lt;/font&gt; &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-4847770380147757253?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/4847770380147757253/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/10/horizontal-scrollbar-is-not-displayed.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/4847770380147757253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/4847770380147757253'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/10/horizontal-scrollbar-is-not-displayed.html' title='Horizontal scrollbar is not displayed for Report Viewer control.'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-4674164311037669404</id><published>2009-10-07T22:57:00.001-07:00</published><updated>2009-10-07T22:57:05.764-07:00</updated><title type='text'>How to convert various files into PDF programmatically in Asp.Net?</title><content type='html'>&lt;div&gt; &lt;/div&gt; &lt;div&gt;Here is a very useful article about converting various files (doc, docx, xls, xlsx, txt, etc) into pdf in Asp.Net.   &lt;a href="http://aspalliance.com/1447_Creating_PDFs_with_C_using_Ghostscript.all"&gt;http://aspalliance.com/1447_Creating_PDFs_with_C_using_Ghostscript.all&lt;/a&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-4674164311037669404?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/4674164311037669404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/10/how-to-convert-various-files-into-pdf.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/4674164311037669404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/4674164311037669404'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/10/how-to-convert-various-files-into-pdf.html' title='How to convert various files into PDF programmatically in Asp.Net?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-6322064812126070625</id><published>2009-09-29T06:02:00.001-07:00</published><updated>2009-09-29T06:02:53.843-07:00</updated><title type='text'>How to find if rows exist with a particular value in  dataset/dataview/datatable?</title><content type='html'>&lt;div&gt;First specify the condition using RowFilter property of DataView.&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;eg. &lt;strong&gt;dvP&lt;font size="2"&gt;rocessedItems.Table.DefaultView.RowFilter = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;DocumentName=&amp;#39;myDoc.docx&lt;/font&gt;&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;#39;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/strong&gt;&lt;/div&gt;  &lt;div&gt; &lt;/div&gt; &lt;div&gt;Then check if the condition results in any rows. If not, no rows exists with the specified condition.&lt;/div&gt; &lt;div&gt;eg.&lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;strong&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (dvProcessedItems.Table.DefaultView.Count == 0)&lt;/font&gt;&lt;/strong&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;strong&gt;//No rows resulted&lt;/strong&gt;&lt;/div&gt; &lt;div&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;Find more about search criteria at :&lt;a href="http://www.csharp-examples.net/dataview-rowfilter/"&gt;http://www.csharp-examples.net/dataview-rowfilter/&lt;/a&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-6322064812126070625?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/6322064812126070625/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/09/how-to-find-if-rows-exist-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/6322064812126070625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/6322064812126070625'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/09/how-to-find-if-rows-exist-with.html' title='How to find if rows exist with a particular value in  dataset/dataview/datatable?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-9030621843688507467</id><published>2009-08-18T02:47:00.001-07:00</published><updated>2009-08-18T02:47:41.583-07:00</updated><title type='text'>Regular expression for "string length can be zero or more, but must  contain at least one digit if length is more than zero"?</title><content type='html'>&lt;div&gt; &lt;/div&gt; &lt;div&gt;^(?=.*[0-9]+.*)[\w]{0,50}$&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-9030621843688507467?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/9030621843688507467/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/08/regular-expression-for-string-length.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/9030621843688507467'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/9030621843688507467'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/08/regular-expression-for-string-length.html' title='Regular expression for &quot;string length can be zero or more, but must  contain at least one digit if length is more than zero&quot;?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-3749495295150546347</id><published>2009-08-16T04:07:00.001-07:00</published><updated>2009-08-16T04:07:18.117-07:00</updated><title type='text'>An unexpected error occurred in the .NET Framework Data Provdier for MySQL?</title><content type='html'>&lt;div class=Section1&gt;  &lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;The error &amp;#8216;&lt;em&gt;&lt;span style='font-family:"Arial","sans-serif"; color:black'&gt;An unexpected error occurred in the .NET Framework Data&lt;/span&gt;&lt;/em&gt;&lt;span style='font-family:"Arial","sans-serif";color:black'&gt; Provdier for &lt;em&gt;MySQL&amp;#8217; &lt;/em&gt;&lt;/span&gt;occurs when visual studio searches for a MySql connector related dll in the GAC, which is not present.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;To resolve this issues:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='mso-list:Ignore'&gt;1.&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;Re-install the mysql-connector-net-X.X.X&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='mso-list:Ignore'&gt;2.&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;Open the visual studio, and make sure the same error is not occurring.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='mso-list:Ignore'&gt;3.&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;Close the visual studio.&amp;nbsp; And uninstall the mysql-connector-net-X.X.X from Add/Remove programs.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;This worked for me.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-3749495295150546347?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/3749495295150546347/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/08/unexpected-error-occurred-in-net.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/3749495295150546347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/3749495295150546347'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/08/unexpected-error-occurred-in-net.html' title='An unexpected error occurred in the .NET Framework Data Provdier for MySQL?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-2457548290478737175</id><published>2009-08-15T11:09:00.001-07:00</published><updated>2009-08-15T11:09:38.697-07:00</updated><title type='text'>How do I speed-up my website?</title><content type='html'>&lt;div class=Section1&gt;  &lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;A few quick tips on improving the performance of a website at &lt;a href="http://developer.yahoo.com/performance/rules.html#expires"&gt;http://developer.yahoo.com/performance/rules.html#expires&lt;/a&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-2457548290478737175?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/2457548290478737175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/08/how-do-i-speed-up-my-website.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/2457548290478737175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/2457548290478737175'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/08/how-do-i-speed-up-my-website.html' title='How do I speed-up my website?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-3430715782461901788</id><published>2009-08-14T10:05:00.001-07:00</published><updated>2009-08-14T10:05:48.251-07:00</updated><title type='text'>How to analyze the performance of a webpage?</title><content type='html'>&lt;div class=Section1&gt;  &lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:"Arial","sans-serif"; color:#444444'&gt;YSlow is a Firefox add-on that analyzes web pages and why they're slow based on Yahoo!'s rules for high performance web sites.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:"Arial","sans-serif"; color:#444444'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;&lt;span style='font-size:10.0pt;font-family:"Arial","sans-serif"; color:#444444'&gt;Do the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=MsoListParagraph style='text-indent:-.25in;mso-list:l2 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#444444'&gt;&lt;span style='mso-list:Ignore'&gt;1.&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;Install Firefox if you don&amp;#8217;t have.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoListParagraph style='text-indent:-.25in;mso-list:l2 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#444444'&gt;&lt;span style='mso-list:Ignore'&gt;2.&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;Install Firebug add-on (&lt;span style='font-size: 10.0pt;font-family:"Arial","sans-serif";color:#444444'&gt;&lt;a href="https://addons.mozilla.org/en-US/firefox/addon/1843"&gt;https://addons.mozilla.org/en-US/firefox/addon/1843&lt;/a&gt;)&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoListParagraph style='text-indent:-.25in;mso-list:l2 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#444444'&gt;&lt;span style='mso-list:Ignore'&gt;3.&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;Install YSlow add-on (&lt;a href="https://addons.mozilla.org/en-US/firefox/addon/5369"&gt;https://addons.mozilla.org/en-US/firefox/addon/5369&lt;/a&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;Running a test:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoListParagraph style='text-indent:-.25in;mso-list:l1 level1 lfo3'&gt;&lt;![if !supportLists]&gt;&lt;span style='mso-list:Ignore'&gt;1.&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;Open the page to be tested in Firefox.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoListParagraph style='text-indent:-.25in;mso-list:l1 level1 lfo3'&gt;&lt;![if !supportLists]&gt;&lt;span style='mso-list:Ignore'&gt;2.&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;Click YSlow icon on the status bar.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoListParagraph style='text-indent:-.25in;mso-list:l1 level1 lfo3'&gt;&lt;![if !supportLists]&gt;&lt;span style='mso-list:Ignore'&gt;3.&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;Click Run Test button.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-3430715782461901788?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/3430715782461901788/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/08/how-to-analyze-performance-of-webpage.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/3430715782461901788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/3430715782461901788'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/08/how-to-analyze-performance-of-webpage.html' title='How to analyze the performance of a webpage?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-6789261818829835223</id><published>2009-08-06T23:37:00.001-07:00</published><updated>2009-08-07T00:15:58.058-07:00</updated><title type='text'>How to count number of occurrences of a specific character in a  string in TSQL?</title><content type='html'>I did not find any built-in function for this. So I achieved this in the following way.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#0000ff;"&gt;declare&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt; @myText &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#0000ff;"&gt;varchar&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#808080;"&gt;&lt;span style="color:#808080;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;10&lt;/span&gt;&lt;span style="color:#808080;"&gt;&lt;span style="color:#808080;"&gt;);&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#008000;"&gt;&lt;span style="color:#008000;"&gt;--variable to contain text&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#0000ff;"&gt;set&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt; @myText &lt;/span&gt;&lt;span style="color:#808080;"&gt;&lt;span style="color:#808080;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&lt;span style="color:#ff0000;"&gt;'33.3.3'&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#808080;"&gt;&lt;span style="color:#808080;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#008000;"&gt;&lt;span style="color:#008000;"&gt;--Initializing the var with some text&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="color:#0000ff;"&gt;select&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#ff00ff;"&gt;&lt;span style="color:#ff00ff;"&gt;len&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#808080;"&gt;&lt;span style="color:#808080;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;@myText&lt;/span&gt;&lt;span style="color:#808080;"&gt;&lt;span style="color:#808080;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#808080;"&gt;&lt;span style="color:#808080;"&gt;-&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#ff00ff;"&gt;&lt;span style="color:#ff00ff;"&gt;len&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#808080;"&gt;&lt;span style="color:#808080;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#ff00ff;"&gt;&lt;span style="color:#ff00ff;"&gt;replace&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#808080;"&gt;&lt;span style="color:#808080;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;@myText&lt;/span&gt;&lt;span style="color:#808080;"&gt;&lt;span style="color:#808080;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&lt;span style="color:#ff0000;"&gt;'.'&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#808080;"&gt;&lt;span style="color:#808080;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&lt;span style="color:#ff0000;"&gt;''&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#808080;"&gt;&lt;span style="color:#808080;"&gt;))&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#008000;"&gt;&lt;span style="color:#008000;"&gt;--Finding the number of occurrances of '.'&lt;br /&gt;---------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;E.g. of user defined function&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CREATE FUNCTION [dbo].[udf_CountNumberOfOccurrances]&lt;br /&gt;(&lt;br /&gt;-- Add the parameters for the function here&lt;br /&gt;@TextToSearch varchar(100),&lt;br /&gt;@character nchar(1)&lt;br /&gt;)&lt;br /&gt;RETURNS int&lt;br /&gt;AS&lt;br /&gt;BEGIN&lt;br /&gt;-- Declare the return variable here&lt;br /&gt;DECLARE @Result int&lt;br /&gt;SELECT @Result = len(@TextToSearch) - len(replace(@TextToSearch, @character, '')) --Finding the number of occurrances of '.'&lt;br /&gt;-- Return the result of the function&lt;br /&gt;RETURN @Result&lt;br /&gt;END&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-6789261818829835223?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/6789261818829835223/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/08/how-to-count-number-of-occurrences-of.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/6789261818829835223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/6789261818829835223'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/08/how-to-count-number-of-occurrences-of.html' title='How to count number of occurrences of a specific character in a  string in TSQL?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-2117951742729862769</id><published>2009-08-05T23:15:00.001-07:00</published><updated>2009-08-05T23:15:08.202-07:00</updated><title type='text'>Is there a way to avoid the .Net application from being  reverse-engineered?</title><content type='html'>&lt;p&gt;.NET applications are compiled into Intermediary Language (MSIL) and then during execution, just-in-time (JIT) compiled into native code.  It is very hard to reverse engineer native code because it is in binary machine-readable form.  MSIL on the other hand was designed to be human-readable.   A tool like IL Disassembler (ILDASM) or .NET Reflector will show you the code.  This is probably your concern.  To protect this, you can do one of two things - (1) obfuscate your code with many obfuscators available in the market.  Dotfuscator is one example.   (2) Use ngen.exe to create the binary format - this will however compromise the feature of .NET that allows it to optimally target the JIT compiled EXE according to the hardware/processor architecture&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-2117951742729862769?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/2117951742729862769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/08/is-there-way-to-avoid-net-application.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/2117951742729862769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/2117951742729862769'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/08/is-there-way-to-avoid-net-application.html' title='Is there a way to avoid the .Net application from being  reverse-engineered?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-5987374365336730917</id><published>2009-08-05T22:45:00.001-07:00</published><updated>2009-08-05T22:45:28.905-07:00</updated><title type='text'>How to copy entire data of one table to a new table?</title><content type='html'>&lt;p&gt;The easiest of all ways is using SELECT ... INTO &amp;lt;NEW TABLE&amp;gt; from &amp;lt;Source Table&amp;gt;&lt;br&gt;&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-5987374365336730917?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/5987374365336730917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/08/how-to-copy-entire-data-of-one-table-to.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/5987374365336730917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/5987374365336730917'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/08/how-to-copy-entire-data-of-one-table-to.html' title='How to copy entire data of one table to a new table?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-7552949033484457067</id><published>2009-08-01T02:28:00.001-07:00</published><updated>2009-08-01T02:28:42.828-07:00</updated><title type='text'>Is there any free online tool for virus scanning and registry  cleanups?</title><content type='html'>&lt;div&gt; &lt;/div&gt; &lt;div&gt;You can use free online Microsoft OneCare safety scanner at &lt;a href="http://onecare.live.com/site/en-us/default.htm?s_cid=sah/?s_cid=sah"&gt;http://onecare.live.com/site/en-us/default.htm?s_cid=sah/?s_cid=sah&lt;/a&gt;&lt;/div&gt;  &lt;ul&gt; &lt;li&gt;&lt;strong&gt;Protection&lt;/strong&gt; tool is for virus scan.&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Clean up&lt;/strong&gt; tool is for temporary file removal and registry cleanup&lt;/li&gt; &lt;li&gt;&lt;strong&gt;Tune up &lt;/strong&gt;tool is for improving performance.&lt;/li&gt;&lt;/ul&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;But you need to have a internet connection with good speed.&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-7552949033484457067?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/7552949033484457067/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/08/is-there-any-free-online-tool-for-virus.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/7552949033484457067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/7552949033484457067'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/08/is-there-any-free-online-tool-for-virus.html' title='Is there any free online tool for virus scanning and registry  cleanups?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-6420926791220836975</id><published>2009-08-01T01:39:00.001-07:00</published><updated>2009-08-01T01:39:26.748-07:00</updated><title type='text'>How to resolve 'mcafee agent cannot be removed because other products  are still using it' error while uninstalling McAfee?</title><content type='html'>&lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;strong&gt;Step 1:  &lt;/strong&gt;Find where the &lt;strong&gt;FrmInst.exe &lt;/strong&gt;file is located.  Generally located in &lt;strong&gt;C:\program Files\McAfee\Common Framework&lt;/strong&gt;&lt;/div&gt; &lt;div&gt;&lt;strong&gt;Step 2:  &lt;/strong&gt;Open command prompt.&lt;/div&gt; &lt;div&gt;&lt;strong&gt;Step 3:  &lt;/strong&gt;Run this command: &lt;strong&gt;C:\program Files\McAfee\Common Framework\frminst /forceuninstall&lt;/strong&gt;&lt;/div&gt; &lt;div&gt;&lt;strong&gt;&lt;/strong&gt; &lt;/div&gt; &lt;div&gt;This worked for me.&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-6420926791220836975?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/6420926791220836975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/08/how-to-resolve-mcafee-agent-cannot-be.html#comment-form' title='16 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/6420926791220836975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/6420926791220836975'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/08/how-to-resolve-mcafee-agent-cannot-be.html' title='How to resolve &apos;mcafee agent cannot be removed because other products  are still using it&apos; error while uninstalling McAfee?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>16</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-4434261205605301623</id><published>2009-07-31T23:30:00.001-07:00</published><updated>2009-07-31T23:30:13.983-07:00</updated><title type='text'>How to remove tazebama.dll virus?</title><content type='html'>&lt;div&gt;&lt;span id="conttitle"&gt;tazebama is a trozan horse, which corrupts the data files and executable files.  And it also sends out emails with funny messages to email-ids in the outlook address book.&lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span&gt;&lt;/span&gt; &lt;/div&gt; &lt;div&gt;&lt;span&gt;I got rid of this virus as following:&lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span&gt;&lt;strong&gt;Step 1:  &lt;span&gt;Delete the following files and directories:&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt; &lt;blockquote dir="ltr" style="MARGIN-RIGHT: 0px"&gt;&lt;span&gt; &lt;div&gt;%SystemDrive%\Documents and Settings\tazebama.dl_&lt;/div&gt; &lt;div&gt;%SystemDrive%\Documents and Settings\hook.dl_&lt;/div&gt; &lt;div&gt;%UserProfile%\Start Menu\Programs\Startup\zPharoh.exe&lt;/div&gt; &lt;div&gt;%SystemDrive%\Documents and Settings\tazebama.dll&lt;/div&gt; &lt;div&gt;%SystemDrive%\Documents and Settings\[USER NAME]\Application Data\tazebama&lt;/div&gt; &lt;div&gt;%SystemDrive%\Documents and Settings\[USER NAME]\Application Data\tazebama\tazebama.log&lt;/div&gt; &lt;div&gt;%SystemDrive%\Documents and Settings\[USER NAME]\Application Data\tazebama\zPharaoh.dat&lt;/div&gt;&lt;/span&gt;&lt;/blockquote&gt; &lt;div&gt;&lt;strong&gt; Step 2: Download RegRun (a free tool) from &lt;/strong&gt;&lt;a href="http://rapidshare.com/files/260565415/reanimator.zip"&gt;&lt;strong&gt;http://rapidshare.com/files/260565415/reanimator.zip&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;  &lt;/strong&gt;Run this tool, which lists out the hidden virus-related files in various system directories eg, startup, autorun.  Click &amp;#39;Get It Out&amp;#39; to get rid of the files one by one (make sure you get rid of the autorun.inf files in the all the drives and tazebama.dll).  Follow the steps in the wizard.&lt;/div&gt;  &lt;div&gt; &lt;/div&gt; &lt;div&gt;Restart and you are done.  This worked for me.&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-4434261205605301623?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/4434261205605301623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-remove-tazebamadll-virus.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/4434261205605301623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/4434261205605301623'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-remove-tazebamadll-virus.html' title='How to remove tazebama.dll virus?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-8626121694309281841</id><published>2009-07-30T09:43:00.000-07:00</published><updated>2009-07-30T09:47:28.842-07:00</updated><title type='text'>What are different options for displaying rotational add banners in Asp.Net?</title><content type='html'>&lt;div class="Section1"&gt;&lt;p class="MsoNormal"&gt;&lt;?xml:namespace prefix = o /&gt;&lt;o:p&gt;1. &lt;strong&gt;AdRotator&lt;/strong&gt; control&lt;br /&gt;2. &lt;strong&gt;UpdatePanel&lt;/strong&gt; with &lt;strong&gt;Ajax Timer&lt;/strong&gt; (asynchronously update the images on Tick event of Ajax Timer)&lt;br /&gt;3. &lt;strong&gt;SlideShow&lt;/strong&gt; control of AjaxControlToolKit (&lt;a href="http://www.asp.net/AJAX/AjaxControlToolkit/Samples/SlideShow/SlideShow.aspx"&gt;http://www.asp.net/AJAX/AjaxControlToolkit/Samples/SlideShow/SlideShow.aspx&lt;/a&gt;).&lt;/o:p&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-8626121694309281841?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/8626121694309281841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/what-are-different-options-for.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/8626121694309281841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/8626121694309281841'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/what-are-different-options-for.html' title='What are different options for displaying rotational add banners in Asp.Net?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-2092375578264302817</id><published>2009-07-29T00:00:00.001-07:00</published><updated>2009-07-29T00:00:53.620-07:00</updated><title type='text'>How to use validation control (RangeValidator or CompareValidator) to  ensure the date selected is greater than today?</title><content type='html'>&lt;div&gt;Step 1.  Use &lt;font size="2"&gt;CompareValidator&lt;/font&gt;&lt;/div&gt; &lt;div&gt;Step 2.  Set the &lt;font size="2"&gt;&lt;strong&gt;Type&lt;/strong&gt; and &lt;font size="2"&gt;&lt;strong&gt;ValueToCompare&lt;/strong&gt; properties in code-behind, eg., in page_load&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;eg. &lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (!IsPostBack)&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;CompareValidatorRecommendedDate.Type = &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;ValidationDataType&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Date;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;CompareValidatorRecommendedDate.ValueToCompare = &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;DateTime&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Today.ToShortDateString();&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;It worked for me.&lt;/font&gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;But the following ways &lt;strong&gt;did not work&lt;/strong&gt; for me:&lt;/div&gt; &lt;div&gt;1. ValueToCompare = &amp;#39;&amp;lt;%= DateTime.Today.ToShortString() %&amp;gt;&amp;#39;&lt;/div&gt; &lt;div&gt;2. ValueToCompare=&amp;quot;&amp;lt;%# DateTime.Today.ToShortDateString() %&amp;gt;&amp;quot;&lt;font size="2"&gt;&lt;/font&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-2092375578264302817?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/2092375578264302817/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-use-validation-control.html#comment-form' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/2092375578264302817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/2092375578264302817'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-use-validation-control.html' title='How to use validation control (RangeValidator or CompareValidator) to  ensure the date selected is greater than today?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-5180766067456201832</id><published>2009-07-24T22:48:00.001-07:00</published><updated>2009-07-30T09:53:45.475-07:00</updated><title type='text'>HTTP Error 401.3 - Unauthorized: Access is denied due to an ACL set on the requested resource.  How to resolve?</title><content type='html'>&lt;div class="Section1"&gt;&lt;p class="MsoNormal"&gt;&lt;?xml:namespace prefix = o /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;/o:p&gt;The following error generally occurs in IIS 6.0 if the target physical directory of a web application is not under c:\inetpub\wwwroot. This is because by default wwwroot folder has all the required permissions. &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;b&gt;Solution: &lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;If you would like to have the target physical directory of a web application in a path other than wwwroot, then you would need to configure the application as below. It worked for me.&lt;/p&gt;&lt;p class="MsoNormal"&gt;1. Right click the physical folder of the application -&amp;gt; properties -&amp;gt; &lt;b&gt;web sharing&lt;/b&gt; (tab). Provide an alias name, which will become the name of virtual directory in IIS. &lt;/p&gt;&lt;p class="MsoNormal"&gt;2. Right click the physical folder of the application again -&amp;gt; properties -&amp;gt; &lt;b&gt;security&lt;/b&gt; (tab). Provide Modify, read, write permissions to the &lt;b&gt;IIS_WPG&lt;/b&gt; user. If you don’t see the IIS_WPG user in the list, you can use ‘advanced’ option to find all the names and then select IIS_WPG.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="MARGIN-LEFT: 0.5in"&gt;Problem solved.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoListParagraph"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoListParagraph" style="TEXT-ALIGN: center" align="left"&gt;&lt;b&gt;&lt;span style="font-size:17;color:red;"&gt;The error &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;div align="left"&gt;&lt;table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; MARGIN-LEFT: -0.4pt; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse" cellspacing="0" cellpadding="0" border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="BORDER-RIGHT: black 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: black 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: black 1pt solid; WIDTH: 6.65in; PADDING-TOP: 0in; BORDER-BOTTOM: black 1pt solid" valign="top" width="638"&gt;&lt;p class="MsoNormal" style="LINE-HEIGHT: 15pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;b&gt;&lt;span style="font-family:'Verdana','sans-serif';font-size:13;"&gt;You are not authorized to view this page&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="LINE-HEIGHT: 12pt"&gt;&lt;span style="font-family:'Verdana','sans-serif';font-size:8;"&gt;You do not have permission to view this directory or page due to the access control list (ACL) that is configured for this resource on the Web server. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="MsoNormal" style="LINE-HEIGHT: 12pt; TEXT-ALIGN: center" align="center"&gt;&lt;span style="font-family:'Verdana','sans-serif';font-size:8;"&gt;&lt;hr align="center" width="100%" size="2"&gt;&lt;/span&gt;&lt;/div&gt;&lt;p class="MsoNormal" style="LINE-HEIGHT: 12pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;span style="font-family:'Verdana','sans-serif';font-size:8;"&gt;Please try the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li class="MsoNormal" style="LINE-HEIGHT: 12pt; mso-list: l0 level1 lfo1; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;span style="font-family:'Verdana','sans-serif';font-size:8;"&gt;Contact the Web site administrator if you believe you should be able to view this directory or page. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="LINE-HEIGHT: 12pt; mso-list: l0 level1 lfo1; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;span style="font-family:'Verdana','sans-serif';font-size:8;"&gt;Click the &lt;/span&gt;&lt;a href="javascript:location.reload()"&gt;&lt;span style="font-family:'Times New Roman','serif';font-size:8;color:red;"&gt;Refresh&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:'Verdana','sans-serif';font-size:8;"&gt; button to try again with different credentials. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class="MsoNormal" style="LINE-HEIGHT: 12pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;b&gt;&lt;span style="font-family:'Verdana','sans-serif';font-size:8;"&gt;HTTP Error 401.3 - Unauthorized: Access is denied due to an ACL set on the requested resource.&lt;br /&gt;Internet Information Services (IIS)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class="MsoNormal" style="LINE-HEIGHT: 12pt; TEXT-ALIGN: center" align="center"&gt;&lt;span style="font-family:'Verdana','sans-serif';font-size:8;"&gt;&lt;hr align="center" width="100%" size="2"&gt;&lt;/span&gt;&lt;/div&gt;&lt;p class="MsoNormal" style="LINE-HEIGHT: 12pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;span style="font-family:'Verdana','sans-serif';font-size:8;"&gt;Technical Information (for support personnel)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li class="MsoNormal" style="LINE-HEIGHT: 12pt; mso-list: l1 level1 lfo2; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;span style="font-family:'Verdana','sans-serif';font-size:8;"&gt;Go to &lt;/span&gt;&lt;a href="http://go.microsoft.com/fwlink/?linkid=8180"&gt;&lt;span style="font-family:'Times New Roman','serif';font-size:8;color:red;"&gt;Microsoft Product Support Services&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:'Verdana','sans-serif';font-size:8;"&gt; and perform a title search for the words &lt;b&gt;HTTP&lt;/b&gt; and &lt;b&gt;401&lt;/b&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="LINE-HEIGHT: 12pt; mso-list: l1 level1 lfo2; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;span style="font-family:'Verdana','sans-serif';font-size:8;"&gt;Open &lt;b&gt;IIS Help&lt;/b&gt;, which is accessible in IIS Manager (inetmgr), and search for topics titled &lt;b&gt;About Security&lt;/b&gt;, &lt;b&gt;Access Control&lt;/b&gt;, and &lt;b&gt;About Custom Error Messages&lt;/b&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-5180766067456201832?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/5180766067456201832/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/http-error-4013-unauthorized-access-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/5180766067456201832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/5180766067456201832'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/http-error-4013-unauthorized-access-is.html' title='HTTP Error 401.3 - Unauthorized: Access is denied due to an ACL set on the requested resource.  How to resolve?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-6470819982559138490</id><published>2009-07-24T05:26:00.001-07:00</published><updated>2009-07-24T05:26:50.358-07:00</updated><title type='text'>How to work with dynamic arrays in .Net?</title><content type='html'>&lt;div&gt;If the size of an array is not known during initialization (the array is expected to grow dynamically) , we can use dynamic arrays.&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;Follwing options are available to work with dynamic arrays in .Net:&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;1. ArrayList&lt;/div&gt; &lt;div&gt;2. List&amp;lt;&amp;gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;u&gt;&lt;strong&gt;ArrayList example&lt;/strong&gt;&lt;/u&gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ArrayList&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; myDynamicList = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ArrayList&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;();&lt;/font&gt;&lt;/div&gt;  &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;for&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;int&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; i = 0; i &amp;lt; 100; i++)&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;myDynamicList.Add(i.ToString());&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;u&gt;List&amp;lt;&amp;gt; example&lt;/u&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;strong&gt;&lt;u&gt;&lt;/u&gt;&lt;/strong&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;List&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;gt; myDynamicList = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;List&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;gt;();&lt;/font&gt;&lt;/div&gt;  &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;for&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;int&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; i = 0; i &amp;lt; 100; i++)&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;myDynamicList.Add(i.ToString());&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;/strong&gt; &lt;/font&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-6470819982559138490?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/6470819982559138490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-work-with-dynamic-arrays-in-net.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/6470819982559138490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/6470819982559138490'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-work-with-dynamic-arrays-in-net.html' title='How to work with dynamic arrays in .Net?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-1918574839229717936</id><published>2009-07-23T00:07:00.001-07:00</published><updated>2009-07-23T00:07:16.958-07:00</updated><title type='text'>How to find an element in an array without looping through in .Net?</title><content type='html'>&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;div&gt;&lt;font color="#000000"&gt;Array class has static methods to find if an element exists in an array, which are very handy when using with value types and string types.&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#000000"&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#000000"&gt;eg.&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#000000"&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;string&lt;/div&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;[] tempAllRelationships = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;[] { &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Father&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Mother&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Son&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Doughter&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Brother&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Sister&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Spouse&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Uncle&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Aunthy&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Grandfather&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Grandmother&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Bother In-Law&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Sister In-Law&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Mother In-law&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Father In-law&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Friend&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Others&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; }; &lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;int&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; foundItemIndex = &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;Array&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.IndexOf&amp;lt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;gt;(tempAllRelationships, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Son&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-1918574839229717936?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/1918574839229717936/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-find-element-in-array-without.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/1918574839229717936'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/1918574839229717936'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-find-element-in-array-without.html' title='How to find an element in an array without looping through in .Net?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-4725369138048705898</id><published>2009-07-22T05:23:00.001-07:00</published><updated>2009-07-24T01:28:52.934-07:00</updated><title type='text'>How to access my local drives from remote computer using Remote  Desktop?</title><content type='html'>&lt;div&gt;Everytime I had to setup a new application in a remote system, I used to upload the files using ftp and configure the application using Remote Desktop.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;Recently a friend gave me a trick to access local drives from remote  computer using Remote Desktop:&lt;br /&gt;&lt;br /&gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt;  &lt;p class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;"  &gt;&lt;strong&gt;Please follow these steps to connect your local machine drives to your remote server:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style=";font-family:Calibri;font-size:100%;"  &gt;Go to -&amp;gt;start-&amp;gt;run&lt;/span&gt;&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_dCUCgTwGxy0/SmlWZPT5H1I/AAAAAAAAACc/6X4jbgZQAlw/s1600-h/1.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 174px;" src="http://1.bp.blogspot.com/_dCUCgTwGxy0/SmlWZPT5H1I/AAAAAAAAACc/6X4jbgZQAlw/s320/1.JPG" alt="" id="BLOGGER_PHOTO_ID_5361911822967971666" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_dCUCgTwGxy0/SmlwejLNX9I/AAAAAAAAADE/NVcG-LqT6Qo/s1600-h/2.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 194px;" src="http://3.bp.blogspot.com/_dCUCgTwGxy0/SmlwejLNX9I/AAAAAAAAADE/NVcG-LqT6Qo/s320/2.JPG" alt="" id="BLOGGER_PHOTO_ID_5361940501501927378" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_dCUCgTwGxy0/SmlweX9pcDI/AAAAAAAAAC8/iQeLCKkGj58/s1600-h/3.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 279px; height: 320px;" src="http://2.bp.blogspot.com/_dCUCgTwGxy0/SmlweX9pcDI/AAAAAAAAAC8/iQeLCKkGj58/s320/3.JPG" alt="" id="BLOGGER_PHOTO_ID_5361940498492256306" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_dCUCgTwGxy0/SmlWYBr9kII/AAAAAAAAACE/2FNf46rcH7o/s1600-h/4.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 279px; height: 320px;" src="http://1.bp.blogspot.com/_dCUCgTwGxy0/SmlWYBr9kII/AAAAAAAAACE/2FNf46rcH7o/s320/4.JPG" alt="" id="BLOGGER_PHOTO_ID_5361911802130960514" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_dCUCgTwGxy0/SmlWIf3jp5I/AAAAAAAAAB8/MZ2Ou6Asjys/s1600-h/5.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 285px; height: 320px;" src="http://4.bp.blogspot.com/_dCUCgTwGxy0/SmlWIf3jp5I/AAAAAAAAAB8/MZ2Ou6Asjys/s320/5.JPG" alt="" id="BLOGGER_PHOTO_ID_5361911535354750866" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_dCUCgTwGxy0/SmlWIEIoEVI/AAAAAAAAAB0/AghGh1HOQus/s1600-h/6.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 285px; height: 320px;" src="http://4.bp.blogspot.com/_dCUCgTwGxy0/SmlWIEIoEVI/AAAAAAAAAB0/AghGh1HOQus/s320/6.JPG" alt="" id="BLOGGER_PHOTO_ID_5361911527910150482" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_dCUCgTwGxy0/SmlweISME6I/AAAAAAAAAC0/bgLh3P4hrD0/s1600-h/7.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 201px;" src="http://4.bp.blogspot.com/_dCUCgTwGxy0/SmlweISME6I/AAAAAAAAAC0/bgLh3P4hrD0/s320/7.JPG" alt="" id="BLOGGER_PHOTO_ID_5361940494283445154" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_dCUCgTwGxy0/Smlwd4wkRDI/AAAAAAAAACs/u0JYtaq7hqQ/s1600-h/8.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 210px;" src="http://3.bp.blogspot.com/_dCUCgTwGxy0/Smlwd4wkRDI/AAAAAAAAACs/u0JYtaq7hqQ/s320/8.JPG" alt="" id="BLOGGER_PHOTO_ID_5361940490115892274" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_dCUCgTwGxy0/Smlwdr-BB6I/AAAAAAAAACk/0fIjuwpR7JY/s1600-h/9.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 210px;" src="http://3.bp.blogspot.com/_dCUCgTwGxy0/Smlwdr-BB6I/AAAAAAAAACk/0fIjuwpR7JY/s320/9.JPG" alt="" id="BLOGGER_PHOTO_ID_5361940486682642338" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_dCUCgTwGxy0/SmlWHa9Ut2I/AAAAAAAAABc/cdivnHgBONg/s1600-h/9.JPG"&gt;&lt;br /&gt;&lt;/a&gt;&lt;p class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="line-height: 115%;font-family:'Calibri','sans-serif';font-size:11pt;"  &gt; &lt;span style="line-height: 115%;font-family:'Calibri','sans-serif';font-size:11pt;"  &gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-4725369138048705898?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/4725369138048705898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-access-my-local-drives-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/4725369138048705898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/4725369138048705898'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-access-my-local-drives-from.html' title='How to access my local drives from remote computer using Remote  Desktop?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_dCUCgTwGxy0/SmlWZPT5H1I/AAAAAAAAACc/6X4jbgZQAlw/s72-c/1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-4495758858444770727</id><published>2009-07-21T22:53:00.001-07:00</published><updated>2009-07-21T23:32:39.435-07:00</updated><title type='text'>How to resolve 'Parser Error' while deploying web service application  in IIS ?</title><content type='html'>&lt;div&gt;When a web service is being deployed in IIS, the following error may occur.  &lt;span&gt;&lt;span&gt;This error generally occurs if you have multiple .Net Framework versions installed in your system, and the default Framework version the IIS is configured to use might be different from the framework that your application is designed to use.  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;  &lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt; &lt;div&gt;&lt;span&gt;&lt;span&gt;For example, the following error occurred because I created the web service application using framework 2.0, but the IIS is using framework 1.1 as the default framework. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt; &lt;div&gt;&lt;span&gt;&lt;span&gt;The solution is to simply configure virual folder of your application to use appropriate version of framework.  To do this:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;ul&gt; &lt;li&gt;&lt;span&gt;&lt;span&gt;Go to properties of your virual directory&lt;/span&gt;&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&lt;span&gt;&lt;span&gt;Under the &lt;a href="http://asp.net/"&gt;ASP.NET&lt;/a&gt; tab, change the &lt;a href="http://asp.net/"&gt;ASP.NET&lt;/a&gt; Version to the correct version that your application is designed to target.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;span&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;h1&gt;Server Error in '/xx' Application. &lt;/h1&gt; &lt;h1&gt; &lt;hr color="silver" size="1" width="100%"&gt; &lt;/h1&gt; &lt;h2&gt;&lt;i&gt;Parser Error&lt;/i&gt; &lt;/h2&gt; &lt;div&gt;&lt;span style="font-family:Arial,Helvetica,Geneva,SunSans-Regular,sans-serif;"&gt;&lt;b&gt;Description: &lt;/b&gt;An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Parser Error Message: &lt;/b&gt;Could not create type 'Service'.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Source Error:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt; &lt;div&gt; &lt;table bgcolor="#ffffcc" width="100%"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;&lt;/code&gt;&lt;pre&gt;&lt;span style="color:red;"&gt;Line 1:  &amp;lt;%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs" Class="Service" %&amp;gt; &lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt; &lt;div&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="font-family:Verdana;"&gt;Source File: &lt;/span&gt;&lt;/b&gt;E:\vijay\xx\Service.asmx&lt;b&gt;&lt;span style="font-family:Verdana;"&gt;    Line: &lt;/span&gt;&lt;/b&gt;1&lt;br /&gt;&lt;br /&gt;&lt;/div&gt; &lt;div&gt; &lt;hr color="silver" size="1" width="100%"&gt; &lt;/div&gt; &lt;div&gt;&lt;b&gt;&lt;span style="font-family:Verdana;"&gt;Version Information:&lt;/span&gt;&lt;/b&gt; Microsoft .NET Framework Version:1.1.4322.573; &lt;a href="http://asp.net/"&gt;ASP.NET&lt;/a&gt; Version:1.1.4322.573 &lt;/div&gt; &lt;div&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-4495758858444770727?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/4495758858444770727/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-resolve-parser-error-while.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/4495758858444770727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/4495758858444770727'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-resolve-parser-error-while.html' title='How to resolve &apos;Parser Error&apos; while deploying web service application  in IIS ?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-6825372164468066117</id><published>2009-07-21T00:09:00.001-07:00</published><updated>2009-07-21T00:09:16.542-07:00</updated><title type='text'>Is there a way to assign null to value types in .Net? What are  nullable types?</title><content type='html'>&lt;div&gt;One of the new concepts introduced in .Net 2.0 is Nullable types.  This allows you to assign nulls to value types.&lt;/div&gt; &lt;div&gt;eg.&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;int&lt;/font&gt;&lt;/font&gt;&lt;font color="#000000" size="2"&gt;? myInt = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;DateTime&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;? myDateTime;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff"&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font size="2"&gt;myDateTime = GetAvailableDate();&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff"&gt;&lt;/font&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (myInt.HasValue &amp;amp;&amp;amp; myDateTime.HasValue)&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff"&gt;    //Have values&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;else&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff"&gt;   //No values&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-6825372164468066117?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/6825372164468066117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/is-there-way-to-assign-null-to-value.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/6825372164468066117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/6825372164468066117'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/is-there-way-to-assign-null-to-value.html' title='Is there a way to assign null to value types in .Net? What are  nullable types?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-4021675111047683071</id><published>2009-07-20T22:39:00.001-07:00</published><updated>2009-07-20T22:39:15.735-07:00</updated><title type='text'>What's the best datatype for storing currency in .Net?</title><content type='html'>&lt;div&gt; &lt;/div&gt; &lt;div&gt;Always use &lt;strong&gt;decimal&lt;/strong&gt; type to store currency values in .Net.  decimal has greater precision than other types. Although very minor errors may occur due to rounding, these are almost negligible when compared to other types such as double.  The upshot is &lt;strong&gt;&amp;quot;always use decimal for currency values&amp;quot;.&lt;/strong&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-4021675111047683071?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/4021675111047683071/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/whats-best-datatype-for-storing.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/4021675111047683071'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/4021675111047683071'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/whats-best-datatype-for-storing.html' title='What&apos;s the best datatype for storing currency in .Net?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-4157493486245598592</id><published>2009-07-20T21:36:00.000-07:00</published><updated>2009-07-20T21:37:11.014-07:00</updated><title type='text'>How to authenticate webservices? What is SOAP Header Security?</title><content type='html'>&lt;p&gt;If we need to authenticate each request that comes to a web service, we need to accept user credentials along with the request and validate them against the values in the database.&lt;/p&gt; &lt;div&gt;It is a good idea to wrap the credentials in the SOAP Header, instead of SOAP body. The following code exemplifies the usage of SOAP Header Security in ASMX web service.&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;strong&gt;Step 1: Create a class containing the fields required for authentication.  This class needs to inherit from the SoapHeader class.&lt;/strong&gt;&lt;/div&gt; &lt;div&gt;&lt;strong&gt;&lt;/strong&gt; &lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;///&lt;/font&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;&amp;lt;summary&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;///&lt;/font&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt; A class representing user credentials for authenticating the user&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;///&lt;/font&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;&amp;lt;/summary&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;class&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;ServiceAuthenticationHeader&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; : &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;SoapHeader&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/div&gt; &lt;blockquote dir="ltr" style="MARGIN-RIGHT: 0px"&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;private&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; userName;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;private&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; password;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; UserName&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;get&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; { &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; userName; }&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;set&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; { userName = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;value&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;; }&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Password&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;get&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; { &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; password; }&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;set&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; { password = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;value&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;; }&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/div&gt;&lt;/blockquote&gt; &lt;div dir="ltr"&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/div&gt; &lt;div dir="ltr"&gt;&lt;font size="2"&gt;&lt;/font&gt; &lt;/div&gt; &lt;div dir="ltr"&gt;&lt;font size="2"&gt;&lt;/font&gt; &lt;/div&gt; &lt;div dir="ltr"&gt;&lt;font size="2"&gt;&lt;strong&gt;Step 2: Declare an object of the above type in the actual web service class.&lt;/strong&gt;&lt;/font&gt;&lt;/div&gt; &lt;div dir="ltr"&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;namespace&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; MyServices&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div dir="ltr"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div dir="ltr"&gt;&lt;font size="2"&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;///&lt;/font&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;&amp;lt;summary&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div dir="ltr"&gt;&lt;font size="2"&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;///&lt;/font&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt; Class representing the consumable web services by the clients&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div dir="ltr"&gt;&lt;font size="2"&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;///&lt;/font&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;&amp;lt;/summary&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div dir="ltr"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;[&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;WebService&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(Namespace = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&lt;a href="http://xxx.com/"&gt;http://xxx.com/&lt;/a&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)]&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div dir="ltr"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;[&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;WebServiceBinding&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(ConformsTo = &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;WsiProfiles&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.BasicProfile1_1)]&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div dir="ltr"&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;class&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;XXXServices&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; : System.Web.Services.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;WebService&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div dir="ltr"&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div dir="ltr"&gt;&lt;font size="2"&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;// SoapHeader for authentication&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div dir="ltr"&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;ServiceAuthenticationHeader&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; UserCredentials;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;} &lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;strong&gt;Step 3: Decorate the webmethods that require authentication using SoapHeaderAttribute&lt;/strong&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;///&lt;/font&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;&amp;lt;summary&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;///&lt;/font&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt; Gets the db details.&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;///&lt;/font&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;&amp;lt;/summary&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;///&lt;/font&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;&amp;lt;param name=&amp;quot;uhid&amp;quot;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;The id.&lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;&amp;lt;/param&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;///&lt;/font&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt; &lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;&amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;[&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;WebMethod&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(Description = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Gets the db details.&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)]&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;[&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;SoapHeader&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;UserCredentials&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)]&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;Patient&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; GetDbDetails(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; id)&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//Authenticate the user (Throws back webexception if authentication fails)&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;ServiceAuthentication&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Validate(UserCredentials);&lt;/font&gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;DbService&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.GetDbDetails(id);&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;}&lt;/font&gt; &lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;strong&gt;Step 4: Create a static method named Validate in which you validate the credentials agaist the database, and on success, you can throw an exception.&lt;/strong&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;static&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;bool&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Validate(&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;ServiceAuthenticationHeader&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; userCredentials)&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (userCredentials == &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;/div&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;throw&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;NullReferenceException&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;No credentials were specified.&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;); // or validate against the database&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-4157493486245598592?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/4157493486245598592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-authenticate-webservices-what-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/4157493486245598592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/4157493486245598592'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-authenticate-webservices-what-is.html' title='How to authenticate webservices? What is SOAP Header Security?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-4340110858113561733</id><published>2009-07-19T21:44:00.001-07:00</published><updated>2009-07-19T21:44:59.579-07:00</updated><title type='text'>How to pad characters to an integer in T-SQL?</title><content type='html'>&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt; &lt;div&gt;&lt;font color="#000000"&gt;I needed to create a unique id for each user in the format like XXXX.00001, XXXX.00022, etc.  After generating the unique number  (1, 22, etc) , I needed to pad the integer with 0s on the left.  The following code worked for me.&lt;/font&gt;&lt;/div&gt;  &lt;div&gt; &lt;/div&gt; &lt;div&gt;declare&lt;/div&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; @numberToPad &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;int&lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;;&lt;/font&gt;&lt;/font&gt; &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;set&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; @numberToPad &lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 12&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;declare&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; @numberOfPaddingCharacters &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;as&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;tinyint;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;set&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; @numberOfPaddingCharacters &lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;=&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 5 &lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;-&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff00ff" size="2"&gt;&lt;font color="#ff00ff" size="2"&gt;cast&lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;(&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff00ff" size="2"&gt;&lt;font color="#ff00ff" size="2"&gt;len&lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;(&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;@numberToPad&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;as&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;varchar&lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;(&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;10&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;));&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;  &lt;div&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;select&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff00ff" size="2"&gt;&lt;font color="#ff00ff" size="2"&gt;replicate&lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;(&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;&amp;#39;0&amp;#39;&lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;,&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; @numberOfPaddingCharacters&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;+&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff00ff" size="2"&gt;&lt;font color="#ff00ff" size="2"&gt;cast&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;(&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;@numberToPad &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;as&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;varchar&lt;/font&gt;&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;(&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;10&lt;/font&gt;&lt;font color="#808080" size="2"&gt;&lt;font color="#808080" size="2"&gt;));&lt;/font&gt;&lt;/font&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-4340110858113561733?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/4340110858113561733/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-pad-characters-to-integer-in-t.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/4340110858113561733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/4340110858113561733'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-pad-characters-to-integer-in-t.html' title='How to pad characters to an integer in T-SQL?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-4939085715353261358</id><published>2009-07-17T04:57:00.000-07:00</published><updated>2009-07-17T08:18:49.266-07:00</updated><title type='text'>How to resolve "Invalid postback or callback argument." error ?</title><content type='html'>&lt;div class="gmail_quote"&gt; &lt;div&gt;&lt;span&gt;&lt;/span&gt; &lt;/div&gt; &lt;div&gt;&lt;span&gt;Invalid postback or callback argument. Event validation is enabled using &amp;lt;pages enableEventValidation=&amp;quot;true&amp;quot;/&amp;gt; in configuration or &amp;lt;%@ Page EnableEventValidation=&amp;quot;true&amp;quot; %&amp;gt; in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.&lt;/span&gt;&lt;/div&gt;  &lt;div&gt;&lt;span&gt;&lt;/span&gt; &lt;/div&gt; &lt;div&gt;&lt;span&gt;I got the above problem, and it got resolved when I added &amp;lt;%@ Page EnableEventValidation=&amp;quot;&lt;strong&gt;false&lt;/strong&gt;&amp;quot; %&amp;gt;.  For the whole application add an entry &amp;lt;pages enableEventValidation=&amp;quot;&lt;strong&gt;false&lt;/strong&gt;&amp;quot;/&amp;gt; in the web.config file.&lt;/span&gt;&lt;/div&gt;  &lt;div&gt;&lt;span&gt;&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-4939085715353261358?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/4939085715353261358/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-resolve-invalid-postback-or.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/4939085715353261358'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/4939085715353261358'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-resolve-invalid-postback-or.html' title='How to resolve &quot;Invalid postback or callback argument.&quot; error ?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-7780860633059248219</id><published>2009-07-15T23:15:00.000-07:00</published><updated>2009-07-15T23:16:01.025-07:00</updated><title type='text'>How to select literal text as column values? Select query to select  text as column data? How to query a list of values?</title><content type='html'>&lt;div&gt;&lt;u&gt;&lt;/u&gt; &lt;/div&gt; &lt;div&gt;&lt;u&gt;For horizontal output : &lt;/u&gt;&lt;/div&gt; &lt;div&gt;Select &amp;#39;Male&amp;#39;, &amp;#39;Female&amp;#39;, Others&amp;#39;, &amp;#39;Not Stated&amp;#39;&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;u&gt;For vertical output&lt;/u&gt;&lt;/div&gt; &lt;div&gt;select &amp;#39;Male&amp;#39; as G&lt;br&gt;union all&lt;br&gt;select &amp;#39;Female&amp;#39; as G&lt;br&gt;union all&lt;br&gt;select &amp;#39;Others&amp;#39; as G&lt;br&gt;union all&lt;br&gt;select &amp;#39;Not stated&amp;#39; as G&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-7780860633059248219?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/7780860633059248219/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-select-literal-text-as-column.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/7780860633059248219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/7780860633059248219'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-select-literal-text-as-column.html' title='How to select literal text as column values? Select query to select  text as column data? How to query a list of values?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-6160522297429043160</id><published>2009-07-15T22:17:00.001-07:00</published><updated>2009-07-15T22:17:26.727-07:00</updated><title type='text'>How to bypass the browser cache while refreshing a page?</title><content type='html'>&lt;div&gt;F5 is for normal refresh.&lt;/div&gt; &lt;div&gt;Ctrl+F5 is for Hard refresh, which means the whole page content is downloaded from origin, not from the browser cache.  Use this shortcut to bypass the browser cache.&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-6160522297429043160?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/6160522297429043160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-bypass-browser-cache-while.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/6160522297429043160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/6160522297429043160'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-bypass-browser-cache-while.html' title='How to bypass the browser cache while refreshing a page?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-576129834627604213</id><published>2009-07-14T10:18:00.000-07:00</published><updated>2009-07-14T10:20:06.635-07:00</updated><title type='text'>What are the best Firefox extensions (add-ons) a web developer must have?</title><content type='html'>&lt;div class=Section1&gt;  &lt;p&gt;&lt;b&gt;&lt;span style='font-size:10.5pt;color:#9B0300'&gt;Web Developer Essentials (Firefox add-ons)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.5pt;font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;b&gt;&lt;span style='font-size:10.5pt'&gt;FireFTP&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.5pt;font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;b&gt;&lt;span style='font-size:10.5pt'&gt;Firebug&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.5pt;font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;b&gt;&lt;span style='font-size:10.5pt'&gt;Web Developer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.5pt;font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;b&gt;&lt;span style='font-size:10.5pt'&gt;MeasureIt&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.5pt;font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;b&gt;&lt;span style='font-size:10.5pt'&gt;ColorZilla&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.5pt;font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;b&gt;&lt;span style='font-size:10.5pt'&gt;Download Statusbar&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.5pt;font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;b&gt;&lt;span style='font-size:10.5pt'&gt;Download Sort&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.5pt;font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;b&gt;&lt;span style='font-size:10.5pt'&gt;Nuke Anything Enhanced&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.5pt;font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;b&gt;&lt;span style='font-size:10.5pt'&gt;Forecastfox&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.5pt;font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;b&gt;&lt;span style='font-size:10.5pt'&gt;AccuWeather.com.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.5pt;font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;b&gt;&lt;span style='font-size:10.5pt'&gt;Answers&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.5pt;font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;b&gt;&lt;span style='font-size:10.5pt'&gt;Google Browser Sync &amp;amp; Foxmarks Bookmark Synchronizer&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.5pt;font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;b&gt;&lt;span style='font-size:10.5pt'&gt;Session Manager&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.5pt;font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;b&gt;&lt;span style='font-size:10.5pt'&gt;All-in-One Gestures&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.5pt;font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;b&gt;&lt;span style='font-size:10.5pt'&gt;IE Tab&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.5pt;font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;b&gt;&lt;span style='font-size:10.5pt'&gt;Firefox Showcase&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.5pt;font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;b&gt;&lt;span style='font-size:10.5pt'&gt;Cooliris Previews&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.5pt;font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;b&gt;&lt;span style='font-size:10.5pt'&gt;Colorful Tabs &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.5pt;font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;b&gt;&lt;span style='font-size:10.5pt'&gt;ChromaTabs&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.5pt;font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;b&gt;&lt;span style='font-size:10.5pt'&gt;StumbleUpon&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.5pt;font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;b&gt;&lt;span style='font-size:10.5pt'&gt;Gmail Manager &amp;amp; Yahoo Mail Notifier&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.5pt;font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;b&gt;&lt;span style='font-size:10.5pt'&gt;Gmail Manager &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span style='font-size:10.5pt;font-family:Symbol'&gt;&lt;span style='mso-list:Ignore'&gt;&amp;middot;&lt;span style='font:7.0pt "Times New Roman"'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;b&gt;&lt;span style='font-size:10.5pt'&gt;Greasemonkey&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.computerworld.com/s/article/9011975/20_must_have_Firefox_extensions?taxonomyId=16&amp;amp;pageNumber=5"&gt;http://www.computerworld.com/s/article/9011975/20_must_have_Firefox_extensions?taxonomyId=16&amp;amp;pageNumber=5&lt;/a&gt; &lt;span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-576129834627604213?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/576129834627604213/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/what-are-best-firefox-extensions-add.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/576129834627604213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/576129834627604213'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/what-are-best-firefox-extensions-add.html' title='What are the best Firefox extensions (add-ons) a web developer must have?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-1248739491873623775</id><published>2009-07-13T05:18:00.001-07:00</published><updated>2009-07-13T05:18:20.518-07:00</updated><title type='text'>Which are other good pay-per-click programs other than AdSense?</title><content type='html'>&lt;div&gt;&lt;a href="http://www.adbrite.com/"&gt;www.adbrite.com/&lt;/a&gt; (pays up to 1 to 3 cents per click)&lt;/div&gt; &lt;div&gt;&lt;a href="http://www.bidvertiser.com/"&gt;http://www.bidvertiser.com/&lt;/a&gt; (pays up to 10 cents per click)&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-1248739491873623775?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/1248739491873623775/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/which-are-other-good-pay-per-click.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/1248739491873623775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/1248739491873623775'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/which-are-other-good-pay-per-click.html' title='Which are other good pay-per-click programs other than AdSense?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-2966367265428049279</id><published>2009-07-12T10:29:00.001-07:00</published><updated>2009-07-12T21:01:19.597-07:00</updated><title type='text'>Where can I find Firebug for IE ?</title><content type='html'>&lt;p&gt;&lt;strong&gt;Firebug Lite 1.2 &lt;/strong&gt;works with IE too.&lt;br /&gt;&lt;strong&gt;Option 1: &lt;/strong&gt;If you want to inspect your own web page with Firebug in IE, just place the following javascript code into your page.&lt;br /&gt;&lt;code&gt;&amp;lt;script type='text/javascript' src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'&amp;gt;&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;br /&gt;&lt;/br&gt;&lt;strong&gt;Option 2: &lt;/strong&gt;To use firebug with any webpage:&lt;br /&gt;o Bookmark the following link.&lt;br /&gt;&lt;/br&gt;&lt;code&gt;javascript:var%20firebug=document.createElement('script');firebug.setAttribute('src','http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js');document.body.appendChild(firebug);(function(){if(window.firebug.version){firebug.init();}else{setTimeout(arguments.callee);}})();void(firebug);&lt;/code&gt;&lt;/br&gt;&lt;br /&gt;o Open the book mark to use firebug on any opened webpage.&lt;br /&gt;&lt;br /&gt;For detailed information on using firebug in IE: &lt;a href="http://getfirebug.com/lite.html"&gt;http://getfirebug.com/lite.html&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-2966367265428049279?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/2966367265428049279/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/where-can-i-find-firebug-for-ie.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/2966367265428049279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/2966367265428049279'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/where-can-i-find-firebug-for-ie.html' title='Where can I find Firebug for IE ?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-1756148649403766395</id><published>2009-07-11T07:46:00.000-07:00</published><updated>2009-07-11T07:47:04.980-07:00</updated><title type='text'>How do I measure the loading time of my webpage?</title><content type='html'>&lt;div class=Section1&gt;  &lt;p class=MsoNormal&gt;You can measure the loading time of a webpage using StopWatch at &lt;a href="http://www.numion.com/Stopwatch/"&gt;http://www.numion.com/Stopwatch/&lt;/a&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-1756148649403766395?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/1756148649403766395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-do-i-measure-loading-time-of-my.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/1756148649403766395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/1756148649403766395'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-do-i-measure-loading-time-of-my.html' title='How do I measure the loading time of my webpage?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-3123307371578173164</id><published>2009-07-11T04:50:00.001-07:00</published><updated>2009-07-11T07:31:29.965-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How to show control menu when mouse moved in full screen mode in vlc player ?'/><title type='text'>How to show control menu when mouse moved in full screen mode in vlc player ?</title><content type='html'>&lt;div class="Section1"&gt;&lt;p class="MsoNormal"&gt;To show the taskbar when mouse moved when vlc player is in full screen mode:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;b&gt;Settings &amp;gt; Preferences &amp;gt; Interface &amp;gt; Show interface with mouse (select) &lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;/o:p&gt;When in fullscreen mode, simply pressing i or Moving mouse to the top of the screen will display taskbar. Then you can use the 'VLC medial player' window to control the player.&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-3123307371578173164?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/3123307371578173164/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-show-control-menu-when-mouse.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/3123307371578173164'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/3123307371578173164'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-show-control-menu-when-mouse.html' title='How to show control menu when mouse moved in full screen mode in vlc player ?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-1907751884445695615</id><published>2009-07-10T05:14:00.000-07:00</published><updated>2009-07-11T07:31:16.938-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Button not posting back after disabling it in javascript?'/><title type='text'>Button not posting back after disabling it in javascript?</title><content type='html'>I had a situation where I had to disable the button until the postback execution is completed.  I did some R&amp;amp;D and understood that disabled controls cannot cause postback.  So the workaround I found was to make the actual button invisible and display a disabled button in its place.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;function ValidateFormForSubmit()&lt;br /&gt;{&lt;br /&gt;document.getElementById('buttonPleaseWait').style.display = 'inline';&lt;br /&gt;document.getElementById('&lt;%=btnSave.ClientID%&gt;').style.display = 'none';&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt; id="btnSave" onclick="btnSave_Click" runat="server" validationgroup="Save" text="Submit" onclientclick="ValidateFormForSubmit();"&gt;&lt;br /&gt;&lt; type="button" id="buttonPleaseWait" value="Please wait..." style="border-color:#1F487C;border-width:1px;border-style:Solid;height:18px;display:none; "&gt;&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-1907751884445695615?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/1907751884445695615/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/button-not-posting-back-after-disabling.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/1907751884445695615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/1907751884445695615'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/button-not-posting-back-after-disabling.html' title='Button not posting back after disabling it in javascript?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-4555936042362902517</id><published>2009-07-10T01:39:00.000-07:00</published><updated>2009-07-11T07:31:03.929-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Is ViewState affecting the performance of your webpage?'/><title type='text'>Is ViewState affecting the performance of your webpage?</title><content type='html'>Answer: If the performance of a webpage is compromised by viewstate data (&lt;a href="http://answersunlimited.blogspot.com/2009/07/why-is-my-webpage-slow.html"&gt;Why is my webpage slow?&lt;/a&gt; ), you can think of storing the ViewState information elsewhere other than the webpage itself.&lt;br /&gt;Refer to the article &lt;a href="http://www.eggheadcafe.com/articles/20040613.asp"&gt;http://www.eggheadcafe.com/articles/20040613.asp&lt;/a&gt;&lt;br /&gt;It took me only 10 minutes to do this.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-4555936042362902517?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/4555936042362902517/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/is-viewstate-affecting-performance-of.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/4555936042362902517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/4555936042362902517'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/is-viewstate-affecting-performance-of.html' title='Is ViewState affecting the performance of your webpage?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-7894901690597138599</id><published>2009-07-09T00:06:00.000-07:00</published><updated>2009-07-11T07:30:37.879-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out'/><title type='text'>Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out</title><content type='html'>This error occurs when an asynchronous postback occurrs after the webpage has been inactive for 90 seconds. This happens because the default value for AsyncPostBackTimeOut attribute of ScriptManager is 90 seconds. Increase this value to resolve the issue.&lt;br /&gt;Eg.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt; id="ScriptManager1" runat="server" asyncpostbacktimeout="800"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-7894901690597138599?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/7894901690597138599/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/syswebformspagerequestmanagertimeoutexc.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/7894901690597138599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/7894901690597138599'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/syswebformspagerequestmanagertimeoutexc.html' title='Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-6109363227785572067</id><published>2009-07-08T22:26:00.000-07:00</published><updated>2009-07-11T07:30:22.640-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How to perform client-side validation for FileUpload server control?'/><title type='text'>How to perform client-side validation for FileUpload server control?</title><content type='html'>Answer: Use validation controls (RegularExpressionValidator).&lt;br /&gt;Eg.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt; id="fupPI1" runat="server" enableviewstate="true"&gt;&lt;br /&gt;&lt; id="lblPI1" runat="server"&gt;&lt;br /&gt;&lt;asp:regularexpressionvalidator id="FileUpLoadValidatorPI1" runat="server" errormessage="Upload Jpegs, Gifs, Docs,  Pdfs and Xls only." validationexpression="^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))(.jpg|.JPG|.gif|.GIF|.jpeg|.JPEG|.pdf|.PDF|.doc|.DOC|.docx|.DOCX|.xls|.XLS|.xlsx|.XLSX)$" controltovalidate="fupPI1" validationgroup="Save"&gt;&lt;br /&gt;&lt;/asp:regularexpressionvalidator&gt;&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-6109363227785572067?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/6109363227785572067/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-perform-client-side-validation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/6109363227785572067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/6109363227785572067'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-perform-client-side-validation.html' title='How to perform client-side validation for FileUpload server control?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-8249466416557948490</id><published>2009-07-08T02:33:00.000-07:00</published><updated>2009-07-11T07:30:08.088-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Why doesn&apos;t RowCommand event fire when GridView is inside the UpdatePanel ?'/><title type='text'>Why doesn't RowCommand event fire when GridView is inside the UpdatePanel ?</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-8249466416557948490?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/8249466416557948490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/why-doesnt-rowcommand-event-fire-when.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/8249466416557948490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/8249466416557948490'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/why-doesnt-rowcommand-event-fire-when.html' title='Why doesn&apos;t RowCommand event fire when GridView is inside the UpdatePanel ?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-3240015357130117657</id><published>2009-07-08T02:31:00.000-07:00</published><updated>2009-07-11T07:29:49.128-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How to disable UpdatePanel contents during asynchronous postbacks?'/><title type='text'>How to disable UpdatePanel contents during asynchronous postbacks?</title><content type='html'>&lt;a href="http://mattberseth.com/blog/2007/08/disable_updatepanel_contents_d.html"&gt;http://mattberseth.com/blog/2007/08/disable_updatepanel_contents_d.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-3240015357130117657?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/3240015357130117657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-disable-updatepanel-contents.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/3240015357130117657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/3240015357130117657'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-disable-updatepanel-contents.html' title='How to disable UpdatePanel contents during asynchronous postbacks?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-6695375155549012259</id><published>2009-07-06T05:09:00.000-07:00</published><updated>2009-07-11T07:29:21.986-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Why is my webpage slow?'/><title type='text'>Why is my webpage slow?</title><content type='html'>You need to watch out the response of your webpage.  Many a times, webpages send a lot of unnecessary content along with the request.&lt;br /&gt;&lt;br /&gt;Install the follwing firefox add-ons and observe what your page is sending to the browser.&lt;br /&gt;1. Firebug&lt;br /&gt;2. Google's page-speed&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-6695375155549012259?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/6695375155549012259/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/why-is-my-webpage-slow.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/6695375155549012259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/6695375155549012259'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/why-is-my-webpage-slow.html' title='Why is my webpage slow?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3837585369292252718.post-38447042194477853</id><published>2009-07-05T08:24:00.000-07:00</published><updated>2009-07-05T08:29:51.282-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='free calls'/><category scheme='http://www.blogger.com/atom/ns#' term='free phone calls'/><category scheme='http://www.blogger.com/atom/ns#' term='free international calls'/><category scheme='http://www.blogger.com/atom/ns#' term='jaxtr'/><title type='text'>How to make make free international calls?</title><content type='html'>Goto &lt;a href="http://www.jaxtr.com/"&gt;http://www.jaxtr.com/&lt;/a&gt;&lt;br /&gt;1. Enter your number to get local jaxtr number&lt;br /&gt;2. Call the jaxtr number on your phone&lt;br /&gt;3. Dial your destination number after the prompt and talk&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3837585369292252718-38447042194477853?l=answersunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://answersunlimited.blogspot.com/feeds/38447042194477853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-make-make-free-international.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/38447042194477853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3837585369292252718/posts/default/38447042194477853'/><link rel='alternate' type='text/html' href='http://answersunlimited.blogspot.com/2009/07/how-to-make-make-free-international.html' title='How to make make free international calls?'/><author><name>Vijay Kumar Jakkam</name><uri>http://www.blogger.com/profile/11661635761661215666</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
