<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5797778220826413729</id><updated>2016-07-06T13:07:53.217-05:00</updated><category term=".NET"/><category term="asp.net"/><category term="C#"/><category term="SQL"/><category term="SQL/T-SQL"/><category term="VB.NET"/><category term="Coding practice in C#"/><category term="Complete Comparison for VB.NET and C#"/><category term="IIS"/><category term="IIS7"/><category term="Java script"/><category term="MS SQL"/><category term="MS SQL User creation"/><category term="SP"/><category term="SQL Installation"/><category term="Upload File using Jquery"/><category term="radiobutton"/><category term="radiobutton group"/><category term="storedprocedure"/><category term="ASP.NET 4.0 Features"/><category term="ASP.NET Security"/><category term="Abstract Class vs Interface"/><category term="App_Code"/><category term="Browser close button event tracking"/><category term="Calling serverside function from javascript"/><category term="Google map api"/><category term="HTTP"/><category term="Hotspot"/><category term="Introp"/><category term="ItemDataBound event"/><category term="Javascript"/><category term="MaxHttpCollectionKeys"/><category term="Nested Repeaters"/><category term="OOPs&#39; Concept"/><category term="Repeator check box selection"/><category term="SQL Lenght"/><category term="SQL substring"/><category term="Satellite Assemblies"/><category term="Session state"/><category term="Shuffel data column values"/><category term="URL Rewrite"/><category term="WI-Fi"/><category term="Window security updates"/><category term="Windows"/><category term="address"/><category term="aspnet"/><category term="bulk insert"/><category term="c"/><category term="devenv /resetskippkgs"/><category term="document reading"/><category term="enumeration components are not available"/><category term="file reading"/><category term="iis 6"/><category term="map"/><category term="tem table"/><category term="truncate"/><category term="web references error"/><category term="word doc"/><category term="word doc reading"/><category term="xml"/><title type='text'>Knowledge Sharing</title><subtitle type='html'>The objective of launching this site is to share learning thru this application , that learning can include technical learning i.e Programming logic, design methodology , Good Processes etc  or general article which might be useful for all of us i.e. some motivation speech from someone , some good book reference etc.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>BL Choudhary</name><uri>http://www.blogger.com/profile/08440752926320242504</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>47</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5797778220826413729.post-9075945380962487000</id><published>2015-01-10T04:57:00.000-06:00</published><updated>2015-01-10T05:25:11.627-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Hotspot"/><category scheme="http://www.blogger.com/atom/ns#" term="WI-Fi"/><title type='text'>How to turn your laptop device Into a WiFi Access Point (Hot spot)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;Previous editions of Windows allowed users to create ad hoc wireless connections between computers. You could use those connections to create a wireless network between multiple computers or to share the Internet connection that was available on one of them. This can no longer be done in Windows 8.1, at least not using a visual interface and the mouse. However, with the help of the&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;Command Prompt&lt;/em&gt;&amp;nbsp;and a few commands, you too can turn your Windows 8.1 laptop or hybrid device into a WiFi access point. Here&#39;s how:&lt;/div&gt;&lt;h2 class=&quot;content&quot; style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-weight: normal; margin: 0.83em 0px;&quot;&gt;What You Need in Order for This to Work&lt;/h2&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;In order to use your Windows 8.1 laptop or hybrid device as an WiFi access point for other devices, it must have at least 2 network cards installed and one of them must be a wireless network card. One of them must be connected to the internet.&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;Setup scenarios we tested and worked great include:&lt;/div&gt;&lt;ul style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin: 1em 0px; padding: 0px 0px 0px 40px;&quot;&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;One laptop using its Ethernet connection for Internet access and its WiFi adapter to broadcast&lt;/em&gt;&amp;nbsp;- use a network cable to connect your Windows 8.1 laptop to the Internet and the wireless network card for the access point that&#39;s sharing the Internet access with other devices.&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;One laptop that is connected to the Internet through a USB mobile modem and broadcasts the wireless network through its WiFi adapter&lt;/em&gt;&amp;nbsp;- most users will have a USB mobile modem available with 3G or 4G connectivity. They can use it for Internet access and use the wireless network adapter for creating the access point and sharing the Internet access with others.&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box;&quot;&gt;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;One laptop and two wireless network adapters, one connected to the Internet and the other acting as an access point&lt;/em&gt;&amp;nbsp;- this scenario won&#39;t be encountered too often as laptops and hybrid devices don&#39;t come with two wireless network cards installed. However, you can install a USB wireless adapter and use it for creating the access point.&lt;/li&gt;&lt;/ul&gt;&lt;h2 class=&quot;content&quot; style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-weight: normal; margin: 0.83em 0px;&quot;&gt;Step 1. Create a Virtual WiFi Network in Windows 8 &amp;amp; 8.1&lt;/h2&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;To begin, we&#39;ll need to&amp;nbsp;open the Command Prompt&amp;nbsp;with administrative privileges and use a command to create a virtual wireless network that is broadcasted by your Windows 8.1 device.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-k0f0OKHsYyE/VLEKJhec8qI/AAAAAAAAEgo/1YGxJFv7Gvs/s1600/wireless_access_point1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-k0f0OKHsYyE/VLEKJhec8qI/AAAAAAAAEgo/1YGxJFv7Gvs/s1600/wireless_access_point1.png&quot; height=&quot;340&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;To exemplify, we will create a wireless network called&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;Hotspot&lt;/em&gt;. The password for this network will be&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;&quot;blkarwasara&quot;&lt;/em&gt;.&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;Inside the&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;Command Prompt&lt;/em&gt;&amp;nbsp;window, type the following command:&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; font-family: monospace, serif; font-size: 1em;&quot;&gt;netsh wlan set hostednetwork mode=allow ssid=Hotspot key=blkarwasara&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;Notice that the name of the network is set using the&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;SSID&lt;/em&gt;&amp;nbsp;parameter and the password is set using the&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;KEY&lt;/em&gt;&amp;nbsp;parameter. Obviously, you can set your own values for them.&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;To create the access point, press&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;Enter&lt;/em&gt;. If all goes well, you should see that the hosted network has been set.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-NCJz9rBfcs4/VLEKKnDitPI/AAAAAAAAEg0/36LeXSZ2RbM/s1600/wireless_access_point2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-NCJz9rBfcs4/VLEKKnDitPI/AAAAAAAAEg0/36LeXSZ2RbM/s1600/wireless_access_point2.png&quot; height=&quot;354&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;Now you have created a virtual adapter that can function as a wireless access point for other computers and devices in your area. However, in order for it to work, you need to make one more step: turn on this virtual adapter.&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;Do not close the&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;Command Prompt&lt;/em&gt;. Keep it open and enter the following command:&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; font-family: monospace, serif; font-size: 1em;&quot;&gt;netsh wlan start hostednetwork&lt;/code&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-NU8G2Ar1vho/VLEKK1W9rDI/AAAAAAAAEg4/_uXclmeQT7k/s1600/wireless_access_point3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-NU8G2Ar1vho/VLEKK1W9rDI/AAAAAAAAEg4/_uXclmeQT7k/s1600/wireless_access_point3.png&quot; height=&quot;354&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;Then, press&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;Enter&lt;em style=&quot;box-sizing: border-box;&quot;&gt;.&lt;/em&gt;&lt;/em&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;The virtual wireless adapter is now started and shown in the&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;Network and Sharing Center&lt;/em&gt;.&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-ZMxzNiT1iro/VLEKLFFOnII/AAAAAAAAEhQ/X2K8sI-lXFk/s1600/wireless_access_point4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-ZMxzNiT1iro/VLEKLFFOnII/AAAAAAAAEhQ/X2K8sI-lXFk/s1600/wireless_access_point4.png&quot; height=&quot;432&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;You can connect all your devices to the newly created wireless network. However, it has no Internet access. If you stop at this point, when you connect other devices and computers to the newly created access point, you can create a network between them and use it to share files and resource.&lt;/div&gt;&lt;h2 class=&quot;content&quot; style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-weight: normal; margin: 0.83em 0px;&quot;&gt;Step 2. Allow Internet Access for the Devices that are Connected to the Virtual WiFi Network&lt;/h2&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;Open the&amp;nbsp;&lt;a href=&quot;http://www.7tutorials.com/what-network-and-sharing-center&quot; style=&quot;box-sizing: border-box; color: #47a2f1; text-decoration: none;&quot;&gt;Network and Sharing Center&lt;/a&gt;. Notice that the virtual network adapter you just created is displayed as active, but it has no Internet access at this time.&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-i96okyt-ZHk/VLEKLiJAdsI/AAAAAAAAEg8/3pulX6mHHqU/s1600/wireless_access_point5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-i96okyt-ZHk/VLEKLiJAdsI/AAAAAAAAEg8/3pulX6mHHqU/s1600/wireless_access_point5.png&quot; height=&quot;436&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;Click or tap the connection of the physical network adapter that currently has Internet access. In our case, it is an&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;Ethernet&lt;/em&gt;&amp;nbsp;connection.&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-5CkPQ8aMkX0/VLEKNH1T6nI/AAAAAAAAEhY/Y338P82fT5A/s1600/wireless_access_point6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-5CkPQ8aMkX0/VLEKNH1T6nI/AAAAAAAAEhY/Y338P82fT5A/s1600/wireless_access_point6.png&quot; height=&quot;178&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;This opens the&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;Status&lt;/em&gt;&amp;nbsp;window for the selected network adapter. Click or tap&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;Properties&lt;/em&gt;.&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-M90e8y6kCHg/VLEKNaAAcwI/AAAAAAAAEhU/JAiEqdAXiCk/s1600/wireless_access_point7.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-M90e8y6kCHg/VLEKNaAAcwI/AAAAAAAAEhU/JAiEqdAXiCk/s1600/wireless_access_point7.png&quot; height=&quot;640&quot; width=&quot;526&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;In the&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;Properties&lt;/em&gt;&amp;nbsp;window, go to the&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;Sharing&lt;/em&gt;&amp;nbsp;tab.&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-uNOwEUI4fCs/VLEKN_1hkDI/AAAAAAAAEhk/O7DTv_nxxIA/s1600/wireless_access_point8.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-uNOwEUI4fCs/VLEKN_1hkDI/AAAAAAAAEhk/O7DTv_nxxIA/s1600/wireless_access_point8.png&quot; height=&quot;640&quot; width=&quot;506&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;In order to give Internet access to the virtual WiFi adapter that was created earlier, check the box near&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;&quot;Allow other network users to connect through this computer&#39;s Internet connection&quot;&lt;/em&gt;.&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-oiBKT9QyJ4s/VLEKOFwBkoI/AAAAAAAAEho/9tS_kXTpoT4/s1600/wireless_access_point9.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-oiBKT9QyJ4s/VLEKOFwBkoI/AAAAAAAAEho/9tS_kXTpoT4/s1600/wireless_access_point9.png&quot; height=&quot;462&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;Then, select the virtual adapter that was created earlier.&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-uZ1dn1VHMts/VLEKJqETpGI/AAAAAAAAEgg/P3RpB33JW38/s1600/wireless_access_point10.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-uZ1dn1VHMts/VLEKJqETpGI/AAAAAAAAEgg/P3RpB33JW38/s1600/wireless_access_point10.png&quot; height=&quot;452&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;Click or tap&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;OK&lt;/em&gt;&amp;nbsp;and&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;Close&lt;/em&gt;&amp;nbsp;to save the settings you&#39;ve made.&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;Go back to the&amp;nbsp;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;Network and Sharing Center&lt;/em&gt;&amp;nbsp;and you will notice that the virtual network adapter now has Internet access.&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-1pchzkUeHPc/VLEKJjXxfJI/AAAAAAAAEgk/HHyVVVIryxc/s1600/wireless_access_point11.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-1pchzkUeHPc/VLEKJjXxfJI/AAAAAAAAEgk/HHyVVVIryxc/s1600/wireless_access_point11.png&quot; height=&quot;268&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;The virtual adapter now gives Internet access to all the devices that are connected to it.&lt;/div&gt;&lt;h2 class=&quot;content&quot; style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-weight: normal; margin: 0.83em 0px;&quot;&gt;Step 3. Connect Your Wireless Devices to the Access Point&lt;/h2&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;The next step is to connect your wireless devices to the virtual WiFi access point and use them to access the Internet. Also, the devices that are connected to your laptop or hybrid PC, are placed in the same network with the access point. You can use that network to share files and folders between devices.&lt;/div&gt;&lt;h2 class=&quot;content&quot; style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-weight: normal; margin: 0.83em 0px;&quot;&gt;Conclusion&lt;/h2&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #313f4a; font-family: &#39;Segoe UI&#39;, Segoe, Tahoma, Geneva, sans-serif; font-size: 16px; margin-bottom: 1em; margin-top: 1em;&quot;&gt;As you can see, with the help of a few clicks and commands, you can create a virtual wireless connection in Windows 8.1. Try it out for yourself and let us know how well it worked for you. Also, do you know other ways to create a wireless network connection between computers? If you do, share it with us in the comments below.&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/9075945380962487000/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blkarwasara.blogspot.com/2015/01/how-to-turn-your-laptop-device-into.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/9075945380962487000'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/9075945380962487000'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/2015/01/how-to-turn-your-laptop-device-into.html' title='How to turn your laptop device Into a WiFi Access Point (Hot spot)'/><author><name>BL Choudhary</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-k0f0OKHsYyE/VLEKJhec8qI/AAAAAAAAEgo/1YGxJFv7Gvs/s72-c/wireless_access_point1.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Jaipur, Rajasthan, India</georss:featurename><georss:point>26.9124336 75.787270900000067</georss:point><georss:box>26.4592396 75.141823900000063 27.3656276 76.432717900000071</georss:box></entry><entry><id>tag:blogger.com,1999:blog-5797778220826413729.post-2473438447161064369</id><published>2013-06-15T01:26:00.001-05:00</published><updated>2013-06-15T01:32:39.441-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MS SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="MS SQL User creation"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Installation"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL/T-SQL"/><title type='text'>*.mdf file is compressed but does not reside in a read-only database or filegroup. The file must be decompressed.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;I was trying to move y database files (.MDF and .LDF) to different directory by below query -&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Step 1&lt;/b&gt;&lt;/u&gt; &lt;br /&gt;USE MASTER;&lt;br /&gt;GO&lt;br /&gt;-- Take database in single user mode&lt;br /&gt;-- if you are facing errors&lt;br /&gt;-- This may terminate your active transactions for database&lt;br /&gt;ALTER DATABASE dbDatabase&lt;br /&gt;SET SINGLE_USER&lt;br /&gt;WITH ROLLBACK IMMEDIATE;&lt;br /&gt;GO&lt;br /&gt;-- Detach DB&lt;br /&gt;EXEC MASTER.dbo.sp_detach_db @dbname = N&#39;dbDatabase&#39;&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Step 2&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;-- Move MDF File from Loc1 to Loc 2&lt;br /&gt;-- Re-Attached DB&lt;br /&gt;CREATE DATABASE dbDatabaseON&lt;br /&gt;( FILENAME = N&#39;E:\SQL Database\Data\dbDatabase.mdf&#39; ),&lt;br /&gt;( FILENAME = N&#39;E:\SQL Database\Data\dbDatabase_log.ldf&#39; )&lt;br /&gt;FOR ATTACH&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;Then i was getting error&lt;b&gt; “The file &#39;D:\SQL Databse\DATA\&lt;/b&gt;&lt;b&gt;dbDatabase.ldf&#39; is compressed but does not reside in a read-only database or file group. The file must be decompressed.”&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I remember the free space on drive was running low and windows ask me to compress the files that were not use frequently. So that was the reason cause this error. I looked at the property of the MDF and LDF files. At the advance tab the check box “compress content to save space” was checked. So I unchecked this box and save. After that I moved my database successfully.&lt;br /&gt;&lt;br /&gt;Let me know if there is any challenges?&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/2473438447161064369/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blkarwasara.blogspot.com/2013/06/mdf-file-is-compressed-but-does-not.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/2473438447161064369'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/2473438447161064369'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/2013/06/mdf-file-is-compressed-but-does-not.html' title='*.mdf file is compressed but does not reside in a read-only database or filegroup. The file must be decompressed.'/><author><name>BL Choudhary</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5797778220826413729.post-9163341274016914011</id><published>2013-03-22T11:54:00.002-05:00</published><updated>2013-03-22T11:54:31.911-05:00</updated><title type='text'>Principles of software design </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Every software application, whether you apply design patterns or not,  you should adhere to the design principles. Applying design principles  makes your application robust and easy to maintain. Also design  principles must be learned before you can embark on a journey to learn  design patterns. &amp;nbsp;Allow me to introduce you to design principles with  the so called&amp;nbsp;&lt;b&gt;SOLID &lt;/b&gt;design principles.&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;S: &amp;nbsp; Single Responsibility Principle&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Like the name suggests, what this means is that every object should be  built for one reason only. You should avoid writing multi purpose  classes. For example in the .net class library, the string functions are  in its own single purpose System&lt;span&gt;.&lt;/span&gt;String&amp;nbsp;class and the math functions are in&amp;nbsp;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 14px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Times New Roman&#39;; font-size: x-small;&quot;&gt;System.Math class.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;O: &amp;nbsp;Open-Closed Principle&lt;/b&gt;&lt;br /&gt;A class should be open for extension and closed for modification. This  means once a class has had a stable release, the existing functionality  should never be modified. It it however okay to add new functionality.&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;L: &amp;nbsp; Liskov Substitution Principle&lt;/b&gt;&lt;/div&gt;&lt;div&gt;This principle states that you should be able to use a derived class in  place on the parent class and &amp;nbsp;the derived class should behave the same  as its parent class.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;I: &amp;nbsp; &amp;nbsp;Interface Segregation Principle&lt;/b&gt;&lt;/div&gt;&lt;div&gt;This principle is tells you to separate interfaces based on their  responsibility. Do not have one huge interface for everything.&amp;nbsp;For  example imagine the&amp;nbsp;IEnumerable&amp;nbsp;interface also made you implement a lot  of methods that you don&#39;t need for a foreach loop. Thats obviously an  unwanted&amp;nbsp;inconvenience, if all you want is to apply a foreach loop. This  is avoided by having only the methods required for a foreach loop as a  part of the&amp;nbsp;IEnumerable&amp;nbsp;interface.&lt;br /&gt;&lt;/div&gt;&lt;b&gt;D: &amp;nbsp; Dependency Inversion Principle (or the Inversion of Control Principle )&lt;/b&gt;&lt;br /&gt;The&amp;nbsp;Dependency Inversion Principle states when one class uses another  class, both the code in both classes can be totally independent of each  other and should only depend on interfaces (or abstract classes).&lt;br /&gt;There are three ways to achieve this, namely&lt;br /&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Constructor Injection&lt;/li&gt;&lt;li&gt;Method Injection&lt;/li&gt;&lt;li&gt;Property Injection&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/9163341274016914011/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blkarwasara.blogspot.com/2013/03/principles-of-software-design.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/9163341274016914011'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/9163341274016914011'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/2013/03/principles-of-software-design.html' title='Principles of software design '/><author><name>BL Choudhary</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5797778220826413729.post-1272568795515450254</id><published>2013-03-22T10:29:00.001-05:00</published><updated>2013-03-22T10:29:17.998-05:00</updated><title type='text'>SQL Server Isolation Levels By Example</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Isolation levels in SQL Server control the way locking works between transactions.&lt;br /&gt; SQL Server 2008 supports the following isolation levels&lt;br /&gt; &lt;ul&gt;&lt;li&gt;Read Uncommitted &lt;/li&gt;&lt;li&gt;Read Committed (The default) &lt;/li&gt;&lt;li&gt;Repeatable Read &lt;/li&gt;&lt;li&gt;Serializable &lt;/li&gt;&lt;li&gt;Snapshot &lt;/li&gt;&lt;/ul&gt;Before I run through each of these in detail you may want to create a  new database to run the examples, run the following script on the new  database to create the sample data. &lt;strong&gt;Note&lt;/strong&gt; : You’ll also want to drop the IsolationTests table and re-run this script before each example to reset the data.&lt;br /&gt; &lt;div&gt;&lt;div class=&quot;syntaxhighlighter nogutter  sql&quot; id=&quot;highlighter_135190&quot;&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;code&quot;&gt;&lt;div class=&quot;container&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;CREATE&lt;/code&gt; &lt;code class=&quot;sql keyword&quot;&gt;TABLE&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;IsolationTests&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot;&gt;&lt;code class=&quot;sql plain&quot;&gt;(&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot;&gt;&lt;code class=&quot;sql spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;sql plain&quot;&gt;Id &lt;/code&gt;&lt;code class=&quot;sql keyword&quot;&gt;INT&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;IDENTITY,&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot;&gt;&lt;code class=&quot;sql spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;sql plain&quot;&gt;Col1 &lt;/code&gt;&lt;code class=&quot;sql keyword&quot;&gt;INT&lt;/code&gt;&lt;code class=&quot;sql plain&quot;&gt;,&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot;&gt;&lt;code class=&quot;sql spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;sql plain&quot;&gt;Col2 &lt;/code&gt;&lt;code class=&quot;sql keyword&quot;&gt;INT&lt;/code&gt;&lt;code class=&quot;sql plain&quot;&gt;,&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number6 index5 alt1&quot;&gt;&lt;code class=&quot;sql spaces&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;sql plain&quot;&gt;Col3 &lt;/code&gt;&lt;code class=&quot;sql keyword&quot;&gt;INT&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number7 index6 alt2&quot;&gt;&lt;code class=&quot;sql plain&quot;&gt;)&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number8 index7 alt1&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;line number9 index8 alt2&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;INSERT&lt;/code&gt; &lt;code class=&quot;sql keyword&quot;&gt;INTO&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;IsolationTests(Col1,Col2,Col3)&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number10 index9 alt1&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;SELECT&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;1,2,3&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number11 index10 alt2&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;UNION&lt;/code&gt; &lt;code class=&quot;sql color1&quot;&gt;ALL&lt;/code&gt; &lt;code class=&quot;sql keyword&quot;&gt;SELECT&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;1,2,3&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number12 index11 alt1&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;UNION&lt;/code&gt; &lt;code class=&quot;sql color1&quot;&gt;ALL&lt;/code&gt; &lt;code class=&quot;sql keyword&quot;&gt;SELECT&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;1,2,3&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number13 index12 alt2&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;UNION&lt;/code&gt; &lt;code class=&quot;sql color1&quot;&gt;ALL&lt;/code&gt; &lt;code class=&quot;sql keyword&quot;&gt;SELECT&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;1,2,3&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number14 index13 alt1&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;UNION&lt;/code&gt; &lt;code class=&quot;sql color1&quot;&gt;ALL&lt;/code&gt; &lt;code class=&quot;sql keyword&quot;&gt;SELECT&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;1,2,3&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number15 index14 alt2&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;UNION&lt;/code&gt; &lt;code class=&quot;sql color1&quot;&gt;ALL&lt;/code&gt; &lt;code class=&quot;sql keyword&quot;&gt;SELECT&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;1,2,3&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number16 index15 alt1&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;UNION&lt;/code&gt; &lt;code class=&quot;sql color1&quot;&gt;ALL&lt;/code&gt; &lt;code class=&quot;sql keyword&quot;&gt;SELECT&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;1,2,3&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;Also before we go any further it is important to understand these two terms….&lt;br /&gt; &lt;ol&gt;&lt;li&gt;&lt;strong&gt;Dirty Reads&lt;/strong&gt; – This is when you read uncommitted  data, when doing this there is no guarantee that data read will ever be  committed meaning the data could well be bad. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Phantom Reads&lt;/strong&gt; – This is when data that you are  working with has been changed by another transaction since you first  read it in. This means subsequent reads of this data in the same  transaction could well be different. &lt;/li&gt;&lt;/ol&gt;&lt;h3&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Read Uncommitted&lt;/span&gt;&lt;/h3&gt;This is the lowest isolation level there is. Read uncommitted causes  no shared locks to be requested which allows you to read data that is  currently being modified in other transactions. It also allows other  transactions to modify data that you are reading.&lt;br /&gt; As you can probably imagine this can cause some unexpected results in  a variety of different ways. For example data returned by the select  could be in a half way state if an update was running in another  transaction causing some of your rows to come back with the updated  values and some not to.&lt;br /&gt; To see read uncommitted in action lets run Query1 in one tab of  Management Studio and then quickly run Query2 in another tab before  Query1 completes.&lt;br /&gt; &lt;u&gt;Query1&lt;/u&gt;&lt;br /&gt; &lt;div&gt;&lt;div class=&quot;syntaxhighlighter nogutter  sql   &quot; id=&quot;highlighter_127244&quot;&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;code&quot;&gt;&lt;div class=&quot;container&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;BEGIN&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;TRAN&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;UPDATE&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;Tests &lt;/code&gt;&lt;code class=&quot;sql keyword&quot;&gt;SET&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;Col1 = 2&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot;&gt;&lt;code class=&quot;sql comments&quot;&gt;--Simulate having some intensive processing here with a wait&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot;&gt;&lt;code class=&quot;sql plain&quot;&gt;WAITFOR DELAY &lt;/code&gt;&lt;code class=&quot;sql string&quot;&gt;&#39;00:00:10&#39;&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;ROLLBACK&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;u&gt;Query2&lt;/u&gt;&lt;br /&gt; &lt;div&gt;&lt;div class=&quot;syntaxhighlighter nogutter  sql    &quot; id=&quot;highlighter_586026&quot;&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;code&quot;&gt;&lt;div class=&quot;container&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;SET&lt;/code&gt; &lt;code class=&quot;sql keyword&quot;&gt;TRANSACTION&lt;/code&gt; &lt;code class=&quot;sql keyword&quot;&gt;ISOLATION&lt;/code&gt; &lt;code class=&quot;sql keyword&quot;&gt;LEVEL&lt;/code&gt; &lt;code class=&quot;sql keyword&quot;&gt;READ&lt;/code&gt; &lt;code class=&quot;sql keyword&quot;&gt;UNCOMMITTED&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;SELECT&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;* &lt;/code&gt;&lt;code class=&quot;sql keyword&quot;&gt;FROM&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;IsolationTests&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;Notice that Query2 will not wait for Query1 to finish, also more  importantly Query2 returns dirty data. Remember Query1 rolls back all  its changes however Query2 has returned the data anyway, this is because  it didn’t wait for all the other transactions with exclusive locks on  this data it just returned what was there at the time.&lt;br /&gt; There is a syntactic shortcut for querying data using the read  uncommitted isolation level by using the NOLOCK table hint. You could  change the above Query2 to look like this and it would do the exact same  thing.&lt;br /&gt; &lt;div&gt;&lt;div class=&quot;syntaxhighlighter nogutter  sql  &quot; id=&quot;highlighter_676152&quot;&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;code&quot;&gt;&lt;div class=&quot;container&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;SELECT&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;* &lt;/code&gt;&lt;code class=&quot;sql keyword&quot;&gt;FROM&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;IsolationTests &lt;/code&gt;&lt;code class=&quot;sql keyword&quot;&gt;WITH&lt;/code&gt;&lt;code class=&quot;sql plain&quot;&gt;(NOLOCK)&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Read Committed&lt;/span&gt;&lt;/h3&gt;This is the default isolation level and means selects will only  return committed data. Select statements will issue shared lock requests  against data you’re querying this causes you to wait if another  transaction already has an exclusive lock on that data. Once you have  your shared lock any other transactions trying to modify that data will  request an exclusive lock and be made to wait until your Read Committed  transaction finishes.&lt;br /&gt; You can see an example of a read transaction waiting for a modify  transaction to complete before returning the data by running the  following Queries in separate tabs as you did with Read Uncommitted. &lt;br /&gt; &lt;u&gt;Query1&lt;/u&gt;&lt;br /&gt; &lt;div&gt;&lt;div class=&quot;syntaxhighlighter nogutter  sql&quot; id=&quot;highlighter_636656&quot;&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;code&quot;&gt;&lt;div class=&quot;container&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;BEGIN&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;TRAN&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;UPDATE&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;Tests &lt;/code&gt;&lt;code class=&quot;sql keyword&quot;&gt;SET&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;Col1 = 2&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot;&gt;&lt;code class=&quot;sql comments&quot;&gt;--Simulate having some intensive processing here with a wait&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot;&gt;&lt;code class=&quot;sql plain&quot;&gt;WAITFOR DELAY &lt;/code&gt;&lt;code class=&quot;sql string&quot;&gt;&#39;00:00:10&#39;&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;ROLLBACK&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;u&gt;Query2&lt;/u&gt;&lt;br /&gt; &lt;div&gt;&lt;div class=&quot;syntaxhighlighter nogutter  sql &quot; id=&quot;highlighter_999189&quot;&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;code&quot;&gt;&lt;div class=&quot;container&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;SELECT&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;* &lt;/code&gt;&lt;code class=&quot;sql keyword&quot;&gt;FROM&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;IsolationTests&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;Notice how Query2 waited for the first transaction to complete before  returning and also how the data returned is the data we started off  with as Query1 did a rollback. The reason no isolation level was  specified is because Read Committed is the default isolation level for  SQL Server. If you want to check what isolation level you are running  under you can run “DBCC useroptions”. Remember isolation levels are  Connection/Transaction specific so different queries on the same  database are often run under different isolation levels.&lt;br /&gt; &lt;h3&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Repeatable Read&lt;/span&gt;&lt;/h3&gt;This is similar to Read Committed but with the additional guarantee  that if you issue the same select twice in a transaction you will get  the same results both times. It does this by holding on to the shared  locks it obtains on the records it reads until the end of the  transaction, This means any transactions that try to modify these  records are forced to wait for the read transaction to complete. &lt;br /&gt; As before run Query1 then while its running run Query2&lt;br /&gt; &lt;u&gt;Query1&lt;/u&gt;&lt;br /&gt; &lt;div&gt;&lt;div class=&quot;syntaxhighlighter nogutter  sql &quot; id=&quot;highlighter_716102&quot;&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;code&quot;&gt;&lt;div class=&quot;container&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;SET&lt;/code&gt; &lt;code class=&quot;sql keyword&quot;&gt;TRANSACTION&lt;/code&gt; &lt;code class=&quot;sql keyword&quot;&gt;ISOLATION&lt;/code&gt; &lt;code class=&quot;sql keyword&quot;&gt;LEVEL&lt;/code&gt; &lt;code class=&quot;sql keyword&quot;&gt;REPEATABLE&lt;/code&gt; &lt;code class=&quot;sql keyword&quot;&gt;READ&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;BEGIN&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;TRAN&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;SELECT&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;* &lt;/code&gt;&lt;code class=&quot;sql keyword&quot;&gt;FROM&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;IsolationTests&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot;&gt;&lt;code class=&quot;sql plain&quot;&gt;WAITFOR DELAY &lt;/code&gt;&lt;code class=&quot;sql string&quot;&gt;&#39;00:00:10&#39;&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;SELECT&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;* &lt;/code&gt;&lt;code class=&quot;sql keyword&quot;&gt;FROM&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;IsolationTests&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number6 index5 alt1&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;ROLLBACK&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;u&gt;Query2&lt;/u&gt;&lt;br /&gt; &lt;div&gt;&lt;div class=&quot;syntaxhighlighter nogutter  sql  &quot; id=&quot;highlighter_716929&quot;&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;code&quot;&gt;&lt;div class=&quot;container&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;UPDATE&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;IsolationTests &lt;/code&gt;&lt;code class=&quot;sql keyword&quot;&gt;SET&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;Col1 = -1&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;Notice that Query1 returns the same data for both selects even though  you ran a query to modify the data before the second select ran. This  is because the Update query was forced to wait for Query1 to finish due  to the exclusive locks that were opened as you specified Repeatable  Read.&lt;br /&gt; If you rerun the above Queries but change Query1 to Read Committed  you will notice the two selects return different data and that Query2  does not wait for Query1 to finish.&lt;br /&gt; One last thing to know about Repeatable Read is that the data can  change between 2 queries if more records are added. Repeatable Read  guarantees records queried by a previous select will not be changed or  deleted, it does not stop new records being inserted so it is still very  possible to get Phantom Reads at this isolation level.&lt;br /&gt; &lt;h3&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Serializable&lt;/span&gt;&lt;/h3&gt;This isolation level takes Repeatable Read and adds the guarantee  that no new data will be added eradicating the chance of getting Phantom  Reads. It does this by placing range locks on the queried data. This  causes any other transactions trying to modify or insert data touched on  by this transaction to wait until it has finished.&lt;br /&gt; You know the drill by now run these queries side by side…&lt;br /&gt; &lt;u&gt;Query1&lt;/u&gt;&lt;br /&gt; &lt;div&gt;&lt;div class=&quot;syntaxhighlighter nogutter  sql&quot; id=&quot;highlighter_353683&quot;&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;code&quot;&gt;&lt;div class=&quot;container&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;SET&lt;/code&gt; &lt;code class=&quot;sql keyword&quot;&gt;TRANSACTION&lt;/code&gt; &lt;code class=&quot;sql keyword&quot;&gt;ISOLATION&lt;/code&gt; &lt;code class=&quot;sql keyword&quot;&gt;LEVEL&lt;/code&gt; &lt;code class=&quot;sql keyword&quot;&gt;SERIALIZABLE&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;BEGIN&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;TRAN&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;SELECT&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;* &lt;/code&gt;&lt;code class=&quot;sql keyword&quot;&gt;FROM&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;IsolationTests&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot;&gt;&lt;code class=&quot;sql plain&quot;&gt;WAITFOR DELAY &lt;/code&gt;&lt;code class=&quot;sql string&quot;&gt;&#39;00:00:10&#39;&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;SELECT&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;* &lt;/code&gt;&lt;code class=&quot;sql keyword&quot;&gt;FROM&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;IsolationTests&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number6 index5 alt1&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;ROLLBACK&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;u&gt;Query2&lt;/u&gt;&lt;br /&gt; &lt;div&gt;&lt;div class=&quot;syntaxhighlighter nogutter  sql &quot; id=&quot;highlighter_637313&quot;&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;code&quot;&gt;&lt;div class=&quot;container&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;INSERT&lt;/code&gt; &lt;code class=&quot;sql keyword&quot;&gt;INTO&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;IsolationTests(Col1,Col2,Col3)&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;VALUES&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;(100,100,100)&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;You’ll see that the insert in Query2 waits for Query1 to complete  before it runs eradicating the chance of a phantom read. If you change  the isolation level in Query1 to repeatable read, you’ll see the insert  no longer gets blocked and the two select statements in Query1 return a  different amount of rows. &lt;br /&gt; &lt;h3&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Snapshot&lt;/span&gt;&lt;/h3&gt;This provides the same guarantees as serializable. So what’s the  difference? Well it’s more in the way it works, using snapshot doesn’t  block other queries from inserting or updating the data touched by the  snapshot transaction. Instead row versioning is used so when data is  changed the old version is kept in tempdb so existing transactions will  see the version without the change. When all transactions that started  before the changes are complete the previous row version is removed from  tempdb.  This means that even if another transaction has made changes  you will always get the same results as you did the first time in that  transaction.&lt;br /&gt; So on the plus side your not blocking anyone else from modifying the  data whilst you run your transaction but…. You’re using extra resources  on the SQL Server to hold multiple versions of your changes.&lt;br /&gt; To use the snapshot isolation level you need to enable it on the database by running the following command&lt;br /&gt; &lt;div&gt;&lt;div class=&quot;syntaxhighlighter nogutter  sql&quot; id=&quot;highlighter_791217&quot;&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;code&quot;&gt;&lt;div class=&quot;container&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;ALTER&lt;/code&gt; &lt;code class=&quot;sql keyword&quot;&gt;DATABASE&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;IsolationTests&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot;&gt;&lt;code class=&quot;sql keyword&quot;&gt;SET&lt;/code&gt; &lt;code class=&quot;sql plain&quot;&gt;ALLOW_SNAPSHOT_ISOLATION &lt;/code&gt;&lt;code class=&quot;sql keyword&quot;&gt;ON&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;If you rerun the examples from serializable but change the isolation  level to snapshot you will notice that you still get the same data  returned but Query2 no longer waits for Query1 to complete.&lt;br /&gt; &lt;h3&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Summary&lt;/span&gt;&lt;/h3&gt;You should now have a good idea how each of the different isolation  levels work. You can see how the higher the level you use the less  concurrency you are offering and the more blocking you bring to the  table. You should always try to use the lowest isolation level you can  which is usually read committed.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/1272568795515450254/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blkarwasara.blogspot.com/2013/03/sql-server-isolation-levels-by-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/1272568795515450254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/1272568795515450254'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/2013/03/sql-server-isolation-levels-by-example.html' title='SQL Server Isolation Levels By Example'/><author><name>BL Choudhary</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5797778220826413729.post-8311957894501418378</id><published>2013-02-24T12:03:00.000-06:00</published><updated>2013-02-24T12:03:44.543-06:00</updated><title type='text'>How IIS Process ASP.NET Request </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h3&gt;Introduction&lt;/h3&gt;When request come from client to the server a lot of operation is  performed before sending response to the client. This is all about how  IIS Process the request.&amp;nbsp; Here I am not going to describe the Page Life  Cycle and there events, this article is all about the operation of IIS  Level.&amp;nbsp; Before we start with the actual details, let’s start from the  beginning so that each and everyone understand it’s details easily.&amp;nbsp;  Please provide your valuable feedback and suggestion to improve this  article.&lt;br /&gt; &lt;h3&gt;What is Web Server ?&lt;/h3&gt;When we run our ASP.NET Web Application from visual studio IDE, VS  Integrated ASP.NET Engine is responsible to execute all kind of asp.net  requests and responses.&amp;nbsp; The process name is&lt;strong&gt; “WebDev.WebServer.Exe”&lt;/strong&gt; which actually takw care of all request and response of an web application which is running from Visual Studio IDE.&lt;br /&gt; Now, the name &lt;em&gt;“Web Server” &lt;/em&gt;comes into picture when we want  to host the application on a centralized location and wanted to access  from many locations. Web server is responsible for handle all the  requests that are coming from clients, process them and provide the  responses.&lt;br /&gt; &lt;img alt=&quot;&quot; src=&quot;http://www.dotnetfunda.com/UserFiles/ArticlesFiles/Abhijit%20Jana_634041500763171406_Firstone.JPG&quot; style=&quot;display: block; float: none; margin-left: auto; margin-right: auto;&quot; /&gt;&lt;br /&gt; &lt;h3&gt;What is IIS ?&lt;/h3&gt;&lt;em&gt;IIS (Internet Information Server)&lt;/em&gt; is one of the most  powerful web servers from Microsoft that is used to host your ASP.NET  Web application. IIS has it’s own ASP.NET Process Engine&amp;nbsp; to handle the  ASP.NET request. So, when a request comes from client to server, IIS  takes that request and&amp;nbsp; process it and send response back to clients.&lt;br /&gt; &lt;img alt=&quot;&quot; src=&quot;http://www.dotnetfunda.com/UserFiles/ArticlesFiles/Abhijit%20Jana_634041501029987812_IISProcessRequest.JPG&quot; /&gt;&lt;br /&gt; &lt;h3&gt;Request Processing :&lt;/h3&gt;Hope, till now it’s clear to you that what is Web server and IIS is  and what is the use of them. Now let’s have a look how they do things  internally. Before we move ahead, you have to know about two main  concepts&lt;br /&gt; 1.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;em&gt;Worker Process&lt;/em&gt;&lt;br /&gt;2.&amp;nbsp;&amp;nbsp; &lt;em&gt; Application Pool&lt;/em&gt;&lt;br /&gt; &lt;span style=&quot;text-decoration: underline;&quot;&gt;&lt;strong&gt;Worker Process:&lt;/strong&gt;&lt;/span&gt;&amp;nbsp; Worker Process (&lt;em&gt;w3wp.exe&lt;/em&gt;)  runs the ASP.Net application in IIS. This process is responsible to  manage all the request and response that are coming from client system.&amp;nbsp;  All the ASP.Net functionality runs under the scope of worker process.&amp;nbsp;  When a request comes to the server from a client worker process is  responsible to generate the request and response. In a single word we  can say worker process is the heart of ASP.NET Web Application which  runs on IIS.&lt;br /&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;&lt;strong&gt;Application Pool: &lt;/strong&gt;&lt;/span&gt; Application pool is the container of worker process.&amp;nbsp; Application pools  is used to separate sets of IIS worker processes that share the same  configuration.&amp;nbsp; Application pools enables a better &lt;em&gt;security, reliability, and availability&lt;/em&gt; for any web application.&amp;nbsp; The worker process serves as the process  boundary that separates each application pool so that when one worker  process or application is having an issue or recycles, other  applications or worker processes are not affected. This makes sure that a  particular web application doesn’t not impact other web application as  they they are configured into different application pools.&lt;br /&gt; &lt;img alt=&quot;&quot; src=&quot;http://www.dotnetfunda.com/UserFiles/ArticlesFiles/Abhijit%20Jana_634041500651403828_AppPool.JPG&quot; /&gt;&lt;br /&gt; Application Pool with multiple worker process is called&lt;em&gt; “Web Garden”&lt;/em&gt;.&lt;br /&gt;Now, I have covered all the basic stuff like Web server, Application  Pool, Worker process. Now let’s have look how IIS process the request  when a new request comes up from client.&lt;br /&gt;If we look into the IIS 6.0 Architecture, we can divided them into Two Layer&lt;br /&gt; &lt;blockquote&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;em&gt;Kernel Mode&lt;/em&gt;&lt;br /&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;em&gt;User Mode&lt;/em&gt;&lt;/blockquote&gt;Now, &lt;strong&gt;&lt;em&gt;Kernel mode&lt;/em&gt;&lt;/strong&gt; is introduced with IIS 6.0, which contains the &lt;strong&gt;HTTP.SYS&lt;/strong&gt;.&amp;nbsp; So whenever a request comes from Client to Server, it will hit &lt;em&gt;HTTP.SYS&lt;/em&gt; First.&lt;br /&gt; &lt;img alt=&quot;&quot; src=&quot;http://www.dotnetfunda.com/UserFiles/ArticlesFiles/Abhijit%20Jana_634041500723005391_BasicLevel.JPG&quot; /&gt;&lt;br /&gt; Now, HTTP.SYS is Responsible for pass the request to particular Application pool. &lt;em&gt;Now here is one question&lt;/em&gt;, &lt;span style=&quot;text-decoration: underline;&quot;&gt;&lt;em&gt;How HTTP.SYS comes to know where to send the request?&lt;/em&gt;&lt;/span&gt;&amp;nbsp; This is &lt;span style=&quot;text-decoration: underline;&quot;&gt;not a random&lt;/span&gt; pickup. Whenever we creates a new Application Pool, the ID of the  Application Pool is being generated and it’s registered with the  HTTP.SYS. So whenever HTTP.SYS Received the request from any web  application, it checks for the Application Pool and based on the  application pool it send the request.&lt;br /&gt; &lt;img alt=&quot;&quot; src=&quot;http://www.dotnetfunda.com/UserFiles/ArticlesFiles/Abhijit%20Jana_634041501112380391_RegisterApp.JPG&quot; /&gt;&lt;br /&gt; So, this was the first steps of IIS Request Processing.&lt;br /&gt;Till now, Client Requested for some information and request came to the  Kernel level of IIS means at HTTP.SYS. HTTP.SYS has been identified the  name of the application pool where to send. Now, let’s see how this  request moves from HTTP.SYS to Application Pool.&lt;br /&gt; In &lt;strong&gt;&lt;em&gt;User Level &lt;/em&gt;&lt;/strong&gt;of IIS, we have &lt;span style=&quot;text-decoration: underline;&quot;&gt;&lt;em&gt;Web Admin Services (WAS)&lt;/em&gt;&lt;/span&gt; which takes the request from HTTP.SYS and pass it to the respective application pool.&lt;br /&gt; &lt;img alt=&quot;&quot; src=&quot;http://www.dotnetfunda.com/UserFiles/ArticlesFiles/Abhijit%20Jana_634041501155671406_Was.JPG&quot; /&gt;&lt;br /&gt; When Application pool receive the request, it simply pass the request to worker process (&lt;span style=&quot;text-decoration: underline;&quot;&gt;w3wp.exe&lt;/span&gt;) . The worker process &lt;em&gt;“w3wp.exe”&lt;/em&gt; looks up the URL of the request in order to load the correct ISAPI  extension. ISAPI extensions are the IIS way to handle requests for  different resources. Once ASP.NET is installed, it installs its own  ISAPI extension &lt;span style=&quot;text-decoration: underline;&quot;&gt;(aspnet_isapi.dll)&lt;/span&gt; and adds the mapping into IIS.&lt;br /&gt;&lt;strong&gt;Note :&lt;/strong&gt; Sometimes if we install IIS after installing asp.net, we need to register the extension with IIS using &lt;strong&gt;aspnet_regiis&lt;/strong&gt; command.&lt;br /&gt; &lt;img alt=&quot;&quot; src=&quot;http://www.dotnetfunda.com/UserFiles/ArticlesFiles/Abhijit%20Jana_634041501195202656_WithAll.JPG&quot; /&gt;&lt;br /&gt; When Worker process loads the &lt;em&gt;aspnet_isapi.dll&lt;/em&gt;, it start an &lt;strong&gt;&lt;em&gt;HTTPRuntime&lt;/em&gt;&lt;/strong&gt;, which is the entry point of an application. &lt;em&gt;HTTPRuntime &lt;/em&gt;is a class which calls the &lt;em&gt;ProcessRequest &lt;/em&gt;method to start Processing.&lt;br /&gt; &lt;img alt=&quot;&quot; src=&quot;http://www.dotnetfunda.com/UserFiles/ArticlesFiles/Abhijit%20Jana_634041501078679219_ProcessRequest.JPG&quot; /&gt;&lt;br /&gt; When this methods called, a new instance of &lt;em&gt;&lt;strong&gt;HTTPContext &lt;/strong&gt;&lt;/em&gt;is been created.&amp;nbsp; Which is accessible using &lt;strong&gt;HTTPContext.Current&lt;/strong&gt;&amp;nbsp;  Properties. This object still remains alive during life time of object  request.&amp;nbsp; Using HttpContext.Current we can access some other objects  like &lt;em&gt;Request, Response, Session&lt;/em&gt; etc.&lt;br /&gt; &lt;img alt=&quot;&quot; src=&quot;http://www.dotnetfunda.com/UserFiles/ArticlesFiles/Abhijit%20Jana_634041500806755391_HttpContext.JPG&quot; /&gt;&lt;br /&gt; After that HttpRuntime load an &lt;em&gt;HttpApplication &lt;/em&gt;object with the help of&amp;nbsp; &lt;em&gt;HttpApplicationFactory &lt;/em&gt;class..  Each and every request should pass through the corresponding HTTPModule  to reach to HTTPHandler, this list of module are configured by the  HTTPApplication.&lt;br /&gt;Now, the concept comes called “&lt;strong&gt;HTTPPipeline&lt;/strong&gt;”. It is  called a pipeline because it contains a set of HttpModules ( For Both  Web.config and Machine.config level) that intercept the request on its  way to the HttpHandler. HTTPModules are classes that have access to the  incoming request. We can also create our own HTTPModule if we need to  handle anything during upcoming request and response.&lt;br /&gt; &lt;img alt=&quot;&quot; src=&quot;http://www.dotnetfunda.com/UserFiles/ArticlesFiles/Abhijit%20Jana_634041500917175312_httppipleline.JPG&quot; /&gt;&lt;br /&gt; HTTP Handlers are the &lt;span style=&quot;text-decoration: underline;&quot;&gt;&lt;em&gt;endpoints &lt;/em&gt;&lt;/span&gt;in  the HTTP pipeline. All request that are passing through the HTTPModule  should reached to HTTPHandler.&amp;nbsp; Then&amp;nbsp; HTTP Handler&amp;nbsp; generates the output  for the requested resource. So, when we requesting for any aspx web  pages,&amp;nbsp;&amp;nbsp; it returns the corresponding HTML output.&lt;br /&gt; All the request now passes from&amp;nbsp; httpModule to&amp;nbsp; respective  HTTPHandler then method and the ASP.NET Page life cycle starts.&amp;nbsp; This  ends the IIS Request processing and start the ASP.NET Page Lifecycle.&lt;br /&gt; &lt;img alt=&quot;&quot; src=&quot;http://www.dotnetfunda.com/UserFiles/ArticlesFiles/Abhijit%20Jana_634041500577575703_allStep.JPG&quot; /&gt;&lt;br /&gt; &lt;h3&gt;Conclusion&lt;/h3&gt;When client request for some information from a web server, request  first reaches to HTTP.SYS of IIS. HTTP.SYS then send the request to  respective&amp;nbsp; Application Pool. Application Pool then forward the request  to worker process to load the ISAPI Extension which will create an  HTTPRuntime Object to Process the request via HTTPModule and  HTTPHanlder. After that the ASP.NET Page LifeCycle events starts.&lt;br /&gt; This was just overview of IIS Request Processing to let Beginner’s  know how the request get processed in backend.&amp;nbsp; If you want to learn in  details please check the link for Reference and further Study section.&lt;br /&gt; &lt;h3&gt;Reference and Further Study&lt;/h3&gt;&lt;br /&gt; &lt;a href=&quot;http://www.west-wind.com/presentations/howaspnetworks/howaspnetworks.asp&quot;&gt;A low-level Look at the ASP.NET Architecture&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://learn.iis.net/page.aspx/101/introduction-to-iis-7-architecture/&quot;&gt;IIS Architecture&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/8311957894501418378/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blkarwasara.blogspot.com/2013/02/how-iis-process-aspnet-request.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/8311957894501418378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/8311957894501418378'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/2013/02/how-iis-process-aspnet-request.html' title='How IIS Process ASP.NET Request '/><author><name>BL Choudhary</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5797778220826413729.post-9144917990440891254</id><published>2013-01-15T14:35:00.000-06:00</published><updated>2013-01-15T14:35:30.226-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Session state"/><title type='text'>ASP.NET Session State: Architectural and Performance Considerations</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;        As you&#39;re probably aware, state management is an important consideration for web developers.         The HTTP protocol is connectionless, so any web application that persists data across         multiple web page requests needs some mechanism to ensure this session-based data         is maintained. Examples of session-based data include shopping carts (on an ecommerce         site), the currently logged-on user credentials, and other application-specific data         that would normally be held on a client. Various strategies have been utilised over         the last few years, including hidden forms, cookies and server-based state engines.         Of these choices, the latter is perhaps architecturally most attractive since it reduces         the dependence on a client; unfortunately, maintaining session state on the server         can be expensive on resources and makes it hard to scale out using web farms or secure         pages with HTTPS.     &lt;br /&gt;              Enter the ASP.NET session state engine, which attempts to make server-side session         state a much more viable option. ASP.NET offers three separate choices for session         state storage when it&#39;s switched on: locally on the server (InProc), remotely in a         SQL Server database (SqlServer), or remotely using a session state service (StateServer).         I&#39;ll go through each of those options and compare the benefits of each.      &lt;br /&gt;              &lt;b&gt;InProc&lt;/b&gt;    &lt;br /&gt;              The local option is not dissimilar to that provided by ASP, in that it requires all         requests to come to the same physical server rather than being randomly split across         multiple IIS machines. The upside is that it&#39;s very fast (it runs in-process), and         it&#39;s simple to implement. If you&#39;ve just got one web server, this is the best choice         in most scenarios. The only time when you might want to consider something else in         this scenario is when the session data is expensive to rebuild, since any InProc session         data is flushed when the ASP.NET worker process or IIS restarts. If, for example,         you&#39;re maintaining a shopping cart as local session data that gets cleared out, you         risk annoying customers sufficiently that they take their business elsewhere.      &lt;br /&gt;              For multiple servers, InProc is unsuitable unless you can implement some form of server         affinity, so that every time a particular client requests a web page they are directed         back to that same server. Services such as &lt;a href=&quot;http://www.microsoft.com/windows2000/techinfo/howitworks/cluster/nlb.asp&quot;&gt;Network         Load Balancing&lt;/a&gt; (part of Windows Server 2003 Enterprise Edition) can provide this,         although they inevitably add their own overhead.      &lt;br /&gt;              &lt;b&gt;StateServer&lt;/b&gt;    &lt;br /&gt;              I&#39;ve come across a few developers who haven&#39;t come across this choice. The state server         relies on a Windows service which is disabled by default, which perhaps explains why         people haven&#39;t noticed it - go to Administrative Tools / Services and enable the ASP.NET         State Service to get it working. You can run the state service on a dedicated machine         or shared with a web server host; the main requirement to make this service work efficiently         is plenty of RAM. Because the service is isolated from IIS, you can restart IIS without         losing the session data contained within it, and you can point multiple distributed         ASP.NET boxes at the same service, thereby removing server affinity issues. However,         the session data isn&#39;t persisted onto disk, so it can&#39;t be backed up and a server         reboot will lose the data. On the plus side, you don&#39;t need SQL Server or anything         beyond a Windows licence to run it, making this option easy to set up and maintain.         This option is however signficantly slower than using InProc, due to network latency         and roundtrip costs. Keeping the state server on a dedicated private LAN with the         other web server boxes will help.     &lt;br /&gt;              Finally, don&#39;t forget that you can run the ASP.NET State Service in a single web server         environment - this provides durability against IIS restarts, but at a performance         cost due to it running out of process.     &lt;br /&gt;              &lt;b&gt;SqlServer&lt;/b&gt;    &lt;br /&gt;              This is the high-end option in terms of flexibility and reliability, but is also the         most expensive to build and maintain. Rather than storing session data in memory,         it is persisted to a SQL Server instance. It&#39;s more reliable than any of the other         approaches, since the data is persisted in a more durable form (e.g. it will survive         a server restart and can be backed up). You can even use SQL Server clustering support         to increase session state reliability still further. From a performance point of view,         it&#39;s generally comparable to the StateServer service when you&#39;ve got multiple web         servers using it for session state. The session state itself is stored as a BLOB in         a persisted or temporary table, which can reduce the serialization cost but makes         it harder to view the session data itself.      &lt;br /&gt;              In most cases, integrated Windows authentication is the best choice, preferably utilising         Kerberos (NTLM requires an extra roundtrip for authentication). Connection pooling         can be used to minimise the initial performance hit.     &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/9144917990440891254/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blkarwasara.blogspot.com/2013/01/aspnet-session-state-architectural-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/9144917990440891254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/9144917990440891254'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/2013/01/aspnet-session-state-architectural-and.html' title='ASP.NET Session State: Architectural and Performance Considerations'/><author><name>BL Choudhary</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5797778220826413729.post-1770719148453711023</id><published>2012-03-26T08:47:00.000-05:00</published><updated>2012-03-26T08:47:40.083-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MS SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Shuffel data column values"/><category scheme="http://www.blogger.com/atom/ns#" term="SP"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL/T-SQL"/><title type='text'>Shuffle and update data column values in sql server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;strong&gt;Problem:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;Shuffel data column value of tables any particular column.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Solution:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;CREATE&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;TABLE&lt;/span&gt; dbo&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;tblUser&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: grey; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;(&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;intUserId &lt;span style=&quot;color: blue;&quot;&gt;INT&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;PRIMARY&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;KEY&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;IDENTITY &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;1&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;1&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;strFileName &lt;span style=&quot;color: blue;&quot;&gt;VARCHAR&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;50&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;NULL&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;DEFAULT&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;&#39;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: grey; font-size: 10pt;&quot;&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: grey; font-size: 10pt;&quot;&gt;GO&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: green; font-size: 10pt;&quot;&gt;-- Add Column for Sequential Order&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;ALTER&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;TABLE&lt;/span&gt; tblUser&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;ADD&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; tmpOrder1 &lt;span style=&quot;color: blue;&quot;&gt;INT&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;GO&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: green; font-size: 10pt;&quot;&gt;-- Add Sequential Order&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;UPDATE&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; c1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;SET&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; tmpOrder1 &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; RowNum&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; tblUser c1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: grey; font-size: 10pt;&quot;&gt;INNER&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: grey;&quot;&gt;JOIN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: grey; font-size: 10pt;&quot;&gt;(&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; intUserId&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: magenta;&quot;&gt;ROW_NUMBER&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;OVER &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ORDER&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;BY&lt;/span&gt; intUserId&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;&#39;RowNum&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; tblUser&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: grey; font-size: 10pt;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; c2 &lt;span style=&quot;color: blue;&quot;&gt;ON&lt;/span&gt; c2&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;intUserId &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; c1&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;intUserId&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;GO&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: green; font-size: 10pt;&quot;&gt;-- Add Column for Random Order&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;ALTER&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;TABLE&lt;/span&gt; tblUser&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;ADD&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; tmpOrder2 &lt;span style=&quot;color: blue;&quot;&gt;INT&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;GO&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: green; font-size: 10pt;&quot;&gt;-- Add Random Order&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;UPDATE&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; tblUser&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;SET&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; tmpOrder2 &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: magenta;&quot;&gt;ABS&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;CHECKSUM&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;NEWID&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;()))&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;%&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;color: magenta;&quot;&gt;COUNT&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(*)&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; tblUser&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;GO&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: green; font-size: 10pt;&quot;&gt;-- Update strFileName&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;UPDATE&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; c1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;SET&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; strFileName &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; c2&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;strFileName&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; tblUser c1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: grey; font-size: 10pt;&quot;&gt;INNER&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: grey;&quot;&gt;JOIN&lt;/span&gt; tblUser c2 &lt;span style=&quot;color: blue;&quot;&gt;ON&lt;/span&gt; c2&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;tmpOrder1 &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; c1&lt;span style=&quot;color: grey;&quot;&gt;.&lt;/span&gt;tmpOrder2&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;GO&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: green; font-size: 10pt;&quot;&gt;-- Re-randomise&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;UPDATE&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; tblUser &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;SET&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; tmpOrder2 &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: magenta;&quot;&gt;ABS&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;CHECKSUM&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;NEWID&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;()))%(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;color: magenta;&quot;&gt;COUNT&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(*)&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; tblUser&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;GO&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;ALTER&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;TABLE&lt;/span&gt; tblUser&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;DROP&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;COLUMN&lt;/span&gt; tmpOrder1&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;GO&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;ALTER&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;TABLE&lt;/span&gt; tblUser&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;DROP&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;COLUMN&lt;/span&gt; tmpOrder2&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;GO&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: green; font-size: 16pt; mso-bidi-font-size: 10.0pt;&quot;&gt;-- In other way&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;SET&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;NOCOUNT&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;ON&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;DECLARE&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; @intUserId &lt;span style=&quot;color: blue;&quot;&gt;INT&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;DECLARE&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; @strFileName &lt;span style=&quot;color: blue;&quot;&gt;VARCHAR&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;50&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;DECLARE&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; myCursor &lt;span style=&quot;color: blue;&quot;&gt;CURSOR&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;FOR&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; intUserId&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; tblUser &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;WHERE&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; intUserId &lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;-&lt;/span&gt;1 &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;ORDER&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;BY&lt;/span&gt; intUserId&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;OPEN&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; myCursor&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;FETCH&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;NEXT&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; myCursor &lt;span style=&quot;color: blue;&quot;&gt;INTO&lt;/span&gt; @intUserId&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;WHILE&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: magenta;&quot;&gt;@@FETCH_STATUS&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; 0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;BEGIN&lt;/span&gt;&lt;br /&gt;&lt;div style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;SELECT&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;@strFileName &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;TOP&lt;/span&gt; 1 strFileName &lt;span style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; tblUser &lt;span style=&quot;color: blue;&quot;&gt;ORDER&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;BY&lt;/span&gt; &lt;span style=&quot;color: magenta;&quot;&gt;NEWID&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;())&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;UPDATE&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; tblUser &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;SET&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; strFileName &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; @strFileName&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;WHERE&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; intUserId &lt;span style=&quot;color: grey;&quot;&gt;=&lt;/span&gt; @intUserId&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-indent: 0.5in;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;FETCH&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;NEXT&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;FROM&lt;/span&gt; myCursor &lt;span style=&quot;color: blue;&quot;&gt;INTO&lt;/span&gt; @intUserId&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;END&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;CLOSE&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; myCursor&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: 10pt;&quot;&gt;DEALLOCATE&lt;/span&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt; myCursor&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Please let me know if there is any issue.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Thanks&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/1770719148453711023/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blkarwasara.blogspot.com/2012/03/shuffle-and-update-data-column-values.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/1770719148453711023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/1770719148453711023'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/2012/03/shuffle-and-update-data-column-values.html' title='Shuffle and update data column values in sql server'/><author><name>BL Choudhary</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5797778220826413729.post-6599987748496861511</id><published>2012-03-02T11:23:00.000-06:00</published><updated>2012-03-02T11:23:20.674-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Complete Comparison for VB.NET and C#"/><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><category scheme="http://www.blogger.com/atom/ns#" term="IIS7"/><category scheme="http://www.blogger.com/atom/ns#" term="Upload File using Jquery"/><title type='text'>Unable to start debugging on the web server.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span class=&quot;quoteHeader&quot;&gt;&lt;span class=&quot;quoteHeader&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;quoteHeader&quot;&gt;&lt;span class=&quot;quoteHeader&quot;&gt;1. Open application property page,&lt;br /&gt;2. then in Web tab under server section&lt;br /&gt;3. If application is hosted in IIS&lt;br /&gt;&amp;nbsp;&amp;nbsp; i. Check Use IIS web server radio button and mention url and same port no as IIS. as &lt;a href=&quot;https://localhost:8031/&quot; rel=&quot;nofollow&quot;&gt;https://localhost:8031&lt;/a&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; ii. Then build, it will work&lt;br /&gt;4. If application is not hosted in IIS and you want to run it directly then&lt;br /&gt;&amp;nbsp;&amp;nbsp; i. Check Use virtual studio development server&lt;br /&gt;&amp;nbsp;&amp;nbsp; ii. Specify port let say 8999&lt;br /&gt;&amp;nbsp;&amp;nbsp; iii. Build and run, it worked in my case.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;quoteHeader&quot;&gt;&lt;span class=&quot;quoteHeader&quot;&gt;Let me know if there is any issue.&lt;br /&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/6599987748496861511/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blkarwasara.blogspot.com/2012/03/unable-to-start-debugging-on-web-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/6599987748496861511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/6599987748496861511'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/2012/03/unable-to-start-debugging-on-web-server.html' title='Unable to start debugging on the web server.'/><author><name>BL Choudhary</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5797778220826413729.post-1236432864865626434</id><published>2012-02-13T03:55:00.000-06:00</published><updated>2012-02-13T03:55:47.195-06:00</updated><title type='text'>Exception Details: System.Security.Policy.PolicyException: Required permissions cannot be acquired.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div&gt;Figured it out. IIS 7 introduced App Pool Identity &quot;issues&quot; that I didn&#39;t know to check into. &lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;Tucson, try this (not optimal security, but for my local dev machine, it&#39;s at least got me running for now):&lt;/div&gt;&lt;ol&gt;&lt;li&gt;Go to IIS / &lt;span style=&quot;font-size: x-small;&quot;&gt;Applications Pools&lt;/span&gt;  &lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Right-click DefaultAppPool / Advanced Settings&lt;/span&gt;  &lt;/li&gt;&lt;li&gt;In the Process Model section, click Identity.  &lt;/li&gt;&lt;li&gt;Change it to a&amp;nbsp;Custom Account, and then select your local admin  account. (If you&#39;re on a domain, you may have to type  &amp;lt;localComputerName&amp;gt;\&amp;lt;UserName&amp;gt;) or Select NETWOR SERVICE. &lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/1236432864865626434/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blkarwasara.blogspot.com/2012/02/exception-details-systemsecuritypolicyp.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/1236432864865626434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/1236432864865626434'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/2012/02/exception-details-systemsecuritypolicyp.html' title='Exception Details: System.Security.Policy.PolicyException: Required permissions cannot be acquired.'/><author><name>BL Choudhary</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5797778220826413729.post-7913629325712821817</id><published>2012-02-07T02:21:00.000-06:00</published><updated>2012-02-07T02:21:39.739-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="document reading"/><category scheme="http://www.blogger.com/atom/ns#" term="file reading"/><category scheme="http://www.blogger.com/atom/ns#" term="Introp"/><category scheme="http://www.blogger.com/atom/ns#" term="VB.NET"/><category scheme="http://www.blogger.com/atom/ns#" term="word doc"/><category scheme="http://www.blogger.com/atom/ns#" term="word doc reading"/><title type='text'>Read Document Text Directly from Microsoft Word Files (.doc, .docx, .rtf, .txt)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size: 15pt; line-height: 115%; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Description&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-font-size: 10.0pt; mso-bidi-theme-font: minor-latin; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Reading word office document file in .NET web application.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size: 15pt; line-height: 115%; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Requirement/ Preparation&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-font-size: 10.0pt; mso-bidi-theme-font: minor-latin; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Add DLL of &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;Microsoft.Office.Interop.Word &lt;/b&gt;to referances.&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size: 15pt; line-height: 115%; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Aspx code&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;background: yellow; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-highlight: yellow; mso-no-proof: yes;&quot;&gt;&amp;lt;%&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; &lt;span style=&quot;color: maroon;&quot;&gt;Page&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;Language&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;C#&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;AutoEventWireup&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;true&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;CodeFile&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;doc.aspx.cs&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;Inherits&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;doc&quot;&lt;/span&gt; &lt;span style=&quot;background: yellow; mso-highlight: yellow;&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&amp;lt;!&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;DOCTYPE&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; &lt;span style=&quot;color: red;&quot;&gt;html&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;PUBLIC&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; &lt;span style=&quot;color: red;&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;http://www.w3.org/1999/xhtml&quot;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; &lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;server&quot;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;Doc file parsing sample&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;form&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;form1&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;server&quot;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;TextBox&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;txtFilePath&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;server&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;813px&quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;TextBox&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;Button&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;btnGetCVDetails&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;server&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;OnClick&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;btnGetCVDetails_Click&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Button&quot;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;br&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;TextBox&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;txtDocFileData&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;server&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;Height&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;724px&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;TextMode&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;MultiLine&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;Width&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;875px&quot;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;TextBox&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;form&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;u&gt;&lt;span style=&quot;font-size: 15pt; line-height: 115%; mso-bidi-font-size: 11.0pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;.cs file code&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; System;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; System.Data;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; System.Configuration;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; System.Collections;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; System.Web;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; System.Web.Security;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; System.Web.UI;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; System.Web.UI.WebControls;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; System.Web.UI.WebControls.WebParts;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; System.Web.UI.HtmlControls;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; Microsoft.Office.Interop.Word;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;partial&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;doc&lt;/span&gt; : System.Web.UI.&lt;span style=&quot;color: teal;&quot;&gt;Page&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; btnGetCVDetails_Click(&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt; sender, &lt;span style=&quot;color: teal;&quot;&gt;EventArgs&lt;/span&gt; e)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;readFileContent(txtFilePath.Text.Trim());&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; readFileContent(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; path)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Microsoft.Office.Interop.Word.&lt;span style=&quot;color: teal;&quot;&gt;ApplicationClass&lt;/span&gt; wordApp = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;ApplicationClass&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt; file = path;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt; nullobj = System.Reflection.&lt;span style=&quot;color: teal;&quot;&gt;Missing&lt;/span&gt;.Value;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Microsoft.Office.Interop.Word.&lt;span style=&quot;color: teal;&quot;&gt;Document&lt;/span&gt; doc = wordApp.Documents.Open(&lt;span style=&quot;color: blue;&quot;&gt;ref&lt;/span&gt; file, &lt;span style=&quot;color: blue;&quot;&gt;ref&lt;/span&gt; nullobj, &lt;span style=&quot;color: blue;&quot;&gt;ref&lt;/span&gt; nullobj,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ref&lt;/span&gt; nullobj, &lt;span style=&quot;color: blue;&quot;&gt;ref&lt;/span&gt; nullobj, &lt;span style=&quot;color: blue;&quot;&gt;ref&lt;/span&gt; nullobj, &lt;span style=&quot;color: blue;&quot;&gt;ref&lt;/span&gt; nullobj, &lt;span style=&quot;color: blue;&quot;&gt;ref&lt;/span&gt; nullobj, &lt;span style=&quot;color: blue;&quot;&gt;ref&lt;/span&gt; nullobj, &lt;span style=&quot;color: blue;&quot;&gt;ref&lt;/span&gt; nullobj, &lt;span style=&quot;color: blue;&quot;&gt;ref&lt;/span&gt; nullobj,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ref&lt;/span&gt; nullobj, &lt;span style=&quot;color: blue;&quot;&gt;ref&lt;/span&gt; nullobj, &lt;span style=&quot;color: blue;&quot;&gt;ref&lt;/span&gt; nullobj, &lt;span style=&quot;color: blue;&quot;&gt;ref&lt;/span&gt; nullobj, &lt;span style=&quot;color: blue;&quot;&gt;ref&lt;/span&gt; nullobj);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;doc.ActiveWindow.Selection.WholeStory();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;doc.ActiveWindow.Selection.Copy();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;txtDocFileData.Text = doc.Content.Text;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;doc.Close(&lt;span style=&quot;color: blue;&quot;&gt;ref&lt;/span&gt; nullobj, &lt;span style=&quot;color: blue;&quot;&gt;ref&lt;/span&gt; nullobj, &lt;span style=&quot;color: blue;&quot;&gt;ref&lt;/span&gt; nullobj);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;wordApp.Quit(&lt;span style=&quot;color: blue;&quot;&gt;ref&lt;/span&gt; nullobj, &lt;span style=&quot;color: blue;&quot;&gt;ref&lt;/span&gt; nullobj, &lt;span style=&quot;color: blue;&quot;&gt;ref&lt;/span&gt; nullobj);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; mso-no-proof: yes;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Please let me know if there is any issue.&lt;br /&gt;&lt;br /&gt;Your comment could motivate me...&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/7913629325712821817/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blkarwasara.blogspot.com/2012/02/read-document-text-directly-from.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/7913629325712821817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/7913629325712821817'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/2012/02/read-document-text-directly-from.html' title='Read Document Text Directly from Microsoft Word Files (.doc, .docx, .rtf, .txt)'/><author><name>BL Choudhary</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total><georss:featurename>New Delhi, Delhi, India</georss:featurename><georss:point>28.635308 77.22496</georss:point><georss:box>28.4123265 76.909103 28.858289499999998 77.54081699999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-5797778220826413729.post-6853868496252103643</id><published>2012-01-28T19:32:00.000-06:00</published><updated>2012-01-28T19:32:39.093-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><category scheme="http://www.blogger.com/atom/ns#" term="IIS7"/><category scheme="http://www.blogger.com/atom/ns#" term="URL Rewrite"/><title type='text'>IIS URL Rewrite – rewriting non-www to www</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;If you’re using IIS 7.0 (or 7.5), URL Rewrite is a valuable tool, well worth installing and using.&lt;br /&gt;One  common use of URL Rewrite is redirecting http://domain.com to  http://www.domain.com.&amp;nbsp; Many people are doing this for search engine  optimization (SEO) so that search engines only see the one site, rather  than two sites.&amp;nbsp; The goal is to set a permanent 301 redirect.&lt;br /&gt;You can download URL Rewrite from &lt;a href=&quot;http://www.iis.net/expand/URLRewrite&quot; target=&quot;_blank&quot;&gt;http://www.iis.net/expand/URLRewrite&lt;/a&gt;.&amp;nbsp;  For this walkthrough and screenshots I’ll use URL Rewrite 2.0 RC1, but  everything that I’ll cover also works for version 1.0 and 1.1.&lt;br /&gt;URL  Rewrite works at the global level, or site level (or application level  for that matter).&amp;nbsp; Where you apply it is really up to how you manage  your server.&amp;nbsp; Either will work for a domain name redirect like this.&lt;br /&gt;You  can choose to create the rules using IIS Manager, or using a text  editor and updating web.config directly.&amp;nbsp; I’ll show both, starting with  IIS Manager.&lt;br /&gt;Let’s get started.&amp;nbsp; First, open IIS Manager and double-click on the “URL Rewrite” icon.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-r1HUrd8crkA/TySf-Xiqr0I/AAAAAAAAC9U/UznmVkicM1M/s1600/image_thumb_29BD598A.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-r1HUrd8crkA/TySf-Xiqr0I/AAAAAAAAC9U/UznmVkicM1M/s1600/image_thumb_29BD598A.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Next, click on “Add Rules…” from the Actions pane.&lt;br /&gt;  Here  you’ll have a choice from a few wizard options, and with URL Rewrite 2.0  you can also create outbound rules.&amp;nbsp; Create a Blank rule (inbound  rules).&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-QnlognepmAE/TySgdTYdR4I/AAAAAAAAC9g/p8g5Nq74HKg/s1600/image_thumb_28B543E0.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://2.bp.blogspot.com/-QnlognepmAE/TySgdTYdR4I/AAAAAAAAC9g/p8g5Nq74HKg/s1600/image_thumb_28B543E0.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Give your rule a good friendly “Name”.&amp;nbsp; I’ll call mine “Redirect domain.com to www”.&lt;br /&gt;  In the “Using”&lt;strong&gt; &lt;/strong&gt;dropdown  box you can choose between Regular Expressions and Wildcards.&amp;nbsp; Use  wildcards if you aren’t familiar with regular expressions since they are  much more intuitive.&amp;nbsp; However, if you later need to create more complex  rules, regex may be necessary.&lt;br /&gt;  For this demo select &lt;em&gt;Wildcards&lt;/em&gt;&lt;strong&gt;.&amp;nbsp; &lt;/strong&gt;However, I’ll include instructions for those wanting to use regular expressions.&lt;br /&gt;  Enter &lt;strong&gt;*&lt;/strong&gt; for the “Pattern”&lt;strong&gt;.&lt;/strong&gt;&amp;nbsp;  That means anything qualifies.&amp;nbsp; We’ll use a condition later instead of  matching to the URL.&amp;nbsp; (for Regular Expressions, use .*).&lt;br /&gt;  Now expand the “Conditions” section and click “Add”.&amp;nbsp; In the “Add Condition” dialogue enter the following:&lt;br /&gt;       &lt;table border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;0&quot; style=&quot;width: 400px;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;147&quot;&gt;Condition input:&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;253&quot;&gt;{HTTP_HOST}&lt;/td&gt;     &lt;/tr&gt;&lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;147&quot;&gt;Check if input string:&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;253&quot;&gt;Matches the Pattern&lt;/td&gt;     &lt;/tr&gt;&lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;147&quot;&gt;Pattern:&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;253&quot;&gt;domain.com          &lt;br /&gt;(for regex, enter ^domain.com$)&lt;/td&gt;     &lt;/tr&gt;&lt;tr&gt;       &lt;td valign=&quot;top&quot; width=&quot;147&quot;&gt;Ignore case:&lt;/td&gt;        &lt;td valign=&quot;top&quot; width=&quot;253&quot;&gt;checked&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-QSqIe1DP2Ss/TySgchjdy1I/AAAAAAAAC9c/1D4DjED9KQc/s1600/image_thumb_0C57DBF3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-QSqIe1DP2Ss/TySgchjdy1I/AAAAAAAAC9c/1D4DjED9KQc/s1600/image_thumb_0C57DBF3.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;Click OK.&lt;br /&gt;  Finally, it’s time to set the Action.&lt;br /&gt;  In the Action section make sure that the “Action Type” is set to &lt;em&gt;Redirect&lt;/em&gt;.&amp;nbsp; &lt;br /&gt;  For  the “Action Properties”, enter http://www.domain.com/{R:0}.&amp;nbsp; The {R:0}  retains the existing URL so if someone typed something like &lt;a href=&quot;http://domain.com/aboutus&quot;&gt;http://domain.com/aboutus&lt;/a&gt; it would retain the aboutus as it adds the www.&lt;br /&gt;  &lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;em&gt;&lt;/em&gt;&lt;br /&gt;  Be sure that the “Append query string” remains checked so that the querystring part is also retained. &lt;br /&gt;  Also,  be sure that the “Redirect Type” is set to Permanent (301), which is  what the search engines like.&amp;nbsp; This tells the search engines to do a  permanent redirect, use the new location and ignore the previous  location.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-s-PLWqft0Mw/TySgeLQ1cDI/AAAAAAAAC9s/2PAm5AH6H_0/s1600/image_thumb_7066A6FA.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://2.bp.blogspot.com/-s-PLWqft0Mw/TySgeLQ1cDI/AAAAAAAAC9s/2PAm5AH6H_0/s1600/image_thumb_7066A6FA.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Finally, Apply the rule and test!&lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;Using a Text Editor&lt;/strong&gt;&lt;br /&gt;  You  can also create this rule manually by adding the following to your  site’s web.config (or applicationHost.config if you set this at the  server level).&lt;br /&gt;  In the &amp;lt;system.webServer&amp;gt; section of your web.config, add the following:&lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;&lt;em&gt;Wildcards&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin: 0em; overflow: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;rewrite&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background-color: #f4f4f4; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin: 0em; overflow: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;&quot;&gt;    &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;rules&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin: 0em; overflow: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;&quot;&gt;        &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;rule&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Redirect domain.com to www&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;patternSyntax&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Wildcard&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;stopProcessing&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;true&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background-color: #f4f4f4; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin: 0em; overflow: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;&quot;&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;match&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;url&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;*&quot;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin: 0em; overflow: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;&quot;&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;conditions&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background-color: #f4f4f4; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin: 0em; overflow: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;&quot;&gt;                &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;add&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;input&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;{HTTP_HOST}&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;pattern&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;domain.com&quot;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin: 0em; overflow: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;&quot;&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;conditions&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background-color: #f4f4f4; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin: 0em; overflow: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;&quot;&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;action&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Redirect&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;url&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;http://www.domain.com/{R:0}&quot;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin: 0em; overflow: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;&quot;&gt;        &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;rule&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background-color: #f4f4f4; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin: 0em; overflow: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;&quot;&gt;    &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;rules&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin: 0em; overflow: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;rewrite&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background-color: white; border-style: none; color: black; direction: ltr; font-family: &#39;Courier New&#39;,courier,monospace; font-size: 8pt; line-height: 12pt; margin: 0em; overflow: visible; padding: 0px; text-align: left; width: 100%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;Save and you should be set.&lt;br /&gt;  Or, if you prefer Regular Expressions, use this instead:&lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;&lt;em&gt;Regular Expressions&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin: 0em; overflow: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;rewrite&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background-color: #f4f4f4; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin: 0em; overflow: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;&quot;&gt;    &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;rules&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin: 0em; overflow: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;&quot;&gt;        &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;rule&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Redirect domain.com to www&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;patternSyntax&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;ECMAScript&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;stopProcessing&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;true&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background-color: #f4f4f4; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin: 0em; overflow: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;&quot;&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;match&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;url&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;.*&quot;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin: 0em; overflow: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;&quot;&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;conditions&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background-color: #f4f4f4; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin: 0em; overflow: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;&quot;&gt;                &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;add&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;input&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;{HTTP_HOST}&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;pattern&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;^domain.com$&quot;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin: 0em; overflow: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;&quot;&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;conditions&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background-color: #f4f4f4; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin: 0em; overflow: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;&quot;&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;action&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Redirect&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;url&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;http://www.domain.com/{R:0}&quot;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin: 0em; overflow: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;&quot;&gt;        &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;rule&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background-color: #f4f4f4; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin: 0em; overflow: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;&quot;&gt;    &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;rules&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background-color: white; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: black; direction: ltr; font-family: &#39;Courier New&#39;, courier, monospace; font-size: 8pt; line-height: 12pt; margin: 0em; overflow: visible; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; width: 100%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;rewrite&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;pre style=&quot;background-color: white; border-style: none; color: black; direction: ltr; font-family: &#39;Courier New&#39;,courier,monospace; font-size: 8pt; line-height: 12pt; margin: 0em; overflow: visible; padding: 0px; text-align: left; width: 100%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/6853868496252103643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blkarwasara.blogspot.com/2012/01/iis-url-rewrite-rewriting-non-www-to.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/6853868496252103643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/6853868496252103643'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/2012/01/iis-url-rewrite-rewriting-non-www-to.html' title='IIS URL Rewrite – rewriting non-www to www'/><author><name>BL Choudhary</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-r1HUrd8crkA/TySf-Xiqr0I/AAAAAAAAC9U/UznmVkicM1M/s72-c/image_thumb_29BD598A.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5797778220826413729.post-7276620357837549132</id><published>2012-01-28T18:49:00.003-06:00</published><updated>2012-01-28T18:49:48.988-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Distinct values from arraylist</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;How can we receive distinct values from a huge arraylist?&amp;nbsp;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;u&gt;Solution&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;//create a test arraylist of integers&lt;br /&gt;int[] arr = { 1, 2, 3, 3, 3, 4, 4, 5, 5, 6, 7, 7, 7, 8, 8, 9, 9 };&lt;br /&gt;ArrayList arrList = new ArrayList(arr);&lt;br /&gt;&lt;br /&gt;//use a hashtable to create a unique list&lt;br /&gt;Hashtable ht = new Hashtable();&lt;br /&gt;&lt;br /&gt;foreach (int item in arrList)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; //set a key in the hashtable for our arraylist value - leaving the hashtable value empty&lt;br /&gt;&amp;nbsp;&amp;nbsp; ht.Item[item] = null;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//now grab the keys from that hashtable into another arraylist&lt;br /&gt;ArrayList distincArray = new ArrayList(ht.Keys);&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Please let me know if there is any issue. &lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/7276620357837549132/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blkarwasara.blogspot.com/2012/01/distinct-values-from-arraylist.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/7276620357837549132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/7276620357837549132'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/2012/01/distinct-values-from-arraylist.html' title='Distinct values from arraylist'/><author><name>BL Choudhary</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5797778220826413729.post-7445589190982207120</id><published>2012-01-19T06:07:00.000-06:00</published><updated>2012-01-19T06:07:37.119-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="iis 6"/><title type='text'>ASP.NET Tab is Missing in IIS 6.0</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Here are the steps to fix the issue:&lt;/span&gt;&lt;br /&gt;1) Stop the IIS Admin service (and any services that depend on it) &lt;br /&gt;&lt;br /&gt;2) Open C:\WINDOWS\system32\inetsrv\MetaBase.xml in notepad or your favorite XML Editor. _DELETE_ the line that reads ‘Enable32BitAppOnWin64=”TRUE”’ &lt;br /&gt;&lt;br /&gt;3) Start -&amp;gt; Run -&amp;gt; iisreset &lt;br /&gt;&lt;br /&gt;Your tab should now be back and functional.&lt;br /&gt;&lt;br /&gt;Please let me know if there is any issue and don&#39;t forgot to make comment on this.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/7445589190982207120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blkarwasara.blogspot.com/2012/01/aspnet-tab-is-missing-in-iis-60.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/7445589190982207120'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/7445589190982207120'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/2012/01/aspnet-tab-is-missing-in-iis-60.html' title='ASP.NET Tab is Missing in IIS 6.0'/><author><name>BL Choudhary</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5797778220826413729.post-2629156748557017790</id><published>2012-01-17T14:07:00.000-06:00</published><updated>2012-01-17T14:07:19.545-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET Security"/><category scheme="http://www.blogger.com/atom/ns#" term="aspnet"/><category scheme="http://www.blogger.com/atom/ns#" term="HTTP"/><category scheme="http://www.blogger.com/atom/ns#" term="MaxHttpCollectionKeys"/><category scheme="http://www.blogger.com/atom/ns#" term="Window security updates"/><title type='text'>The URL-encoded form data is not valid, Operation is not valid due to the current state of the object...</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Due to a Microsoft Security Update intended to address an ASP.NET Security Vulnerability, some Orion Web Console views may fail to load, if they contain too much information. Specifically, views that require large numbers of HTTP collection keys will generate errors in the OrionWeb.log&lt;br /&gt;&lt;br /&gt;Windows Updates auto updated our wintel 2008 servers today morning and  one of my web forms stopped working&amp;nbsp; - got two related messages&lt;br /&gt;1. The  URL-encoded form data is not valid.&lt;br /&gt;2. Operation not valid due to the  current state of the object.&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;This particular  web form was data entry intensive.&amp;nbsp; Explicitely specifying a numeric  value for the MaxHttpCollectionKeys app setting resolved the issue.&lt;br /&gt;&lt;br /&gt;&lt;span id=&quot;answer&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;h2 style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Resolution&lt;/span&gt;&lt;/h2&gt;&lt;h2&gt;&lt;/h2&gt;&lt;br /&gt;&lt;span id=&quot;answer&quot;&gt;&lt;/span&gt;&lt;br /&gt;To resolve this issue, increase the value configured for the &lt;code&gt;aspnet:MaxHttpCollectionKeys&lt;/code&gt; key, as indicated in the following procedure.&lt;br /&gt; &lt;strong&gt;To increase the value configured for the &lt;code&gt;aspnet:MaxHttpCollectionKeys&lt;/code&gt; key:&lt;/strong&gt;&lt;br /&gt; &lt;strong&gt;Note:&lt;/strong&gt; All edits made in this procedure are overwritten if and when the  SolarWinds Configuration Wizard runs. If you run the SolarWinds  Configuration Wizard, you will need to make this edit again.&lt;br /&gt; &lt;ol&gt;&lt;li&gt;Using an account with administrative privileges, log on to your SolarWinds server.&lt;/li&gt;&lt;li&gt;In a text editor, open the Orion Web Console configuration file, &lt;code&gt;web.config&lt;/code&gt;.&lt;br /&gt; &lt;strong&gt;Note:&lt;/strong&gt; The default location of &lt;code&gt;web.config&lt;/code&gt; is &lt;code&gt;C:\Inetpub\SolarWinds\&lt;/code&gt;.&lt;/li&gt;&lt;li&gt;Locate the following line in the &lt;code&gt;&amp;lt;appsettings&amp;gt;&amp;lt;/appsettings&amp;gt;&lt;/code&gt; section:&lt;br /&gt; &lt;code&gt;&amp;lt;add key=&quot;aspnet:MaxHttpCollectionKeys&quot; value=&quot;&lt;em&gt;number&lt;/em&gt;&quot; /&amp;gt;&lt;/code&gt;&lt;/li&gt;&lt;li&gt;Increase the &lt;code&gt;value&lt;/code&gt; for the &lt;code&gt;aspnet:MaxHttpCollectionKeys&lt;/code&gt; key&lt;br /&gt; &lt;strong&gt;Note:&lt;/strong&gt; Internal testing has shown that &lt;code&gt;2000&lt;/code&gt; may be an acceptable value.&lt;/li&gt;&lt;li&gt;Save &lt;code&gt;web.config&lt;/code&gt;.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Please let me know if there is any issue on the same...&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/2629156748557017790/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blkarwasara.blogspot.com/2012/01/url-encoded-form-data-is-not-valid.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/2629156748557017790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/2629156748557017790'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/2012/01/url-encoded-form-data-is-not-valid.html' title='The URL-encoded form data is not valid, Operation is not valid due to the current state of the object...'/><author><name>BL Choudhary</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5797778220826413729.post-9126524153594446980</id><published>2012-01-03T23:12:00.000-06:00</published><updated>2012-01-03T23:12:41.200-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Browser close button event tracking"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Detecting close button of browser by Javascript</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;&lt;a href=&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&lt;/a&gt;&quot;&amp;gt;&lt;br /&gt;&amp;lt;html xmlns=&quot;&lt;a href=&quot;http://www.w3.org/1999/xhtml&quot;&gt;http://www.w3.org/1999/xhtml&lt;/a&gt;&quot;&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;Browser close button tracking&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot;&amp;gt;&lt;br /&gt;window.onbeforeunload = function(event)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var msg = &#39;Are you sure you want to leave?&#39;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (((window.event.clientX || event.clientX) &amp;lt; 0) || ((window.event.clientY || event.clientY)&amp;lt;0)) // close button&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; event=window.event;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; event.returnValue = msg;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return msg;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((window.event.clientX &amp;lt; 0) || (window.event.clientY&amp;lt;0)) // close button&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; event=window.event;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; event.returnValue = msg;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return msg;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if (window.event.altKey == true || window.event.ctrlKey == true) // ALT + F4&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; event=window.event;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; event.returnValue = msg;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return msg;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else // for all other unload events&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Your page content --&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/9126524153594446980/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blkarwasara.blogspot.com/2012/01/detecting-close-button-of-browser-by.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/9126524153594446980'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/9126524153594446980'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/2012/01/detecting-close-button-of-browser-by.html' title='Detecting close button of browser by Javascript'/><author><name>BL Choudhary</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total><georss:featurename>New Delhi, Delhi, India</georss:featurename><georss:point>28.635308 77.22496</georss:point><georss:box>28.4123265 76.909103 28.858289499999998 77.54081699999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-5797778220826413729.post-713495031499424648</id><published>2011-11-08T12:33:00.000-06:00</published><updated>2011-11-08T12:34:33.497-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MS SQL User creation"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL/T-SQL"/><title type='text'>CREATE USER For MS SQL Server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;body&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Add a user to the current database.&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Syntax&lt;br /&gt;      CREATE USER &lt;i&gt;user&lt;/i&gt; &lt;br /&gt;         [{ FOR | FROM } LOGIN &lt;i&gt;login_name&lt;/i&gt;] [WITH DEFAULT_SCHEMA = &lt;i&gt;schema&lt;/i&gt;]&lt;br /&gt;&lt;br /&gt;      CREATE USER &lt;i&gt;user&lt;/i&gt; &lt;br /&gt;         [{ FOR | FROM } CERTIFICATE &lt;i&gt;certificate&lt;/i&gt;] [WITH DEFAULT_SCHEMA = &lt;i&gt;schema&lt;/i&gt;]&lt;br /&gt;&lt;br /&gt;      CREATE USER &lt;i&gt;user&lt;/i&gt; &lt;br /&gt;         [{ FOR | FROM } ASYMMETRIC KEY &lt;i&gt;asym_key&lt;/i&gt;] [WITH DEFAULT_SCHEMA = &lt;i&gt;schema&lt;/i&gt;]&lt;br /&gt;&lt;br /&gt;      CREATE USER &lt;i&gt;user&lt;/i&gt; WITHOUT LOGIN&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Key&lt;i&gt;&lt;br /&gt;   &lt;/i&gt;user          Name for the user in this database, up to 128 characters.&lt;br /&gt;&lt;br /&gt;   login_name    A valid SQL Server login. When this SQL Server login enters the&lt;br /&gt;                 database it will acquire the name and ID of &lt;i&gt;user&lt;/i&gt;.&lt;br /&gt;                 By default &lt;i&gt;user &lt;/i&gt;will be mapped to the SQL Server login with the&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;                 same name.&lt;br /&gt;&lt;br /&gt;   &lt;i&gt;certificate&lt;/i&gt;   The certificate for which the database user is being created.&lt;br /&gt;&lt;br /&gt;   asym_key      The asymmetric key for which the database user is being created.&lt;br /&gt;&lt;br /&gt;   schema        The first schema that will used to resolve object names for &lt;i&gt;user&lt;/i&gt;.&lt;br /&gt;                 default schema = dbo&lt;br /&gt;&lt;br /&gt;   WITHOUT LOGIN Don&#39;t map &lt;i&gt;user &lt;/i&gt;to an existing login.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;body&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;    All members of the sysadmin fixed server role have a default schema of dbo.&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;body&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;A user that is not mapped to a SQL Server login may  connect to other databases as guest, this just requires GRANT CONNECT TO  guest;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;body&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;body&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Examples&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;body&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;CREATE LOGIN Karwasara&lt;br /&gt;    WITH PASSWORD = &#39;pa$$word&#39;;&lt;br /&gt;USE MyDatabase;&lt;br /&gt;CREATE USER Karwasara FOR LOGIN Karwasara;&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;CREATE LOGIN Karwasara1&lt;br /&gt;    WITH PASSWORD = &#39;pa$$word&#39;;&lt;br /&gt;USE MyDatabase;&lt;br /&gt;CREATE USER Karwasara1 FOR LOGIN Karwasara1&lt;br /&gt;    WITH DEFAULT_SCHEMA = dbo;&lt;br /&gt;GO&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/713495031499424648/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blkarwasara.blogspot.com/2011/11/create-user-for-ms-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/713495031499424648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/713495031499424648'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/2011/11/create-user-for-ms-sql-server.html' title='CREATE USER For MS SQL Server'/><author><name>BL Choudhary</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5797778220826413729.post-2157962271952064025</id><published>2011-11-06T09:12:00.000-06:00</published><updated>2011-11-06T09:12:59.180-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="c"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="radiobutton"/><category scheme="http://www.blogger.com/atom/ns#" term="radiobutton group"/><category scheme="http://www.blogger.com/atom/ns#" term="VB.NET"/><title type='text'>Single Selection RadioButton on GridView</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;If your going to use a gridview and u want to put a radio button on a  TemplateField to act as a pointer to your selection just use this code  on the RadioButton_CheckedChange Event(). By the way, I&#39;ve used a  temporary template field where i can put the reference value of  my radio buttons that has been clicked&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: small;&quot;&gt;protected&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-size: small;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt; rbSelector_CheckedChanged(&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: small;&quot;&gt;object&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt; sender, System.&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-size: small;&quot;&gt;EventArgs&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt; e)&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green; font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Clear the existing selected row&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: small;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;foreach&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-size: small;&quot;&gt;GridViewRow&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt; oldrow &lt;/span&gt;&lt;span style=&quot;color: blue; font-size: small;&quot;&gt;in&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt; GridView1.Rows)&lt;br /&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;br /&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-size: small;&quot;&gt;RadioButton&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;)oldrow.FindControl(&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-size: small;&quot;&gt;&quot;rbSelector&quot;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;)).Checked = &lt;/span&gt;&lt;span style=&quot;color: blue; font-size: small;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;;&lt;br /&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: green; font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Set the new selected row&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-size: small;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;RadioButton&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt; rb = (&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-size: small;&quot;&gt;RadioButton&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;)sender;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-size: small;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;GridViewRow&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt; row = (&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-size: small;&quot;&gt;GridViewRow&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;)rb.NamingContainer;&lt;br /&gt;&lt;span style=&quot;color: green;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;((&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-size: small;&quot;&gt;RadioButton&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;)row.FindControl(&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-size: small;&quot;&gt;&quot;rbSelector&quot;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;)).Checked = &lt;/span&gt;&lt;span style=&quot;color: blue; font-size: small;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;;&lt;br /&gt;} &lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/2157962271952064025/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blkarwasara.blogspot.com/2011/11/single-selection-radiobutton-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/2157962271952064025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/2157962271952064025'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/2011/11/single-selection-radiobutton-on.html' title='Single Selection RadioButton on GridView'/><author><name>BL Choudhary</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5797778220826413729.post-8952437385458855292</id><published>2011-11-06T06:58:00.000-06:00</published><updated>2011-11-06T06:59:09.532-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="radiobutton"/><category scheme="http://www.blogger.com/atom/ns#" term="radiobutton group"/><title type='text'>How to group RadioButtons in Datalist/Gridview control</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;To select one radio button at a time in datalist, please follow below steos&lt;br /&gt;&lt;br /&gt;Step 1: Write this Past below javascript in the aspx source code &lt;br /&gt;&lt;br /&gt;&amp;lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot;&amp;gt;&lt;br /&gt;function CheckOnes(spanChk)&lt;br /&gt;{&lt;br /&gt;var oItem = spanChk.children;&lt;br /&gt;var theBox= (spanChk.type==&quot;radio&quot;) ? &lt;br /&gt;spanChk : spanChk.children.item[0];&lt;br /&gt;&lt;br /&gt;xState=theBox.unchecked;&lt;br /&gt;elm=theBox.form.elements;&lt;br /&gt;&lt;br /&gt;for(i=0;i&amp;lt;elm.length;i++)&lt;br /&gt;if(elm[i].type==&quot;radio&quot; &amp;amp;&amp;amp; elm[i].id!=theBox.id)&lt;br /&gt;&amp;nbsp;      {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;               elm[i].checked=xState;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;br /&gt;Step 2: Now data list as &lt;br /&gt;&lt;br /&gt;&amp;lt;asp:DataList ID=&quot;dlExample&quot; runat=&quot;server&quot; RepeatDirection=&quot;Vertical&quot; RepeatColumns=&quot;4&quot;  OnItemDataBound=&quot;dlExample_ItemDataBound&quot;      &amp;gt;&lt;br /&gt;&amp;lt;ItemTemplate&amp;gt;&lt;br /&gt;&amp;lt;table&amp;gt;                                     &amp;lt;tr&amp;gt; &amp;lt;td&amp;gt; &amp;lt;asp:RadioButton ID=&quot;rdb&quot; runat=&quot;server&quot; /&amp;gt; &amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt; &amp;lt;/table&amp;gt;&lt;br /&gt;&amp;lt;/ItemTemplate&amp;gt;&lt;br /&gt;&amp;lt;/asp:DataList&amp;gt;&lt;br /&gt;&lt;br /&gt;Step 3: In code behind &lt;br /&gt;&lt;br /&gt;protected void dlExample_ItemDataBound(object sender, DataListItemEventArgs e)&lt;br /&gt;{&lt;br /&gt;RadioButton rdb;&lt;br /&gt;rdb = (RadioButton)e.Item.FindControl(&quot;rdb&quot;);&lt;br /&gt;if(rdb != null)&lt;br /&gt;rdb.Attributes.Add(&quot;onclick&quot;, &quot;CheckOnes(this);&quot;);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Please let me know if there is any doubt.&lt;br /&gt;&lt;br /&gt;Thanks&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/8952437385458855292/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blkarwasara.blogspot.com/2011/11/how-to-group-radiobuttons-in.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/8952437385458855292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/8952437385458855292'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/2011/11/how-to-group-radiobuttons-in.html' title='How to group RadioButtons in Datalist/Gridview control'/><author><name>BL Choudhary</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5797778220826413729.post-7174755125093903563</id><published>2011-10-13T14:17:00.003-05:00</published><updated>2011-10-13T14:22:48.860-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Installation"/><title type='text'>How to Install SQL Server 2005 - A Quick Guide</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 12pt; line-height: 115%;&quot;&gt;To describe how to perform a basic installation of SQL Server 2005&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;line-height: 115%;&quot;&gt;&amp;nbsp;&lt;/span&gt;Click &lt;b&gt;&lt;a href=&quot;https://docs.google.com/viewer?a=v&amp;amp;pid=explorer&amp;amp;chrome=true&amp;amp;srcid=0B5L4JO4PFkqdYzViZWJmNDEtMGNjNy00MDY2LWEwMzAtNzg4NTVmMWRmYjRh&amp;amp;hl=en&quot;&gt;here&lt;/a&gt;&lt;/b&gt;&amp;nbsp; or copy and past below link to find all steps...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;https://docs.google.com/viewer?a=v&amp;amp;pid=explorer&amp;amp;chrome=true&amp;amp;srcid=0B5L4JO4PFkqdYzViZWJmNDEtMGNjNy00MDY2LWEwMzAtNzg4NTVmMWRmYjRh&amp;amp;hl=en&quot;&gt;https://docs.google.com/viewer?a=v&amp;amp;pid=explorer&amp;amp;chrome=true&amp;amp;srcid=0B5L4JO4PFkqdYzViZWJmNDEtMGNjNy00MDY2LWEwMzAtNzg4NTVmMWRmYjRh&amp;amp;hl=en&lt;/a&gt; &lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href=&quot;https://docs.google.com/viewer?a=v&amp;amp;pid=explorer&amp;amp;chrome=true&amp;amp;srcid=0B5L4JO4PFkqdYzViZWJmNDEtMGNjNy00MDY2LWEwMzAtNzg4NTVmMWRmYjRh&amp;amp;hl=en&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/7174755125093903563/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blkarwasara.blogspot.com/2011/10/how-to-install-sql-server-2005-quick.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/7174755125093903563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/7174755125093903563'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/2011/10/how-to-install-sql-server-2005-quick.html' title='How to Install SQL Server 2005 - A Quick Guide'/><author><name>BL Choudhary</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5797778220826413729.post-1181125761563568405</id><published>2011-08-26T15:47:00.002-05:00</published><updated>2011-08-26T15:49:41.720-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="address"/><category scheme="http://www.blogger.com/atom/ns#" term="Google map api"/><category scheme="http://www.blogger.com/atom/ns#" term="map"/><title type='text'>Google maps integration into your web pages</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&lt;span class=&quot;subtitle&quot;&gt;Step 1: Sign up for a Google Maps API Key&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://www.google.com/apis/maps/signup.html&quot; target=&quot;_blank&quot;&gt;Sign up for a Google Maps API key here&lt;/a&gt;.  You will need a different API key for each directory on your web server. This means that if two web pages are in different web  folders (directories) on your web server, then you will need separate  Google Maps API keys for both web pages.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&lt;span class=&quot;subtitle&quot;&gt;Step 2: Build a Simple Google Map&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Save the example code below to web page. To effectively embed the Google Map into the web page, replace &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;pre class=&quot;code&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;API_KEY_GOES_HERE (shown in bold below) with your API key. Be sure that you upload&lt;br /&gt;the file into the same directory that you specified when signing up for &lt;br /&gt;the Google Maps API key in Step 1. If you did not specify a sub-directory, then the&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;code&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;file should go into your root folder.&lt;/span&gt;&lt;/pre&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;&lt;br /&gt;  &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&amp;gt;&lt;br /&gt;&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&amp;gt;&lt;br /&gt;  &amp;lt;head&amp;gt;&lt;br /&gt;    &amp;lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot;/&amp;gt;&lt;br /&gt;    &amp;lt;title&amp;gt;Google Maps API Example&amp;lt;/title&amp;gt;&lt;br /&gt;    &amp;lt;script src=&quot;http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;key=&lt;b&gt;API_KEY_GOES_HERE&lt;/b&gt;&quot;&lt;br /&gt;      type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;    &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;    //&amp;lt;![CDATA[&lt;br /&gt;    function load() {&lt;br /&gt;      if (GBrowserIsCompatible()) {&lt;br /&gt;        var map = new GMap2(document.getElementById(&quot;map&quot;));&lt;br /&gt;        map.setCenter(new GLatLng(37.4419, -122.1419), 13);&lt;br /&gt;      }&lt;br /&gt;    }&lt;br /&gt;    //]]&amp;gt;&lt;br /&gt;    &amp;lt;/script&amp;gt;&lt;br /&gt;  &amp;lt;/head&amp;gt;&lt;br /&gt;  &amp;lt;body onload=&quot;load()&quot; onunload=&quot;GUnload()&quot;&amp;gt;&lt;br /&gt;    &amp;lt;div id=&quot;map&quot; style=&quot;width: 500px; height: 300px&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;  &amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;code&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;code&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&lt;span class=&quot;subtitle&quot;&gt;Step 3: Modify the Simple Google Map&lt;/span&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;code&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;code&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;You most likely want a different map location than the selected location specified by the coordinates in the map&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;code&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;code above. You may also want to add a marker icon and an info window to your map. We&#39;ve done these things&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;code&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;in the map shown below. We&#39;ve also added directional and zoom controls as well as map type controls (to change&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;code&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;to  satellite view). Underneath our embedded Google map display is our map code followed by a list of our&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;code&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;modifications to the simple Google Map example code shown above. We show you the specific lines that we&#39;ve&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;code&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;added or modified. Be sure to study the code to understand how each feature was added to the embedded Google Map code.&lt;br /&gt;Once again, you&#39;ll need to replace &lt;b&gt;API_KEY_GOES_HERE&lt;/b&gt; &lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;(shown in bold below) with your Google Maps API key.&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;code&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-C3xhvqvFJWg/Tlf18mLM5SI/AAAAAAAAC6g/KWerw-Lf2SA/s1600/Map.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;368&quot; src=&quot;http://1.bp.blogspot.com/-C3xhvqvFJWg/Tlf18mLM5SI/AAAAAAAAC6g/KWerw-Lf2SA/s640/Map.gif&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; font-size: small;&quot;&gt;Below is the code for the map above (minus our building image). To  include your own image in a map&#39;s info window, just add the image code  as you normally would in html by using img tags&lt;br /&gt;(e.g. &amp;lt;img src=&quot;path/to/image.jpg&quot; align=&quot;left&quot;&amp;gt; ).&lt;br /&gt;&lt;br /&gt;&lt;b&gt;*NOTE: When copying and pasting the example below, the following WINDOW_HTML variable code needs to be put entirely on one line.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;var WINDOW_HTML = &#39;&amp;lt;div style=&quot;width: 210px;  padding: 10px&quot;&amp;gt;BL Karwasaras&#39; Office&amp;lt;/div&amp;gt;&#39;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;&lt;br /&gt;  &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&amp;gt;&lt;br /&gt;&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&amp;gt;&lt;br /&gt;  &amp;lt;head&amp;gt;&lt;br /&gt;    &amp;lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot;/&amp;gt;&lt;br /&gt;    &amp;lt;title&amp;gt;Google Maps API Example&amp;lt;/title&amp;gt;&lt;br /&gt;    &amp;lt;script src=&quot;http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;key=&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;API_KEY_GOES_HERE&lt;/b&gt;&quot;&lt;br /&gt;      type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;    &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;    //&amp;lt;![CDATA[&lt;br /&gt;	&lt;br /&gt;    var WINDOW_HTML = &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; font-size: small;&quot;&gt;&#39;&amp;lt;div style=&quot;width: 210px;padding: 10px&quot;&amp;gt;BL Karwasaras&#39; Office&amp;lt;/div&amp;gt;&#39;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;;	&lt;br /&gt;	&lt;br /&gt;    function load() {&lt;br /&gt;      if (GBrowserIsCompatible()) {&lt;br /&gt;        var map = new GMap2(document.getElementById(&quot;map&quot;));&lt;br /&gt;	map.addControl(new GSmallMapControl());&lt;br /&gt;	map.addControl(new GMapTypeControl());&lt;br /&gt;        map.setCenter(new GLatLng(42.8487, -73.755), 13);&lt;br /&gt;	var marker = new GMarker(new GLatLng(42.8487, -73.755));&lt;br /&gt;	map.addOverlay(marker);&lt;br /&gt;	GEvent.addListener(marker, &quot;click&quot;, function() {&lt;br /&gt;	marker.openInfoWindowHtml(WINDOW_HTML);&lt;br /&gt;	  });&lt;br /&gt;	marker.openInfoWindowHtml(WINDOW_HTML);			&lt;br /&gt;      }&lt;br /&gt;    }&lt;br /&gt;    //]]&amp;gt;&lt;br /&gt;    &amp;lt;/script&amp;gt;&lt;br /&gt;  &amp;lt;/head&amp;gt;&lt;br /&gt;  &amp;lt;body onload=&quot;load()&quot; onunload=&quot;GUnload()&quot;&amp;gt;&lt;br /&gt;    &amp;lt;div id=&quot;map&quot; style=&quot;width: 500px; height: 300px&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;  &amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; font-size: small;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot; /&gt;&lt;/span&gt;&lt;br /&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td align=&quot;left&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot; valign=&quot;top&quot;&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Change the Location &lt;/b&gt;&lt;br /&gt;To change the map location, you&#39;ll need to modify the coordinates (latitude, longitude) in the Google map code above. Look at the line:&lt;br /&gt;&lt;br /&gt;map.setCenter(new GLatLng(42.8487, -73.755), 13);&lt;br /&gt;&lt;br /&gt;Notice our new coordinates 42.8487, -73.755 which is the location of the SearchEngineKnowledge servers at HostRocket&#39;s facility in Clifton Park, NY. The number 13 after the map coordinates represents the zoom level, which ranges from 0-17 (where 17 is the closest level of zoom). To get the coordinates of your location, open up the Google Maps web site and search an address. On the resulting page, click the &#39;Link to this page&#39; link near the top right (next to the email link). Now study the url address in your browser window. Look for something similar to ll=40.25635,-79.794675 (where ll stands for latitude and longitude). Copy the latitude and longitude values into your map code.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Map Zoom Controls&lt;/b&gt;&lt;br /&gt;To add zoom and directional controls to your embedded Google map, you&#39;ll need to add the following line to your code (Refer to the map code example above to see where to add this new line of map code):&lt;br /&gt;&lt;br /&gt;map.addControl(new GSmallMapControl());&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Map Type Controls&lt;/b&gt;&lt;br /&gt;To add the Map, Satellite and Hybrid buttons, include the line of code shown below:&lt;br /&gt;&lt;br /&gt;map.addControl(new GMapTypeControl());&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Add a Map Marker&lt;/b&gt;&lt;br /&gt;To add a Google map marker (the upside  down red water drop) to your map, include the following two lines of  code with  the marker coordinates specified. *Note: Your marker coordinates may  likely be close to or the same as your location coordinates.&lt;br /&gt;&lt;br /&gt;var marker = new GMarker(new GLatLng(42.8487, -73.755));&lt;br /&gt;map.addOverlay(marker);&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Add an Information Window&lt;/b&gt;&lt;br /&gt;Map info windows help to  describe your location, and in this case the info window will appear as a  shadowed speech bubble over your map marker.  To add a Google Map info window, you&#39;ll have to do the following two  steps after you&#39;ve included the code for the map marker (above):&lt;/span&gt;&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Assign the Info Window Code to a Variable&lt;/b&gt;&lt;br /&gt;You&#39;ll need to  assign the code that you want displayed in the info window to a  JavaScript variable, as we&#39;ve done below. You can include images, text, etc in the code. For example, you could  show a company logo or a building photo in the info window to represent a  company&#39;s headquarters.&lt;/span&gt;&lt;span style=&quot;color: #555555; font-size: small;&quot;&gt;&lt;b&gt;(*NOTE: To get the map to work correctly, put the code below entirely on one line.)&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;br /&gt;var WINDOW_HTML = &#39;&amp;lt;div style=&quot;width: 210px;&lt;br /&gt;  padding-right: 10px&quot;&amp;gt;&amp;lt;a href=&quot;http://www.hostrocket.com&quot;&amp;gt;&lt;br /&gt;HostRocket&amp;lt;/a&amp;gt; servers are located at&lt;br /&gt;21 Corporate Drive, Clifton Park, NY 12065.&lt;br /&gt;Phone: 1-866-519-7079&amp;lt;/div&amp;gt;&#39;;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Add Code to Display the Info Window Variable (set in step 1)&lt;/b&gt;&lt;br /&gt;To  display the variable WINDOW_HTML that we set in step 1, put the code  below into your embedded Google Map as we&#39;ve done in the modified map  code shown earlier.&lt;br /&gt;&lt;br /&gt;GEvent.addListener(marker, &quot;click&quot;, function() {&lt;br /&gt;marker.openInfoWindowHtml(WINDOW_HTML);&lt;br /&gt;  });&lt;br /&gt;marker.openInfoWindowHtml(WINDOW_HTML);&lt;br /&gt;&lt;br /&gt;If you want the info window to appear only when a user clicks on the map marker, then insert the code below instead.&lt;br /&gt;&lt;br /&gt;GEvent.addListener(marker, &quot;click&quot;, function() {&lt;br /&gt;marker.openInfoWindowHtml(WINDOW_HTML);&lt;br /&gt;  }); &lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style=&quot;font-size: small;&quot;&gt;After implementing the three steps above, it will be easy for you to  embed Google Maps into your web pages using the Google Maps API. For  more features and instruction, visit the &lt;a href=&quot;http://www.google.com/apis/maps/documentation/&quot; target=&quot;_blank&quot;&gt;Maps Documentation section at Google&lt;/a&gt;. &lt;/span&gt;&lt;/td&gt;&lt;td width=&quot;18&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; valign=&quot;top&quot; width=&quot;100&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/1181125761563568405/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blkarwasara.blogspot.com/2011/08/step-1-sign-up-for-google-maps-api-key.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/1181125761563568405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/1181125761563568405'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/2011/08/step-1-sign-up-for-google-maps-api-key.html' title='Google maps integration into your web pages'/><author><name>BL Choudhary</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-C3xhvqvFJWg/Tlf18mLM5SI/AAAAAAAAC6g/KWerw-Lf2SA/s72-c/Map.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5797778220826413729.post-3132085481576937794</id><published>2011-08-20T05:39:00.000-05:00</published><updated>2011-08-20T05:39:41.131-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><title type='text'>ASP.NET, FileUpload Control width issue in Firefox.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;I&#39;ve been pretty annoyed about the fact that FireFox ignores the width property of the ASP.NET &lt;a class=&quot;bluelink&quot; href=&quot;http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.fileupload.aspx&quot;&gt;FileUpload&lt;/a&gt; control.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;It doesn&#39;t matter if you set it by CSS or even in JavaScript, Firefox  always ignores it and that results in a crippled layout since you have  no control over the width of the upload input field. This actually has  nothing to do with the FileUpload control, but with the rendered output  of that control, which is just a standard &amp;lt;input type=&quot;file&quot;...&amp;gt;  field. &lt;br /&gt;&lt;br /&gt;Here the width is set to 400px. The FileUpload control renders  the Width attribute to the correct CSS style value of 400px at runtime. &lt;br /&gt;&lt;br /&gt;&lt;code&gt;&amp;lt;asp:FileUpload runat=&quot;server&quot; ID=&quot;txtUpload&quot; Width=&quot;400&quot; /&amp;gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;But as mentioned, Firefox totally ignores that. Then I remembered a forum thread I read some years ago about a size attribute.&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;This is what I ended up with. The size attribute actually works in  Firefox and IE ignores it, but adheres to the Width attribute instead. &lt;br /&gt;&lt;br /&gt;&lt;code&gt;&amp;lt;asp:FileUpload runat=&quot;server&quot; ID=&quot;txtUpload&quot; Width=&quot;400&quot; size=&quot;50&quot; /&amp;gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;The size attribute determines the number of characters should be visible and then adjusts the width accordingly.  &lt;br /&gt;&lt;br /&gt;It is not the same as setting a maximum length of the file name, so it doesn&#39;t break anything. &lt;br /&gt;&lt;br /&gt;You should think that since a size of 50 generates the same  width as 400px that you could always just divide the width in pixels  with 8 to find the equivalent size.  &lt;br /&gt;&lt;br /&gt;That is not the case.  &lt;br /&gt;&lt;br /&gt;You have to manually adjust every time until you find the right size value that matches the pixel width.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Please let me kn ow if there is any issue. &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/3132085481576937794/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blkarwasara.blogspot.com/2011/08/aspnet-fileupload-control-width-issue.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/3132085481576937794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/3132085481576937794'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/2011/08/aspnet-fileupload-control-width-issue.html' title='ASP.NET, FileUpload Control width issue in Firefox.'/><author><name>BL Choudhary</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5797778220826413729.post-3031334840323001245</id><published>2011-08-10T11:42:00.000-05:00</published><updated>2011-08-10T11:42:02.986-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Calling serverside function from javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="Java script"/><category scheme="http://www.blogger.com/atom/ns#" term="VB.NET"/><title type='text'>Calling serverside function from javascript</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;u&gt;&lt;b&gt;App_Code class:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Command.cs&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;using System;&lt;br /&gt;using System.Data;&lt;br /&gt;using System.Configuration;&lt;br /&gt;using System.Web;&lt;br /&gt;using System.Web.Security;&lt;br /&gt;using System.Web.UI;&lt;br /&gt;using System.Web.UI.WebControls;&lt;br /&gt;using System.Web.UI.WebControls.WebParts;&lt;br /&gt;using System.Web.UI.HtmlControls;&lt;br /&gt;using System.Reflection;&lt;br /&gt;using System.Data.SqlClient;&lt;br /&gt;/// &amp;lt;summary&amp;gt;&lt;br /&gt;/// Summary description for Command&lt;br /&gt;/// &amp;lt;/summary&amp;gt;&lt;br /&gt;namespace CallingSSF&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public class Command&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #region Command functionality&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private string m_CommandName = &quot;&quot;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public Command(string commandName)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m_CommandName = commandName;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public static Command Create(string commandName)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return new Command(commandName);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public object Execute(object data)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type type = this.GetType();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MethodInfo method = type.GetMethod(m_CommandName);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; object[] args = new object[] { data };&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return method.Invoke(this, args);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (Exception ex)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO: Add logging functionality&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #endregion&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #region Public execution commands&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public object GetTime(object data)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return DateTime.Now;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public object GetProductNameFromDatabase(object data)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO: add real functionality later&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((int)data == 1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return &quot;Computer&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return &quot;Unknown&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public object ChangeDropDownValue(object data)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO: add real functionality later&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return o;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (Exception ex)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return null;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #endregion&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;b&gt; &lt;/b&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Markup&lt;/b&gt;&lt;/u&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&amp;lt;%@ Page Language=&quot;VB&quot; AutoEventWireup=&quot;false&quot; CodeFile=&quot;Independent.aspx.vb&quot; Inherits=&quot;Independent&quot; %&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&amp;gt;&lt;br /&gt;&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&amp;gt;&lt;br /&gt;&amp;lt;head runat=&quot;server&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;Server side fuction calling from Js&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;form id=&quot;form1&quot; runat=&quot;server&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:ScriptManager EnablePageMethods=&quot;true&quot; ID=&quot;MainSM&quot; runat=&quot;server&quot; ScriptMode=&quot;Release&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LoadScriptsBeforeUI=&quot;true&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;scripts&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:ScriptReference Path=&quot;~/Scripts/Main.js&quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/scripts&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:ScriptManager&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var methodHandlers = {};&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; methodHandlers.ShowTime = function(obj) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;summary&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// method that shows result from &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// page method &quot;GetTime&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;/summary&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById(&quot;timeDiv&quot;).innerHTML = obj;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; methodHandlers.ShowProduct = function(obj) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;summary&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// method that shows result from &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// page method &quot;GetProductNameFromDatabase&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;/summary&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById(&quot;productDiv&quot;).innerHTML = obj;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; methodHandlers.UpdateDropdown= function(obj) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;summary&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// method that shows result from &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// page method &quot;GetProductNameFromDatabase&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;/summary&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById(&quot;NewValueDiv&quot;).innerHTML = obj;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Click on the button to get time from the server.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;br /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;br /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input value=&quot;Get Time&quot; type=&quot;button&quot; onclick=&quot;mainScreen.ExecuteCommand(&#39;GetTime&#39;,&#39;methodHandlers.ShowTime&#39;,null);&quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;br /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;br /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div style=&quot;border: dashed 1px black;&quot; id=&quot;timeDiv&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;br /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;br /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Click on the button to get product name from the server for specified id.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;br /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;br /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input type=&quot;text&quot; id=&quot;inpProductId&quot; value=&quot;1&quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input value=&quot;Get Product&quot; type=&quot;button&quot; onclick=&quot;mainScreen.ExecuteCommand(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;GetProductNameFromDatabase&#39;, &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;methodHandlers.ShowProduct&#39;, &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parseInt($get(&#39;inpProductId&#39;).value));&quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;br /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;br /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div style=&quot;border: dashed 1px black;&quot; id=&quot;productDiv&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/form&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Code behind&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;Imports CallingSSF&lt;br /&gt;Partial Class Independent&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inherits System.Web.UI.Page&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;System.Web.Services.WebMethod()&amp;gt; _&lt;br /&gt;&amp;nbsp; Public Shared Function ExecuteCommand(ByVal commandName As String, ByVal targetMethod As String, ByVal data As Object) As Object()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim result As Object() = New Object(1) {}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result(0) = Command.Create(commandName).Execute(data)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result(1) = targetMethod&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return result&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Catch ex As Exception&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39; TODO: add logging functionality &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Throw&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Try&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Function&lt;br /&gt;End Class&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Javascript file&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Main.js&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;/// --------------------------------------------------&lt;br /&gt;/// mainScreen object&lt;br /&gt;/// --------------------------------------------------&lt;br /&gt;var mainScreen =&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result : null&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;mainScreen.Init = function() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;summary&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// Initializes mainScreen variables&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;/summary&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO: add initialization code here&lt;br /&gt;};&lt;br /&gt;mainScreen.ExecuteCommand = function (methodName, targetMethod, parameters) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;summary&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// Executes method on the server&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;/summary&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;param name=&quot;methodName&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// Page method name&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;/param&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;param name=&quot;targetMethod&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// Javascript method name that will be executed on &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// client browser, when server returns result&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;/param&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;param name=&quot;parameters&quot;&amp;gt;Data to pass to the page method&amp;lt;/param&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PageMethods.ExecuteCommand(methodName, targetMethod, parameters, mainScreen.ExecuteCommandCallback, mainScreen.ExecuteCommandFailed);&lt;br /&gt;};&lt;br /&gt;mainScreen.ExecuteCommandCallback = function (result) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;summary&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// Is called when server sent result back&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;/summary&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;param name=&quot;result&quot;&amp;gt;Result of calling server command&amp;lt;/param&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(result) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mainScreen.result = result[0];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eval(result[1]+&quot;(mainScreen.result);&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } catch(err) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; // TODO: Add error handling&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;};&lt;br /&gt;mainScreen.ExecuteCommandFailed = function (error, userContext, methodName) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;summary&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// Callback function invoked on failure of the page method &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;/summary&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;param name=&quot;error&quot;&amp;gt;error object containing error&amp;lt;/param&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;param name=&quot;userContext&quot;&amp;gt;userContext object&amp;lt;/param&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;param name=&quot;methodName&quot;&amp;gt;methodName object&amp;lt;/param&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(error) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;// TODO: add error handling, and show it to the user&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/// --------------------------------------------------&lt;br /&gt;/// Page events processing&lt;br /&gt;/// --------------------------------------------------&lt;br /&gt;&lt;br /&gt;Sys.Application.add_load(applicationLoadHandler);&lt;br /&gt;Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endRequestHandler);&lt;br /&gt;Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequestHandler);&lt;br /&gt;&lt;br /&gt;function applicationLoadHandler() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;summary&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// Raised after all scripts have been loaded and &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// the objects in the application have been created &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// and initialized.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;/summary&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mainScreen.Init()&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function endRequestHandler() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;summary&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// Raised before processing of an asynchronous &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// postback starts and the postback request is &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// sent to the server.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;/summary&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO: Add your custom processing for event&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function beginRequestHandler() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;summary&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// Raised after an asynchronous postback is &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// finished and control has been returned &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// to the browser.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;/summary&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO: Add your custom processing for event&lt;br /&gt;}&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Let me know if you need any help regarding this...&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/3031334840323001245/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blkarwasara.blogspot.com/2011/08/calling-serverside-function-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/3031334840323001245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/3031334840323001245'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/2011/08/calling-serverside-function-from.html' title='Calling serverside function from javascript'/><author><name>BL Choudhary</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>New Delhi, Delhi, India</georss:featurename><georss:point>28.635308 77.22496</georss:point><georss:box>28.635308 77.22496 28.635308 77.22496</georss:box></entry><entry><id>tag:blogger.com,1999:blog-5797778220826413729.post-5481114777701157127</id><published>2011-08-10T10:41:00.001-05:00</published><updated>2011-08-10T10:42:47.301-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="ItemDataBound event"/><category scheme="http://www.blogger.com/atom/ns#" term="Java script"/><category scheme="http://www.blogger.com/atom/ns#" term="Nested Repeaters"/><category scheme="http://www.blogger.com/atom/ns#" term="Repeator check box selection"/><title type='text'>Nested Repeaters - ItemDataBound event on Inner Repeaters and check and uncheck all respected child checkboxed using javascript.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Click on parent check box to check all and un-check child check boxes and also&amp;nbsp; preserving text and value in the hidden field control. &lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;Markup:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;asp:TextBox ID=&quot;txtLocation&quot; runat=&quot;server&quot; ReadOnly=&quot;true&quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;&amp;lt;asp:HiddenField ID=&quot;hdLocation&quot; runat=&quot;server&quot; /&amp;gt;&lt;br /&gt;&amp;lt;asp:Repeater ID=&quot;rptParentValueLocation&quot; runat=&quot;server&quot; OnItemDataBound=&quot;rptParentValueLocation_ItemDataBound&quot;&amp;gt;&lt;br /&gt;&amp;lt;ItemTemplate&amp;gt;&lt;br /&gt;&amp;lt;li&amp;gt;&lt;br /&gt;&amp;lt;asp:CheckBox ID=&quot;cbxParentValueLocation&quot; runat=&quot;server&quot; Text=&#39;&amp;lt;%#Eval(&quot;strValue&quot;) %&amp;gt;&#39; /&amp;gt;&lt;br /&gt;&amp;lt;asp:HiddenField ID=&quot;hfParentValueLocation&quot; runat=&quot;server&quot; Value=&#39;&amp;lt;%#Eval(&quot;intLookupId&quot;) %&amp;gt;&#39; /&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;ul&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;asp:Repeater ID=&quot;rptChildValueLocation&quot; runat=&quot;server&quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;ItemTemplate&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;li&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;asp:CheckBox ID=&quot;cbxChildValueLocation&quot; runat=&quot;server&quot; Text=&#39;&amp;lt;%#Eval(&quot;strValue&quot;) %&amp;gt;&#39; /&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;asp:HiddenField ID=&quot;hfChildValueLocation&quot; runat=&quot;server&quot; Value=&#39;&amp;lt;%#Eval(&quot;intLookupId&quot;) %&amp;gt;&#39; /&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/li&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/ItemTemplate&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/asp:Repeater&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/ul&amp;gt;&lt;br /&gt;&amp;lt;/li&amp;gt;&lt;br /&gt;&amp;lt;/ItemTemplate&amp;gt;&lt;br /&gt;&amp;lt;/asp:Repeater&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;Code behind&lt;/u&gt;:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not Page.IsPostBack Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rptParentValueLocation.DataSource = &lt;b&gt;Data source&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rptParentValueLocation.DataBind()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;End Sub &lt;br /&gt;&lt;br /&gt;Protected Sub rptParentValueLocation_ItemDataBound(ByVal sender As Object, ByVal e As RepeaterItemEventArgs)&lt;br /&gt;If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then&lt;br /&gt;Dim _Parenthf As HiddenField = DirectCast(e.Item.FindControl(&quot;hfParentValueLocation&quot;), HiddenField)&lt;br /&gt;Dim _childrpt As Repeater = DirectCast(e.Item.FindControl(&quot;rptChildValueLocation&quot;), Repeater)&lt;br /&gt;&lt;br /&gt;_childrpt.DataSource = &lt;b&gt;Data source&lt;/b&gt; &#39;for child control&lt;br /&gt;AddHandler _childrpt.ItemDataBound, AddressOf rptChildValueLocation_ItemDataBound&lt;br /&gt;_childrpt.DataBind()&lt;br /&gt;&lt;br /&gt;Dim _cbxParentValueLocation As CheckBox = DirectCast(e.Item.FindControl(&quot;cbxParentValueLocation&quot;), CheckBox)&lt;br /&gt;&lt;br /&gt;_cbxParentValueLocation.Attributes.Add(&quot;onclick&quot;, &quot;toggleRepeatorSelection(this,&#39;&quot; + _childrpt.ClientID + &quot;&#39;);setRepeatorSelectionValuesToTextBox(this,&#39;&quot; + txtLocation.ClientID + &quot;&#39;,&#39;&quot; + hdLocation.ClientID + &quot;&#39;);&quot;)&lt;br /&gt;End If&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Protected Sub rptChildValueLocation_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.RepeaterItemEventArgs)&lt;br /&gt;If e.Item.ItemType = ListItemType.Item OrElse e.Item.ItemType = ListItemType.AlternatingItem Then&lt;br /&gt;&#39; do what you need to&amp;nbsp;&amp;nbsp; &lt;br /&gt;Dim _cbxChildValueLocation As CheckBox = CType(e.Item.FindControl(&quot;cbxChildValueLocation&quot;), CheckBox)&lt;br /&gt;_cbxChildValueLocation.Attributes.Add(&quot;onclick&quot;, &quot;setRepeatorSelectionValuesToTextBox(this,&#39;&quot; + txtLocation.ClientID + &quot;&#39;,&#39;&quot; + btnShowValuesLocation.ClientID + &quot;&#39;,&#39;&quot; + hdLocation.ClientID + &quot;&#39;)&quot;)&lt;br /&gt;End If&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;Java script:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;//For location sector dropdowns&lt;br /&gt;function toggleRepeatorSelection(source, targetID) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var target = source.parentNode;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Find all checkboxes&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var inputs = target.getElementsByTagName(&#39;input&#39;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Check all&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (source.checked)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0; i &amp;lt; inputs.length; i++) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (inputs[i].type == &quot;checkbox&quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputs[i].checked = true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Uncheck all&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0; i &amp;lt; inputs.length; i++) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (inputs[i].type == &quot;checkbox&quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputs[i].checked = false;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&amp;nbsp; &lt;br /&gt;function setRepeatorSelectionValuesToTextBox(source,textBox,hdLocation)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var target = source.parentNode.parentNode.parentNode.parentNode;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var inputs = target.getElementsByTagName(&#39;input&#39;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //values to set to Textbox&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var selections=&quot;&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var selectionsValues=&quot;&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0; i &amp;lt; inputs.length; i++) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (inputs[i].type == &quot;checkbox&quot; &amp;amp;&amp;amp; inputs[i].checked == true)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (selections==&quot;&quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; selections=inputs[i].nextSibling.innerHTML;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; selectionsValues=inputs[i].nextSibling.nextSibling.nextSibling.value;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; selections=selections+&quot;, &quot;+inputs[i].nextSibling.innerHTML;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; selectionsValues=selectionsValues+&quot;,&quot;+inputs[i].nextSibling.nextSibling.nextSibling.value;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Set all text values&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById(textBox).value=selections;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById(textBox).title=selections;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Set Values&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById(hdLocation).value=selectionsValues;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Please let me know if there is any doubt on the same...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/5481114777701157127/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blkarwasara.blogspot.com/2011/08/nested-repeaters-itemdatabound-event-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/5481114777701157127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/5481114777701157127'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/2011/08/nested-repeaters-itemdatabound-event-on.html' title='Nested Repeaters - ItemDataBound event on Inner Repeaters and check and uncheck all respected child checkboxed using javascript.'/><author><name>BL Choudhary</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5797778220826413729.post-1719097344799077196</id><published>2011-08-05T15:45:00.000-05:00</published><updated>2011-08-05T15:45:54.789-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".NET"/><category scheme="http://www.blogger.com/atom/ns#" term="asp.net"/><title type='text'>Retain carriage returns or line breaks in an asp.NET web page</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;abstract&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;     Many newcomers to web development cannot get their head around why  the carriage returns they made in their data on input from a textarea,  or from a text file, Excel spreadsheet etc. do not appear when the web  page renders.   &lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;  &lt;/span&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;     &amp;nbsp;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;  &lt;/span&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;The solution is fairly obvious once the newcomer realises that a  web page is only the browser&#39;s interpretation of html markup, and that a  new line in html is represented by the &lt;br /&gt; tag.  So what is  needed is a way to swap carriage returns or line feeds with the &lt;br /&gt; tag.  Well, a way to Replace() them, actually.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;/span&gt;&lt;pre style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&amp;lt;%# Eval(&quot;MyMultiLineValue&quot;).ToString().Replace(&lt;linebreak&gt;,&quot;&lt;br /&gt;&quot;) %&amp;gt;&lt;br /&gt;&lt;/linebreak&gt;&lt;/pre&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;The string.Replace() method allows this, but we also need to identify  what we want to replace with the html tag.  How is a new line  &lt;linebreak&gt; represented in C# or VB.Net?&lt;/linebreak&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;/span&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;In C#, it&#39;s &quot;\r\n&quot;, while in VB.Net, it&#39;s vbcrlf.  However, there is  also a language independent option that does just the same thing:  Environment.NewLine.&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;/span&gt;&lt;pre style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&amp;lt;%# Eval(&quot;MyMultiLineValue&quot;).ToString().Replace(Environment.NewLine,&quot;&lt;br /&gt;&quot;) %&amp;gt;&amp;nbsp;&lt;/pre&gt;&lt;pre style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/1719097344799077196/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blkarwasara.blogspot.com/2011/08/retain-carriage-returns-or-line-breaks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/1719097344799077196'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/1719097344799077196'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/2011/08/retain-carriage-returns-or-line-breaks.html' title='Retain carriage returns or line breaks in an asp.NET web page'/><author><name>BL Choudhary</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5797778220826413729.post-795348238138935566</id><published>2011-07-14T15:17:00.001-05:00</published><updated>2011-11-08T08:02:26.399-06:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL/T-SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="storedprocedure"/><title type='text'>SQL tabular split function</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;-- =============================================&lt;br /&gt;-- Author:&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;BL Karwasara&amp;gt;&lt;br /&gt;-- Create date: &amp;lt;Nov 08, 2011&amp;gt;&lt;br /&gt;-- Description:&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;Split values by del&amp;gt;&lt;br /&gt;-- SELECT * FROM dbo.Split(&#39;,&#39;, &#39;1,2,3,4&#39;)&lt;br /&gt;-- =============================================&lt;br /&gt;ALTER FUNCTION [dbo].[Split] &lt;br /&gt;(&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;@sep VARCHAR(32), &lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;@s VARCHAR(MAX)&lt;br /&gt;)&lt;br /&gt;RETURNS @t TABLE&lt;br /&gt;(&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;val VARCHAR(MAX)&lt;br /&gt;)&amp;nbsp; &lt;br /&gt;AS&lt;br /&gt;BEGIN&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DECLARE @xml XML&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET @XML = N&#39;&amp;lt;root&amp;gt;&amp;lt;r&amp;gt;&#39; + REPLACE(@s, @sep, &#39;&amp;lt;/r&amp;gt;&amp;lt;r&amp;gt;&#39;) + &#39;&amp;lt;/r&amp;gt;&amp;lt;/root&amp;gt;&#39;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; INSERT INTO @t(val)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT r.value(&#39;.&#39;,&#39;VARCHAR(MAX)&#39;) as Item&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM @xml.nodes(&#39;//root/r&#39;) AS RECORDS(r)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RETURN&lt;br /&gt;END&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blkarwasara.blogspot.com/feeds/795348238138935566/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blkarwasara.blogspot.com/2011/07/sql-tabular-split-function.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/795348238138935566'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5797778220826413729/posts/default/795348238138935566'/><link rel='alternate' type='text/html' href='http://blkarwasara.blogspot.com/2011/07/sql-tabular-split-function.html' title='SQL tabular split function'/><author><name>BL Choudhary</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry></feed>