<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Anuup&#039;s Blog</title>
	<atom:link href="http://anuupbasant.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://anuupbasant.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Fri, 18 Sep 2009 18:53:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='anuupbasant.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Anuup&#039;s Blog</title>
		<link>http://anuupbasant.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://anuupbasant.wordpress.com/osd.xml" title="Anuup&#039;s Blog" />
	<atom:link rel='hub' href='http://anuupbasant.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Create flexible page layouts (using CSS)</title>
		<link>http://anuupbasant.wordpress.com/2009/09/18/create-flexible-page-layouts-using-css/</link>
		<comments>http://anuupbasant.wordpress.com/2009/09/18/create-flexible-page-layouts-using-css/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 18:21:29 +0000</pubDate>
		<dc:creator>anuupbasant</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://anuupbasant.wordpress.com/?p=53</guid>
		<description><![CDATA[With CSS,  especially its border attribute, an entire page can be laid out without a single TABLE tag or spacer GIF. Figure A Sample Web page layout Let&#8217;s use the layout in Figure A as an example. Header &#60;head&#62;  &#60;style type="text/css"&#62;  &#60;!--  .header {        background-color:#336699;        height:75px;        border:1px solid #000000;  }  --&#62;  &#60;/style&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anuupbasant.wordpress.com&amp;blog=9325977&amp;post=53&amp;subd=anuupbasant&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>With CSS,  especially its border attribute, an entire page can be laid out without a single TABLE tag or spacer GIF.</p>
<table style="margin:18px 0 25px;padding:0;" border="0">
<tbody>
<tr>
<td style="font-weight:bold;margin-bottom:2px;display:block;padding:0;">Figure A</td>
</tr>
<tr>
<td style="padding:0;" align="center"><img style="border:0 initial initial;" src="http://articles.techrepublic.com.com/i/tr/cms/contentPics/u00220030414shm01_A.gif" alt="" width="526" height="394" /></td>
</tr>
<tr>
<td style="font-size:.85em;line-height:1.05em;display:block;color:#333333;margin:4px 0 0;padding:0;">Sample Web page layout</td>
</tr>
</tbody>
</table>
<p>Let&#8217;s use the layout in Figure A as an example.</p>
<p><strong> </strong></p>
<p><strong>Header</strong></p>
<blockquote>
<pre>&lt;head&gt;
 &lt;style type="text/css"&gt;
 &lt;!--
 .header {
        background-color:#336699;
        height:75px;
        border:1px solid #000000;
 }
 --&gt;
 &lt;/style&gt;
 &lt;/head&gt;
 &lt;body&gt;
 &lt;div&gt;&amp;nbsp;&lt;/div&gt;
 &lt;/body&gt;</pre>
</blockquote>
<p>This code creates a 75-pixel tall, light blue area that has a 1-pixel black border on all four sides. To ensure compatibility with all three major browsers and to allow the layout to fill the browser window, I do not set a width attribute for the header.</p>
<p><strong>TopNav</strong></p>
<blockquote>
<pre>&lt;style type="text/css"&gt;
 &lt;!--
 .topnav {

        background-color:#003366;
        border-left:1px solid #000000;
        border-bottom:1px solid #000000;
        border-right:1px solid #000000;
 }
 --&gt;
 &lt;/style&gt;
 &lt;/head&gt;
 &lt;body&gt;
 &lt;div&gt;&amp;nbsp;&lt;/div&gt;
 &lt;div&gt;&amp;nbsp;&lt;/div&gt;
 &lt;/body&gt;</pre>
</blockquote>
<p>Just below the header is a dark blue area that has a 1-pixel black border around three sides. I don&#8217;t use a top border on the topnav because I&#8217;m using the header&#8217;s bottom border to divide the two areas. As with the header, I don&#8217;t specify a width for the topnav.</p>
<p><strong>Leftnav </strong></p>
<blockquote>
<pre> &lt;style type="text/css"&gt;
 &lt;!--
 .leftnav {
        width:200px;
        height:450px;
        background-color:#CCCCCC;
        border-left:1px solid #000000;
        border-right:1px solid #000000;
        float:left;
 }
 --&gt;
 &lt;/style&gt;
 &lt;/head&gt;
 &lt;body&gt;
 &lt;div&gt;&amp;nbsp;&lt;/div&gt;
 &lt;div&gt;&amp;nbsp;&lt;/div&gt;
 &lt;div&gt;&amp;nbsp;&lt;/div&gt;
 &lt;/body&gt;</pre>
</blockquote>
<p>Now there is a 200-pixel by 450-pixel gray bar running down the left side of the page. It has a 1-pixel black border on the left and right but not the top and bottom. It will use the topnav&#8217;s bottom border and the footer instead. Note that the leftnav uses the float attribute. By setting the float to &#8220;left,&#8221; the leftnav will always sit to the left of the element that comes after it. In this example, it will sit to the left of the body element.</p>
<p>The body area is 450-pixels tall with a 1-pixel black border on its right side. The body uses the topnav&#8217;s bottom border, the leftnav&#8217;s right border, and the footer to give the illusion of a 1-pixel border on all four sides. As with the header and topnav, I don&#8217;t use a width attribute on the body.</p>
<blockquote>
<pre>&lt;html&gt;
 &lt;head&gt;
 &lt;style type="text/css"&gt;
 &lt;!--
 .header {
        background-color:#336699;
        height:75px;
        border:1px solid #000000;
 }
 .topnav {
        background-color:#003366;
        border-left:1px solid #000000;
        border-bottom:1px solid #000000;
        border-right:1px solid #000000;
 }
 .leftnav {
        width:200px;
        height:450px;
        background-color:#CCCCCC;
        border-left:1px solid #000000;
        border-right:1px solid #000000;
        float:left;
 }
 .body {
        height:450px;
        background-color:#FFFFFF;
        border-right:1px solid #000000;
 }
 --&gt;
 &lt;/style&gt;
 &lt;/head&gt;
 &lt;body&gt;
 &lt;div&gt;&amp;nbsp;&lt;/div&gt;
 &lt;div&gt;&amp;nbsp;&lt;/div&gt;
 &lt;div&gt;&amp;nbsp;&lt;/div&gt;
 &lt;div&gt;&amp;nbsp;&lt;/div&gt;
 &lt;/body&gt;
 &lt;/html&gt;</pre>
</blockquote>
<p>The final area of this layout is the footer. To create the footer, I add the code in Listing E.</p>
<blockquote>
<pre>&lt;html&gt;
 &lt;head&gt;
 &lt;style type="text/css"&gt;
 &lt;!--
 .header {
        background-color:#336699;
        height:75px;
        border:1px solid #000000;
 }
 .topnav {
        background-color:#003366;
        border-left:1px solid #000000;
        border-bottom:1px solid #000000;
        border-right:1px solid #000000;
 }
 .leftnav {
        width:200px;
        height:450px;
        background-color:#CCCCCC;
        border-left:1px solid #000000;
        border-right:1px solid #000000;
        float:left;
 }
 .body {
        height:450px;
        background-color:#FFFFFF;
        border-right:1px solid #000000;
 }
 .footer {
        background-color:#000000;
        clear:both;
 }
 --&gt;
 &lt;/style&gt;
 &lt;/head&gt;
 &lt;body&gt;
 &lt;div&gt;&amp;nbsp;&lt;/div&gt;
 &lt;div&gt;&amp;nbsp;&lt;/div&gt;
 &lt;div&gt;&amp;nbsp;&lt;/div&gt;
 &lt;div&gt;&amp;nbsp;&lt;/div&gt;
 &lt;div&gt;&amp;nbsp;&lt;/div&gt;
 &lt;/body&gt;
 &lt;/html&gt;</pre>
</blockquote>
<p>Note two things about the footer. First, no border attributed is used. Since the footer and all of the other elements&#8217; borders are black, there will be the illusion of a black border around the footer. Second, I use the clear attribute. With clear set to &#8220;none,&#8221; the footer will not be affected by the relative positioning of the other elements. For example, if the body element had used &#8220;float:left&#8221; (which would try to place the footer to the right of the body), the &#8220;clear:both&#8221; in the footer would override the float attribute and place the footer at the bottom where it belongs.</p>
<p><strong>Navigation bar</strong><br />
Now that I&#8217;ve completed the basic page layout, I can use CSS2 borders to create faux buttons in the topnav area.</p>
<p>As with the page layout, all of the faux button effects can be created with CSS2. Listing F offers the code for adding the navigation bar.</p>
<p>Now a row of four buttons appears inside the topnav area. Each one has a 1-pixel black border on the right. The first button uses the border of the topnav area to create its left border. The other buttons use the right border of the button to their left to create their left borders.</p>
<p>I’ve used a “buttons strong” style to highlight the button that corresponds with the page the user is currently on. For example, if this were my home page, I would want to show the “home” button in a different style from the other buttons. Using the “buttons strong” style, I can create a distinct look for any button simply by placing a <strong> tag around the text.</strong></p>
<p><strong> </strong></p>
<p>Because the styles for the other buttons are applied to hyperlinks, I can use different link behaviors, such as hover, to trigger different styles. This allows me to create a mouseover effect that changes the button’s background from blue to dark gray when moused over. Without CSS2, this type of effect typically requires the use of two graphics, one for the default state and one for the mouseover state.</p>
<p>Site updates are easier<br />
Not only does CSS2 result in cleaner code, but it also allows you to update your site faster and easier than HTML-only pages. Instead of having a bunch of hard-coded HTML pages that each need to be changed manually, CSS2 allows you to make site-wide changes by simply updating the style sheet. I used an inline style sheet in this example; however, you should use an external style sheet to get all of the benefits of CSS2.</p>
<p>For example, if you get tired of having a leftnav bar and want to try it on the right, you can just change the style information for the leftnav and the body. The changes will be reflected on every HTML page that uses that style sheet.</p>
<p>In addition, if you want to change the name of one of your buttons, you don&#8217;t need to create new button graphics. Just change the text in the HTML file.</p>
<p>So there it is—a cross-browser-compatible, CSS2 page layout with no tables, spacer GIFs, or button graphics that is simple to update.</p>
<p><a title="More" href="http://articles.techrepublic.com.com/5100-10878_11-5035042.html?tag=rbxccnbtr1#" target="_blank">More</a></p>
<h1 style="font-size:1.8em;font-weight:normal;line-height:1.2em;margin:10px;"><a href="http://articles.techrepublic.com.com/5100-10878_11-5345057.html?tag=rbxccnbtr1" target="_blank">Create hybrid graphical/CSS buttons</a></h1>
<h1 style="font-size:1.8em;font-weight:normal;line-height:1.2em;margin:10px;"><a href="http://articles.techrepublic.com.com/5100-10878_11-5047689.html?tag=btxcsim" target="_blank">Graphics 101</a></h1>
<h1 style="font-size:1.8em;font-weight:normal;line-height:1.2em;margin:10px;"><a href="http://articles.techrepublic.com.com/5100-10878_11-5323375.html?tag=rbxccnbtr1" target="_blank">Designing 3D buttons with pure CSS</a></h1>
<h1 style="font-size:1.3em;margin:0;padding:0;"><a style="color:black;text-decoration:none;outline-style:none;outline-width:initial;outline-color:initial;cursor:pointer;font-weight:normal;font-size:1.4em;" href="http://techrepublic.com.com/5208-11195-0.html?forumID=87&amp;threadID=185110&amp;start=0">Framed style Layout..with CSS</a></h1>
<h1 style="font-size:1.8em;font-weight:normal;line-height:1.2em;margin:10px;"><a href="http://articles.techrepublic.com.com/5100-10878_11-5810696.html?tag=rbxccnbtr1" target="_blank">Creating indented navigation lists</a></h1>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anuupbasant.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anuupbasant.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anuupbasant.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anuupbasant.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anuupbasant.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anuupbasant.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anuupbasant.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anuupbasant.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anuupbasant.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anuupbasant.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anuupbasant.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anuupbasant.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anuupbasant.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anuupbasant.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anuupbasant.wordpress.com&amp;blog=9325977&amp;post=53&amp;subd=anuupbasant&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anuupbasant.wordpress.com/2009/09/18/create-flexible-page-layouts-using-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d15c7c83ba83526a12e39e00402e413e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anuupbasant</media:title>
		</media:content>

		<media:content url="http://articles.techrepublic.com.com/i/tr/cms/contentPics/u00220030414shm01_A.gif" medium="image" />
	</item>
		<item>
		<title>Creating a horizontal navigation bar (using CSS)</title>
		<link>http://anuupbasant.wordpress.com/2009/09/18/creating-a-horizontal-navigation-bar-using-css/</link>
		<comments>http://anuupbasant.wordpress.com/2009/09/18/creating-a-horizontal-navigation-bar-using-css/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 17:59:11 +0000</pubDate>
		<dc:creator>anuupbasant</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://anuupbasant.wordpress.com/?p=51</guid>
		<description><![CDATA[Now that tables are no longer recommended for positioning any nontabular page content, many Web authors are looking for ways to create navigation bars using structural XHTML markup and CSS formatting.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anuupbasant.wordpress.com&amp;blog=9325977&amp;post=51&amp;subd=anuupbasant&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:1.5em;font-weight:bold;">A simple CSS navigation bar</span><br />
Perhaps the simplest solution to a CSS-styled text navigation bar is to put all the links in a single line of text, as is done in <a style="color:#003399;text-decoration:none;outline-style:none;outline-width:initial;outline-color:initial;cursor:pointer;" href="http://www.meadhra.com/cnet/040204/ExampleA.html" target="_target">Example A</a>.</p>
<p>This approach seems logical and straightforward. The problem is that having all the links in a single line of text provides precious little control over spacing around and between the links. So, to avoid crowding the links together, you usually end up inserting pipe (vertical bar) and nonbreaking space characters as spacers.</p>
<p>As the following code shows, the result is hardly the kind of clean, structural markup that we&#8217;re looking for:<br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">&lt;div id=&#8221;navbar1&#8243;&gt;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">&amp;nbsp;&amp;nbsp;&lt;a href=&#8221;link1a.html&#8221;&gt;Button 1&lt;/a&gt; &amp;nbsp;|&amp;nbsp; &lt;a<br />
href=&#8221;link2a.html &#8220;&gt;Button 2&lt;/a&gt; &amp;nbsp;|&amp;nbsp; &lt;a href=&#8221;link3a.html &#8220;&gt;<br />
Button 3&lt;/a&gt;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">&lt;/div&gt;</span></p>
<p>The markup gets even more cluttered if you add &lt;span&gt; tags around each link in order to apply the additional CSS styles that create button backgrounds and rollover effects.</p>
<p><span style="font-size:1.5em;font-weight:bold;">A list-based CSS navigation bar</span><br />
Another approach to creating a CSS navigation bar is to mark up the links as an unordered list using the &lt;ul&gt; and &lt;li&gt; tags.</p>
<p>Using an unordered list for a navigation bar may seem counterintuitive at first because we&#8217;re accustomed to thinking of the unordered list as a stacked column of list items, each preceded by a bullet. That doesn&#8217;t seem to fit the horizontal orientation of a navigation bar.</p>
<p>However, the logical structure of a list as a collection of individual list items is appropriate for the links in a navigation bar; and CSS rules enable you to override the default presentation of the list items to eliminate the bullets and arrange the list items to flow across the page instead of down the page.</p>
<p>With that in mind, let&#8217;s look at <a style="color:#003399;text-decoration:none;outline-style:none;outline-width:initial;outline-color:initial;cursor:pointer;" href="http://www.meadhra.com/cnet/040204/ExampleB.html" target="_target">Example B</a> of the CSS styles and XHTML markup for a navigation bar based on an unordered list.</p>
<p>Here&#8217;s the XHTML markup:<br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">&lt;div id=&#8221;navbar2&#8243;&gt;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">&lt;ul&gt;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">&lt;li&gt;&lt;a href=&#8221;link1.html&#8221;&gt;Button 1&lt;/a&gt;&lt;/li&gt;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">&lt;li&gt;&lt;a href=&#8221;link2.html &#8220;&gt;Button 2&lt;/a&gt;&lt;/li&gt;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">&lt;li&gt;&lt;a href=&#8221;link3.html &#8220;&gt;Button 3&lt;/a&gt;&lt;/li&gt;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">&lt;/ul&gt;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">&lt;/div&gt;</span></p>
<p>Regular readers of this column may recognize this as being the same markup that I&#8217;ve used for other CSS button examples. One of the appealing things about this technique is that the markup is the same for any group of buttons, whether they&#8217;re stacked in a column to one side of the main body text or arranged horizontally in a navigation bar across the top of the page.</p>
<p>Here&#8217;s the CSS code that transforms the list of text links into a navigation bar:<br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">div#navbar2 {</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">��� height: 30px;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">��� width: 100%;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">��� border-top: solid #000 1px;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">��� border-bottom: solid #000 1px;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">��� background-color: #336699;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">}</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">div#navbar2 ul {</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">��� margin: 0px;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">��� padding: 0px;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">��� font-family: Arial, Helvetica, sans-serif;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">��� font-size: small;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">��� color: #FFF;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">��� line-height: 30px;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">��� white-space: nowrap;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">}</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">div#navbar2 li {</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">��� list-style-type: none;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">��� display: inline;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">}</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">div#navbar2 li a {</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">��� text-decoration: none;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">��� padding: 7px 10px;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">��� color: #FFF;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">}</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">div#navbar2 lia:link {</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">��� color: #FFF:</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">}</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">div#navbar2 lia:visited {</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">��� color: #CCC;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">}</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">div#navbar2 lia:hover {</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">��� font-weight: bold;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">��� color: #FFF;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">��� background-color: #3366FF;</span><br />
<span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">}</span></p>
<p>The <em>div#navbar2</em> style sets the dimensions and background color of the <em>div</em> that contains the navigation bar links.</p>
<p>The <em>div#navbar2</em><em>ul</em> style includes <em>margin</em> and <em>padding</em> declarations to override the default spacing assigned to unordered lists and sets the general text formatting. The<em>white-space:</em><em>nowrap</em> declaration keeps the list on one horizontal line, even if the browser window is too narrow to display the whole line.</p>
<p>The real secret to this technique is in the <em>div#navbar2</em><em>li</em> style. The <em>list-style-type:</em><em>none</em>declaration removes the bullets that normally mark each list item, and the <em>display:</em><em>inline</em>declaration causes the list items to flow from left-to-right across the page instead of each item appearing in a separate line.</p>
<p>Another key element of this technique is the <em>div#navbar2</em><em>li</em> a rule. The <em>text-decoration:</em><em>none</em> declaration removes the underscore that is normal for links, and the<em>padding:</em><em>7px</em><em>10px</em> declaration controls the spacing of the links in the navigation bar. The left and right padding controls the horizontal spacing, while the top and bottom padding is needed to make the colored background of the rollover effect (and the clickable area of the button) extend the full height of the navigation bar. You could also add left and right margin values if you want additional space between the buttons.</p>
<p>Finally, the rules for the <em>:link</em>, <em>:visited</em>, and <em>:hover</em>pseudoclasses set the color changes for the rollover effects.</p>
<p>You can use variations of this same basic technique to create many different navigation bar effects, including the popular &#8220;folder tab&#8221; look.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anuupbasant.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anuupbasant.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anuupbasant.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anuupbasant.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anuupbasant.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anuupbasant.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anuupbasant.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anuupbasant.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anuupbasant.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anuupbasant.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anuupbasant.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anuupbasant.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anuupbasant.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anuupbasant.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anuupbasant.wordpress.com&amp;blog=9325977&amp;post=51&amp;subd=anuupbasant&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anuupbasant.wordpress.com/2009/09/18/creating-a-horizontal-navigation-bar-using-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d15c7c83ba83526a12e39e00402e413e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anuupbasant</media:title>
		</media:content>
	</item>
		<item>
		<title>Superimpose text on image (using CSS)</title>
		<link>http://anuupbasant.wordpress.com/2009/09/18/superimpose-text-on-image-using-css/</link>
		<comments>http://anuupbasant.wordpress.com/2009/09/18/superimpose-text-on-image-using-css/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 17:51:25 +0000</pubDate>
		<dc:creator>anuupbasant</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://anuupbasant.wordpress.com/?p=48</guid>
		<description><![CDATA[The easiest way to superimpose text is using CSS. Advantages: Its easy to implement, reduces file size, ensures sharpness of image, editing the superimposed text is easy, positioning the text is very flexible and the  text is fully accessible to special-needs visitors and to search engines. div#test {background-image:  url(/images/backgroundimage.JPG);background-repeat: no-repeat;height: 500px;width: 380px;}div#testtext {position: relative;height: auto;width: auto;left: 25px;top: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anuupbasant.wordpress.com&amp;blog=9325977&amp;post=48&amp;subd=anuupbasant&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The easiest way to superimpose text is using CSS.</p>
<p>Advantages:</p>
<p>Its easy to implement, reduces file size, ensures sharpness of image, editing the superimposed text is easy, positioning the text is very flexible and the  text is fully accessible to special-needs visitors and to search engines.</p>
<p><span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">div#test {</span><span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">background-image:  url(/images/backgroundimage.JPG);</span><span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">background-repeat: no-repeat;</span><span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">height: 500px;</span><span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">width: 380px;</span><span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">}</span><span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">div#testtext {</span><span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">position: relative;</span><span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">height: auto;</span><span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">width: auto;</span><span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">left: 25px;</span><span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">top: 200px;</span><span style="display:block;font-family:'courier new', courier, monospace;font-size:.95em;margin:12px 10px;">}</span></p>
<p>&lt;div id=&#8221;test&#8221;&gt;&lt;div id=&#8221;testtext&#8221;&gt;Superimposed Text&lt;/div&gt;&lt;/div&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anuupbasant.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anuupbasant.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anuupbasant.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anuupbasant.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anuupbasant.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anuupbasant.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anuupbasant.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anuupbasant.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anuupbasant.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anuupbasant.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anuupbasant.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anuupbasant.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anuupbasant.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anuupbasant.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anuupbasant.wordpress.com&amp;blog=9325977&amp;post=48&amp;subd=anuupbasant&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anuupbasant.wordpress.com/2009/09/18/superimpose-text-on-image-using-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d15c7c83ba83526a12e39e00402e413e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anuupbasant</media:title>
		</media:content>
	</item>
		<item>
		<title>Access to the path is denied error</title>
		<link>http://anuupbasant.wordpress.com/2009/09/18/access-to-the-path-is-denied-error/</link>
		<comments>http://anuupbasant.wordpress.com/2009/09/18/access-to-the-path-is-denied-error/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 14:15:35 +0000</pubDate>
		<dc:creator>anuupbasant</dc:creator>
				<category><![CDATA[ASP.Net]]></category>

		<guid isPermaLink="false">http://anuupbasant.wordpress.com/?p=43</guid>
		<description><![CDATA[After publishing the site if you get the following error: Access to the path &#8216;D:\inetpub\mywebfolder\subfoldername\filename&#8217; ASP.Net is not authorized to access the requested resource. Consider grating access rights to the resource to the ASP.Net request identity. To impersonate the original caller: 1. Add the following to web.config &#60;authentication mode=&#8221;Windows&#8221; /&#62; &#60;identity impersonate=&#8221;true&#8221; /&#62;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anuupbasant.wordpress.com&amp;blog=9325977&amp;post=43&amp;subd=anuupbasant&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After publishing the site if you get the following error:</p>
<p>Access to the path &#8216;<strong>D:\inetpub\mywebfolder\subfoldername\filename&#8217;</strong></p>
<p>ASP.Net is not authorized to access the requested resource. Consider grating access rights to the resource to the ASP.Net request identity.</p>
<p>To impersonate the original caller:</p>
<p><strong>1. Add the following to web.config</strong></p>
<p>&lt;authentication mode=&#8221;Windows&#8221; /&gt;</p>
<p>&lt;identity impersonate=&#8221;true&#8221; /&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anuupbasant.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anuupbasant.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anuupbasant.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anuupbasant.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anuupbasant.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anuupbasant.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anuupbasant.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anuupbasant.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anuupbasant.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anuupbasant.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anuupbasant.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anuupbasant.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anuupbasant.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anuupbasant.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anuupbasant.wordpress.com&amp;blog=9325977&amp;post=43&amp;subd=anuupbasant&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anuupbasant.wordpress.com/2009/09/18/access-to-the-path-is-denied-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d15c7c83ba83526a12e39e00402e413e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anuupbasant</media:title>
		</media:content>
	</item>
		<item>
		<title>Get Date Name in Query</title>
		<link>http://anuupbasant.wordpress.com/2009/09/05/get-date-name-in-query/</link>
		<comments>http://anuupbasant.wordpress.com/2009/09/05/get-date-name-in-query/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 13:58:31 +0000</pubDate>
		<dc:creator>anuupbasant</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://anuupbasant.wordpress.com/?p=40</guid>
		<description><![CDATA[To get date Name in SQL Server select datename(mm,getdate()) In MS-Access: select format(date(),'mmmm') In Oracle: SELECT to_char(sysdate,'month') from dual<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anuupbasant.wordpress.com&amp;blog=9325977&amp;post=40&amp;subd=anuupbasant&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To get date Name in SQL Server</p>
<pre><strong>select datename(mm,getdate())</strong>

In MS-Access:

<strong>select format(date(),'mmmm')</strong>

In Oracle:

SELECT to_char(sysdate,'month') from dual</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anuupbasant.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anuupbasant.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anuupbasant.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anuupbasant.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anuupbasant.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anuupbasant.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anuupbasant.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anuupbasant.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anuupbasant.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anuupbasant.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anuupbasant.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anuupbasant.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anuupbasant.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anuupbasant.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anuupbasant.wordpress.com&amp;blog=9325977&amp;post=40&amp;subd=anuupbasant&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anuupbasant.wordpress.com/2009/09/05/get-date-name-in-query/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d15c7c83ba83526a12e39e00402e413e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anuupbasant</media:title>
		</media:content>
	</item>
		<item>
		<title>Fade effect for marquee</title>
		<link>http://anuupbasant.wordpress.com/2009/09/05/fade-effect-for-marquee/</link>
		<comments>http://anuupbasant.wordpress.com/2009/09/05/fade-effect-for-marquee/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 13:53:34 +0000</pubDate>
		<dc:creator>anuupbasant</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://anuupbasant.wordpress.com/?p=38</guid>
		<description><![CDATA[Works in IE not crome. &#60;marquee height=&#8221;70&#8243; width=&#8221;145&#8243; direction=&#8221;up&#8221; scrollamount=&#8221;2&#8243; style=&#8221;Filter:Alpha(Opacity=100, FinishOpacity=0, Style=2, StartX=0, StartY=90, FinishX=0, FinishY=0);&#8221;&#62; This text fades when moving &#60;/marquee&#62;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anuupbasant.wordpress.com&amp;blog=9325977&amp;post=38&amp;subd=anuupbasant&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="border:0 solid #bbbbbb;padding:2px;">Works in IE not crome.</p>
<p style="border:0 solid #bbbbbb;padding:2px;">
&lt;marquee height=&#8221;70&#8243; width=&#8221;145&#8243; direction=&#8221;up&#8221; scrollamount=&#8221;2&#8243; style=&#8221;Filter:Alpha(Opacity=100, FinishOpacity=0, Style=2, StartX=0, StartY=90, FinishX=0, FinishY=0);&#8221;&gt;</p>
<p style="border:0 solid #bbbbbb;padding:2px;">This text fades when moving</p>
<p style="border:0 solid #bbbbbb;padding:2px;">&lt;/marquee&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anuupbasant.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anuupbasant.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anuupbasant.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anuupbasant.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anuupbasant.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anuupbasant.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anuupbasant.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anuupbasant.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anuupbasant.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anuupbasant.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anuupbasant.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anuupbasant.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anuupbasant.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anuupbasant.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anuupbasant.wordpress.com&amp;blog=9325977&amp;post=38&amp;subd=anuupbasant&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anuupbasant.wordpress.com/2009/09/05/fade-effect-for-marquee/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d15c7c83ba83526a12e39e00402e413e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anuupbasant</media:title>
		</media:content>
	</item>
		<item>
		<title>Dissable browser&#8217;s back buttton</title>
		<link>http://anuupbasant.wordpress.com/2009/09/05/dissable-browsers-back-buttton/</link>
		<comments>http://anuupbasant.wordpress.com/2009/09/05/dissable-browsers-back-buttton/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 13:46:24 +0000</pubDate>
		<dc:creator>anuupbasant</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://anuupbasant.wordpress.com/?p=35</guid>
		<description><![CDATA[If you want to disable back button using C# code, then you need to write this code either in Page_load event or in Page_Init event The code disables browser caching. protected void Page_Init(object Sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1)); Response.Cache.SetNoStore(); } Read More<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anuupbasant.wordpress.com&amp;blog=9325977&amp;post=35&amp;subd=anuupbasant&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="border:0 solid #bbbbbb;padding:2px;"><span style="font-weight:bold;">If you want to disable back button using C# code, then you need to write this code either in Page_load event or in Page_Init event </span></p>
<p>The code disables browser caching.</p>
<p style="border:0 solid #bbbbbb;padding:2px;"><span style="font-weight:bold;"><em>protected void Page_Init(object Sender, EventArgs e)</em></span><em><br />
</em><span style="font-weight:bold;"><em>{</em></span><em><br />
Response.Cache.SetCacheability(HttpCacheability.NoCache);<br />
Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1));<br />
Response.Cache.SetNoStore();<br />
</em><span style="font-weight:bold;"><em>}</em></span></p>
<p style="border:0 solid #bbbbbb;padding:2px;"><a title="Dissable Browser's Back Button" href="http://csharpdotnetfreak.blogspot.com/2009/04/disable-browser-back-button-javascript.html" target="_blank">Read More</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anuupbasant.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anuupbasant.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anuupbasant.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anuupbasant.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anuupbasant.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anuupbasant.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anuupbasant.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anuupbasant.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anuupbasant.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anuupbasant.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anuupbasant.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anuupbasant.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anuupbasant.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anuupbasant.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anuupbasant.wordpress.com&amp;blog=9325977&amp;post=35&amp;subd=anuupbasant&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anuupbasant.wordpress.com/2009/09/05/dissable-browsers-back-buttton/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d15c7c83ba83526a12e39e00402e413e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anuupbasant</media:title>
		</media:content>
	</item>
		<item>
		<title>Check if javascript is enaled or disabled</title>
		<link>http://anuupbasant.wordpress.com/2009/09/05/check-if-javascript-is-enaled-or-disabled/</link>
		<comments>http://anuupbasant.wordpress.com/2009/09/05/check-if-javascript-is-enaled-or-disabled/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 13:42:18 +0000</pubDate>
		<dc:creator>anuupbasant</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://anuupbasant.wordpress.com/?p=33</guid>
		<description><![CDATA[Rich ajax applications that do not break if javascript is disabled. Test if the client&#8217;s browser has javascript disabled ? Read More<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anuupbasant.wordpress.com&amp;blog=9325977&amp;post=33&amp;subd=anuupbasant&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Rich ajax applications that do not break if javascript is disabled.</strong></p>
<p>Test if the client&#8217;s browser has javascript disabled ?</p>
<p><a title="Check if Javascript is Enabled" href="http://weblogs.asp.net/alessandro/archive/2007/10/04/rich-ajax-applications-that-do-not-break-if-javascript-is-disabled.aspx" target="_blank">Read More</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anuupbasant.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anuupbasant.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anuupbasant.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anuupbasant.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anuupbasant.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anuupbasant.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anuupbasant.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anuupbasant.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anuupbasant.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anuupbasant.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anuupbasant.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anuupbasant.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anuupbasant.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anuupbasant.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anuupbasant.wordpress.com&amp;blog=9325977&amp;post=33&amp;subd=anuupbasant&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anuupbasant.wordpress.com/2009/09/05/check-if-javascript-is-enaled-or-disabled/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d15c7c83ba83526a12e39e00402e413e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anuupbasant</media:title>
		</media:content>
	</item>
		<item>
		<title>Fetch random rows from SQL Server</title>
		<link>http://anuupbasant.wordpress.com/2009/09/05/fetch-random-rows-from-sql-server/</link>
		<comments>http://anuupbasant.wordpress.com/2009/09/05/fetch-random-rows-from-sql-server/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 13:36:55 +0000</pubDate>
		<dc:creator>anuupbasant</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://anuupbasant.wordpress.com/?p=30</guid>
		<description><![CDATA[To fetch random rows from a SQL Server table. If you have an integer column,  then using RAND() function goes well. However in case there are no number columns use the following query: SELECT TOP &#60;n&#62; &#60;column list&#62; FROM &#60;table&#62; WHERE &#60;criteria&#62; ORDER BY NEWID() The key is the use of NEWID() function that returns a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anuupbasant.wordpress.com&amp;blog=9325977&amp;post=30&amp;subd=anuupbasant&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To fetch random rows from a SQL Server table.</p>
<p>If you have an integer column,  then using RAND() function goes well. However in case there are no number columns use the following query:</p>
<pre>SELECT TOP &lt;n&gt; &lt;column list&gt;
FROM &lt;table&gt;
WHERE &lt;criteria&gt;
ORDER BY NEWID()</pre>
<p>The key is the use of NEWID() function that returns a GUID.An example query would look something like this:</p>
<p><span style="font-family:Consolas;line-height:18px;font-size:12px;white-space:pre;">SELECT TOP 10 * </span></p>
<pre>FROM Employees
ORDER BY NEWID()</pre>
<p>This way is also useful for selecting data for testing purposes.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anuupbasant.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anuupbasant.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anuupbasant.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anuupbasant.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anuupbasant.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anuupbasant.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anuupbasant.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anuupbasant.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anuupbasant.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anuupbasant.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anuupbasant.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anuupbasant.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anuupbasant.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anuupbasant.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anuupbasant.wordpress.com&amp;blog=9325977&amp;post=30&amp;subd=anuupbasant&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anuupbasant.wordpress.com/2009/09/05/fetch-random-rows-from-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d15c7c83ba83526a12e39e00402e413e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anuupbasant</media:title>
		</media:content>
	</item>
		<item>
		<title>ASP.NET Bypass forms authentication or Skip Authorization for selected pages</title>
		<link>http://anuupbasant.wordpress.com/2009/09/05/asp-net-bypass-forms-authentication-or-skip-authorization-for-selected-pages/</link>
		<comments>http://anuupbasant.wordpress.com/2009/09/05/asp-net-bypass-forms-authentication-or-skip-authorization-for-selected-pages/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 13:32:14 +0000</pubDate>
		<dc:creator>anuupbasant</dc:creator>
				<category><![CDATA[ASP.Net]]></category>

		<guid isPermaLink="false">http://anuupbasant.wordpress.com/?p=28</guid>
		<description><![CDATA[This example how to skip or bypass forms authentication or Authorization for selected pages in asp.net or a scenario where only few pages on site needs user to log in and rest can be accessed without login.For this we need to set HttpContext.Current.SkipAuthorization property to true in global application class called Global.asax More Details<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anuupbasant.wordpress.com&amp;blog=9325977&amp;post=28&amp;subd=anuupbasant&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This example how to skip or bypass forms authentication or Authorization for selected pages in asp.net or a scenario where only few pages on site needs user to log in and rest can be accessed without login.<br style="margin:0;padding:0;" /><span style="display:inline;margin:0;padding:0;"><br style="margin:0;padding:0;" />For this we need to set <span style="font-weight:bold;margin:0;padding:0;">HttpContext.Current.SkipAuthorization property to true </span>in global application class called <span style="font-weight:bold;margin:0;padding:0;">Global.asax</span><br style="margin:0;padding:0;" /></span></p>
<p><a title="Bypass authentication for selected pages in ASP.net" href="http://csharpdotnetfreak.blogspot.com/2009/04/aspnet-bypass-forms-authentication.html" target="_blank">More Details</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anuupbasant.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anuupbasant.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anuupbasant.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anuupbasant.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anuupbasant.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anuupbasant.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anuupbasant.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anuupbasant.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anuupbasant.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anuupbasant.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anuupbasant.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anuupbasant.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anuupbasant.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anuupbasant.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anuupbasant.wordpress.com&amp;blog=9325977&amp;post=28&amp;subd=anuupbasant&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anuupbasant.wordpress.com/2009/09/05/asp-net-bypass-forms-authentication-or-skip-authorization-for-selected-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d15c7c83ba83526a12e39e00402e413e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">anuupbasant</media:title>
		</media:content>
	</item>
	</channel>
</rss>
