<?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>Demo Geek &#187; DemoGeek</title>
	<atom:link href="http://www.demogeek.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.demogeek.com</link>
	<description>Demonstrated Computer Help</description>
	<lastBuildDate>Mon, 17 Oct 2011 04:25:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Discover useful code snippets with CSS-Tricks Code Snippets Gallery</title>
		<link>http://www.demogeek.com/2009/12/09/discover-useful-code-snippets-with-css-tricks-code-snippets-gallery/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=discover-useful-code-snippets-with-css-tricks-code-snippets-gallery</link>
		<comments>http://www.demogeek.com/2009/12/09/discover-useful-code-snippets-with-css-tricks-code-snippets-gallery/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 12:40:59 +0000</pubDate>
		<dc:creator>TheGeek</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.demogeek.com/?p=2840</guid>
		<description><![CDATA[Code Snippets Gallery from CSS-Tricks has a nice collection of really useful code snippets. We all know that CSS-Tricks is one of the most useful websites out there to learn about CSS tips and tricks. For those of you who has some exposure to CSS-Tricks would remember those wonderfully useful screencasts by Chris Coyier. On [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.demogeek.com%252F2009%252F12%252F09%252Fdiscover-useful-code-snippets-with-css-tricks-code-snippets-gallery%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Discover%20useful%20code%20snippets%20with%20CSS-Tricks%20Code%20Snippets%20Gallery%22%20%7D);"></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2009%2F12%2F09%2Fdiscover-useful-code-snippets-with-css-tricks-code-snippets-gallery%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2009%2F12%2F09%2Fdiscover-useful-code-snippets-with-css-tricks-code-snippets-gallery%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>Code Snippets Gallery from CSS-Tricks has a nice collection of really useful code snippets.</strong></p>
<p>We all know that CSS-Tricks is one of the most useful websites out there to learn about CSS tips and tricks. For those of you who has some exposure to CSS-Tricks would remember those wonderfully useful screencasts by <a href="http://chriscoyier.net/" rel="nofollow">Chris Coyier</a>. On top of everything useful at CSS-Tricks they&#8217;ve even put out a <a href="http://css-tricks.com/snippets/" rel="nofollow">Code Snippets Gallery</a> section where you can discover code snippets that would be absolutely useful in your day-to-day web development work.</p>
<p><img src="http://www.demogeek.com/wp-content/uploads/2009/12/Code-Snippets-Gallery-at-CSS-Tricks.jpg" alt="Code Snippets Gallery at CSS-Tricks.jpg" border="0" width="560" height="533" /></p>
<p><a href="http://css-tricks.com/snippets/" rel="nofollow">Code Snippets Gallery</a> hosts code samples that are really simple in nature but are terribly useful for most of the common programming job. The code snippets are grouped into,</p>
<ul>
<li>CSS</li>
<li>htaccess</li>
<li>HTML</li>
<li>JavaScript</li>
<li>jQuery</li>
<li>PHP</li>
<li>WordPress</li>
</ul>
<p><img src="http://www.demogeek.com/wp-content/uploads/2009/12/Code-Snippets.jpg" alt="Code Snippets.jpg" border="0" width="560" height="524" /></p>
<p>The code snippets include a wide range of common scenarios, like for example, </p>
<ul>
<li>Center DIV with dynamic height</li>
<li>Cross Browser hr styling</li>
<li>Fixed Footer</li>
<li>PNG fix for IE6</li>
<li>Remove file extensions from URLs</li>
<li>Embedding Flash</li>
<li>Meta tag to force IE8 to behave like IE7</li>
<li>The common DOCTYPES</li>
<li>Auto-select textarea</li>
<li>Modern JavaScript Event Handling</li>
<li>Prevent background image flickering in IE</li>
<li>Check if jQuery is loaded</li>
<li>Equalize heights of DIVs</li>
<li>Persistent headers on tables</li>
<li>Simple jQuery Accordion</li>
<li>Create URL Slug from post title</li>
<li>Display a user Gravatar from email address</li>
<li>Get users IP address</li>
<li>Intelligent PHP Cache Control</li>
<li>Server side image resizer</li>
<li>And much more&#8230;</li>
</ul>
<p>You must have got a feel of how much those code snippets would be helpful. </p>
<p><img src="http://www.demogeek.com/wp-content/uploads/2009/12/CSS-Text-Shadow-on-Code-Snippet-Gallery1.jpg" alt="CSS Text Shadow on Code Snippet Gallery.jpg" border="0" width="560" height="309" /></p>
<p>If you use Textmate or Coda as your code editor you can directly import these code snippets directly into those code editors. Even though it&#8217;s not a big deal it&#8217;s a slight convenience factor.</p>
<p>Overall, Code Snippets Gallery is a fantastic place to find out about many of the most commonly use code snippets. I hope Chris keeps the Code Snippets Gallery more and more up to date so it can be one of the most useful tool for web developers.</p>
<p>Visit <a href="http://css-tricks.com/snippets/" rel="nofollow">Code Snippets Gallery</a> on CSS-Tricks.
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2009%2F12%2F09%2Fdiscover-useful-code-snippets-with-css-tricks-code-snippets-gallery%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2009%2F12%2F09%2Fdiscover-useful-code-snippets-with-css-tricks-code-snippets-gallery%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>

]]></content:encoded>
			<wfw:commentRss>http://www.demogeek.com/2009/12/09/discover-useful-code-snippets-with-css-tricks-code-snippets-gallery/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Complete list of CSS Media Types</title>
		<link>http://www.demogeek.com/2009/11/11/complete-list-of-css-media-types/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=complete-list-of-css-media-types</link>
		<comments>http://www.demogeek.com/2009/11/11/complete-list-of-css-media-types/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 18:40:03 +0000</pubDate>
		<dc:creator>TheGeek</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.demogeek.com/?p=2643</guid>
		<description><![CDATA[Learn the various media types that can go with your CSS file. When you link to a CSS file from your web page you must have noticed the &#8220;media&#8221; attribute and must have plain simply used &#8220;screen&#8221; or &#8220;print&#8221; for the most part. Ever wonder what the different media types that you can link your [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.demogeek.com%252F2009%252F11%252F11%252Fcomplete-list-of-css-media-types%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Complete%20list%20of%20CSS%20Media%20Types%22%20%7D);"></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2009%2F11%2F11%2Fcomplete-list-of-css-media-types%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2009%2F11%2F11%2Fcomplete-list-of-css-media-types%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>Learn the various media types that can go with your CSS file.</strong></p>
<pre name="code" class="html">
<link rel="stylesheet" type="text/css" href="/style.css" media="screen">
</pre>
<p>When you link to a CSS file from your web page you must have noticed the &#8220;<strong>media</strong>&#8221; attribute and must have plain simply used &#8220;screen&#8221; or &#8220;print&#8221; for the most part. Ever wonder what the different media types that you can link your stylesheet to? Here is the list,</p>
<table class="content-table">
<thead>
<tr>
<th scope="col">Media Type</th>
<th scope="col">Description</th>
</tr>
</thead>
<tr>
<td>all</td>
<td>applies to all media</td>
</tr>
<tr>
<td>Braille</td>
<td>Braille/tactile feedback devices</td>
</tr>
<tr>
<td>embossed</td>
<td>paged Braille printers</td>
</tr>
<tr>
<td>handheld</td>
<td>handheld devices</td>
</tr>
<tr>
<td>print</td>
<td>paged media and print preview mode on the screen</td>
</tr>
<tr>
<td>projection</td>
<td>projected presentation (used by Opera in full-screen mode)</td>
</tr>
<tr>
<td>color</td>
<td>color computer screens</td>
</tr>
<tr>
<td>speech</td>
<td>speech synthesizers (see the note below)</td>
</tr>
<tr>
<td>tty</td>
<td>media with a fixed-pitch character grid</td>
</tr>
<tr>
<td>tv</td>
<td>television-type devices</td>
</tr>
</table>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2009%2F11%2F11%2Fcomplete-list-of-css-media-types%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2009%2F11%2F11%2Fcomplete-list-of-css-media-types%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>

]]></content:encoded>
			<wfw:commentRss>http://www.demogeek.com/2009/11/11/complete-list-of-css-media-types/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to retrieve just the file names from an FTP site in .NET?</title>
		<link>http://www.demogeek.com/2009/06/24/how-to-retrieve-just-the-file-names-from-an-ftp-site-in-net/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-retrieve-just-the-file-names-from-an-ftp-site-in-net</link>
		<comments>http://www.demogeek.com/2009/06/24/how-to-retrieve-just-the-file-names-from-an-ftp-site-in-net/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 04:18:44 +0000</pubDate>
		<dc:creator>TheGeek</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Programming Tip]]></category>
		<category><![CDATA[Source Code]]></category>

		<guid isPermaLink="false">http://www.demogeek.com/?p=1345</guid>
		<description><![CDATA[Learn how to retrieve just the list of file names from an FTP site in .NET. When dealing with a remote FTP before we start downloading those mega files we wanted to exercise extra caution to make sure we don’t unnecessarily put strain on the corporate network. One precautionary way to deal with this is [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.demogeek.com%252F2009%252F06%252F24%252Fhow-to-retrieve-just-the-file-names-from-an-ftp-site-in-net%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22How%20to%20retrieve%20just%20the%20file%20names%20from%20an%20FTP%20site%20in%20.NET%3F%22%20%7D);"></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2009%2F06%2F24%2Fhow-to-retrieve-just-the-file-names-from-an-ftp-site-in-net%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2009%2F06%2F24%2Fhow-to-retrieve-just-the-file-names-from-an-ftp-site-in-net%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<h2>Learn how to retrieve just the list of file names from an FTP site in .NET.</h2>
<p>When dealing with a remote FTP before we start downloading those mega files we wanted to exercise extra caution to make sure we don’t unnecessarily put strain on the corporate network. One precautionary way to deal with this is to make sure we download or upload what exactly we want.</p>
<p>Many times, our implementation might require you to just list the files on a page and let the user download what they want. The real download happens only when the user choose a filename. So, how do we get the list of filenames from an FTP site location without downloading the actual file?</p>
<p>Well, .NET has an answer for you with FtpWebRequest on System.Net. FtpWebRequest has a property “Method” which can be used to indicate your intentions with the request, in this case, “ListDirectory”. Once set, a call to GetResponse() will list you the filenames on the FTP location. Of course, when the user chooses to download a file then you can use the “DownloadFile” property to start streaming the file from that FTP site.</p>
<p>Create a simple method that establishes connection with a FTP site (optionally passing-in the parameters).<br />
<code lang="csharp"><br />
protected virtual FtpWebRequest CreateFtpWebRequest(Uri uri, string ftpUsername, string ftpPassword)<br />
{<br />
   FtpWebRequest ftp = FtpWebRequest.Create(uri) as FtpWebRequest;<br />
   if (!(string.IsNullOrEmpty(ftpUsername.Trim())))<br />
   {<br />
      ftp.Credentials = new NetworkCredential(ftpUsername, ftpPassword);<br />
   }<br />
   ftp.UseBinary = true;<br />
   return ftp;<br />
}<br />
</code><br />
“Uri” parameter takes in a System.Uri with a valid location to a FTP site. If you have the FTP site secured then you can pass-in the “ftpUsername” and “ftpPassword” properties. If you don’t pass-in the values then it will connect to the FTP location as “Anonymous”.</p>
<p>Once you’ve created a FTP request then you can use a similar method like below to get the filenames.<br />
<code lang="csharp"><br />
public List<string> GetFileNames(string remotePath, string ftpUsername, string ftpPassword)<br />
{<br />
   List<string> result = new List<string>();<br />
   WebRequest ftpWR = BuildFtpWebRequest(new Uri(remotePath), ftpUsername, ftpPassword);<br />
   ftpWR.Method = WebRequestMethods.Ftp.ListDirectory;<br />
   using (WebResponse response = ftpWR.GetResponse())<br />
   using (StreamReader reader = new StreamReader(response.GetResponseStream()))<br />
   {<br />
      string itme = reader.ReadLine();<br />
      while (item != null)<br />
      {<br />
         result.Add(item);<br />
         item = reader.ReadLine();<br />
      }<br />
   }<br />
   return result;<br />
}<br />
</code><br />
Note the usage of the “Method” property on the FTPRequest object. “ListDirectory” indicates that with this request we are intending to get the FTP headers only which will contain the filenames. We then build a list out of it and return the list as List<string>.</p>
<p><!-- Technorati Tags Start --></p>
<p>Technorati Tags:<br />
<a href="http://technorati.com/tag/.NET" rel="tag">.NET</a>, <a href="http://technorati.com/tag/How%20To" rel="tag">How To</a>, <a href="http://technorati.com/tag/FTP" rel="tag">FTP</a>, <a href="http://technorati.com/tag/Source%20Code" rel="tag">Source Code</a>, <a href="http://technorati.com/tag/Code%20Sample" rel="tag">Code Sample</a>
</p>
<p><!-- Technorati Tags End --></p>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2009%2F06%2F24%2Fhow-to-retrieve-just-the-file-names-from-an-ftp-site-in-net%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2009%2F06%2F24%2Fhow-to-retrieve-just-the-file-names-from-an-ftp-site-in-net%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>

]]></content:encoded>
			<wfw:commentRss>http://www.demogeek.com/2009/06/24/how-to-retrieve-just-the-file-names-from-an-ftp-site-in-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to connect to an Oracle database from .NET?</title>
		<link>http://www.demogeek.com/2009/06/24/how-to-connect-to-oracle-database-from-net/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-connect-to-oracle-database-from-net</link>
		<comments>http://www.demogeek.com/2009/06/24/how-to-connect-to-oracle-database-from-net/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 05:49:55 +0000</pubDate>
		<dc:creator>TheGeek</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Programming Tip]]></category>

		<guid isPermaLink="false">http://www.demogeek.com/?p=1337</guid>
		<description><![CDATA[Start using Oracle as the database from .NET with this simple Oracle connectivity tip. Connecting to a SQL Server database from any .NET application is as simple as ABC. But when it comes to connecting to Oracle databases it’s not as simple as you think. If you have access to the TNS file (tnsnames.ora) then [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.demogeek.com%252F2009%252F06%252F24%252Fhow-to-connect-to-oracle-database-from-net%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22How%20to%20connect%20to%20an%20Oracle%20database%20from%20.NET%3F%22%20%7D);"></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2009%2F06%2F24%2Fhow-to-connect-to-oracle-database-from-net%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2009%2F06%2F24%2Fhow-to-connect-to-oracle-database-from-net%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<h2>Start using Oracle as the database from .NET with this simple Oracle connectivity tip.</h2>
<p>Connecting to a SQL Server database from any .NET application is as simple as ABC. But when it comes to connecting to Oracle databases it’s not as simple as you think.</p>
<p>If you have access to the TNS file (tnsnames.ora) then you can pull out most of the information that you need to connect to an Oracle database. If you don’t have access to the TNS file then you need to gather these information prior to making an attempt to connect to an Oracle database,</p>
<p>·         Database Name<br />
·         Primary TCP Host IP Address<br />
·         Primary TCP Port Number<br />
·         Secondary TCP Host IP Address<br />
·         Secondary TCP Port Number<br />
·         Oracle Service Name<br />
·         User ID<br />
·         Password<br />
Once you have the above information you can then update your web.config file’s <connectionStrings> section to reflect the below connection string (replace the entries appropriately, of course!)</p>
<p><code lang="xml"><br />
<connectionStrings><br />
    <add name="databaseName" connectionString="Data Source=(DESCRIPTION =<br />
    (FAILOVER = ON)<br />
    (LOAD_BALANCE = FALSE)<br />
    (ADDRESS_LIST =<br />
      (ADDRESS =<br />
        (PROTOCOL = TCP)<br />
        (HOST = 123.123.123.123)<br />
        (PORT = 1234)<br />
      )<br />
      (ADDRESS =<br />
        (PROTOCOL = TCP)<br />
        (HOST = 123.123.123.123)<br />
        (PORT = 1234)<br />
      )<br />
    )<br />
    (CONNECT_DATA =<br />
      (SERVICE_NAME = serviceName)<br />
      (SERVER = DEDICATED)<br />
    )<br />
    );User Id=userID;Password=pwd;" /><br />
  </connectionStrings><br />
</code></p>
<p>Once you have these setup then it becomes ABC to really connect to the database. If you are using ODP.NET then you can use a similar statement like below to establish a connection to the Oracle database,</p>
<p><code lang="csharp"><br />
using Oracle.DataAccess.Client;<br />
private string connString = ConfigurationManager.ConnectionStrings["databaseName"].ConnectionString;<br />
try<br />
        {<br />
              OracleConnection conn = new OracleConnection();<br />
             conn.ConnectionString = connString;<br />
             conn.Open();<br />
             return conn;<br />
        }<br />
        catch (Exception ex)<br />
        {<br />
              // handle the generic exception if you wish<br />
        }<br />
</code></p>
<p>Keep in mind that the databaseName is nothing but the name given to the connection string on web.config.</p>
<p><!-- Technorati Tags Start --></p>
<p>Technorati Tags:<br />
<a href="http://technorati.com/tag/How%20To" rel="tag">How To</a>, <a href="http://technorati.com/tag/.NET" rel="tag">.NET</a>, <a href="http://technorati.com/tag/Programming" rel="tag">Programming</a>, <a href="http://technorati.com/tag/Oracle" rel="tag">Oracle</a>, Oracle Connectivity
</p>
<p><!-- Technorati Tags End --></p>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2009%2F06%2F24%2Fhow-to-connect-to-oracle-database-from-net%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2009%2F06%2F24%2Fhow-to-connect-to-oracle-database-from-net%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>

]]></content:encoded>
			<wfw:commentRss>http://www.demogeek.com/2009/06/24/how-to-connect-to-oracle-database-from-net/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Explore User Interface patterns with Quince</title>
		<link>http://www.demogeek.com/2009/06/21/explore-user-interface-patterns-with-quince/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=explore-user-interface-patterns-with-quince</link>
		<comments>http://www.demogeek.com/2009/06/21/explore-user-interface-patterns-with-quince/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 04:42:23 +0000</pubDate>
		<dc:creator>TheGeek</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.demogeek.com/?p=1335</guid>
		<description><![CDATA[Quince, from Infragistics helps you explore some of the best user interface patterns. If you are into Web development or into desktop applications development I&#8217;m sure you must have been craving for a library of samples for your user interface (to get influence, may be). Of course, there are plenty of websites that we tend [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.demogeek.com%252F2009%252F06%252F21%252Fexplore-user-interface-patterns-with-quince%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Explore%20User%20Interface%20patterns%20with%20Quince%22%20%7D);"></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2009%2F06%2F21%2Fexplore-user-interface-patterns-with-quince%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2009%2F06%2F21%2Fexplore-user-interface-patterns-with-quince%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<h2>Quince, from Infragistics helps you explore some of the best user interface patterns.</h2>
<p>If you are into Web development or into desktop applications development I&#8217;m sure you must have been craving for a library of samples for your user interface (to get influence, may be). Of course, there are plenty of websites that we tend to mock but to get an understanding of the user interface patterns there are not many obvious choices.</p>
<p><img src="http://www.demogeek.com/wp-content/uploads/2009/06/quince-all-patterns.png" alt="Quince _ All Patterns.png" border="0" width="307" height="59" /></p>
<p><a href="http://quince.infragistics.com/#/Main" rel="nofollow">Quince</a> from Infragistics fills that gap a little bit by exposing some of the most common user interface patterns in use.</p>
<p><img src="http://www.demogeek.com/wp-content/uploads/2009/06/quince-home.png" alt="Quince _ Home.png" border="0" width="549" height="399" /></p>
<p>At its home page Quince allows you to explore the different UI patterns by &#8220;User Tasks&#8221;, &#8220;Tag Relations&#8221;, &#8220;Wireframe&#8221; or you can explore &#8220;All Patterns&#8221;.</p>
<p><img src="http://www.demogeek.com/wp-content/uploads/2009/06/quince-all-patterns-2.png" alt="Quince _ All Patterns-2.png" border="0" width="560" height="241" /></p>
<p>When you explore All Patterns, it neatly arranges the patterns by names such as Action Links, Breadcrumbs, Button Groups etc. There are a whole sleuth of patterns that you can explore on.</p>
<p><img src="http://www.demogeek.com/wp-content/uploads/2009/06/arc.png" alt="Arc.png" border="0" width="197" height="550" /></p>
<p>It also lists a wide range of filters to help you narrow down to the pattern that you are interested.</p>
<p><img src="http://www.demogeek.com/wp-content/uploads/2009/06/quince-breadcrumbs.png" alt="Quince _ Breadcrumbs.png" border="0" width="560" height="378" /></p>
<p>Once you click on a pattern to explore Quince brings up the details page with some image thumbnails so you can visually see it in action along with some descriptive text to help you understand the pattern.</p>
<p>Overall, it seems to a decent solution to find out about the various user interface patterns that&#8217;s in use in the everyday web/desktop. If you find any different usage of Quince please let us know in comments.</p>
<p>Visit <a href="http://quince.infragistics.com/#/Main" rel="nofollow">Quince</a>.</p>
<p><!-- Technorati Tags Start --></p>
<p>Technorati Tags:<br />
<a href="http://technorati.com/tag/User%20Interface" rel="tag">User Interface</a>, <a href="http://technorati.com/tag/UI" rel="tag">UI</a>, <a href="http://technorati.com/tag/How%20To" rel="tag">How To</a>, <a href="http://technorati.com/tag/Patterns" rel="tag">Patterns</a>, <a href="http://technorati.com/tag/Quince" rel="tag">Quince</a>
</p>
<p><!-- Technorati Tags End --></p>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2009%2F06%2F21%2Fexplore-user-interface-patterns-with-quince%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2009%2F06%2F21%2Fexplore-user-interface-patterns-with-quince%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>

]]></content:encoded>
			<wfw:commentRss>http://www.demogeek.com/2009/06/21/explore-user-interface-patterns-with-quince/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Generate Typed Dataset from an XSD file in Visual Studio 2005</title>
		<link>http://www.demogeek.com/2008/10/24/tips-and-tricks-generate-typed-dataset-from-an-xsd-file/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tips-and-tricks-generate-typed-dataset-from-an-xsd-file</link>
		<comments>http://www.demogeek.com/2008/10/24/tips-and-tricks-generate-typed-dataset-from-an-xsd-file/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 23:15:22 +0000</pubDate>
		<dc:creator>TheGeek</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[Generate Typed Dataset]]></category>
		<category><![CDATA[Typed Dataset]]></category>
		<category><![CDATA[Typed Dataset from XSD]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.demogeek.com/2008/10/24/tips-and-tricks-generate-typed-dataset-from-an-xsd-file/</guid>
		<description><![CDATA[Typed DataSets in ASP.NET is a pretty nice and handy feature. It gives you greater control of what the table relations should be and it pretty much reflect what the database holds. It&#8217;s pretty nice. But one thing I hate about Typed DataSet is that when you serialize your Typed DataSet your XML looks little [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.demogeek.com%252F2008%252F10%252F24%252Ftips-and-tricks-generate-typed-dataset-from-an-xsd-file%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Generate%20Typed%20Dataset%20from%20an%20XSD%20file%20in%20Visual%20Studio%202005%22%20%7D);"></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F24%2Ftips-and-tricks-generate-typed-dataset-from-an-xsd-file%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F24%2Ftips-and-tricks-generate-typed-dataset-from-an-xsd-file%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="Visual Studio" src="http://www.demogeek.com/wp-content/uploads/2008/10/visualstudiologo2.jpg" border="0" alt="Visual Studio" width="50" height="32" /></p>
<p>Typed DataSets in ASP.NET is a pretty nice and handy feature. It gives you greater control of what the table relations should be and it pretty much reflect what the database holds. It&#8217;s pretty nice. But one thing I hate about Typed DataSet is that when you serialize your Typed DataSet your XML looks little messed up.</p>
<p>For the most part the XML serves the purpose but it has all sorts of primary key/foreign key references that are serialized into the XML that at times we might not need and might be confusing. Rather if we can get an XML that makes more sense and readable would suffice.</p>
<p>Adding an XSD file to your project won&#8217;t help right away as Visual Studio.NET 2005 doesn&#8217;t directly generate datasets (.Designer.cs files) out of it. But, there is a work around that you can use to make Visual Studio.NET 2005 generate typed-dataset from an XSD files. Here is what you should do,</p>
<p><img style="margin: 0px 0px 0px 10px" src="http://windev.files.wordpress.com/2007/03/windowslivewritertipsandtricksgeneratetypeddatasetfromanx-c1feimage0231.png" alt="" width="331" height="111" align="right" /></p>
<ul>
<li>Select the XSD file you want Visual Studio.NET 2005 to generate typed-dataset from</li>
<li>Right click and choose &#8220;Properties&#8221; to go into the XSD file&#8217;s Properties list</li>
<li>Set the &#8220;Build Action&#8221; to &#8220;Content&#8221;</li>
<li>Set the &#8220;Custom Tool&#8221; to point to &#8220;MSDataSetGenerator&#8221;</li>
</ul>
<p>And that&#8217;s it. The next time you save the XSD file in Visual Studio.NET 2005 you should be able to see the dataset file, .Designer.cs (or .vb) file, that&#8217;s more meaningful to read.</p>
<div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:72a1730c-d96f-4cfd-919a-07e7dd008908" class="wlWriterEditableSmartContent" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a rel="tag" href="http://technorati.com/tags/XSD">XSD</a>,<a rel="tag" href="http://technorati.com/tags/Dataset">Dataset</a>,<a rel="tag" href="http://technorati.com/tags/Typed+Dataset">Typed Dataset</a>,MSDataSetGenerator,<a rel="tag" href="http://technorati.com/tags/Generate+Dataset+from+XSD">Generate Dataset from XSD</a>,<a rel="tag" href="http://technorati.com/tags/Visual+Studio+2005+Issue">Visual Studio 2005 Issue</a>,<a rel="tag" href="http://technorati.com/tags/Tips+and+Tricks">Tips and Tricks</a></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F24%2Ftips-and-tricks-generate-typed-dataset-from-an-xsd-file%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F24%2Ftips-and-tricks-generate-typed-dataset-from-an-xsd-file%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>

]]></content:encoded>
			<wfw:commentRss>http://www.demogeek.com/2008/10/24/tips-and-tricks-generate-typed-dataset-from-an-xsd-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find the version of .NET Framework installed on your computer</title>
		<link>http://www.demogeek.com/2008/10/23/find-the-version-of-net-framework-installed-on-your-computer/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=find-the-version-of-net-framework-installed-on-your-computer</link>
		<comments>http://www.demogeek.com/2008/10/23/find-the-version-of-net-framework-installed-on-your-computer/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 02:44:05 +0000</pubDate>
		<dc:creator>TheGeek</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[QuickTips]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[Find .NET Framework version]]></category>
		<category><![CDATA[Find .NET version]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[installed .NET Framework version]]></category>
		<category><![CDATA[installed .NET version]]></category>
		<category><![CDATA[Windows Vista]]></category>

		<guid isPermaLink="false">http://www.demogeek.com/2008/10/23/find-the-version-of-net-framework-installed-on-your-computer/</guid>
		<description><![CDATA[If you have to find the versions of .NET Framework installed on your computer, Step-1: Click the &#34;Start” button and click on the “Control Panel”. Step-2: Click on the “Programs” option then click on the “Programs and Features” option. Step-3: Scroll down to locate Microsoft .NET Framework entry and the version number would be listed [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.demogeek.com%252F2008%252F10%252F23%252Ffind-the-version-of-net-framework-installed-on-your-computer%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Find%20the%20version%20of%20.NET%20Framework%20installed%20on%20your%20computer%22%20%7D);"></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F23%2Ffind-the-version-of-net-framework-installed-on-your-computer%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F23%2Ffind-the-version-of-net-framework-installed-on-your-computer%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img title="" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="37" alt="" src="http://www.demogeek.com/wp-content/uploads/2008/10/windows-vista-logo-2509.png" width="50" border="0" /> </p>
<p>If you have to find the versions of .NET Framework installed on your computer, </p>
<h4>Step-1: </h4>
<p>Click the &quot;<strong>Start</strong>” button and click on the “<strong>Control Panel</strong>”.</p>
<h4>Step-2: </h4>
<p>Click on the “<strong>Programs</strong>” option then click on the “<strong>Programs and Features</strong>” option.</p>
<p><img title="" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="150" alt="" src="http://www.demogeek.com/wp-content/uploads/2008/10/tmp19dc.png" width="535" border="0" /></p>
</p>
<h4>Step-3:</h4>
<p>Scroll down to locate <strong>Microsoft .NET Framework</strong> entry and the version number would be listed there.</p>
<p><img title="" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="225" alt="" src="http://www.demogeek.com/wp-content/uploads/2008/10/image33.png" width="430" border="0" /> </p>
<p>If you are using Windows XP, go into the <strong>Control Panel</strong> and then click on the “<strong>Add/Remove Programs</strong>” and scroll down the list to locate <strong>Microsoft .NET Framework</strong>.</p>
<div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:993f2027-2afe-486c-bf7e-77269087f5c9" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: Windows Vista,<a href="http://technorati.com/tags/.NET" rel="tag">.NET</a>,<a href="http://technorati.com/tags/.NET+Framework" rel="tag">.NET Framework</a>,<a href="http://technorati.com/tags/How-To" rel="tag">How To</a></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F23%2Ffind-the-version-of-net-framework-installed-on-your-computer%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F23%2Ffind-the-version-of-net-framework-installed-on-your-computer%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>

]]></content:encoded>
			<wfw:commentRss>http://www.demogeek.com/2008/10/23/find-the-version-of-net-framework-installed-on-your-computer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET 2.0 Server-side Comments</title>
		<link>http://www.demogeek.com/2008/10/21/aspnet-20-server-side-comments/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=aspnet-20-server-side-comments</link>
		<comments>http://www.demogeek.com/2008/10/21/aspnet-20-server-side-comments/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 01:33:32 +0000</pubDate>
		<dc:creator>TheGeek</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[QuickTips]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[ASP.NET Server-side Comments]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Server side comments]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.demogeek.com/2008/10/21/aspnet-20-server-side-comments/</guid>
		<description><![CDATA[Ever wonder how to write comments within an aspx file? &#60;!– Some Comment –&#62; won’t cut it as it gets processed on the server side and the resulting HTML will contain the commented code as processed. Enter, &#60;%– –%&#62;. There are 2 ways you can truly comment on an aspx file. If you prefer to [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.demogeek.com%252F2008%252F10%252F21%252Faspnet-20-server-side-comments%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22ASP.NET%202.0%20Server-side%20Comments%22%20%7D);"></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Faspnet-20-server-side-comments%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Faspnet-20-server-side-comments%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" src="http://www.demogeek.com/wp-content/uploads/2008/10/dotnet3.png" border="0" alt="" width="75" height="42" /></p>
<p>Ever wonder how to write comments within an aspx file? &lt;!– Some Comment –&gt; won’t cut it as it gets processed on the server side and the resulting HTML will contain the commented code as processed. Enter, &lt;%– –%&gt;. There are 2 ways you can truly comment on an aspx file.</p>
<p>If you prefer to type then use the &lt;%- some comment –%&gt; tags to enclose comments like below,</p>
<p><strong>&lt;%–</strong></p>
<p><span style="color: #008040;">Anything within this block will not be parsed/handled by ASP.NET.</span></p>
<p>&lt;asp:TextBox runat=”server”&gt;&lt;/asp:TextBox&gt;</p>
<p><strong>–%&gt;</strong></p>
<p>If you prefer to click then here is the visual way of doing the same,</p>
<p><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" src="http://www.demogeek.com/wp-content/uploads/2008/10/image10.png" border="0" alt="" width="342" height="80" /></p>
<div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:cd9528e0-88e8-4e1b-8ae9-7194796e09ef" class="wlWriterEditableSmartContent" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a rel="tag" href="http://technorati.com/tags/ASP.NET">ASP.NET</a>,<a rel="tag" href="http://technorati.com/tags/Visual+Studio">Visual Studio</a>,<a rel="tag" href="http://technorati.com/tags/Tips">Tips</a></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Faspnet-20-server-side-comments%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Faspnet-20-server-side-comments%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>

]]></content:encoded>
			<wfw:commentRss>http://www.demogeek.com/2008/10/21/aspnet-20-server-side-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Don&#8217;t start your user defined stored procs with SP_</title>
		<link>http://www.demogeek.com/2008/10/21/dont-start-your-user-defined-stored-procs-with-sp_/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=dont-start-your-user-defined-stored-procs-with-sp_</link>
		<comments>http://www.demogeek.com/2008/10/21/dont-start-your-user-defined-stored-procs-with-sp_/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 16:15:11 +0000</pubDate>
		<dc:creator>TheGeek</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[QuickTips]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[stored procedures]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[User defined stored procedures]]></category>

		<guid isPermaLink="false">http://www.demogeek.com/2008/10/21/dont-start-your-user-defined-stored-procs-with-sp_/</guid>
		<description><![CDATA[There is a common practice with some development teams that they prefix any user defined stored procs with “sp_”. It’s a bad practice in a way that it was a recipe for disaster when you strike the bulb. What I mean is that, the system stored procs in SQL Server are named starting with “sp_”. [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.demogeek.com%252F2008%252F10%252F21%252Fdont-start-your-user-defined-stored-procs-with-sp_%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Don%26rsquo%3Bt%20start%20your%20user%20defined%20stored%20procs%20with%20SP_%22%20%7D);"></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Fdont-start-your-user-defined-stored-procs-with-sp_%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Fdont-start-your-user-defined-stored-procs-with-sp_%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img title="" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="75" alt="" src="http://www.demogeek.com/wp-content/uploads/2008/10/programming.png" width="75" border="0" /> </p>
<p>There is a common practice with some development teams that they prefix any user defined stored procs with “sp_”. It’s a bad practice in a way that it was a recipe for disaster when you strike the bulb. </p>
<p>What I mean is that, the system stored procs in SQL Server are named starting with “sp_”. Now, when you try to name your user-defined stored procs starting with “sp_” what happens is that in addition to bringing down the performance it might give you a “gotcha” moment.</p>
<p>Here is how SQL Server looks for a stored proc starting with “sp_” in this hierarchy of databases,</p>
<ol>
<li>Master DB </li>
<li>The stored procedure based on the fully qualified name provided </li>
<li>The stored procedure using dbo as the owner, if one is not specified</li>
</ol>
<p>So, when you’ve named your user-defined stored proc starting with “sp_” in a database other than Master database, the Master database is always checked first when you explicitly don’t specify the database name and so when you’ve accidentally named your user-defined stored proc similar in name as the system stored proc then the user-defined stored proc will never get executed.</p>
<p>For example, let’s say you’ve accidentally named your user-defined stored proc as “sp_help” with the definition,</p>
<p><strong>create proc sp_help     <br />as      <br />select * from dbo.login</strong></p>
<p>Now, when you try to execute the above created proc using the</p>
<p><strong>Exec sp_help</strong></p>
<p>you’d be surprised to see that the sp_help under Master database has got executed than from your database.</p>
<p>To deal with this it is a best practice to use “usp_” rather than “sp_”. At least that’s what I prefer to use.</p>
<div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:758a434c-4993-42df-87cb-cd1ee36becab" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/SQL" rel="tag">SQL</a>,<a href="http://technorati.com/tags/Database" rel="tag">Database</a>,<a href="http://technorati.com/tags/Tips" rel="tag">Tips</a></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Fdont-start-your-user-defined-stored-procs-with-sp_%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Fdont-start-your-user-defined-stored-procs-with-sp_%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>

]]></content:encoded>
			<wfw:commentRss>http://www.demogeek.com/2008/10/21/dont-start-your-user-defined-stored-procs-with-sp_/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Utility function to convert Type to SqlDbType</title>
		<link>http://www.demogeek.com/2008/10/21/utility-function-to-convert-type-to-sqldbtype/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=utility-function-to-convert-type-to-sqldbtype</link>
		<comments>http://www.demogeek.com/2008/10/21/utility-function-to-convert-type-to-sqldbtype/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 15:18:26 +0000</pubDate>
		<dc:creator>TheGeek</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[C# Function]]></category>
		<category><![CDATA[Convert Type to SqlDbType]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[SqlDbType]]></category>

		<guid isPermaLink="false">http://www.demogeek.com/2008/10/21/utility-function-to-convert-type-to-sqldbtype/</guid>
		<description><![CDATA[Ever needed to convert a System.Type to its corresponding System.Data.SqlDbTye? Here is a nice little utility function that helps you convert a System.Type to it’s corresponding System.Data.SqlDbType. 1: private SqlDbType GetDBType(System.Type theType) 2: { 3: SqlParameter param; 4: System.ComponentModel.TypeConverter tc; 5: param = new SqlParameter(); 6: tc = System.ComponentModel.TypeDescriptor.GetConverter(param.DbType); 7: if (tc.CanConvertFrom(theType)) 8: { 9: [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.demogeek.com%252F2008%252F10%252F21%252Futility-function-to-convert-type-to-sqldbtype%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Utility%20function%20to%20convert%20Type%20to%20SqlDbType%22%20%7D);"></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Futility-function-to-convert-type-to-sqldbtype%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Futility-function-to-convert-type-to-sqldbtype%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" src="http://www.demogeek.com/wp-content/uploads/2008/10/dotnet2.png" border="0" alt="" width="75" height="42" /></p>
<p>Ever needed to convert a System.Type to its corresponding System.Data.SqlDbTye? Here is a nice little utility function that helps you convert a System.Type to it’s corresponding System.Data.SqlDbType.</p>
<pre style="min-height: 40px; overflow: auto; width: 650px; background-color: #fbfbfb; border: #cecece 1px solid; padding: 5px;">
<pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #fbfbfb;">  1: <span style="color: #0000ff">private</span> SqlDbType GetDBType(System.Type theType)</pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff;">  2: {</pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #fbfbfb;">  3:    SqlParameter param;</pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff;">  4:    System.ComponentModel.TypeConverter tc;</pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #fbfbfb;">  5:    param = <span style="color: #0000ff">new</span> SqlParameter();</pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff;">  6:    tc = System.ComponentModel.TypeDescriptor.GetConverter(param.DbType);</pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #fbfbfb;">  7:    <span style="color: #0000ff">if</span> (tc.CanConvertFrom(theType))</pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff;">  8:    {</pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #fbfbfb;">  9:        param.DbType = (DbType)tc.ConvertFrom(theType.Name);</pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff;"> 10:    }</pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #fbfbfb;"> 11:    <span style="color: #0000ff">else</span></pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff;"> 12:    {</pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #fbfbfb;"> 13:        <span style="color: #008000">// try to forcefully convert</span></pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff;"> 14:        <span style="color: #0000ff">try</span></pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #fbfbfb;"> 15:        {</pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff;"> 16:            param.DbType = (DbType)tc.ConvertFrom(theType.Name);</pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #fbfbfb;"> 17:        }</pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff;"> 18:        <span style="color: #0000ff">catch</span>(Exception e)</pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #fbfbfb;"> 19:        {</pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff;"> 20:            <span style="color: #008000">// ignore the exception</span></pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #fbfbfb;"> 21:        }</pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff;"> 22:    }</pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #fbfbfb;"> 23:    <span style="color: #0000ff">return</span> param.SqlDbType;</pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff;"> 24: }</pre>
</pre>
<div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:91fb4962-029d-4c13-81c5-2a2296b01309" class="wlWriterEditableSmartContent" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a rel="tag" href="http://technorati.com/tags/C%23">C#</a>,<a rel="tag" href="http://technorati.com/tags/Sample-Code">Sample Code</a>,<a rel="tag" href="http://technorati.com/tags/SQL">SQL</a>,<a rel="tag" href="http://technorati.com/tags/Utility">Utility</a></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Futility-function-to-convert-type-to-sqldbtype%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Futility-function-to-convert-type-to-sqldbtype%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>

]]></content:encoded>
			<wfw:commentRss>http://www.demogeek.com/2008/10/21/utility-function-to-convert-type-to-sqldbtype/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Avoid ThreadAbortException in ASP.NET with Response.Redirect</title>
		<link>http://www.demogeek.com/2008/10/21/avoiding-threadabortexception-with-responseredirect/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=avoiding-threadabortexception-with-responseredirect</link>
		<comments>http://www.demogeek.com/2008/10/21/avoiding-threadabortexception-with-responseredirect/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 15:07:11 +0000</pubDate>
		<dc:creator>TheGeek</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[ASP.NET ThreadAbortException]]></category>
		<category><![CDATA[ASP.NET Tips]]></category>
		<category><![CDATA[Avoid ThreadAbortException]]></category>
		<category><![CDATA[Response.Redirect]]></category>
		<category><![CDATA[ThreadAbortException]]></category>

		<guid isPermaLink="false">http://www.demogeek.com/2008/10/21/avoiding-threadabortexception-with-responseredirect/</guid>
		<description><![CDATA[Server.Transfer() method on ASP.NET has its own advantages and so once we get hooked up with the Server.Transfer() method we tend to avoid Response.Redirect() method as much as we can. But there are circumstances when you want to avoid Server.Transfer() to let the client know about the exact URL location and so we might end [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.demogeek.com%252F2008%252F10%252F21%252Favoiding-threadabortexception-with-responseredirect%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Avoid%20ThreadAbortException%20in%20ASP.NET%20with%20Response.Redirect%22%20%7D);"></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Favoiding-threadabortexception-with-responseredirect%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Favoiding-threadabortexception-with-responseredirect%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; margin-left: 0px; margin-right: 0px; border-right-width: 0px" src="http://www.demogeek.com/wp-content/uploads/2008/10/dotnet1.png" border="0" alt="" width="75" height="42" /></p>
<p>Server.Transfer() method on ASP.NET has its own advantages and so once we get hooked up with the Server.Transfer() method we tend to avoid Response.Redirect() method as much as we can. But there are circumstances when you want to avoid Server.Transfer() to let the client know about the exact URL location and so we might end up using Response.Redirect().</p>
<p>When you try to redirect from a page with Response.Redirect(”url”) some times you might end up with a ThreadAbortException. The cause of the exception is that at times ASP.NET, instead of calling the Thread.Abort() method it calls HttpApplication.CompleteRequest() and that messes up the ASP.NET call stack and throws the ThreadAbort exception.</p>
<p>One way to resolve this is to cover it up with a Try-Catch block.</p>
<pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; height: 29px; background-color: #ffffff;"><span style="color: #0000ff">try</span></pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; height: 29px; background-color: #ffffff;">{</pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff;">   Response.Redirect(url);</pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff;">}</pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff;"><span style="color: #0000ff">catch</span> (ThreadAbortException ex)</pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff;">{</pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff;">}</pre>
</pre>
<p>Even though it resolves the problem it truly is expensive as exceptions are always expensive. So what would be the right thing to do?</p>
<p>Here is the syntax of Response.Redirect()</p>
<pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff;"><span style="color: #0000ff">public</span> Redirect(<span style="color: #0000ff">string</span> url, <span style="color: #0000ff">bool</span> endResponse);</pre>
</pre>
<p>So to avoid the ThreadAbortException pass in “FALSE” as the second argument to the endResponse parameter,</p>
<pre>
<pre style="font-size: 12px; margin: 0em; width: 90%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff;">Response.Redirect(url, <span style="color: #0000ff">false</span>);</pre>
</pre>
<p>This should take care of the ThreadAbortException. When this parameter is set to ”false” the client is sent the redirect url, but the internal call to Response.End() is skipped. This skips the code path that would throw the exception, but the cost is that this thread doesn’t stop executing the Application events completely. Thankfully we can resolve that problem by duplicating the step that Response.End() takes under those rare circumstances, namely calling the HttpApplication.CompleteRequest() method explicitly.</p>
<p>HttpApplication.CompleteRequest() sets a variable that causes the thread to skip past most of the events in the HttpApplication event pipeline and go straight to the final event, named HttpApplication.EventEndRequest. This gracefully terminates the execution of the thread with a minimum of server resources.</p>
<div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:80e24579-d8b4-4466-95da-b5224e6d6513" class="wlWriterEditableSmartContent" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a rel="tag" href="http://technorati.com/tags/.NET">.NET</a>,<a rel="tag" href="http://technorati.com/tags/C%23">C#</a>,<a rel="tag" href="http://technorati.com/tags/How-To">How To</a>,<a rel="tag" href="http://technorati.com/tags/Demo">Demo</a></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Favoiding-threadabortexception-with-responseredirect%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Favoiding-threadabortexception-with-responseredirect%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>

]]></content:encoded>
			<wfw:commentRss>http://www.demogeek.com/2008/10/21/avoiding-threadabortexception-with-responseredirect/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Windows Vista style toolbar with CSS</title>
		<link>http://www.demogeek.com/2008/10/21/windows-vista-style-toolbar-with-css/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=windows-vista-style-toolbar-with-css</link>
		<comments>http://www.demogeek.com/2008/10/21/windows-vista-style-toolbar-with-css/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 14:48:42 +0000</pubDate>
		<dc:creator>TheGeek</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[CSS Code Sample]]></category>
		<category><![CDATA[CSS Sample]]></category>
		<category><![CDATA[Vista style toolbar with CSS]]></category>
		<category><![CDATA[Windows Vista style toolbar with CSS]]></category>

		<guid isPermaLink="false">http://www.demogeek.com/2008/10/21/windows-vista-style-toolbar-with-css/</guid>
		<description><![CDATA[Here is a great way to make some of your web toolbars resemble Windows Vista’s. The demo toolbar that they have is pretty impressive. It’s kind of hard to make out the difference. The steps look not that bad too. The good thing about this trick is that it is compatible across browsers including, Firefox [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.demogeek.com%252F2008%252F10%252F21%252Fwindows-vista-style-toolbar-with-css%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Windows%20Vista%20style%20toolbar%20with%20CSS%22%20%7D);"></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Fwindows-vista-style-toolbar-with-css%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Fwindows-vista-style-toolbar-with-css%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img title="" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="71" alt="" src="http://www.demogeek.com/wp-content/uploads/2008/10/css.png" width="75" border="0" /> </p>
<p> Here is a great way to make some of your web toolbars resemble Windows Vista’s. The demo toolbar that they have is pretty impressive. It’s kind of hard to make out the difference. The steps look not that bad too. </p>
<p><img title="" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="40" alt="" src="http://www.demogeek.com/wp-content/uploads/2008/10/image3.png" width="520" border="0" /></p>
<p>The good thing about this trick is that it is compatible across browsers including, Firefox 2, IE 6, IE 7, Opera 9.2, Safari 3.0.3 for Windows.</p>
<p>Read the full article from <a href="http://blog.itookia.com/post/How-to-create-VISTA-style-toolbar-with-CSS.aspx">here</a>. Definitely it is worth a bookmark.</p>
<p>
<div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:82bf1e71-f246-487c-8165-71f899326325" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/CSS" rel="tag">CSS</a>,<a href="http://technorati.com/tags/Vista" rel="tag">Vista</a>,<a href="http://technorati.com/tags/How-To" rel="tag">How To</a>,<a href="http://technorati.com/tags/Demo" rel="tag">Demo</a></div>
</p>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Fwindows-vista-style-toolbar-with-css%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Fwindows-vista-style-toolbar-with-css%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>

]]></content:encoded>
			<wfw:commentRss>http://www.demogeek.com/2008/10/21/windows-vista-style-toolbar-with-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix for EXECUTE permission denied on object &#8217;sp_sdidebug&#8217;, database &#8216;master&#8217;, owner &#8216;dbo&#8217; error</title>
		<link>http://www.demogeek.com/2008/10/21/execute-permission-denied-on-object-sp_sdidebug-database-master-owner-dbo-error/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=execute-permission-denied-on-object-sp_sdidebug-database-master-owner-dbo-error</link>
		<comments>http://www.demogeek.com/2008/10/21/execute-permission-denied-on-object-sp_sdidebug-database-master-owner-dbo-error/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 07:43:44 +0000</pubDate>
		<dc:creator>TheGeek</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[EXECUTE permission denied]]></category>
		<category><![CDATA[SQL Server Error]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.demogeek.com/2008/10/21/execute-permission-denied-on-object-sp_sdidebug-database-master-owner-dbo-error/</guid>
		<description><![CDATA[If you are developing web services with ASP.NET you must have faced this error, EXECUTE permission denied on object ’sp_sdidebug’, database ‘master’, owner ‘dbo’. It&#8217;s a pretty vague error with misleading and confusing information. Even if you search online you wouldn&#8217;t be able to find a solution that&#8217;s convincing. But here is a solution that [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.demogeek.com%252F2008%252F10%252F21%252Fexecute-permission-denied-on-object-sp_sdidebug-database-master-owner-dbo-error%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Fix%20for%20EXECUTE%20permission%20denied%20on%20object%20%26rsquo%3Bsp_sdidebug%26rsquo%3B%2C%20database%20%26lsquo%3Bmaster%26rsquo%3B%2C%20owner%20%26lsquo%3Bdbo%26rsquo%3B%20error%22%20%7D);"></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Fexecute-permission-denied-on-object-sp_sdidebug-database-master-owner-dbo-error%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Fexecute-permission-denied-on-object-sp_sdidebug-database-master-owner-dbo-error%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" src="http://www.demogeek.com/wp-content/uploads/2008/10/visualstudiologo1.jpg" border="0" alt="" width="75" height="47" /></p>
<p>If you are developing web services with ASP.NET you must have faced this error,</p>
<blockquote><p>EXECUTE permission denied on object ’sp_sdidebug’, database ‘master’, owner ‘dbo’.</p></blockquote>
<p>It&#8217;s a pretty vague error with misleading and confusing information. Even if you search online you wouldn&#8217;t be able to find a solution that&#8217;s convincing. But here is a solution that worked for me. There is no guarantee that it would work for you but you can certainly give this a try.</p>
<p><span style="text-decoration: underline;">Please note that this solution may only be effective if you are debugging your ASP.NET web page or web service and are manually attaching the worker process.</span></p>
<p><strong>1. Attach to the ASP.NET worker process.</strong></p>
<p><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" src="http://www.demogeek.com/wp-content/uploads/2008/10/819817-d7b0fc257399006f35725e9e1401782a1.png" border="0" alt="" width="244" height="222" /></p>
<p><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" src="http://www.demogeek.com/wp-content/uploads/2008/10/820817-b0e40ad9cf367e9f1ed8c4bcac2bc9c31.png" border="0" alt="" width="434" height="305" /></p>
<p>Click on the &#8220;Debug&#8221; menu and click on the &#8220;Attach to Process&#8230;&#8221; menu option. Then in the dialog box choose &#8220;aspnet_wp.exe&#8221; process and click on the &#8220;Select&#8230;&#8221; button at the top.</p>
<p><strong>2. Choose to debug Managed Code.</strong></p>
<p><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" src="http://www.demogeek.com/wp-content/uploads/2008/10/821817-1f59428021956ba914ecaceba4fea8851.png" border="0" alt="" width="472" height="252" /></p>
<p>You will get the “Select Code Type” dialog with the “Automatically determine the type of code to debug” selected. Instead choose the &#8220;Debug these code types&#8221; option and then choose the “Managed” checkbox.</p>
<p>Try to recreate the problem again and I&#8217;m sure it works this time without the “EXECUTE permission denied on object ’sp_sdidebug’, database ‘master’, owner ‘dbo’.” error.</p>
<p>Hope it helps. Let us know in comments of any other alternate solutions to this issue.
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Fexecute-permission-denied-on-object-sp_sdidebug-database-master-owner-dbo-error%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Fexecute-permission-denied-on-object-sp_sdidebug-database-master-owner-dbo-error%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>

]]></content:encoded>
			<wfw:commentRss>http://www.demogeek.com/2008/10/21/execute-permission-denied-on-object-sp_sdidebug-database-master-owner-dbo-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fix for: &quot;Unable to get the project file from the Web server&quot; error</title>
		<link>http://www.demogeek.com/2008/10/21/fix-for-unable-to-get-the-project-file-from-the-web-server-error/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fix-for-unable-to-get-the-project-file-from-the-web-server-error</link>
		<comments>http://www.demogeek.com/2008/10/21/fix-for-unable-to-get-the-project-file-from-the-web-server-error/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 07:39:53 +0000</pubDate>
		<dc:creator>TheGeek</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[ASP.NET Error]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[project file]]></category>
		<category><![CDATA[Unable to get the project file from the web server]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Visual Studio Error]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://www.demogeek.com/2008/10/21/fix-for-unable-to-get-the-project-file-from-the-web-server-error/</guid>
		<description><![CDATA[If you are a decently experienced .NET Developer who has to deal with ASP.NET/Visual Studio.NET IDE then I&#8217;m sure you must have came across an annoying Visual Studio error, “Unable to get the project file from Web server. Unable to open Web project &#60;projectname&#62;. The file path &#60;path&#62; does not correspond to the URL &#60;URL&#62;. [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fwww.demogeek.com%252F2008%252F10%252F21%252Ffix-for-unable-to-get-the-project-file-from-the-web-server-error%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Fix%20for%3A%20%26quot%3BUnable%20to%20get%20the%20project%20file%20from%20the%20Web%20server%26quot%3B%20error%22%20%7D);"></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Ffix-for-unable-to-get-the-project-file-from-the-web-server-error%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Ffix-for-unable-to-get-the-project-file-from-the-web-server-error%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" src="http://www.demogeek.com/wp-content/uploads/2008/10/visualstudiologo.jpg" border="0" alt="" width="75" height="47" /></p>
<p>If you are a decently experienced .NET Developer who has to deal with ASP.NET/Visual Studio.NET IDE then I&#8217;m sure you must have came across an annoying Visual Studio error,</p>
<p><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" src="http://www.demogeek.com/wp-content/uploads/2008/10/image1.png" border="0" alt="" width="500" height="99" /></p>
<blockquote><p><strong>“Unable to get the project file from Web server. Unable to open Web project &lt;projectname&gt;. The file path &lt;path&gt; does not correspond to the URL &lt;URL&gt;. The two need to map to the save server location. HTTP Error 403: Access Forbidden.”</strong></p></blockquote>
<p>It&#8217;s very annoying because it wouldn&#8217;t let you open the project file in Visual Studio. This particularly happens when you move an ASP.NET website or web service to a different machine or to a different web host.</p>
<p>So, how do we fix this error?</p>
<p>From the above message it was obvious that it has something to do with the .webinfo file having a wrong mapping. Sometimes it might not be the case. Even if you make sure the IIS Virtual Directory points to the correct local path, recreated IIS application etc. you might still get the same error. Well, no worries, this simple fix would work.</p>
<p>Just <span style="text-decoration: underline;">delete the virtual directory in IIS and then recreate it again</span>. <span style="text-decoration: underline;">Restart IIS</span> and bingo, your Visual IDE should play nice with IIS again from now on.</p>
<p>Hope it helps.</p>
<p><span style="text-decoration: underline;">PS:</span> If the above solution doesn’t work or deleting the virtual directory is not a choice for you (for whatever reasons) then try this one. Find the “<strong>VSWebCache\&lt;ProjectName&gt;</strong>” folder under your Documents and Settings folder and delete it and try it again.
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Ffix-for-unable-to-get-the-project-file-from-the-web-server-error%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.demogeek.com%2F2008%2F10%2F21%2Ffix-for-unable-to-get-the-project-file-from-the-web-server-error%2F&amp;source=askar&amp;style=normal&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>

]]></content:encoded>
			<wfw:commentRss>http://www.demogeek.com/2008/10/21/fix-for-unable-to-get-the-project-file-from-the-web-server-error/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

