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

<channel>
	<title>Bhutan Horizon &#187; .NET</title>
	<atom:link href="http://bhutanhorizon.com/category/dot-net/feed" rel="self" type="application/rss+xml" />
	<link>http://bhutanhorizon.com</link>
	<description>ICT Bhutan, E-Learning, Information Technology Blog, Web Design, Linux, PHP, Wordpress, Visual Studio .NET, Windows, SQL Server, ASP.NET, C#</description>
	<lastBuildDate>Sat, 28 Jan 2012 08:33:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Windows Communication Foundation (WCF)</title>
		<link>http://bhutanhorizon.com/dot-net/windows-communication-foundation-wcf.html</link>
		<comments>http://bhutanhorizon.com/dot-net/windows-communication-foundation-wcf.html#comments</comments>
		<pubDate>Thu, 05 Jan 2012 03:04:27 +0000</pubDate>
		<dc:creator>younten</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://bhutanhorizon.com/?p=398</guid>
		<description><![CDATA[What is WCF? Windows Communication Foundation (Code named Indigo) is a programming platform and runtime system for building, configuring and deploying network-distributed services. It is the latest service oriented technology; Interoperability is the fundamental characteristics of WCF. It is unified programming model provided in .Net Framework 3.0. WCF is a combined feature of Web Service, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What is WCF?</strong><br />
Windows Communication Foundation (Code named Indigo) is a programming platform and runtime system for building, configuring and deploying network-distributed services. It is the latest service oriented technology; Interoperability is the fundamental characteristics of WCF. It is unified programming model provided in .Net Framework 3.0. WCF is a combined feature of Web Service, Remoting, MSMQ and COM+. WCF provides a common platform for all .NET communication.</p>
<p><strong>Advantages of WCF</strong></p>
<ol>
<li>WCF is interoperable with other services when compared to .Net Remoting where the client and service have to be .Net.</li>
<li>WCF services provide better reliability and security in compared to ASMX web services.</li>
<li>In WCF, there is no need to make much change in code for implementing the security model and changing the binding. Small changes in the configuration will make your requirements.</li>
<li>WCF has integrated logging mechanism, changing the configuration file settings will provide this functionality. In other technology developer has to write the code.</li>
</ol>
<p><strong>Difference between WCF and Web Service</strong></p>
<p>Web service is a part of WCF. WCF offers much more flexibility and portability to develop a service when comparing to web service.</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><strong>Features</strong></td>
<td><strong>Web </strong><strong>Service</strong></td>
<td><strong>WCF</strong></td>
</tr>
<tr>
<td>Hosting</td>
<td>It can be hosted in IIS</td>
<td>It can be hosted in IIS, windows activation service, Self-hosting, Windows service</td>
</tr>
<tr>
<td>Programming</td>
<td>[WebService] attribute has to be added to the class</td>
<td>[ServiceContract] attribute has to be added to the class</td>
</tr>
<tr>
<td>Model</td>
<td>[WebMethod] attribute represents the method exposed to client</td>
<td>[OperationContract] attribute represents the method exposed to client</td>
</tr>
<tr>
<td>Operation</td>
<td>One-way, Request- Response are the different operations supported in web service</td>
<td>One-Way, Request-Response, Duplex are different type of operations supported in WCF</td>
</tr>
<tr>
<td>XML</td>
<td>System.Xml.serialization name space is used for serialization</td>
<td>System.Runtime.Serialization namespace is used for serialization</td>
</tr>
<tr>
<td>Encoding</td>
<td>XML 1.0, MTOM(Message Transmission Optimization Mechanism), DIME, Custom</td>
<td>XML 1.0, MTOM, Binary, Custom</td>
</tr>
<tr>
<td>Transports</td>
<td>Can be accessed through HTTP, TCP, Custom</td>
<td>Can be accessed through HTTP, TCP, Named pipes, MSMQ,P2P, Custom</td>
</tr>
<tr>
<td>Protocols</td>
<td>Security</td>
<td>Security, Reliable messaging, Transactions</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>WCF Service is composed of three components:</p>
<p><strong>Service Class</strong></p>
<p>A WCF service class implements some service as a set of methods.</p>
<p><strong>Host</strong></p>
<p>A Host environment can be a Console application or a Windows Service or a Windows Forms application or IIS as in case of the normal asmx web service in .NET.</p>
<p><strong>Endpoint</strong></p>
<p>All communications with the WCF service will happen via the endpoints. The endpoint is composed of 3 parts (collectively called as <strong>ABC&#8217;s</strong> of endpoint) as defines below:<br />
A for (<strong>Address</strong>)  = Where is the Web Service?<br />
B for (<strong>Binding</strong>) = How can we talk to the Service?<br />
C for (<strong>Contract</strong>)  = What can the service do for us?</p>
<p><strong>1. Address</strong></p>
<p>The endpoints specify an Address that defines where the endpoint is hosted. It’s basically url.</p>
<p>Eg. http://localhost/wcfService/Service.svc</p>
<p><strong>2. Binding</strong></p>
<p>The endpoints also define a binding that specifies how a client will communicate with the service and the address where the endpoint is hosted.</p>
<p><strong>3. Contract</strong></p>
<p>Contract defines which methods of the Service class will be accessible via the endpoint; each endpoint may expose a different set of methods.</p>
<p><strong>Different contracts in WCF</strong><br />
a. <strong>Service Contract</strong></p>
<p><strong></strong>Service contracts describe the operation that service can provide. For Eg, a Service provide to know the temperature of the city based on the zip code, this service is called as Service contract. It will be created using Service and Operational Contract attribute.</p>
<p>b. <strong>Data Contract</strong></p>
<p><strong></strong>Data contract describes the custom data type which is exposed to the client. This defines the data types, which are passed to and from service. Data types like int, string are identified by the client because it is already mention in XML schema definition language document, but custom created class or data types cannot be identified by the client e.g. Employee data type. By using DataContract we can make client to be aware of Employee data type that are returning or passing parameter to the method.</p>
<p>c. <strong>Message Contract</strong></p>
<p><strong></strong>Default SOAP message format is provided by the WCF runtime for communication between Client and service. If it is not meeting your requirements then we can create our own message format. This can be achieved by using Message Contract attribute.</p>
<p>d.<strong> Fault Contract</strong></p>
<p><strong></strong>Suppose the service I consumed is not working in the client application. I want to know the real cause of the problem. How I can know the error? For this we are having Fault Contract. Fault Contract provides documented view for error occurred in the service to client. This helps us to easy identity, what error has occurred.</p>
]]></content:encoded>
			<wfw:commentRss>http://bhutanhorizon.com/dot-net/windows-communication-foundation-wcf.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Services</title>
		<link>http://bhutanhorizon.com/dot-net/web-services.html</link>
		<comments>http://bhutanhorizon.com/dot-net/web-services.html#comments</comments>
		<pubDate>Wed, 28 Dec 2011 09:34:48 +0000</pubDate>
		<dc:creator>younten</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://bhutanhorizon.com/?p=394</guid>
		<description><![CDATA[What is Web Service? Web Service is an application that is designed to interact directly with other applications over the internet. In simple sense, Web Services are means for interacting with objects over the Internet. Web Service is Language Independent Protocol Independent Platform Independent It assumes stateless service architecture. History of Web Service or How [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What is Web Service?</strong></p>
<p>Web Service is an application that is designed to interact directly with other applications over the internet. In simple sense, Web Services are means for interacting with objects over the Internet.</p>
<ul>
<li>Web Service is</li>
<li>Language Independent</li>
<li>Protocol Independent</li>
<li>Platform Independent</li>
<li>It assumes stateless service architecture.</li>
</ul>
<p><strong>History of Web Service or How Web Service comes into existence?</strong></p>
<p>As i have mention before that Web Service is nothing but means for interacting with objects over the Internet.</p>
<ul>
<li>Initially Object &#8211; Oriented Language comes which allow us to interact with two object within same application.</li>
<li>Component Object Model (COM) which allows to interact two objects on the same computer, but in different applications.</li>
<li>Distributed Component Object Model (DCOM) which allows to interact two objects on different computers, but within same local network.</li>
<li>which allows two object to interact internet. That is it allows to interact between two object on different computers and even not within same local network.</li>
</ul>
<p><strong>Example of Web Service</strong></p>
<ul>
<li><strong>Weather Reporting:</strong> You can use Weather Reporting web service to display weather information in your personal website.</li>
<li><strong>Stock Quote:</strong> You can display latest update of Share market with Stock Quote on your web site.</li>
<li><strong>News Headline:</strong> You can display latest news update by using News Headline Web Service in your website.</li>
<li>In summary you can any use any web service which is available to use. You can make your own web service and let others use it. Example you can make Free SMS Sending Service with footer with your companies advertisement, so whosoever use this service indirectly advertise your company&#8230; You can apply your ideas in N no. of ways to take advantage of it.</li>
</ul>
<p><strong>Web Service Communication</strong><br />
Web Services communicate by using standard web protocols and data formats, such as</p>
<ul>
<li>HTTP</li>
<li>XML</li>
<li>SOAP</li>
</ul>
<p><strong>Advantages of Web Service Communication</strong><br />
Web Service messages are formatted as XML, a standard way for communication between two incompatible systems. And this message is sent via HTTP, so that they can reach to any machine on the internet without being blocked by firewall.</p>
<p><strong>Terms which are frequently used with web services:</strong></p>
<p><strong>What is SOAP?</strong></p>
<p>SOAP is remote function calls that invokes method and execute them on Remote machine and translate the object communication into XML format. In short, SOAP are way by which method calls are translate into XML format and sent via HTTP.</p>
<p><strong>What is WSDL?</strong></p>
<p>WSDL stands for Web Service Description Language, a standard by which a web service can tell clients what messages it accepts and which results it will return.</p>
<ul>
<li>WSDL contains every details regarding using web service</li>
<li>Method and Properties provided by web service</li>
<li>URLs from which those method can be accessed.</li>
<li>Data Types used.</li>
<li>Communication Protocol used.</li>
</ul>
<p><strong>What is UDDI?</strong></p>
<p>UDDI allows you to find web services by connecting to a directory.</p>
<p><strong>What is Discovery or .Disco Files?</strong></p>
<p>Discovery files are used to group common services together on a web server. Discovery files .Disco and .VsDisco are XML based files that contains link in the form of URLs to resources that provides discovery information for a web service.</p>
<p><strong>.Disco File (static)</strong></p>
<ul>
<li>.Disco File contains</li>
<li>URL for the WSDL</li>
<li>URL for the documentation</li>
<li>URL to which SOAP messages should be sent.</li>
<li>A static discovery file is an XML document that contains links to other resources that describe web services.</li>
</ul>
<p><strong>.VsDisco File (dynamic)</strong></p>
<p>A dynamic discovery files are dynamic discovery document that are automatically generated by VS.Net during the development phase of a web service.</p>
<p><strong>What is difference between Disco and UDDI?</strong></p>
<p>Disco is Microsoft&#8217;s Standard format for discovery documents which contains information about Web Services, while UDDI is a multi-vendor standard for discovery documents which contains information about Web Services.</p>
<p><strong>What is Web Service Discovery Tool (disco.exe)?</strong></p>
<p>The Web Services Discovery Tool (disco.exe) can retrieve discovery information from a server that exposes a web service.</p>
<p><strong>What is Proxy Class?</strong></p>
<p>A proxy class is code that looks exactly like the class it meant to represent; however the proxy class doesn&#8217;t contain any of the application logic. Instead, the proxy class contains marshalling and transport logic. A proxy class object allows a client to access a web service as if it were a local COM object. The Proxy must be on the computer that has the web application.</p>
<p><strong>What is Web Service Description Language Tool (wsdl.exe)?</strong></p>
<p>This tool can take a WSDL file and generate a corresponding proxy class that you can use to invoke the web service. Alternate of generating Proxy class through WSDL.exe is you can use web reference. <strong>Web Reference</strong> automatically generates a proxy classes for a web service by setting a web reference to point to the web service.</p>
<p><strong>Advantage of using Web Reference as compare to using WSDL.exe Tool</strong> is you can update changes done in web service class easily by updating web reference, which is more tedious task with WSDL.exe tool</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://bhutanhorizon.com/dot-net/web-services.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring ASP.NET website to use SQL Server for Session state</title>
		<link>http://bhutanhorizon.com/dot-net/configuring-asp-net-website-to-use-sql-server-for-session-state.html</link>
		<comments>http://bhutanhorizon.com/dot-net/configuring-asp-net-website-to-use-sql-server-for-session-state.html#comments</comments>
		<pubDate>Tue, 18 Oct 2011 09:11:26 +0000</pubDate>
		<dc:creator>younten</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://www.bhutanhorizon.com/?p=332</guid>
		<description><![CDATA[Today i was working on an application. So thought of storing the session in sql server. I will be installing on my notebook, my notebook name is yj-NB. I have set sa user password as sa123 on database. Here are the steps to follow: Step 1: Here is the code to add in web.config; &#60;sessionState [...]]]></description>
			<content:encoded><![CDATA[<p>Today i was working on an application. So thought of storing the session in sql server. I will be installing on my notebook, my notebook name is yj-NB. I have set sa user password as sa123 on database. Here are the steps to follow:</p>
<p>Step 1:<br />
Here is the code to add in <strong>web.config</strong>;</p>
<p>&lt;sessionState mode=&#8221;SQLServer&#8221;<br />
sqlConnectionString=&#8221;data source=yj-NB;UID=sa;PWD=sa123;&#8221;<br />
cookieless=&#8221;false&#8221;<br />
timeout=&#8221;20&#8243;/&gt;</p>
<p>You don’t have to mention database name.</p>
<p>Step 2:</p>
<p>We will be executing <strong>InstallSqlState.sql</strong> script file. By default, InstallSqlState.sql is located in one of the following folders; system drive\ Windows\ Microsoft.NET\ Framework\version\</p>
<p>Installing the Session State Database Using the <strong>Aspnet_regsql.exe</strong> Tool<br />
Go to command prompt<br />
Systemdrive\WINDOWS\Microsoft.NET\Framework\version\</p>
<p><strong>aspnet_regsql.exe -S yj-NB -U sa -P sa123 -d ASPstate -ssadd -sstype c</strong></p>
<p>yj-NB: computer name</p>
<p>sa123: sa password</p>
<p>ASPstate: Database name that will be storing session</p>
]]></content:encoded>
			<wfw:commentRss>http://bhutanhorizon.com/dot-net/configuring-asp-net-website-to-use-sql-server-for-session-state.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Regular Expression to Validate a Decimal Number</title>
		<link>http://bhutanhorizon.com/dot-net/regular-expression-to-validate-a-decimal-number.html</link>
		<comments>http://bhutanhorizon.com/dot-net/regular-expression-to-validate-a-decimal-number.html#comments</comments>
		<pubDate>Wed, 08 Jun 2011 15:30:39 +0000</pubDate>
		<dc:creator>younten</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://www.bhutanhorizon.com/?p=317</guid>
		<description><![CDATA[I had always used to ajaxToolkit MaskedEditExtender for entering decimal value. But I was interested to do the other way round without using ajaxToolkit MaskedEditExtender. Finally I found the solution using Regular Expression. I wanted 4 digit before decimal point and 3 digits after decimal point. Below is how I did it: &#60;asp:TextBox ID=&#8221;txtAmount&#8221; runat=&#8221;server&#8221;&#62;&#60;/asp:TextBox&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>I had always used to ajaxToolkit MaskedEditExtender for entering decimal value. But I was interested to do the other way round without using ajaxToolkit MaskedEditExtender. Finally I found the solution using Regular Expression. I wanted 4 digit before decimal point and 3 digits after decimal point. Below is how I did it:</p>
<p>&lt;asp:TextBox ID=&#8221;txtAmount&#8221; runat=&#8221;server&#8221;&gt;&lt;/asp:TextBox&gt;<br />
&lt;asp:RegularExpressionValidator id=&#8221;RegExVal&#8221; runat=&#8221;server&#8221;<br />
ControlToValidate=&#8221;txtAmount&#8221; ValidationExpression=&#8221;^[0-9]{1,4}(\.[0-9]{0,3})?$&#8221;<br />
ErrorMessage=&#8221;Enter Exact decimal value&#8221; /&gt;</p>
<p>Happy coding&#8230; <img src='http://bhutanhorizon.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://bhutanhorizon.com/dot-net/regular-expression-to-validate-a-decimal-number.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET AJAX toolkit calendar control with readonly textbox</title>
		<link>http://bhutanhorizon.com/dot-net/asp-net-ajax-toolkit-calendar-control-with-readonly-textbox.html</link>
		<comments>http://bhutanhorizon.com/dot-net/asp-net-ajax-toolkit-calendar-control-with-readonly-textbox.html#comments</comments>
		<pubDate>Fri, 25 Feb 2011 03:55:13 +0000</pubDate>
		<dc:creator>younten</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://www.bhutanhorizon.com/?p=246</guid>
		<description><![CDATA[I used the calendar control from the AJAX toolkit to set a date in its associated asp:textbox control. I wanted the user to only be able to set the date through the calendar control so I made the textbox to read only by setting the ReadOnly property to true. The problem this produces is that [...]]]></description>
			<content:encoded><![CDATA[<p>I used the calendar control from the AJAX toolkit to set a date in its associated asp:textbox control. I wanted the user to only be able to set the date through the calendar control so I made the textbox to read only by setting the ReadOnly property to true. The problem this produces is that readonly controls don’t post back their values in the viewstate thus you lose the value when the user submits the form.</p>
<p>The Solution:</p>
<p>Leave the textbox control property as ReadOnly = False</p>
<p>In the Page Load event set the client side attribute of the textbox with the following:</p>
<p>txtDate.Attributes.Add(&#8220;ReadOnly&#8221;, &#8220;true&#8221;);</p>
<p>This way the control is included in the postback and the value is preserved but client side the user won’t be able to manually edit it.</p>
]]></content:encoded>
			<wfw:commentRss>http://bhutanhorizon.com/dot-net/asp-net-ajax-toolkit-calendar-control-with-readonly-textbox.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Internet Explorer issue in Compatibility Mode</title>
		<link>http://bhutanhorizon.com/dot-net/internet-explorer-issue-in-compatibility-mode.html</link>
		<comments>http://bhutanhorizon.com/dot-net/internet-explorer-issue-in-compatibility-mode.html#comments</comments>
		<pubDate>Tue, 16 Nov 2010 12:15:13 +0000</pubDate>
		<dc:creator>younten</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://www.bhutanhorizon.com/?p=163</guid>
		<description><![CDATA[Web Sites/Web Page should be rendered in Standard Mode or in Compatibility Mode. For few web page developed in .NET Platform, we face problem in rendering the Pages. In such case we need to enable Compatibility mode in Internet Explorer. However the following meta tag produces some good result in such problem. The following meta [...]]]></description>
			<content:encoded><![CDATA[<p>Web Sites/Web Page should be rendered in Standard Mode or in Compatibility Mode. For few web page developed in .NET Platform, we face problem in rendering the Pages. In such case we need to enable Compatibility mode in Internet Explorer. However the following meta tag produces some good result in such problem.</p>
<p>The following meta tag will render the web site/web page in Compatibility View in IE8:</p>
<blockquote><p>
&lt;meta http-equiv=&#8221;X-UA-Compatible&#8221; content=&#8221;IE=EmulateIE7&#8243; />
</p></blockquote>
<p>The following meta tag will render the web site/web page in Standard Mode in IE8</p>
<blockquote><p>
&lt;meta http-equiv=&#8221;X-UA-Compatible&#8221; content=&#8221;IE=EmulateIE8&#8243; />
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://bhutanhorizon.com/dot-net/internet-explorer-issue-in-compatibility-mode.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server 2005 Remote Connectivity</title>
		<link>http://bhutanhorizon.com/dot-net/sql-server-2005-remote-connectivity.html</link>
		<comments>http://bhutanhorizon.com/dot-net/sql-server-2005-remote-connectivity.html#comments</comments>
		<pubDate>Fri, 22 Oct 2010 06:24:50 +0000</pubDate>
		<dc:creator>younten</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://www.bhutanhorizon.com/?p=151</guid>
		<description><![CDATA[In some cases, I have seen people trying to create a database server using an ordinary desktop computer. Doing so people have come across problem where application was unable to connect to the desktop where database is hosted. Now the simple solution to such problem is: 1. All Programs > Microsoft SQL Server 2005 > [...]]]></description>
			<content:encoded><![CDATA[<p>In some cases, I have seen people trying to create a database server using an ordinary desktop computer. Doing so people have come across problem where application was unable to connect to the desktop where database is hosted.</p>
<p>Now the simple solution to such problem is:</p>
<p>1. All Programs > Microsoft SQL Server 2005 > Configuration Tools > SQL Server Surface Area Configuration<br />
2. Surface Area Configuration for Services and Connections<br />
3. Under Database Engine select Remote Connections. Enable Local and remote connections and under that enable Using both TCP/IP and named pipes<br />
4. Now restart all SQL Services</p>
]]></content:encoded>
			<wfw:commentRss>http://bhutanhorizon.com/dot-net/sql-server-2005-remote-connectivity.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET Menu and IE8 rendering white issue</title>
		<link>http://bhutanhorizon.com/dot-net/asp-net-menu-and-ie8-rendering-white-issue.html</link>
		<comments>http://bhutanhorizon.com/dot-net/asp-net-menu-and-ie8-rendering-white-issue.html#comments</comments>
		<pubDate>Thu, 26 Aug 2010 04:34:58 +0000</pubDate>
		<dc:creator>younten</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://www.bhutanhorizon.com/?p=126</guid>
		<description><![CDATA[In IE8 the zindex by default return &#8220;auto&#8221;, but when zindex value has been set, the ASP.NET Menu control assumes a different value. To over come the white issue, just edit your stylesheet and enter z-index: 100; or for the sub menu or any class or ID that you are using to specify the dropdown [...]]]></description>
			<content:encoded><![CDATA[<p>In IE8 the zindex by default return &#8220;auto&#8221;, but when zindex value has been set, the ASP.NET Menu control assumes a different value. To over come the white issue, just edit your stylesheet and enter <strong>z-index: 100</strong>; or for the sub menu or any class or ID that you are using to specify the dropdown menu.</p>
]]></content:encoded>
			<wfw:commentRss>http://bhutanhorizon.com/dot-net/asp-net-menu-and-ie8-rendering-white-issue.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>asp:Menu Server Control &#8211; Cross Browser Compatibility</title>
		<link>http://bhutanhorizon.com/dot-net/aspmenu-server-control-cross-browser-compatibility.html</link>
		<comments>http://bhutanhorizon.com/dot-net/aspmenu-server-control-cross-browser-compatibility.html#comments</comments>
		<pubDate>Thu, 26 Aug 2010 03:45:50 +0000</pubDate>
		<dc:creator>younten</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://www.bhutanhorizon.com/?p=124</guid>
		<description><![CDATA[Cross browser compatibility struggle is getting upsetting while working with asp:Menu Server Control. Anyhow, It was not rendering/working well with Safari and Chrome. A bit of googling&#8230; and I have a solution for this. I have added below small piece of code snippet in my MasterPage&#8217;s Page_Load event if (Request.UserAgent.IndexOf(&#8220;AppleWebKit&#8221;) > 0) { Request.Browser.Adapters.Clear(); } [...]]]></description>
			<content:encoded><![CDATA[<p>Cross browser compatibility struggle is getting upsetting while working with asp:Menu Server Control. Anyhow, It was not rendering/working well with Safari and Chrome. </p>
<p>A bit of googling&#8230; and I have a solution for this.</p>
<p>I have added below small piece of code snippet in my MasterPage&#8217;s Page_Load event</p>
<p>        if (Request.UserAgent.IndexOf(&#8220;AppleWebKit&#8221;) > 0)<br />
        {<br />
            Request.Browser.Adapters.Clear();<br />
        }</p>
<p>This will tell asp.net not to use an adapter when rendering the menu control. This will work for both Safari and chrome as well because they both use webkit which is how asp.net identifies Safari1Plus.</p>
<p>courtesy: http://dotnetslackers.com/Community/blogs/kaushalparik/default.aspx</p>
]]></content:encoded>
			<wfw:commentRss>http://bhutanhorizon.com/dot-net/aspmenu-server-control-cross-browser-compatibility.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clear Recent Opened Project List in Visual Studio .NET</title>
		<link>http://bhutanhorizon.com/dot-net/clear-recent-opened-project-list-in-visual-studio-net.html</link>
		<comments>http://bhutanhorizon.com/dot-net/clear-recent-opened-project-list-in-visual-studio-net.html#comments</comments>
		<pubDate>Thu, 26 Aug 2010 03:36:47 +0000</pubDate>
		<dc:creator>younten</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://www.bhutanhorizon.com/?p=122</guid>
		<description><![CDATA[Here is an nice tip on how to clear the &#8220;Recent Project&#8221; list in your Visual Studio .NET : Close Visual Studio (if its open) GOTO > Start > Run > RegEdit GOTO > HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\\ProjectMRUList remove unnecessary items from list. Similarly repeat the steps for FileMRuList GOTO > HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\\FileMRUList remove unnecessary items from list. To [...]]]></description>
			<content:encoded><![CDATA[<p>Here is an nice tip on how to clear the &#8220;Recent Project&#8221; list in your Visual Studio .NET :</p>
<p>Close Visual Studio (if its open)</p>
<p>    GOTO > Start > Run > RegEdit</p>
<p>    GOTO > HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\<version>\ProjectMRUList<br />
    remove unnecessary items from list.</p>
<p>    Similarly repeat the steps for FileMRuList<br />
    GOTO > HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\<version>\FileMRUList<br />
    remove unnecessary items from list.</p>
<p>    To Clear the Find and Replace List<br />
    GOTO > HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\<version>\Find<br />
    remove unnecessary items from list.</p>
<p>Another Simple way is,<br />
    Create one Text file &#8220;Clear.txt&#8221; and add below contents in it</p>
<p>    Windows Registry Editor Version 5.00</p>
<p>    [-HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\ProjectMRUList]<br />
    [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\ProjectMRUList]</p>
<p>    Save and Close the file and rename is as &#8220;Clear.reg&#8221;; that is Registry file. Double Click to Run the file, this will clear the &#8220;Recent Project List&#8221; on your Visual Studio 2005 Startup Page. You can add entries for &#8220;Recent File List&#8221; and &#8220;Find and Replace List&#8221; in this same .reg file.</p>
<p>courtesy: http://dotnetslackers.com/Community/blogs/kaushalparik/default.aspx</p>
]]></content:encoded>
			<wfw:commentRss>http://bhutanhorizon.com/dot-net/clear-recent-opened-project-list-in-visual-studio-net.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

