<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.techbrij.com/~d/styles/itemcontent.css"?><rss 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:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" version="2.0">

<channel>
	<title>TechBrij</title>
	
	<link>http://techbrij.com</link>
	<description>ASP.NET, C#, jQuery &amp; Wordpress Tips</description>
	<lastBuildDate>Sun, 19 Feb 2012 09:19:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.techbrij.com/techbrij" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="techbrij" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.0/</creativeCommons:license><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">techbrij</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>3 Practical Uses of Zen Coding</title>
		<link>http://techbrij.com/891/3-practical-uses-of-zen-coding</link>
		<comments>http://techbrij.com/891/3-practical-uses-of-zen-coding#comments</comments>
		<pubDate>Sun, 19 Feb 2012 09:19:30 +0000</pubDate>
		<dc:creator>Brij</dc:creator>
				<category><![CDATA[Designer Corner]]></category>
		<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[Web Tools Utilities]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[utilities]]></category>

		<guid isPermaLink="false">http://techbrij.com/?p=891</guid>
		<description><![CDATA[It explains some productive uses of Zen coding.
Related posts:<ol>
<li><a href='http://techbrij.com/402/ixedit-javascript-jquery-design-tool-no-coding' rel='bookmark' title='IxEDIT: No coding for Javascript/jQuery'>IxEDIT: No coding for Javascript/jQuery</a></li>
<li><a href='http://techbrij.com/723/naming-conventions-coding-standards-dotnet-web-developers' rel='bookmark' title='Naming Conventions &amp; Coding Standards for .NET Web Developers'>Naming Conventions &#038; Coding Standards for .NET Web Developers</a></li>
<li><a href='http://techbrij.com/603/rounded-corner-slide-tabbed-box-content-slider-jquery' rel='bookmark' title='A Simple Rounded Corner Slide Tabbed Box (Content Slider) using jQuery'>A Simple Rounded Corner Slide Tabbed Box (Content Slider) using jQuery</a></li>
<li><a href='http://techbrij.com/279/flipper-a-developer-tool-to-save-your-coding-time' rel='bookmark' title='Flipper: A Developer Tool to save your coding time'>Flipper: A Developer Tool to save your coding time</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/PZ5KfGPCWcU5oRmjUksYD3A9z4I/0/da"><img src="http://feedads.g.doubleclick.net/~a/PZ5KfGPCWcU5oRmjUksYD3A9z4I/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/PZ5KfGPCWcU5oRmjUksYD3A9z4I/1/da"><img src="http://feedads.g.doubleclick.net/~a/PZ5KfGPCWcU5oRmjUksYD3A9z4I/1/di" border="0" ismap="true"></img></a></p><p>You must know Zen Coding if you are Front End Web developer. <a href="http://code.google.com/p/zen-coding/" rel="nofollow external" target="_blank">Zen coding</a> allows for fast coding and editing in <a href="http://techbrij.com/category/html-css" target="_blank">HTML</a>, XML, XSL, and other structured code formats. It uses CSS selectors like syntax and generate full code(write less do more). It expands abbreviations into complete HTML structures. Zen coding plugin is available for almost all top text editors(<a href="http://techbrij.com/877/4-notepad-plus-productive-plugins-utilities" target="_blank">Notepad++</a>, visual studio, Dreamweaver , TextMate, Sublime Text, Coda, Vim ..etc). In <a href="http://zen-coding.ru/demo/"  rel="nofollow external" target="_blank">live demo</a>, First write abbreviations and press <strong>Ctrl+,</strong> to expand abbreviations.<br />
<span id="more-891"></span><br />
Syntax: Let&#8217;s see basic rules</p>
<table>
<tr>
<th>Symbol</th>
<th>Description</th>
<th>Example</th>
<th>Output</th>
</tr>
<tr>
<td>tag</td>
<td>Element Name</td>
<td>div</td>
<td>
<pre class="brush: xml; title: ;">
&lt;div&gt;&lt;/div&gt;
</pre>
</td>
</tr>
<tr>
<td>#</td>
<td>element identifier</td>
<td>div#myID</td>
<td>
<pre class="brush: xml; title: ;">
&lt;div id=&quot;myID&quot;&gt;&lt;/div&gt;
</pre>
</td>
</tr>
<tr>
<td>.</td>
<td>Class name</td>
<td>div.myClass</td>
<td>
<pre class="brush: xml; title: ;">
&lt;div class=&quot;myClass&quot;&gt;&lt;/div&gt;
</pre>
</td>
</tr>
<tr>
<td>></td>
<td>Child Element</td>
<td> ul>li </td>
<td>
<pre class="brush: xml; title: ;">
&lt;ul&gt;
	&lt;li&gt;&lt;/li&gt;
&lt;/ul&gt;
</pre>
</td>
</tr>
<tr>
<td>+</td>
<td>Sibling element</td>
<td>div.Header+div.Content+div.Footer</td>
<td>
<pre class="brush: xml; title: ;">
&lt;div class=&quot;Header&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;Content&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;Footer&quot;&gt;&lt;/div&gt;
</pre>
</td>
</tr>
<tr>
<td>*</td>
<td>to create multiple elements</td>
<td>ul#menu>li*3>a</td>
<td>
<pre class="brush: xml; title: ;">
&lt;ul id=&quot;menu&quot;&gt;
	&lt;li&gt;&lt;a href=&quot;&quot;&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;&quot;&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;&quot;&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</pre>
</td>
</tr>
<tr>
<td>$</td>
<td>item numbers</td>
<td>div.item$*3</td>
<td>
<pre class="brush: xml; title: ;">
&lt;div class=&quot;item1&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;item2&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;item3&quot;&gt;&lt;/div&gt;
</pre>
</td>
</tr>
<tr>
<td>$$</td>
<td>multi times numbering</td>
<td>div#id$.class$$*3</td>
<td>
<pre class="brush: xml; title: ;">
&lt;div id=&quot;id1&quot; class=&quot;class11&quot;&gt;&lt;/div&gt;
&lt;div id=&quot;id2&quot; class=&quot;class22&quot;&gt;&lt;/div&gt;
&lt;div id=&quot;id3&quot; class=&quot;class33&quot;&gt;&lt;/div&gt;
</pre>
</td>
</tr>
</table>
<h3>1. As your default template:</h3>
<p>For new page, no need to write full common structure like html, head, body tags etc. just type <strong>html:xt</strong> for xhtml1-transitional or <strong>html:5</strong> for HTML5 structure. You can find other short syntax <a href="http://code.google.com/p/zen-coding/wiki/ZenHTMLElementsEn" rel="nofollow external" target="_blank">here</a>. You can create your default template of page in zen coding syntax and use it again and again.<br />
Example: </p>
<p><strong>html:xt>div#header>div#logo+ul#nav>li.item-$*5>a</strong></p>
<p>will generate following code:</p>
<pre class="brush: xml; title: ;">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot;&gt;
&lt;head&gt;
	&lt;title&gt;&lt;/title&gt;
	&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=UTF-8&quot; /&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;div id=&quot;header&quot;&gt;
		&lt;div id=&quot;logo&quot;&gt;&lt;/div&gt;
		&lt;ul id=&quot;nav&quot;&gt;
			&lt;li class=&quot;item-1&quot;&gt;&lt;a href=&quot;&quot;&gt;&lt;/a&gt;&lt;/li&gt;
			&lt;li class=&quot;item-2&quot;&gt;&lt;a href=&quot;&quot;&gt;&lt;/a&gt;&lt;/li&gt;
			&lt;li class=&quot;item-3&quot;&gt;&lt;a href=&quot;&quot;&gt;&lt;/a&gt;&lt;/li&gt;
			&lt;li class=&quot;item-4&quot;&gt;&lt;a href=&quot;&quot;&gt;&lt;/a&gt;&lt;/li&gt;
			&lt;li class=&quot;item-5&quot;&gt;&lt;a href=&quot;&quot;&gt;&lt;/a&gt;&lt;/li&gt;
		&lt;/ul&gt;
	&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<h3>2. Create list/drop-down list Quickly: </h3>
<p>&#8220;<strong>Wrap with Abbreviation</strong>&#8221; is power of zen coding. It does time consuming data formatting or repeated tasks quickly. Suppose you have to create country drop-down list from excel data. Copy country names from excel and paste in editor.<br />
Now <strong>Ctrl + H</strong> and use </p>
<p><strong>select#country>option#$*</strong></p>
<p>Similarly, you can create menu/static list as in example of first point quickly.</p>
<h3>3. Easy in social Sharing: </h3>
<p>It&#8217;s easy to share abbreviations instead of whole HTML template in social media, specially in twitter where char length is limited. When HTML template is shared, it gets distorted and very hard to understand. but in abbreviations, there is no role of formatting and easy for users also.</p>
<p>Zen coding has changed the way of writing HTML code and It&#8217;s making me more lazy <img src='http://techbrij.com/wp-includes/images/smilies/icon_wink.gif' alt="icon wink 3 Practical Uses of Zen Coding" class='wp-smiley' title="3 Practical Uses of Zen Coding" />  Share your opinion and tips about Zen coding.</p>
<p>Related posts:<ol>
<li><a href='http://techbrij.com/402/ixedit-javascript-jquery-design-tool-no-coding' rel='bookmark' title='IxEDIT: No coding for Javascript/jQuery'>IxEDIT: No coding for Javascript/jQuery</a></li>
<li><a href='http://techbrij.com/723/naming-conventions-coding-standards-dotnet-web-developers' rel='bookmark' title='Naming Conventions &amp; Coding Standards for .NET Web Developers'>Naming Conventions &#038; Coding Standards for .NET Web Developers</a></li>
<li><a href='http://techbrij.com/603/rounded-corner-slide-tabbed-box-content-slider-jquery' rel='bookmark' title='A Simple Rounded Corner Slide Tabbed Box (Content Slider) using jQuery'>A Simple Rounded Corner Slide Tabbed Box (Content Slider) using jQuery</a></li>
<li><a href='http://techbrij.com/279/flipper-a-developer-tool-to-save-your-coding-time' rel='bookmark' title='Flipper: A Developer Tool to save your coding time'>Flipper: A Developer Tool to save your coding time</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techbrij.com/891/3-practical-uses-of-zen-coding/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Test Responsive Web Design</title>
		<link>http://techbrij.com/888/tools-test-responsive-web-design</link>
		<comments>http://techbrij.com/888/tools-test-responsive-web-design#comments</comments>
		<pubDate>Sat, 11 Feb 2012 17:29:37 +0000</pubDate>
		<dc:creator>Brij</dc:creator>
				<category><![CDATA[Designer Corner]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[Web Tools Utilities]]></category>
		<category><![CDATA[testing tools]]></category>

		<guid isPermaLink="false">http://techbrij.com/?p=888</guid>
		<description><![CDATA[It explains different tools and utilities to test responsive web design. 
Related posts:<ol>
<li><a href='http://techbrij.com/885/responsive-design-make-website-mobile-tablet-compatible' rel='bookmark' title='Responsive Design: Make Your Website Mobile, Tablet, Desktop Compatible'>Responsive Design: Make Your Website Mobile, Tablet, Desktop Compatible</a></li>
<li><a href='http://techbrij.com/436/25-free-online-tools-web-design-development' rel='bookmark' title='25 Free Online Tools for Web Design and Development'>25 Free Online Tools for Web Design and Development</a></li>
<li><a href='http://techbrij.com/837/testing-web-services-rest-api-poster-add-on-firefox' rel='bookmark' title='Testing Web services or REST API Easily with Poster Add-on'>Testing Web services or REST API Easily with Poster Add-on</a></li>
<li><a href='http://techbrij.com/203/how-to-set-or-test-connection-string' rel='bookmark' title='How to set or test connection string'>How to set or test connection string</a></li>
<li><a href='http://techbrij.com/440/22-firefox-add-ons-web-designers-developers' rel='bookmark' title='Top 22 Firefox Add-ons for Web Designers &amp; Developers'>Top 22 Firefox Add-ons for Web Designers &#038; Developers</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/pdaHAgM0d7WeXSigIDQ7o8iMDlo/0/da"><img src="http://feedads.g.doubleclick.net/~a/pdaHAgM0d7WeXSigIDQ7o8iMDlo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/pdaHAgM0d7WeXSigIDQ7o8iMDlo/1/da"><img src="http://feedads.g.doubleclick.net/~a/pdaHAgM0d7WeXSigIDQ7o8iMDlo/1/di" border="0" ismap="true"></img></a></p><p><a href="http://techbrij.com/885/responsive-design-make-website-mobile-tablet-compatible" target="_blank">My previous post</a> explains basic steps for responsive web design to make the site mobile, tablet and desktop compatible. Now, we have to test the website in different resolutions. You can test it simply by resizing browser window, but It&#8217;s not convenient resizing to a specific dimension(width and height) each time. Here are tools or utilities to test effectively.<span id="more-888"></span></p>
<h3>Screenfly:</h3>
<p><a href="http://quirktools.com/screenfly/" target="_blank" rel="nofollow external">Screenfly</a> is a web based tool, very handy when you don&#8217;t know device resolution. you have to enter URL and select device. I like its  neat and clean UI. </p>
<h3>Responsivepx:</h3>
<p><a href="http://responsivepx.com" target="_blank" rel="nofollow external">Responsivepx</a> is a web based tool. You have to enter URL and select height and width to test.</p>
<h3>Tool by Matt Kersley:</h3>
<p><a href="http://mattkersley.com/responsive/" target="_blank" rel="nofollow external">Matt&#8217;s tool</a> is iframe based online tool. Simply enter the URL of your website and test it in different browser resolutions at a time.</p>
<h3> Web Developer Extension:</h3>
<p><a href="http://chrispederick.com/work/web-developer/" target="_blank" rel="nofollow external">Web Developer extension</a> adds various web developer tools to a browser. The extension is available for Firefox and Chrome. It&#8217;s my favourite way to test responsive design. It can be used on local sites without internet connection. You can resize window to a standard dimension on single click and allows you to create your own dimensions by entering width and height. </p>
<p><img src="http://img.techbrij.com/887/test-responsive-theme.png" alt="test responsive theme How to Test Responsive Web Design"  title="How to Test Responsive Web Design" /></p>
<p>I like &#8220;<strong>Display Window Size in Title</strong>&#8221; option because it is time saving. It displays the current dimensions(width and height) in title bar. It&#8217;s very helpful during resizing.</p>
<p><iframe width="480" height="360" src="http://www.youtube.com/embed/nwyvrZkJqRY?rel=0" frameborder="0" allowfullscreen></iframe></p>
<p>Hope, It helps. Share your opinion about how you are testing responsive web design. </p>
<p>Related posts:<ol>
<li><a href='http://techbrij.com/885/responsive-design-make-website-mobile-tablet-compatible' rel='bookmark' title='Responsive Design: Make Your Website Mobile, Tablet, Desktop Compatible'>Responsive Design: Make Your Website Mobile, Tablet, Desktop Compatible</a></li>
<li><a href='http://techbrij.com/436/25-free-online-tools-web-design-development' rel='bookmark' title='25 Free Online Tools for Web Design and Development'>25 Free Online Tools for Web Design and Development</a></li>
<li><a href='http://techbrij.com/837/testing-web-services-rest-api-poster-add-on-firefox' rel='bookmark' title='Testing Web services or REST API Easily with Poster Add-on'>Testing Web services or REST API Easily with Poster Add-on</a></li>
<li><a href='http://techbrij.com/203/how-to-set-or-test-connection-string' rel='bookmark' title='How to set or test connection string'>How to set or test connection string</a></li>
<li><a href='http://techbrij.com/440/22-firefox-add-ons-web-designers-developers' rel='bookmark' title='Top 22 Firefox Add-ons for Web Designers &amp; Developers'>Top 22 Firefox Add-ons for Web Designers &#038; Developers</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techbrij.com/888/tools-test-responsive-web-design/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Responsive Design: Make Your Website Mobile, Tablet, Desktop Compatible</title>
		<link>http://techbrij.com/885/responsive-design-make-website-mobile-tablet-compatible</link>
		<comments>http://techbrij.com/885/responsive-design-make-website-mobile-tablet-compatible#comments</comments>
		<pubDate>Sat, 11 Feb 2012 13:39:10 +0000</pubDate>
		<dc:creator>Brij</dc:creator>
				<category><![CDATA[Designer Corner]]></category>
		<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://techbrij.com/?p=885</guid>
		<description><![CDATA[How to create responsive web design (for mobile, tablet, desktop ..etc compatible) step by step
Related posts:<ol>
<li><a href='http://techbrij.com/80/7-tips-to-make-your-website-cross-browser-compatible' rel='bookmark' title='7  Tips to make your website Cross Browser Compatible'>7  Tips to make your website Cross Browser Compatible</a></li>
<li><a href='http://techbrij.com/888/tools-test-responsive-web-design' rel='bookmark' title='How to Test Responsive Web Design'>How to Test Responsive Web Design</a></li>
<li><a href='http://techbrij.com/173/mac-iphone-style-dock-menu-for-your-website' rel='bookmark' title='Mac/iphone Style Dock menu for your website'>Mac/iphone Style Dock menu for your website</a></li>
<li><a href='http://techbrij.com/436/25-free-online-tools-web-design-development' rel='bookmark' title='25 Free Online Tools for Web Design and Development'>25 Free Online Tools for Web Design and Development</a></li>
<li><a href='http://techbrij.com/729/design-tips-learned-facebook' rel='bookmark' title='5 things I learned from Facebook design'>5 things I learned from Facebook design</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/6AlO2OKFiHy7cbrEbZ_6OS0eDQA/0/da"><img src="http://feedads.g.doubleclick.net/~a/6AlO2OKFiHy7cbrEbZ_6OS0eDQA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/6AlO2OKFiHy7cbrEbZ_6OS0eDQA/1/da"><img src="http://feedads.g.doubleclick.net/~a/6AlO2OKFiHy7cbrEbZ_6OS0eDQA/1/di" border="0" ismap="true"></img></a></p><p>Every client wants their website compatible with all platforms, whether user is accessing the site on a mobile phone, tablet, desktop computer or wide-screen. There are so many devices BlackBerry, iPhone, iPad, netbook, kindle..etc with different sizes and resolutions. It&#8217;s impossible to create a website version for each resolution. With Responsive Web Design technique, the website adapts the layout to the environment that it is being viewed in. It makes similar feelings for all platforms. You can see <a href="http://techbrij.com" target="_blank">TechBrij </a> as an example by resizing the browser window if you are on a desktop.<br />
<span id="more-885"></span></p>
<p><img src="http://img.techbrij.com/885/techbrij-responsive-theme.png" alt="techbrij responsive theme Responsive Design: Make Your Website Mobile, Tablet, Desktop Compatible"  title="Responsive Design: Make Your Website Mobile, Tablet, Desktop Compatible" /></p>
<h3>Steps:</h3>
<p>1. In your basic theme for desktop browsers, See each element of web page and think for tablet and mobile view. You can use notebook pen for complex layout.<br />
2. Change element dimension from pixel value to percentage value and make some additional changes to make it similar on same environment.</p>
<p><img src="http://img.techbrij.com/885/techbrij-responsive-theme-template.png" alt="techbrij responsive theme template Responsive Design: Make Your Website Mobile, Tablet, Desktop Compatible"  title="Responsive Design: Make Your Website Mobile, Tablet, Desktop Compatible" /></p>
<p>3. Use Meta tag to disable default mobile scaling to display web page fit on screen.</p>
<pre class="brush: xml; title: ;">
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
</pre>
<p>4. We&#8217;re going to use CSS3 Media queries, but Internet Explorer 8 or older doesn&#8217;t support it. So use media-queries.js to add media query support in IE. </p>
<pre class="brush: xml; title: ;">
&lt;!--[if lt IE 9]&gt;
	&lt;script src=&quot;http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js&quot;&gt;&lt;/script&gt;
&lt;![endif]--&gt;
</pre>
<p>5. Use CSS Media queries to define special CSS rules for different viewport width ranges/resolutions. </p>
<pre class="brush: css; title: ;">
@media screen and (min-width : 750px) {
#content{float:left;width:60%;}
#sidebar{float:right;width:35%}
} 

@media screen and (min-width : 481px) and (max-width : 749px) {
#content{width:95%;}
#sidebar{width:95%;}
}
</pre>
<p>You can create separate CSS files for different Media queries.</p>
<pre class="brush: xml; title: ;">
	&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;only screen and (max-device-width: 480px)&quot; href=&quot;small-device.css&quot; /&gt;
</pre>
<p>6. Make images, iframe width flexible.</p>
<pre class="brush: css; title: ;">
img {
	max-width: 100%;
}
iframe, object, embed{
width: 100%;
}
</pre>
<p>7. Test it.</p>
<p>These are the basic steps to implement responsive web design. Alternatively, CSS Frameworks like <a href="http://lessframework.com/" target="_blank" rel="nofollow external">Less Framework 4</a>, <a href="http://mqframework.com/" target="_blank" rel="nofollow external">MQFramework</a>, <a href="http://foundation.zurb.com/" target="_blank" rel="nofollow external">Foundation</a>, <a href="http://www.getskeleton.com/" target="_blank" rel="nofollow external">Skeleton</a>..etc are used for rapid development. </p>
<h3>Resoures:</h3>
<p><a href="http://css-tricks.com/snippets/css/media-queries-for-standard-devices/" target="_blank" rel="nofollow external">Media Queries for Standard Devices</a></p>
<p><a href="http://webdesignerwall.com/tutorials/responsive-design-with-css3-media-queries" target="_blank" rel="nofollow external">Responsive Design with CSS3 Media Queries</a></p>
<p><a href="http://www.webdesignshock.com/responsive-web-design/" target="_blank" rel="nofollow external">Responsive Web Design, most complete guide</a></p>
<p>Responsive Web design creates a great custom experience for everyone. Share your opinion and about how you&#8217;re implementing responsive design.</p>
<p>Related posts:<ol>
<li><a href='http://techbrij.com/80/7-tips-to-make-your-website-cross-browser-compatible' rel='bookmark' title='7  Tips to make your website Cross Browser Compatible'>7  Tips to make your website Cross Browser Compatible</a></li>
<li><a href='http://techbrij.com/888/tools-test-responsive-web-design' rel='bookmark' title='How to Test Responsive Web Design'>How to Test Responsive Web Design</a></li>
<li><a href='http://techbrij.com/173/mac-iphone-style-dock-menu-for-your-website' rel='bookmark' title='Mac/iphone Style Dock menu for your website'>Mac/iphone Style Dock menu for your website</a></li>
<li><a href='http://techbrij.com/436/25-free-online-tools-web-design-development' rel='bookmark' title='25 Free Online Tools for Web Design and Development'>25 Free Online Tools for Web Design and Development</a></li>
<li><a href='http://techbrij.com/729/design-tips-learned-facebook' rel='bookmark' title='5 things I learned from Facebook design'>5 things I learned from Facebook design</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techbrij.com/885/responsive-design-make-website-mobile-tablet-compatible/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>4 Notepad++ Plugins Make You More Productive</title>
		<link>http://techbrij.com/877/4-notepad-plus-productive-plugins-utilities</link>
		<comments>http://techbrij.com/877/4-notepad-plus-productive-plugins-utilities#comments</comments>
		<pubDate>Fri, 03 Feb 2012 18:26:36 +0000</pubDate>
		<dc:creator>Brij</dc:creator>
				<category><![CDATA[Web Tools Utilities]]></category>
		<category><![CDATA[notepad++]]></category>

		<guid isPermaLink="false">http://techbrij.com/?p=877</guid>
		<description><![CDATA[A list of productive Notepad++ plugins for web developers.
Related posts:<ol>
<li><a href='http://techbrij.com/518/10-notepad-tips-tricks-fast-development' rel='bookmark' title='10+ Notepad++ Tips For Fast Development'>10+ Notepad++ Tips For Fast Development</a></li>
<li><a href='http://techbrij.com/529/tweets-by-post-wordpress-plugin-installation' rel='bookmark' title='&#8216;Tweets By Post&#8217; WordPress Plugin (Part-1 Installation)'>&#8216;Tweets By Post&#8217; WordPress Plugin (Part-1 Installation)</a></li>
<li><a href='http://techbrij.com/860/display-file-download-count-wordpress' rel='bookmark' title='Display File Download Count in WordPress'>Display File Download Count in WordPress</a></li>
<li><a href='http://techbrij.com/713/copy-extract-html-drop-down-list-options-text' rel='bookmark' title='Copy/Extract HTML Dropdownlist Options in Plain Text'>Copy/Extract HTML Dropdownlist Options in Plain Text</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/kYw1QnLKArrw9GYbBew_w8FhRyc/0/da"><img src="http://feedads.g.doubleclick.net/~a/kYw1QnLKArrw9GYbBew_w8FhRyc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/kYw1QnLKArrw9GYbBew_w8FhRyc/1/da"><img src="http://feedads.g.doubleclick.net/~a/kYw1QnLKArrw9GYbBew_w8FhRyc/1/di" border="0" ismap="true"></img></a></p><p>In <a href="http://techbrij.com/518/10-notepad-tips-tricks-fast-development" target="_blank">my previous Notepad++</a> post, I shared useful tips for fast development. You can extend Notepad++ by installing plugins. The beauty of the Notepad++ extension is that it allows you to add a specific feature or function, fully customizing your working experience. Here are some useful plugins to save time while working.<br />
<span id="more-877"></span></p>
<h3>How to Install:</h3>
<p>Default available plugins can be installed from the Plugins manager (via <strong>Plugins—> Plugin Manager—> Show Plugin Manager</strong>), select plugin and click on Install button. Other than, You can search the plug in with Google, Download it (usually dll file) and put into <strong>&#8216;notepad++/plugins/&#8217;</strong> directory. Now, if your notepad++ is active, close it, and activate again. You will see your plugin in Plugins menu bar and automatically installed. If not show, maybe your plugin isn’t compatible. </p>
<h3>1. Explorer:</h3>
<p>Open your file in Notepad++ quickly using Explorer plugin. It has two sections: Folder tree box(to see directories-sub directories) and File box. Using bottom filter box, You can filter files to find in large listing. </p>
<p><img src="http://img.techbrij.com/880/notepad-plus-explorer-plugin.png" alt="notepad plus explorer plugin 4 Notepad++ Plugins Make You More Productive"  title="4 Notepad++ Plugins Make You More Productive" /></p>
<p><a href="http://sourceforge.net/projects/npp-plugins/files/Explorer/"  target="_blank" rel="nofollow external">Download Explorer Plugin</a></p>
<h3>2. Compare:</h3>
<p>No need to install other app to compare files, You can do it easily with Notepad++ itself. Open two files you wish to compare. Click <strong>Plugins > Compare > Compare</strong>, you&#8217;ll get differences highlighted. To off compare screen and back to editor window, <strong>Plugins > Compare > Clear Results</strong>.</p>
<p><img src="http://img.techbrij.com/880/notepad-plus-compare-plugin.png" alt="notepad plus compare plugin 4 Notepad++ Plugins Make You More Productive"  title="4 Notepad++ Plugins Make You More Productive" /></p>
<p><a href="http://sourceforge.net/projects/npp-plugins/files/ComparePlugin/"  target="_blank" rel="nofollow external">Download Compare Plugin</a></p>
<h3>3. MultiClipBoard: </h3>
<p>It saves multiple copied items, you can paste it easily via either Multi Clip Viewer Box OR Ctrl+Shift+V.<br />
You can enable MultiViewer box(via<strong> Plugins > Multiclipboard > Multiclip Viewer</strong>) which has list of copied text. Double click on any item in list to paste.</p>
<p><img src="http://img.techbrij.com/880/notepad-plus-multiclip-plugin.png" alt="notepad plus multiclip plugin 4 Notepad++ Plugins Make You More Productive"  title="4 Notepad++ Plugins Make You More Productive" /></p>
<p>If you don&#8217;t want to touch mouse during typing, just press<strong> Ctrl+Shift+V</strong>, you will see copied text list with index number. Press index number to paste content.<br />
It saves a bunch of time.<br />
<a href="http://sourceforge.net/projects/npp-plugins/files/MultiClipboard/"  target="_blank" rel="nofollow external">Download MultiClipboard plugin</a></p>
<h3>4. Spell Check:</h3>
<p>I needed spell check facility in Notepad++ for blogging. Spell check plugin adds this missing feature.<br />
See <a href="http://www.question-defense.com/2008/11/05/install-spellcheck-for-notepad-on-windows"  target="_blank" rel="nofollow external">here</a> to setup spell check plugin. You need to install both Aspell Binaries and dictionary and configure path of bin folder in Notepad++ spell check plugin.</p>
<h3>5. Bonus for Web Developers:</h3>
<p>If you are a web developer, doing so much in javascript, xml or JSON, You may like following plugins:<br />
<a href="http://sourceforge.net/projects/jslintnpp/"  target="_blank" rel="nofollow external">JSLint:</a> To run JSLint (The JavaScript Code Quality Tool) against javascript files<br />
<a href="http://sourceforge.net/projects/jsminnpp/"  target="_blank" rel="nofollow external"> JSMin:</a> To minimize code or format the code<br />
<a href="http://sourceforge.net/projects/nppjsonviewer/"  target="_blank" rel="nofollow external">JSON Viewer:</a> To see JSON string in Tree View structure<br />
<a href="http://sourceforge.net/projects/npp-plugins/files/XML%20Tools/"  target="_blank" rel="nofollow external"> XML Tools:</a> to auto-close tags and provides many useful features. </p>
<p>Enjoy Notepad++ !!!</p>
<p>Related posts:<ol>
<li><a href='http://techbrij.com/518/10-notepad-tips-tricks-fast-development' rel='bookmark' title='10+ Notepad++ Tips For Fast Development'>10+ Notepad++ Tips For Fast Development</a></li>
<li><a href='http://techbrij.com/529/tweets-by-post-wordpress-plugin-installation' rel='bookmark' title='&#8216;Tweets By Post&#8217; WordPress Plugin (Part-1 Installation)'>&#8216;Tweets By Post&#8217; WordPress Plugin (Part-1 Installation)</a></li>
<li><a href='http://techbrij.com/860/display-file-download-count-wordpress' rel='bookmark' title='Display File Download Count in WordPress'>Display File Download Count in WordPress</a></li>
<li><a href='http://techbrij.com/713/copy-extract-html-drop-down-list-options-text' rel='bookmark' title='Copy/Extract HTML Dropdownlist Options in Plain Text'>Copy/Extract HTML Dropdownlist Options in Plain Text</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techbrij.com/877/4-notepad-plus-productive-plugins-utilities/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Best Android Applications For Daily Use</title>
		<link>http://techbrij.com/874/best-android-applications-daily-use</link>
		<comments>http://techbrij.com/874/best-android-applications-daily-use#comments</comments>
		<pubDate>Sun, 29 Jan 2012 17:37:06 +0000</pubDate>
		<dc:creator>Brij</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[application]]></category>

		<guid isPermaLink="false">http://techbrij.com/?p=874</guid>
		<description><![CDATA[List of the best productive Android applications for your daily use and makes your life easy.
Related posts:<ol>
<li><a href='http://techbrij.com/840/4-things-every-android-user-must-know' rel='bookmark' title='4 Things Every Android User must Know'>4 Things Every Android User must Know</a></li>
<li><a href='http://techbrij.com/674/windows-8-dotnet-html5-silverlight' rel='bookmark' title='Windows 8 &amp; Future of .NET'>Windows 8 &#038; Future of .NET</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/bV2BAqMWP8a0TNtINzitncC6Kkw/0/da"><img src="http://feedads.g.doubleclick.net/~a/bV2BAqMWP8a0TNtINzitncC6Kkw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/bV2BAqMWP8a0TNtINzitncC6Kkw/1/da"><img src="http://feedads.g.doubleclick.net/~a/bV2BAqMWP8a0TNtINzitncC6Kkw/1/di" border="0" ismap="true"></img></a></p><p>Smartphones have entered in different business domains. Recently, <a href="http://techbrij.com/category/android" target="_blank">Android </a>Market exceeded 10 billion app downloads—with a growth rate of one billion app downloads per month. In <a href="http://techbrij.com/840/4-things-every-android-user-must-know" target="_blank">my recent post</a>, I explained basic things every Android user must know. Now it&#8217;s turn to apps. There are different type of apps, I&#8217;ve tested some apps and compiled a list which can be a part of your daily life. My objective is <strong>NOT </strong>to install so many apps, but app must be high productive.<span id="more-874"></span></p>
<p>1. <a href="https://market.android.com/details?id=com.facebook.katana" target="_blank" rel="nofollow external">FaceBook for Android:</a></p>
<p>No need of explanation !!!</p>
<p>2. <a href="https://market.android.com/details?id=com.twitter.android" target="_blank" rel="nofollow external">Twitter for Android:</a></p>
<p>No need of explanation !!!</p>
<p>3. <a href="https://market.android.com/details?id=org.dayup.gtask" target="_blank" rel="nofollow external">GTasks:</a><br />
In the busy life, we can&#8217;t remember everything. GTasks is a To Do list app and helps you to getting things done. I don&#8217;t want to use separate service(another account) for todo list that&#8217;s why I selected this. It syncs with your Google tasks perfectly and have both local and Google account mode.</p>
<p><img src="http://img.techbrij.com/875/android-apps-gTasks.png" alt="android apps gTasks The Best Android Applications For Daily Use"  title="The Best Android Applications For Daily Use" /> </p>
<p>4. <a href="https://market.android.com/details?id=com.merriamwebster" target="_blank" rel="nofollow external">Merriam Webster Dictionary:</a></p>
<p>I don&#8217;t believe on internet or network connection. That&#8217;s why I selected this. It&#8217;s great dictionary for reference, education, and vocabulary building with offline support.</p>
<p><img src="http://img.techbrij.com/875/android-apps-dictionary.png" alt="android apps dictionary The Best Android Applications For Daily Use"  title="The Best Android Applications For Daily Use" /></p>
<p>5. <a href="https://market.android.com/details?id=com.opera.mini.android" target="_blank" rel="nofollow external">Opera Mini Web Browser:</a></p>
<p>It&#8217;s a web browser for mobile devices, It uses Opera&#8217;s servers to compress webpages so they load faster. It uses as little as a tenth of the data of normal browsers.</p>
<p>6. <a href="https://market.android.com/details?id=com.imo.android.imoim&#038;hl=en" target="_blank" rel="nofollow external">imo.im:</a></p>
<p>No need to install separate apps for GTalk,Skype, MSN, ICQ/AIM, Yahoo..etc. With its new tabbed interface, imo.im is an IM app that&#8217;s light, pretty and easy to use.</p>
<p>7. <a href="https://market.android.com/details?id=com.google.android.apps.unveil" target="_blank" rel="nofollow external">Google Goggles:</a></p>
<p>You can search by taking a picture. Goggles uses image recognition technology to recognize objects and return relevant search results. You can use it as Bar code or QR code scanner also. It means no need to install separate app to scan barcode/QR code.</p>
<p>8. <a href="https://market.android.com/details?id=com.diigo.android&#038;hl=en" target="_blank" rel="nofollow external">Diigo&#8217;s Power Note:</a></p>
<p>I use Diigo bookmarks which automatically send bookmark to delicious also. Diigo provides Power Note Android app in which you can add, organize and sync text note, picture and bookmarks to your library. In desktop browser, you can mark webpages as &#8220;read later&#8221; and read it on the phone easily.</p>
<p><img src="http://img.techbrij.com/875/android-apps-diigo.png" alt="android apps diigo The Best Android Applications For Daily Use"  title="The Best Android Applications For Daily Use" /></p>
<p>9. <a href="https://market.android.com/details?id=com.google.android.apps.reader&#038;hl=en" target="_blank" rel="nofollow external">Google Reader:</a></p>
<p>You can follow all your favorite sites, blogs, and more, all in one place and see what your friends are sharing, and easily share any interesting articles you read. It syncs with the web version.</p>
<p>10. <a href="https://market.android.com/details?id=com.dropbox.android&#038;hl=en" target="_blank" rel="nofollow external">DropBox:</a></p>
<p>Dropbox is a free service that lets you bring all your photos, docs, and videos anywhere. With its Android app, you can view and edit all your Dropbox files in a sweet interface and even stream music and videos you&#8217;ve uploaded to Dropbox in its media player (or save for offline viewing).</p>
<p>11. <a href="https://market.android.com/details?id=com.tripadvisor.tripadvisor" target="_blank" rel="nofollow external">TripAdvisor:</a></p>
<p>If you&#8217;re a traveler, This should be installed in your Android. It has a huge database of hotels, restaurants, flights, forums, things to do and much more just a one-click away from you. A nearby feature that will use your current location to find services next to you. &#8220;My saves&#8221; is a kind of favorites tab, where you can save the hotels, restaurants and any other service that you liked and you want to recommend. </p>
<h3>Games:</h3>
<p>12. <a href="https://www.google.com/search?q=prince+of+persia+android+download" target="_blank" rel="nofollow external">Prince of Persia:</a></p>
<p>It&#8217;s my favorite game and have been playing since 1996 when I was reading in class sixth. I don&#8217;t like One screen One level game like Angry Birds&#8230;etc. You can see video preview of this game <a href="http://www.youtube.com/watch?v=Yy5AnihU93I" target="_blank" rel="nofollow external">here</a>.</p>
<p>13. <a href="https://market.android.com/details?id=com.a1.game.vszombies" target="_blank" rel="nofollow external">Zombie Dash:</a></p>
<p>It&#8217;s a great game and combines the timeless appeal of classic arcade games with stunning graphics you have to see to believe.</p>
<h3>For Indian Users:</h3>
<p>14. <a href="https://market.android.com/details?id=HinKhoj.Dictionary&#038;hl=en" target="_blank" rel="nofollow external">HinKhoj Hindi Dictionary:</a></p>
<p>It&#8217;s easy to understand in mother tongue. It shows hindi words in devnagri fonts in addition to their phonetic transliteration to english.  </p>
<p>15. <a href="https://market.android.com/details?id=com.rahul.utility.indianrail" target="_blank" rel="nofollow external">Indian Rail Info App:</a></p>
<p>With this app, You can get information about Indian Railways like PNR Status, Find Trains, Seat availability, Arrival &#038; Departure, Train Running Status and much more anytime anywhere, but you cannot book tickets using this app. </p>
<p>16. <a href="https://market.android.com/details?id=com.ViQ.Productivity.MobileNumberTracker" target="_blank" rel="nofollow external">Mobile Number Tracker:</a></p>
<p>If you are getting calls from unknown number and want to find from where that person is calling. Use this app to find from which state/telecom operator a mobile number belongs to. It shows caller info during incoming call. You can also view the details of mobile number in the call log.<br />
Note: The MNP ported numbers are not traceable by the app. </p>
<p><img src="http://img.techbrij.com/875/android-apps-MNT.png" alt="android apps MNT The Best Android Applications For Daily Use"  title="The Best Android Applications For Daily Use" /></p>
<p>17. <a href="https://market.android.com/details?id=util.sms" target="_blank" rel="nofollow external">Free SMS India:</a></p>
<p>SMS has still a great role if user doesn&#8217;t have smart phones. With Free SMS India application, you can send free sms to any mobile number in INDIA using way2sms, fullonsms, site2sms and 160by2 gateway.  It has very Simple GUI to avoid confusions. </p>
<p>Hope, It&#8217;s interesting for you. Let me know what apps you are using. Share your opinion and experience about apps.  </p>
<p>Related posts:<ol>
<li><a href='http://techbrij.com/840/4-things-every-android-user-must-know' rel='bookmark' title='4 Things Every Android User must Know'>4 Things Every Android User must Know</a></li>
<li><a href='http://techbrij.com/674/windows-8-dotnet-html5-silverlight' rel='bookmark' title='Windows 8 &amp; Future of .NET'>Windows 8 &#038; Future of .NET</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techbrij.com/874/best-android-applications-daily-use/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grouping Data in ASP.NET Gridview Control</title>
		<link>http://techbrij.com/869/grouping-gridview-rows-asp-net</link>
		<comments>http://techbrij.com/869/grouping-gridview-rows-asp-net#comments</comments>
		<pubDate>Sat, 28 Jan 2012 17:53:16 +0000</pubDate>
		<dc:creator>Brij</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Dev Corner]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[gridview]]></category>

		<guid isPermaLink="false">http://techbrij.com/?p=869</guid>
		<description><![CDATA[How to group asp.net gridview rows.
Related posts:<ol>
<li><a href='http://techbrij.com/866/html-table-row-grouping-jquery' rel='bookmark' title='HTML Table Row Grouping with jQuery'>HTML Table Row Grouping with jQuery</a></li>
<li><a href='http://techbrij.com/831/display-total-gridview-footer-row-linq-asp-net' rel='bookmark' title='Displaying Total in ASP.NET Gridview Footer Row Without using Template Field'>Displaying Total in ASP.NET Gridview Footer Row Without using Template Field</a></li>
<li><a href='http://techbrij.com/217/adding-gridview-nested-in-repeater-in-asp-net-2-0' rel='bookmark' title='Adding Gridview nested in Repeater in ASP.NET 2.0'>Adding Gridview nested in Repeater in ASP.NET 2.0</a></li>
<li><a href='http://techbrij.com/497/bind-array-to-column-of-asp-net-gridview' rel='bookmark' title='Bind array to specific column of asp.net gridview'>Bind array to specific column of asp.net gridview</a></li>
<li><a href='http://techbrij.com/772/show-modal-popup-edit-aspdotnet-gridview' rel='bookmark' title='Show ModalPopUp to Edit Asp.net Gridview Row Values Without using AjaxControlToolkit'>Show ModalPopUp to Edit Asp.net Gridview Row Values Without using AjaxControlToolkit</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/gDe9pk4_USC7-OVDhK_nit_gAMM/0/da"><img src="http://feedads.g.doubleclick.net/~a/gDe9pk4_USC7-OVDhK_nit_gAMM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/gDe9pk4_USC7-OVDhK_nit_gAMM/1/da"><img src="http://feedads.g.doubleclick.net/~a/gDe9pk4_USC7-OVDhK_nit_gAMM/1/di" border="0" ismap="true"></img></a></p><p>In <a href="http://techbrij.com/866/html-table-row-grouping-jquery" target="_blank">my previous post</a>, I explained how to group HTML table rows with <a href="http://techbrij.com/category/javascript-jquery" target="_blank">jQuery</a>. This post explains How to do same thing using <a href="http://techbrij.com/category/aspdotnet" target="_blank">ASP.NET</a> Gridview control on server side. The logic is same to check row by row. If data is same in next row&#8217;s cell, hide next row&#8217;s cell and increase rowspan of current row&#8217;s cell. <span id="more-869"></span></p>
<h3>HTML:</h3>
<pre class="brush: xml; title: ;">
 &lt;asp:GridView ID=&quot;GridView1&quot; runat=&quot;server&quot; CellPadding=&quot;4&quot;&gt;
 &lt;/asp:GridView&gt;
</pre>
<p><img src="http://img.techbrij.com/870/gridview-grouping-rows-aspdotnet.png" alt="gridview grouping rows aspdotnet Grouping Data in ASP.NET Gridview Control"  title="Grouping Data in ASP.NET Gridview Control" /></p>
<h3>Server Side:</h3>
<p> I have created a generalize method &#8216;<strong>GroupGridView</strong>&#8216; to group data in the gridview. </p>
<pre class="brush: jscript; title: ;">
void GroupGridView(GridViewRowCollection gvrc, int startIndex, int total)
    {
        if (total == 0) return;
        int i, count = 1;
        ArrayList lst = new ArrayList();
        lst.Add(gvrc[0]);
        var ctrl = gvrc[0].Cells[startIndex];
        for (i = 1; i &lt; gvrc.Count; i++)
        {
            TableCell nextCell = gvrc[i].Cells[startIndex];
            if (ctrl.Text == nextCell.Text)
            {
                count++;
                nextCell.Visible = false;
                lst.Add(gvrc[i]);
            }
            else
            {
                if (count &gt; 1)
                {
                    ctrl.RowSpan = count;
                    GroupGridView(new GridViewRowCollection(lst), startIndex + 1, total - 1);
                }
                count = 1;
                lst.Clear();
                ctrl = gvrc[i].Cells[startIndex];
                lst.Add(gvrc[i]);
            }
        }
        if (count &gt; 1)
        {
            ctrl.RowSpan = count;
            GroupGridView(new GridViewRowCollection(lst), startIndex + 1, total - 1);
        }
        count = 1;
        lst.Clear();
    }
</pre>
<p> You have to pass 3 parameters:<br />
<strong> gvrc:</strong> GridView Rows<br />
<strong> startIndex:</strong> index of first column to be grouped(where to start grouping).<br />
<strong> total:</strong> total number of columns to be grouped.</p>
<h3>How to Use:</h3>
<p> Before using this method, Make sure data is sorted in same order in which they are to be grouped. Bind the gridview and Pass the gridview rows, start index and total number of columns to be grouped in <strong>GroupGridView </strong>method and enjoy it.</p>
<pre class="brush: jscript; title: ;">
	GridView1.DataSource = GetDataTable();
        GridView1.DataBind();
        GroupGridView(GridView1.Rows, 0, 3);
 </pre>
<p> The above code will group first 3 columns of gridview.</p>
<p> Hope, It&#8217;ll save your time. </p>
<p>Related posts:<ol>
<li><a href='http://techbrij.com/866/html-table-row-grouping-jquery' rel='bookmark' title='HTML Table Row Grouping with jQuery'>HTML Table Row Grouping with jQuery</a></li>
<li><a href='http://techbrij.com/831/display-total-gridview-footer-row-linq-asp-net' rel='bookmark' title='Displaying Total in ASP.NET Gridview Footer Row Without using Template Field'>Displaying Total in ASP.NET Gridview Footer Row Without using Template Field</a></li>
<li><a href='http://techbrij.com/217/adding-gridview-nested-in-repeater-in-asp-net-2-0' rel='bookmark' title='Adding Gridview nested in Repeater in ASP.NET 2.0'>Adding Gridview nested in Repeater in ASP.NET 2.0</a></li>
<li><a href='http://techbrij.com/497/bind-array-to-column-of-asp-net-gridview' rel='bookmark' title='Bind array to specific column of asp.net gridview'>Bind array to specific column of asp.net gridview</a></li>
<li><a href='http://techbrij.com/772/show-modal-popup-edit-aspdotnet-gridview' rel='bookmark' title='Show ModalPopUp to Edit Asp.net Gridview Row Values Without using AjaxControlToolkit'>Show ModalPopUp to Edit Asp.net Gridview Row Values Without using AjaxControlToolkit</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techbrij.com/869/grouping-gridview-rows-asp-net/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML Table Row Grouping with jQuery</title>
		<link>http://techbrij.com/866/html-table-row-grouping-jquery</link>
		<comments>http://techbrij.com/866/html-table-row-grouping-jquery#comments</comments>
		<pubDate>Fri, 27 Jan 2012 17:45:43 +0000</pubDate>
		<dc:creator>Brij</dc:creator>
				<category><![CDATA[Designer Corner]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://techbrij.com/?p=866</guid>
		<description><![CDATA[How to group html table rows with jQuery.
Related posts:<ol>
<li><a href='http://techbrij.com/869/grouping-gridview-rows-asp-net' rel='bookmark' title='Grouping Data in ASP.NET Gridview Control'>Grouping Data in ASP.NET Gridview Control</a></li>
<li><a href='http://techbrij.com/485/clone-html-form-selected-options-jquery-firefox' rel='bookmark' title='Clone html form elements with selected options using jQuery'>Clone html form elements with selected options using jQuery</a></li>
<li><a href='http://techbrij.com/817/fede-search-engine-web-developers-designer-html-css-javascript-jquery' rel='bookmark' title='FEDe: A Search engine for Front-End (HTML, CSS, Javascript &amp; jQuery) Web developers'>FEDe: A Search engine for Front-End (HTML, CSS, Javascript &#038; jQuery) Web developers</a></li>
<li><a href='http://techbrij.com/780/seat-reservation-with-jquery' rel='bookmark' title='Seat Reservation with jQuery'>Seat Reservation with jQuery</a></li>
<li><a href='http://techbrij.com/831/display-total-gridview-footer-row-linq-asp-net' rel='bookmark' title='Displaying Total in ASP.NET Gridview Footer Row Without using Template Field'>Displaying Total in ASP.NET Gridview Footer Row Without using Template Field</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/se8egdaRMyPEsd1trZQ0DGyoztw/0/da"><img src="http://feedads.g.doubleclick.net/~a/se8egdaRMyPEsd1trZQ0DGyoztw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/se8egdaRMyPEsd1trZQ0DGyoztw/1/da"><img src="http://feedads.g.doubleclick.net/~a/se8egdaRMyPEsd1trZQ0DGyoztw/1/di" border="0" ismap="true"></img></a></p><p>It&#8217;s easy to group data in SQL statement, but if you have to display it using HTML table, It&#8217;s not drag and drop as in reporting environment. One way to group on server side and draw tr td accordingly. But If it is already created with tons of functionality attached, It&#8217;s risky to change. Don&#8217;t worry, you can do it easily with jQuery.<span id="more-866"></span></p>
<p><img src="http://img.techbrij.com/870/html-table-row-grouping-jquery.png" alt="html table row grouping jquery HTML Table Row Grouping with jQuery"  title="HTML Table Row Grouping with jQuery" /></p>
<h3>HTML:</h3>
<p>Let&#8217;s take following HTML table as an example:</p>
<pre class="brush: xml; title: ;">
&lt;table id=&quot;myTable&quot; border=&quot;1&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot;&gt;
&lt;tr&gt;&lt;th&gt;Category&lt;/th&gt;&lt;th&gt;Product&lt;/th&gt;&lt;th&gt;Size&lt;/th&gt;&lt;th&gt;Price&lt;/th&gt;&lt;th&gt;Shipping&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Category-1&lt;/td&gt;&lt;td&gt;Product-1&lt;/td&gt;&lt;td&gt;Big&lt;/td&gt;&lt;td&gt;102&lt;/td&gt;&lt;td&gt;Free&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Category-1&lt;/td&gt;&lt;td&gt;Product-1&lt;/td&gt;&lt;td&gt;Big&lt;/td&gt;&lt;td&gt;132&lt;/td&gt;&lt;td&gt;Free&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Category-1&lt;/td&gt;&lt;td&gt;Product-2&lt;/td&gt;&lt;td&gt;Big&lt;/td&gt;&lt;td&gt;130&lt;/td&gt;&lt;td&gt;Free&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Category-1&lt;/td&gt;&lt;td&gt;Product-2&lt;/td&gt;&lt;td&gt;Small&lt;/td&gt;&lt;td&gt;100&lt;/td&gt;&lt;td&gt;Free&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Category-2&lt;/td&gt;&lt;td&gt;Product-3&lt;/td&gt;&lt;td&gt;Big&lt;/td&gt;&lt;td&gt;130&lt;/td&gt;&lt;td&gt;Free&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Category-2&lt;/td&gt;&lt;td&gt;Product-3&lt;/td&gt;&lt;td&gt;Big&lt;/td&gt;&lt;td&gt;100&lt;/td&gt;&lt;td&gt;Free&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Category-2&lt;/td&gt;&lt;td&gt;Product-3&lt;/td&gt;&lt;td&gt;Small&lt;/td&gt;&lt;td&gt;100&lt;/td&gt;&lt;td&gt;10&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Category-2&lt;/td&gt;&lt;td&gt;Product-4&lt;/td&gt;&lt;td&gt;Big&lt;/td&gt;&lt;td&gt;150&lt;/td&gt;&lt;td&gt;10&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Category-3&lt;/td&gt;&lt;td&gt;Product-5&lt;/td&gt;&lt;td&gt;Big&lt;/td&gt;&lt;td&gt;150&lt;/td&gt;&lt;td&gt;10&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Category-3&lt;/td&gt;&lt;td&gt;Product-5&lt;/td&gt;&lt;td&gt;Small&lt;/td&gt;&lt;td&gt;120&lt;/td&gt;&lt;td&gt;10&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Category-3&lt;/td&gt;&lt;td&gt;Product-5&lt;/td&gt;&lt;td&gt;Big&lt;/td&gt;&lt;td&gt;120&lt;/td&gt;&lt;td&gt;Free&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Category-4&lt;/td&gt;&lt;td&gt;Product-6&lt;/td&gt;&lt;td&gt;Big&lt;/td&gt;&lt;td&gt;120&lt;/td&gt;&lt;td&gt;10&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Category-4&lt;/td&gt;&lt;td&gt;Product-6&lt;/td&gt;&lt;td&gt;Small&lt;/td&gt;&lt;td&gt;120&lt;/td&gt;&lt;td&gt;10&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
</pre>
<h3>Script:</h3>
<p>Before using the following method, Make sure the data is sorted. The logic is to check row by row if data is same in next row&#8217;s td, remove next row&#8217;s td and increase rowspan of current row&#8217;s td.</p>
<pre class="brush: jscript; title: ;">
$(function() {
//Created By: Brij Mohan
//Website: http://techbrij.com
function groupTable($rows, startIndex, total){
if (total === 0){
return;
}
var i , currentIndex = startIndex, count=1, lst=[];
var tds = $rows.find('td:eq('+ currentIndex +')');
var ctrl = $(tds[0]);
lst.push($rows[0]);
for (i=1;i&lt;=tds.length;i++){
if (ctrl.text() ==  $(tds[i]).text()){
count++;
$(tds[i]).addClass('deleted');
lst.push($rows[i]);
}
else{
if (count&gt;1){
ctrl.attr('rowspan',count);
groupTable($(lst),startIndex+1,total-1)
}
count=1;
lst = [];
ctrl=$(tds[i]);
lst.push($rows[i]);
}
}
}
groupTable($('#myTable tr:has(td)'),0,3);
$('#myTable .deleted').remove();
});
</pre>
<p><strong>groupTable</strong> method has 3 arguments:<br />
<strong> $rows</strong>: jQuery object of table rows to be grouped<br />
<strong> startIndex</strong>: index of first column to be grouped<br />
<strong> total</strong>: total number of columns to be grouped</p>
<p> In above code<strong> startIndex =0</strong> and <strong>total = 3</strong> it means table is grouped by first, second and third column.  After grouping, you need to remove deleted class elements like this:<br />
<strong> $(&#8216;#myTable .deleted&#8217;).remove();</strong></p>
<p>you can use code, but need to keep CREDIT COMMENT. The idea came to implement this just one hour ago. So the code can be optimized. Anyway, let me know if you have any issue.</p>
<p>Related posts:<ol>
<li><a href='http://techbrij.com/869/grouping-gridview-rows-asp-net' rel='bookmark' title='Grouping Data in ASP.NET Gridview Control'>Grouping Data in ASP.NET Gridview Control</a></li>
<li><a href='http://techbrij.com/485/clone-html-form-selected-options-jquery-firefox' rel='bookmark' title='Clone html form elements with selected options using jQuery'>Clone html form elements with selected options using jQuery</a></li>
<li><a href='http://techbrij.com/817/fede-search-engine-web-developers-designer-html-css-javascript-jquery' rel='bookmark' title='FEDe: A Search engine for Front-End (HTML, CSS, Javascript &amp; jQuery) Web developers'>FEDe: A Search engine for Front-End (HTML, CSS, Javascript &#038; jQuery) Web developers</a></li>
<li><a href='http://techbrij.com/780/seat-reservation-with-jquery' rel='bookmark' title='Seat Reservation with jQuery'>Seat Reservation with jQuery</a></li>
<li><a href='http://techbrij.com/831/display-total-gridview-footer-row-linq-asp-net' rel='bookmark' title='Displaying Total in ASP.NET Gridview Footer Row Without using Template Field'>Displaying Total in ASP.NET Gridview Footer Row Without using Template Field</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techbrij.com/866/html-table-row-grouping-jquery/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display File Download Count in WordPress</title>
		<link>http://techbrij.com/860/display-file-download-count-wordpress</link>
		<comments>http://techbrij.com/860/display-file-download-count-wordpress#comments</comments>
		<pubDate>Thu, 26 Jan 2012 11:21:57 +0000</pubDate>
		<dc:creator>Brij</dc:creator>
				<category><![CDATA[Blogger Corner]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://techbrij.com/?p=860</guid>
		<description><![CDATA[How to Display File Download Count using Wordpress download monitor plugin
Related posts:<ol>
<li><a href='http://techbrij.com/703/redirect-stream-file-attachment-download-aspdotnet' rel='bookmark' title='Redirect to Stream as File Attachment to Download in ASP.NET'>Redirect to Stream as File Attachment to Download in ASP.NET</a></li>
<li><a href='http://techbrij.com/105/wordpress-tips-to-upload-images-effectively' rel='bookmark' title='WordPress Tips to upload images effectively'>WordPress Tips to upload images effectively</a></li>
<li><a href='http://techbrij.com/342/create-project-collection-theme-wordpress-3-custom-post-type' rel='bookmark' title='Create a Project Collection Theme using WordPress 3.0 Custom Post Type'>Create a Project Collection Theme using WordPress 3.0 Custom Post Type</a></li>
<li><a href='http://techbrij.com/238/setup-wordpress-on-local-xampp-from-production-server' rel='bookmark' title='Setup wordpress on local xampp from production server'>Setup wordpress on local xampp from production server</a></li>
<li><a href='http://techbrij.com/755/download-install-religare-racepro-trading-app-on-windows' rel='bookmark' title='Download &amp; Install Religare RacePro(Trading App) on Windows'>Download &#038; Install Religare RacePro(Trading App) on Windows</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/CY3iDhrVA4Fb7ChMruh3cBfGf2U/0/da"><img src="http://feedads.g.doubleclick.net/~a/CY3iDhrVA4Fb7ChMruh3cBfGf2U/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/CY3iDhrVA4Fb7ChMruh3cBfGf2U/1/da"><img src="http://feedads.g.doubleclick.net/~a/CY3iDhrVA4Fb7ChMruh3cBfGf2U/1/di" border="0" ismap="true"></img></a></p><p>In some posts, I&#8217;ve attached source code and files allowing user to download. Now I&#8217;m interested to check how many times file downloaded and how to display it with download link as in other sites. I found different WordPress plugins like <a href="http://wordpress.org/extend/plugins/wp-downloadmanager/" rel="nofollow external" target="_blank">WP-DownloadManager</a>,<a href="http://wordpress.org/extend/plugins/downloads-manager/" rel="nofollow external" target="_blank"> Downloads Manager</a>, <a  rel="nofollow external" target="_blank" href="http://wordpress.org/extend/plugins/download-monitor/">WordPress Download Monitor</a>, <a href="http://wordpress.org/extend/plugins/wordpress-download-counter/" rel="nofollow external" target="_blank">WordPress Download Counter</a>..etc. All are doing file management perfectly, But I like <strong>WordPress Download Monitor</strong> the most. It allows you to upload files, store it on your server and share it with your readers. You can install and activate it easily as normal plugin.<span id="more-860"></span></p>
<h3>How to Use: </h3>
<p>It&#8217;s very easy to use. In your post page, Just click on down arrow icon, select file or upload file with details and click on save/insert button as in below image and It will insert the code look something like<strong> [download id="1"]</strong> which is parsed on viewing post.</p>
<p><img src="http://img.techbrij.com/860/download-monitor-wordpress.png" alt="download monitor wordpress Display File Download Count in Wordpress"  title="Display File Download Count in Wordpress" /></p>
<h3>Customize Format:</h3>
<p>You can create your own custom template to show download file in your format.<br />
Go to <strong>DownLoads > Configuration > Cusotm Output Formats</strong><br />
Enter Name and format using available tags <strong>{url}</strong>,<strong>{title}</strong>&#8230;etc.</p>
<p><img src="http://img.techbrij.com/860/download-monitor-wordpress2.png" alt="download monitor wordpress2 Display File Download Count in Wordpress"  title="Display File Download Count in Wordpress" /></p>
<p>For above template, enter following code in format:</p>
<pre class="brush: xml; title: ;">

&lt;div class=&quot;downloadBox&quot; style=&quot;border: 1px solid gray; padding: 15px 5px 5px; text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: 24px;&quot;&gt;{title}&lt;/span&gt;
&lt;div style=&quot;background-color: #3B5998; border-radius: 10px 10px 10px 10px; color: #ffffff !important; display: block; font-size: 16px; font-weight: bold; margin:7px auto; padding: 5px 18px; text-align: center; width: 200px; &quot;&gt;&lt;a href=&quot;{url}&quot; style=&quot;color:white&quot;&gt;Download&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: gray;&quot;&gt;{hits} total downloads, {size} &lt;/span&gt;
&lt;/div&gt;
</pre>
<p>After saving format, you can select format from dropdown-list during inserting into post OR you can pass ID of format something like this</p>
<p><strong>[download id="2" format="2"]</strong></p>
<h3>Customize URL: </h3>
<p>By default, the download URL is in following format:</p>
<p><strong>http://yourdomain.com/wp-content/plugins/download-monitor/download.php?id=1</strong></p>
<p>You can customize it in<strong> DownLoads > Configuration > Custom Download URL</strong> and select one of ID, FileName or Title options. If you select filename, new URL will be </p>
<p><strong>http://yourdomain.com/downloads/filename.zip</strong></p>
<p>It&#8217;s good for SEO as well as user convenient.</p>
<h3>Create a Download Page: </h3>
<p>You can create a download page easily. Goto <strong>Pages > Add New</strong> > Enter <strong>[download_page] </strong>in post and publish it.</p>
<p><img src="http://img.techbrij.com/860/download-monitor-wordpress3.png" alt="download monitor wordpress3 Display File Download Count in Wordpress"  title="Display File Download Count in Wordpress" /></p>
<p>You will get page in default format having search box, popular posts and categorywise post. you can customize it by using available shortcode options. You can get details in <a href="http://blue-anvil.com/archives/wordpress-download-monitor-3-documentation/" rel="nofollow external" target="_blank">plugin documentation</a>.</p>
<p><img src="http://img.techbrij.com/860/download-monitor-wordpress4.png" alt="download monitor wordpress4 Display File Download Count in Wordpress"  title="Display File Download Count in Wordpress" /></p>
<p>This plugin is easily customizable and having full of features like category, images, supports external link and many more. You can get more in <a href="http://blue-anvil.com/archives/wordpress-download-monitor-3-documentation/" rel="nofollow external" target="_blank">plugin documentation</a>. Share your opinion and let me know how you are managing files and displaying their download count.</p>
<p>Related posts:<ol>
<li><a href='http://techbrij.com/703/redirect-stream-file-attachment-download-aspdotnet' rel='bookmark' title='Redirect to Stream as File Attachment to Download in ASP.NET'>Redirect to Stream as File Attachment to Download in ASP.NET</a></li>
<li><a href='http://techbrij.com/105/wordpress-tips-to-upload-images-effectively' rel='bookmark' title='WordPress Tips to upload images effectively'>WordPress Tips to upload images effectively</a></li>
<li><a href='http://techbrij.com/342/create-project-collection-theme-wordpress-3-custom-post-type' rel='bookmark' title='Create a Project Collection Theme using WordPress 3.0 Custom Post Type'>Create a Project Collection Theme using WordPress 3.0 Custom Post Type</a></li>
<li><a href='http://techbrij.com/238/setup-wordpress-on-local-xampp-from-production-server' rel='bookmark' title='Setup wordpress on local xampp from production server'>Setup wordpress on local xampp from production server</a></li>
<li><a href='http://techbrij.com/755/download-install-religare-racepro-trading-app-on-windows' rel='bookmark' title='Download &amp; Install Religare RacePro(Trading App) on Windows'>Download &#038; Install Religare RacePro(Trading App) on Windows</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techbrij.com/860/display-file-download-count-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Month Range Picker using jQuery UI Datepicker</title>
		<link>http://techbrij.com/856/month-range-picker-jquery-ui-datepicker</link>
		<comments>http://techbrij.com/856/month-range-picker-jquery-ui-datepicker#comments</comments>
		<pubDate>Sun, 22 Jan 2012 14:37:39 +0000</pubDate>
		<dc:creator>Brij</dc:creator>
				<category><![CDATA[Designer Corner]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jquery ui]]></category>

		<guid isPermaLink="false">http://techbrij.com/?p=856</guid>
		<description><![CDATA[How to use jQuery Datepicker to select month range (start and end months). 
Related posts:<ol>
<li><a href='http://techbrij.com/813/jquery-date-range-picker-select-year-month-quarter' rel='bookmark' title='jQuery Date Range Picker To Select Year, Month Or Quarter Only'>jQuery Date Range Picker To Select Year, Month Or Quarter Only</a></li>
<li><a href='http://techbrij.com/210/convert-timespan-to-year-month-date-age-calculation-in-net' rel='bookmark' title='Convert TimeSpan to year, month, date (Age Calculation) in .NET'>Convert TimeSpan to year, month, date (Age Calculation) in .NET</a></li>
<li><a href='http://techbrij.com/310/jquery-operations-on-dropdownlist-combobox' rel='bookmark' title='jQuery: Common Operations on DropdownList (Combobox)'>jQuery: Common Operations on DropdownList (Combobox)</a></li>
<li><a href='http://techbrij.com/485/clone-html-form-selected-options-jquery-firefox' rel='bookmark' title='Clone html form elements with selected options using jQuery'>Clone html form elements with selected options using jQuery</a></li>
<li><a href='http://techbrij.com/313/jquery-common-operations-on-radio-button-checkbox' rel='bookmark' title='jQuery: Common Operations on Radio Button &amp; Checkbox'>jQuery: Common Operations on Radio Button &#038; Checkbox</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/BskOYIVQ5PH6NXV4FidO2V3oFTQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/BskOYIVQ5PH6NXV4FidO2V3oFTQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/BskOYIVQ5PH6NXV4FidO2V3oFTQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/BskOYIVQ5PH6NXV4FidO2V3oFTQ/1/di" border="0" ismap="true"></img></a></p><p>In this article, we&#8217;ll implement month range selection feature in which user can select start and end months to get monthly data and we don&#8217;t want to add one more external library for this if jQuery UI is already being used in the project. We&#8217;ll use <a href="http://techbrij.com/category/designer-corner/javascript-jquery">jQuery</a> UI date-picker to show month and year only to select month range. <span id="more-856"></span><br />
By default, jQuery UI datepicker doesn&#8217;t provide to pick month and year only but we can achieve it by simply hiding calendar and displaying date in &#8220;<strong>MM yy</strong>&#8221; format. </p>
<p><img src="http://img.techbrij.com/855/month-range-picker-jquery-ui.png" alt="month range picker jquery ui Month Range Picker using jQuery UI Datepicker"  title="Month Range Picker using jQuery UI Datepicker" /></p>
<h3>HTML:</h3>
<p>To hide calendar control, set <strong>display:none</strong> for calendar.</p>
<pre class="brush: xml; title: ;">
&lt;style type=&quot;text/css&quot;&gt;

.ui-datepicker-calendar {
    display: none;
    }

&lt;/style&gt;
&lt;div style=&quot;text-align:center;&quot;&gt;
 &lt;label for=&quot;from&quot;&gt;From&lt;/label&gt;
 &lt;input type=&quot;text&quot; id=&quot;from&quot; name=&quot;from&quot; readonly=&quot;readonly&quot; /&gt;
 &lt;label for=&quot;to&quot;&gt;to&lt;/label&gt;
 &lt;input type=&quot;text&quot; id=&quot;to&quot; name=&quot;to&quot; readonly=&quot;readonly&quot;  /&gt;
 &lt;input type=&quot;button&quot; id=&quot;btnShow&quot; value=&quot;Show&quot; /&gt;
&lt;/div&gt;
</pre>
<h3>Script:</h3>
<pre class="brush: jscript; title: ;">
 $( &quot;#from, #to&quot; ).datepicker({
            changeMonth: true,
            changeYear: true,
            showButtonPanel: true,
            dateFormat: 'MM yy',
            onClose: function(dateText, inst) {
                var month = $(&quot;#ui-datepicker-div .ui-datepicker-month :selected&quot;).val();
                var year = $(&quot;#ui-datepicker-div .ui-datepicker-year :selected&quot;).val();
                $(this).datepicker('setDate', new Date(year, month, 1));
            },
            beforeShow : function(input, inst) {
                if ((datestr = $(this).val()).length &gt; 0) {
                    year = datestr.substring(datestr.length-4, datestr.length);
                    month = jQuery.inArray(datestr.substring(0, datestr.length-5), $(this).datepicker('option', 'monthNames'));
                    $(this).datepicker('option', 'defaultDate', new Date(year, month, 1));
                    $(this).datepicker('setDate', new Date(year, month, 1));
				}
				var other = this.id == &quot;from&quot; ? &quot;#to&quot; : &quot;#from&quot;;
				var option = this.id == &quot;from&quot; ? &quot;maxDate&quot; : &quot;minDate&quot;;
				if ((selectedDate = $(other).val()).length &gt; 0) {
					year = selectedDate.substring(selectedDate.length-4, selectedDate.length);
                    month = jQuery.inArray(selectedDate.substring(0, selectedDate.length-5), $(this).datepicker('option', 'monthNames'));
					$(this).datepicker( &quot;option&quot;, option, new Date(year, month, 1));
				}
            }
        });
		$(&quot;#btnShow&quot;).click(function(){
		if ($(&quot;#from&quot;).val().length == 0 || $(&quot;#to&quot;).val().length == 0){
			alert('All fields are required');
		}
		else{
			alert('Selected Month Range :'+ $(&quot;#from&quot;).val() + ' to ' + $(&quot;#to&quot;).val());
			}
		})
</pre>
<p>In above code, to display month and year of selected value:</p>
<p><strong> dateFormat: &#8216;MM yy&#8217;,	</strong></p>
<p> <strong>&#8216;From Month&#8217;</strong> must be less than or equal to <strong>&#8216;To Month&#8217;</strong>. For this, the <strong>minDate </strong>or <strong>maxDate </strong>is defined as per user selected value in <strong>&#8216;beforeShow&#8217; </strong>event.</p>
<div style="width: 100%;"><a style="background-color: gray; color: white; display: block; font-size: 18px; font-weight: bold; margin: 7px; min-width: 300px; padding: 10px; text-align: center; width: 320px;" target="_blank" href="http://demo.techbrij.com/855/demo-jquery-ui-month-range-picker-date.php">Live Demo</a></div>
<p> If you need month and year in integer format to pass in your query or stored procedure, you can take hidden field and set month and year value in &#8216;<strong>onClose</strong>&#8216; method and use it on server side. If you have to implement to select a particular month and get start and end date of the month, visit my <a href="http://techbrij.com/813/jquery-date-range-picker-select-year-month-quarter" target="_blank">this article</a>.</p>
<p>Hope, It helps. </p>
<p>Related posts:<ol>
<li><a href='http://techbrij.com/813/jquery-date-range-picker-select-year-month-quarter' rel='bookmark' title='jQuery Date Range Picker To Select Year, Month Or Quarter Only'>jQuery Date Range Picker To Select Year, Month Or Quarter Only</a></li>
<li><a href='http://techbrij.com/210/convert-timespan-to-year-month-date-age-calculation-in-net' rel='bookmark' title='Convert TimeSpan to year, month, date (Age Calculation) in .NET'>Convert TimeSpan to year, month, date (Age Calculation) in .NET</a></li>
<li><a href='http://techbrij.com/310/jquery-operations-on-dropdownlist-combobox' rel='bookmark' title='jQuery: Common Operations on DropdownList (Combobox)'>jQuery: Common Operations on DropdownList (Combobox)</a></li>
<li><a href='http://techbrij.com/485/clone-html-form-selected-options-jquery-firefox' rel='bookmark' title='Clone html form elements with selected options using jQuery'>Clone html form elements with selected options using jQuery</a></li>
<li><a href='http://techbrij.com/313/jquery-common-operations-on-radio-button-checkbox' rel='bookmark' title='jQuery: Common Operations on Radio Button &amp; Checkbox'>jQuery: Common Operations on Radio Button &#038; Checkbox</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techbrij.com/856/month-range-picker-jquery-ui-datepicker/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Run Your Custom Script Quickly with SSMS Tools Pack</title>
		<link>http://techbrij.com/852/run-custom-script-ssms-tools-pack-quickly</link>
		<comments>http://techbrij.com/852/run-custom-script-ssms-tools-pack-quickly#comments</comments>
		<pubDate>Thu, 19 Jan 2012 16:38:10 +0000</pubDate>
		<dc:creator>Brij</dc:creator>
				<category><![CDATA[Dev Corner]]></category>
		<category><![CDATA[Web Tools Utilities]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[SSMS]]></category>

		<guid isPermaLink="false">http://techbrij.com/?p=852</guid>
		<description><![CDATA[How to Run Your Custom SQL Script Quickly with SSMS Tools Pack in SQL Server Management Studio
Related posts:<ol>
<li><a href='http://techbrij.com/262/fast-development-with-free-online-techbrij-tools' rel='bookmark' title='Fast Development with Free Online TechBrij’s Tools'>Fast Development with Free Online TechBrij’s Tools</a></li>
<li><a href='http://techbrij.com/206/custom-role-provider-based-sitemap-navigation-in-asp-net' rel='bookmark' title='Custom role provider based sitemap navigation in asp.net'>Custom role provider based sitemap navigation in asp.net</a></li>
<li><a href='http://techbrij.com/824/add-facebook-like-button-google-custom-search-results' rel='bookmark' title='Add Facebook Like Button in Your Google Custom Search Results'>Add Facebook Like Button in Your Google Custom Search Results</a></li>
<li><a href='http://techbrij.com/213/create-windows-service-quickly-using-net' rel='bookmark' title='Create Windows Service quickly using .NET'>Create Windows Service quickly using .NET</a></li>
<li><a href='http://techbrij.com/436/25-free-online-tools-web-design-development' rel='bookmark' title='25 Free Online Tools for Web Design and Development'>25 Free Online Tools for Web Design and Development</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/EOY3apqs1QHZUItLD3n9bAXGhzw/0/da"><img src="http://feedads.g.doubleclick.net/~a/EOY3apqs1QHZUItLD3n9bAXGhzw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/EOY3apqs1QHZUItLD3n9bAXGhzw/1/da"><img src="http://feedads.g.doubleclick.net/~a/EOY3apqs1QHZUItLD3n9bAXGhzw/1/di" border="0" ismap="true"></img></a></p><p>Suppose you have to do a task repeatedly with different objects of database, for example, you have to generate code or stored procs of table in the specific format, you created your custom SQL script which takes table name and generate the code. But each time, you have to execute query and pass table name.<br />
What&#8217;ll happen If you right click on the table and select your script to execute. It&#8217;ll save bunch of time as well as stop you getting irritated <img src='http://techbrij.com/wp-includes/images/smilies/icon_smile.gif' alt="icon smile Run Your Custom Script Quickly with SSMS Tools Pack" class='wp-smiley' title="Run Your Custom Script Quickly with SSMS Tools Pack" />  Let&#8217;s see how to do using SSMS Tools Pack.<br />
<span id="more-852"></span></p>
<h3> SSMS Tools Pack:</h3>
<p>It is the best free Sql Server Management Studio(SSMS)&#8217;s add-in having lots of features like Execution Plan Analyzer, SQL Snippets, Execution History, Search Table, View or Database Data, Search Results in Grid Mode, Generate Insert statements from result sets, tables or database, Regions and Debug sections, CRUD stored procedure generation, New query template..etc.<br />
<a href="http://www.ssmstoolspack.com/" rel="nofollow external" target="_blank">Website Link</a><br />
<a href="http://www.ssmstoolspack.com/Download" rel="nofollow external" target="_blank">Download Link</a></p>
<h3>Steps:</h3>
<p> Suppose you want to see total number of records in different tables.</p>
<p>1. Click on SSMS Tools > &#8220;<strong>Run Custom Script</strong>&#8221; > <strong>Options</strong></p>
<p><img src="http://img.techbrij.com/852/SSMS-Tools-Pack-TechBrij-1.png" alt="SSMS Tools Pack TechBrij 1 Run Your Custom Script Quickly with SSMS Tools Pack"  title="Run Your Custom Script Quickly with SSMS Tools Pack" /></p>
<p>2. Left side of dialog, Enter Shortcut <strong>&#8216;Total Records</strong>&#8216; and check Run checkbox</p>
<p><img src="http://img.techbrij.com/852/SSMS-Tools-Pack-TechBrij-2.png" alt="SSMS Tools Pack TechBrij 2 Run Your Custom Script Quickly with SSMS Tools Pack"  title="Run Your Custom Script Quickly with SSMS Tools Pack" /></p>
<p>3. Right Side, Click on &#8216;<strong>Enabled On..</strong>&#8216; option and select &#8216;table&#8217;. It means this will appear on each table.</p>
<p>4. Enter following script</p>
<p><strong>Select Count(*) from |SchemaName|.|ObjectName| </strong></p>
<p>Here <strong>|SchemaName|</strong> and <strong>|ObjectName| </strong>are replacement texts. You can see available replacements options on &#8216;<strong>Replacement Texts</strong>&#8216; click.</p>
<p><img src="http://img.techbrij.com/852/SSMS-Tools-Pack-TechBrij-4.png" alt="SSMS Tools Pack TechBrij 4 Run Your Custom Script Quickly with SSMS Tools Pack"  title="Run Your Custom Script Quickly with SSMS Tools Pack" /></p>
<p>Click on <strong>Save </strong>and <strong>OK </strong>button.<br />
5. Now, Right click on any table > &#8220;<strong>Select SSMS Tools</strong>&#8221; > <strong>Run Custom Scripts</strong> > <strong>Total Records</strong></p>
<p><img src="http://img.techbrij.com/852/SSMS-Tools-Pack-TechBrij-5.png" alt="SSMS Tools Pack TechBrij 5 Run Your Custom Script Quickly with SSMS Tools Pack"  title="Run Your Custom Script Quickly with SSMS Tools Pack" /></p>
<p>You will get Total Records in result and no need to pass table name in query again and again.</p>
<p><img src="http://img.techbrij.com/852/SSMS-Tools-Pack-TechBrij-6.png" alt="SSMS Tools Pack TechBrij 6 Run Your Custom Script Quickly with SSMS Tools Pack"  title="Run Your Custom Script Quickly with SSMS Tools Pack" /></p>
<p>Similarly, you can run your other custom scripts quickly. It is very helpful as a code generation tool. Let me know how you are using it.</p>
<p>Related posts:<ol>
<li><a href='http://techbrij.com/262/fast-development-with-free-online-techbrij-tools' rel='bookmark' title='Fast Development with Free Online TechBrij’s Tools'>Fast Development with Free Online TechBrij’s Tools</a></li>
<li><a href='http://techbrij.com/206/custom-role-provider-based-sitemap-navigation-in-asp-net' rel='bookmark' title='Custom role provider based sitemap navigation in asp.net'>Custom role provider based sitemap navigation in asp.net</a></li>
<li><a href='http://techbrij.com/824/add-facebook-like-button-google-custom-search-results' rel='bookmark' title='Add Facebook Like Button in Your Google Custom Search Results'>Add Facebook Like Button in Your Google Custom Search Results</a></li>
<li><a href='http://techbrij.com/213/create-windows-service-quickly-using-net' rel='bookmark' title='Create Windows Service quickly using .NET'>Create Windows Service quickly using .NET</a></li>
<li><a href='http://techbrij.com/436/25-free-online-tools-web-design-development' rel='bookmark' title='25 Free Online Tools for Web Design and Development'>25 Free Online Tools for Web Design and Development</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techbrij.com/852/run-custom-script-ssms-tools-pack-quickly/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

