<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8124039877066021393</id><updated>2012-01-30T07:25:17.320-08:00</updated><category term='Surjit Dadhwal'/><category term='Check-Uncheck'/><category term='Hindi'/><category term='Optimize javascript'/><category term='Truncate file'/><category term='jQuery'/><category term='RenderControlToString'/><category term='jquery $ method'/><category term='Tips for Javascript'/><category term='Language'/><category term='SQL Tips'/><category term='Javascript useful links'/><category term='Javascript HTML'/><category term='Sample javascript codes'/><category term='jquery selectors'/><category term='javascript calendar'/><category term='Tips'/><category term='HTML Tips'/><category term='Helpful TIPS'/><category term='Indian language'/><category term='META'/><title type='text'>My Experiences</title><subtitle type='html'>Hey friends, I would like to share all the small/big things i have learned during my experience. If you find this blog helpful, please leave your comments</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://surjitdadhwal.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://surjitdadhwal.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Surjit Dadhwal</name><uri>http://www.blogger.com/profile/15544296152777769870</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/-mIXl4NuzK08/Tya0MQug_vI/AAAAAAAADlQ/BFKNRfXi8ps/s220/DSC_3431.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8124039877066021393.post-1630955282960727090</id><published>2009-06-10T02:15:00.000-07:00</published><updated>2009-06-10T02:23:45.123-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jquery selectors'/><category scheme='http://www.blogger.com/atom/ns#' term='jquery $ method'/><category scheme='http://www.blogger.com/atom/ns#' term='jQuery'/><title type='text'></title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;"&gt;jQuery selectors are one of the most important aspects of the jQuery library. These selectors use familiar CSS syntax to allow page authors to quickly and easily identify any set of page elements to operate upon with the jQuery library methods. Understanding jQuery selectors is the key to using the jQuery library most effectively. This reference card puts the power of jQuery selectors at your very fingertips.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;&lt;u&gt;&lt;span style="color:#990000;"&gt;Complete Selectors List&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;&lt;u&gt;&lt;span style="color:#ffff66;"&gt;Selector&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;: Element&lt;br /&gt;Example: $("td")&lt;br /&gt;Description: Select an HTML element tag&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;&lt;span style="color:#ffff33;"&gt;Selector&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;: #id&lt;br /&gt;Example: $("#divMessage")&lt;br /&gt;Description: Selects an element by its id&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;&lt;span style="color:#ffff33;"&gt;Selector&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;: .cssclass&lt;br /&gt;Example: $(".gridalternate")&lt;br /&gt;Description: Selects a CSS style&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;&lt;span style="color:#ffff33;"&gt;Selector&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;: selector,selector&lt;br /&gt;Example: $("input:button,input:text")&lt;br /&gt;Description: Multiple comma separated selectors can be combined into a single selection.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;&lt;span style="color:#ffff33;"&gt;Selector&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;: ancestor descendant&lt;br /&gt;Example: $("#divMessage a")&lt;br /&gt;Description: A space between selectors/elements/tags finds nested elements. This syntax is similar to Css ancestor descendant syntax.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;&lt;span style="color:#ffff33;"&gt;Selector&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;: parent &gt; child &gt; child&lt;br /&gt;Example: $("p &gt; b")&lt;br /&gt;Description: Matches all immediate children of an element or selector expression that match the right element/selector.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;&lt;span style="color:#ffff33;"&gt;Selector&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;: prev ~ siblings ~ siblings&lt;br /&gt;Example: $("#row_11:nth-child(2)~td")&lt;br /&gt;$("~td")&lt;br /&gt;Description: Matches the next siblings at the sample level as the preceeding expression. Example, matches 3-nth columns of a table row. Best used as a find() or filter() against an existing jQuery instance.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;&lt;span style="color:#ffff33;"&gt;Selector&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;: prev + nextsibling + nextsibling&lt;br /&gt;Example: $("#tdMoneyCol+td")&lt;br /&gt;$("+td")&lt;br /&gt;Description: Matches the following sibling. Works best with find() or filter() against an existing jQuery object.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;&lt;span style="color:#ffff33;"&gt;Selector&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;: filter&lt;br /&gt;Example: $("input:button")&lt;br /&gt;Description: applies filters to the query. jQuery support CSS 3 filters plus a number of custom filters.&lt;br /&gt;Examples: :not,:button,:visible,:hidden,:checked,:first,nth-child(1),:has,:is,:contains,:parent&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;&lt;span style="color:#ffff33;"&gt;Selector&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;: [@attribute]&lt;br /&gt;Example: $("p[class=gridalternate]&lt;br /&gt;Description: Selects an attribute of an element&lt;br /&gt;= equals string&lt;br /&gt;^= startswith&lt;br /&gt;$= endswith&lt;br /&gt;*= contains&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8124039877066021393-1630955282960727090?l=surjitdadhwal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://surjitdadhwal.blogspot.com/feeds/1630955282960727090/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8124039877066021393&amp;postID=1630955282960727090' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/1630955282960727090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/1630955282960727090'/><link rel='alternate' type='text/html' href='http://surjitdadhwal.blogspot.com/2009/06/jquery-selectors-are-one-of-most.html' title=''/><author><name>Surjit Dadhwal</name><uri>http://www.blogger.com/profile/15544296152777769870</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/-mIXl4NuzK08/Tya0MQug_vI/AAAAAAAADlQ/BFKNRfXi8ps/s220/DSC_3431.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8124039877066021393.post-5275686614142483977</id><published>2009-06-09T02:43:00.000-07:00</published><updated>2009-06-09T03:16:54.599-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jQuery'/><title type='text'>jQuery Introduction</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;&lt;u&gt;What is jQuery?&lt;/u&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;jQuery is great library for developing ajax based application. &lt;a href="http://www.jquery.com/" target="_blank"&gt;jQuery &lt;/a&gt;is great library for the JavaScript programmers, which simplifies the development of web 2.0 applications. You can use &lt;a href="http://www.jquery.com/" target="_blank"&gt;jQuery &lt;/a&gt;to develop cool web 2.0 applications. jQuery helps the programmers to keep code simple and concise. The jQuery library is designed to keep the things very simple and reusable.&lt;br /&gt;jQuery library simplifies the process of traversal of HTML DOM tree. You can use &lt;a href="http://www.jquery.com/" target="_blank"&gt;jQuery &lt;/a&gt;to handle events, perform animation, and add the ajax support into your web applications with ease.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;The jQuery JavaScript library "tries to treat its users with a sense of respect," simplifies development and makes coding fun, its creator says.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;John Resig&lt;/em&gt;, the creator of &lt;a href="http://www.jquery.com/" target="_blank"&gt;jQuery &lt;/a&gt;, said the technology reached its 1.0 release on Aug. 26. jQuery is essentially a new type of JavaScript library that allows developers to work "unobtrusively" with JavaScript.&lt;br /&gt;&lt;br /&gt;The word "&lt;strong&gt;query&lt;/strong&gt;" in the library's name says it all. It refers to running queries over the DOM of the page, which is where jQuery gets its power.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Features of jQuery&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;DOM element selections functions&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;DOM traversal and modification&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Events&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;CSS manipulation&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Effects and animations &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Ajax &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Extensibility &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Utilities - such as browser version and the each function. &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;JavaScript Plugins &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;Visit &lt;a href="http://www.jquery.com/"&gt;http://www.jquery.com/&lt;/a&gt; (official jQuery website) for any references&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;&lt;strong&gt;Downloads:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;&lt;a href="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"&gt;jQuery version 1.3.2&lt;/a&gt; (latest release-MINIFIED version)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;&lt;a href="http://jqueryjs.googlecode.com/files/jquery-1.3.2.js"&gt;jQuery version 1.3.2&lt;/a&gt; (latest release-DEVELOPMENT version)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;Any Other &lt;a href="http://docs.jquery.com/Downloading_jQuery"&gt;specific version&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8124039877066021393-5275686614142483977?l=surjitdadhwal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://surjitdadhwal.blogspot.com/feeds/5275686614142483977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8124039877066021393&amp;postID=5275686614142483977' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/5275686614142483977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/5275686614142483977'/><link rel='alternate' type='text/html' href='http://surjitdadhwal.blogspot.com/2009/06/jquery-introduction.html' title='jQuery Introduction'/><author><name>Surjit Dadhwal</name><uri>http://www.blogger.com/profile/15544296152777769870</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/-mIXl4NuzK08/Tya0MQug_vI/AAAAAAAADlQ/BFKNRfXi8ps/s220/DSC_3431.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8124039877066021393.post-999687121541937311</id><published>2008-05-13T04:10:00.000-07:00</published><updated>2008-05-13T04:35:07.721-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RenderControlToString'/><title type='text'>Sample Code (.Net)-1</title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;Most of the time we came across need to get HTML render string for any control. .Net provides a support for this, but is a bit complicated. This function is very helpful when working with AJAX or ICallback event handler&lt;br /&gt;&lt;br /&gt;So no worries friends, here is a sample code that will help all of us to get RederHTML string of any control.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;private string RenderControlToString(Control c)&lt;br /&gt;           {&lt;br /&gt;&lt;br /&gt;               StringBuilder sb = new StringBuilder();&lt;br /&gt;               System.IO.StringWriter sw = new System.IO.StringWriter(sb);&lt;br /&gt;               HtmlTextWriter htmlWriter = new HtmlTextWriter(sw);&lt;br /&gt;               c.RenderControl(htmlWriter);&lt;br /&gt;               c.Dispose();&lt;br /&gt;               sw.Close();&lt;br /&gt;               return sb.ToString();&lt;br /&gt;           }&lt;br /&gt;&lt;br /&gt;call this function wherever required.... cheers&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8124039877066021393-999687121541937311?l=surjitdadhwal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://surjitdadhwal.blogspot.com/feeds/999687121541937311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8124039877066021393&amp;postID=999687121541937311' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/999687121541937311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/999687121541937311'/><link rel='alternate' type='text/html' href='http://surjitdadhwal.blogspot.com/2008/05/sample-code-net-1.html' title='Sample Code (.Net)-1'/><author><name>Surjit Dadhwal</name><uri>http://www.blogger.com/profile/15544296152777769870</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/-mIXl4NuzK08/Tya0MQug_vI/AAAAAAAADlQ/BFKNRfXi8ps/s220/DSC_3431.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8124039877066021393.post-7650562651237753916</id><published>2008-04-29T02:02:00.000-07:00</published><updated>2008-04-29T02:09:41.179-07:00</updated><title type='text'>What is HTTP?</title><content type='html'>&lt;span style="font-family: verdana;font-size:85%;" &gt;HTTP&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: verdana;font-size:85%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;ul style="font-family: verdana;"&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;HTTP is actual communication protocol that enables web browsing.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Hypertext:- Textual data which is linked across multiple documents or locations&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;HTTP is used by server and your computer to transfer data between them. HTTP is an application protocol.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;HTTP defines how messages are formatted and transmitted and what actions web servers and web browsers should take in response to various commands.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;HTTP GET:- GET should be used if and only if the form processing is &lt;span style="font-weight: bold;"&gt;idempotent&lt;/span&gt; , means pure query form (many database searches have no visible side-effects and make ideal applications of query forms)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;HTTP POST:- if the service associated with the processing of a form has side effects (e.g. modification of a database or subscription to a service), the method POST should be used&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: verdana;"&gt;RESPONSE object&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;ul style="font-family: verdana;"&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;It communicates between the server and the output which is sent to the client&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;If you don't want the browser to cache the page (for quicker download times) then you can set Response.Expires=0&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:85%;"&gt;Buffer:- if buffer is set to true, the server processes the entire ASP script before sending any of the file to the client, otherwise the server will send data to client as it processes it.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8124039877066021393-7650562651237753916?l=surjitdadhwal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://surjitdadhwal.blogspot.com/feeds/7650562651237753916/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8124039877066021393&amp;postID=7650562651237753916' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/7650562651237753916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/7650562651237753916'/><link rel='alternate' type='text/html' href='http://surjitdadhwal.blogspot.com/2008/04/what-is-http.html' title='What is HTTP?'/><author><name>Surjit Dadhwal</name><uri>http://www.blogger.com/profile/15544296152777769870</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/-mIXl4NuzK08/Tya0MQug_vI/AAAAAAAADlQ/BFKNRfXi8ps/s220/DSC_3431.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8124039877066021393.post-395916808242656702</id><published>2008-04-29T01:36:00.000-07:00</published><updated>2008-04-29T01:45:01.772-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Tips'/><category scheme='http://www.blogger.com/atom/ns#' term='Truncate file'/><title type='text'>Tips &amp; Tricks</title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: verdana;"&gt;Hey friends,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;This post I have made to provide tips about SQL server. Most of you will find this as a very basic kind of tips but as I want to share my experience, so will say that knowing this information about SQL server was also very helpful.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold; font-family: verdana;font-size:85%;" &gt;1) How to get Comma Separated value from one database field&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: verdana;"&gt; (like 'surjit', 'harjit', 'ramu', 'fakirchand')?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;In stored procedure use the following:&lt;br /&gt;Declare @commaVar as varchar(4000)&lt;br /&gt;Select @commaVar = IsNull(@CommaVar +',','') + convert(varchar,&lt;fieldname&gt;) from &lt;tablename&gt;&lt;br /&gt;&lt;br /&gt;/* That's it friends----don't write this in Stored procedure :)*/&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2) How to reduce LogFile size when error is coming to truncate size?&lt;/span&gt;&lt;br /&gt;Most of time, need arises to truncate the size of database log file. Use the following to make it work:&lt;br /&gt;&lt;br /&gt;BACKUP LOG &lt;dbname&gt; WITH TRUNCATE_ONLY.&lt;br /&gt;&lt;br /&gt;That's it. Enjoy.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8124039877066021393-395916808242656702?l=surjitdadhwal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://surjitdadhwal.blogspot.com/feeds/395916808242656702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8124039877066021393&amp;postID=395916808242656702' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/395916808242656702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/395916808242656702'/><link rel='alternate' type='text/html' href='http://surjitdadhwal.blogspot.com/2008/04/tips-tricks.html' title='Tips &amp; Tricks'/><author><name>Surjit Dadhwal</name><uri>http://www.blogger.com/profile/15544296152777769870</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/-mIXl4NuzK08/Tya0MQug_vI/AAAAAAAADlQ/BFKNRfXi8ps/s220/DSC_3431.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8124039877066021393.post-7058366702690202810</id><published>2008-04-28T02:04:00.000-07:00</published><updated>2008-05-01T00:51:05.259-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript useful links'/><category scheme='http://www.blogger.com/atom/ns#' term='javascript calendar'/><title type='text'>Javascript links</title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: verdana;"&gt;Hi friends,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Instead of providing details about my own experiences, I am keen to provide information about other useful information available on internet regarding Javascript.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;Following are useful links:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;1) http://www.java2s.com/Code/JavaScript/Javascript-Objects/ShowModalDialogwindowshowModalDialogURLmyArguments.htm&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2) Javascript Calendar (&lt;/span&gt;here is something we all always look for&lt;span style="font-weight: bold;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;use the underlying link to add javascript calendar on your web page.... FREE..... yepeee..&lt;br /&gt;http://www.dynamicdrive.com/dynamicindex7/jasoncalendar.htm&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8124039877066021393-7058366702690202810?l=surjitdadhwal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://surjitdadhwal.blogspot.com/feeds/7058366702690202810/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8124039877066021393&amp;postID=7058366702690202810' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/7058366702690202810'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/7058366702690202810'/><link rel='alternate' type='text/html' href='http://surjitdadhwal.blogspot.com/2008/04/javascript-links.html' title='Javascript links'/><author><name>Surjit Dadhwal</name><uri>http://www.blogger.com/profile/15544296152777769870</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/-mIXl4NuzK08/Tya0MQug_vI/AAAAAAAADlQ/BFKNRfXi8ps/s220/DSC_3431.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8124039877066021393.post-1720796907594602896</id><published>2008-04-21T01:55:00.000-07:00</published><updated>2008-04-28T02:25:34.831-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sample javascript codes'/><title type='text'>Sample Codes---Part 2</title><content type='html'>4) Get Client id of any asp.net control using javascript method&lt;br /&gt;&lt;br /&gt;Following are conditions to get client ID of respective .net control&lt;br /&gt;1) Container of that control should have some ID defined like if in 'td' then td id='someid'.&lt;br /&gt;2) You should know about the TagName of that respective control when it renders on browser. i.e. asp:textbox control becomes INPUT, asp:Label becomes SPAN, etc&lt;br /&gt;&lt;br /&gt;Thats it ...... now use the underlying methods to access the client id of respective .net control clientside... enjoy&lt;br /&gt;&lt;br /&gt;function getId(ctrlId)&lt;br /&gt;{&lt;br /&gt;return document.getElementById(ctrlId);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function getElementsByTag(control,tagName)&lt;br /&gt;{&lt;br /&gt;return control.getElementsByTagName(tagName);&lt;br /&gt;}&lt;br /&gt;function getClientId(containerId,controlId, tagName)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;var returnId=null;&lt;br /&gt;var ctlContainer = getId(containerId);&lt;br /&gt;if(null != ctlContainer)&lt;br /&gt;{&lt;br /&gt;var elements = getElementsByTag(ctlContainer,tagName)&lt;br /&gt;if(elements.length&gt;0)&lt;br /&gt;{&lt;br /&gt;for(i=0;i&lt;br /&gt;{&lt;br /&gt;if (elements[i].id.length &gt; 0)&lt;br /&gt;{&lt;br /&gt;tmp = elements[i].id.split('_');&lt;br /&gt;id = tmp[tmp.length-1];&lt;br /&gt;if(id==controlId)&lt;br /&gt;returnId = elements[i].id;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;return returnId;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8124039877066021393-1720796907594602896?l=surjitdadhwal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://surjitdadhwal.blogspot.com/feeds/1720796907594602896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8124039877066021393&amp;postID=1720796907594602896' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/1720796907594602896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/1720796907594602896'/><link rel='alternate' type='text/html' href='http://surjitdadhwal.blogspot.com/2008/04/sample-codes-part-2.html' title='Sample Codes---Part 2'/><author><name>Surjit Dadhwal</name><uri>http://www.blogger.com/profile/15544296152777769870</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/-mIXl4NuzK08/Tya0MQug_vI/AAAAAAAADlQ/BFKNRfXi8ps/s220/DSC_3431.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8124039877066021393.post-4228112870119642039</id><published>2008-03-10T08:04:00.000-07:00</published><updated>2008-03-10T08:22:02.307-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='META'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML Tips'/><category scheme='http://www.blogger.com/atom/ns#' term='Helpful TIPS'/><title type='text'>HTML Tips &amp; Tricks (must see)</title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;Following are some HTML Tips that i found very useful and collected during my work experience.&lt;br /&gt;&lt;br /&gt;1) &lt;span style="font-weight: bold;"&gt;To Hide Save toolbar from Images&lt;/span&gt;&lt;br /&gt;use the following code in html HEAD tag&lt;br /&gt;&lt;br /&gt; meta equiv='imagetoolbar' content='no'&lt;br /&gt;&lt;br /&gt;OR&lt;br /&gt;use the following in image attribute&lt;br /&gt;&lt;br /&gt;img src='abc.gif' galleryimg='no'&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2) &lt;span style="font-weight: bold;"&gt;Adding Scrollbars to DIV&lt;/span&gt;&lt;br /&gt;div style="'overflow:auto;" height="SPECIFTY HEIGHT'&lt;br /&gt;&lt;br /&gt;3) &lt;span style="font-weight: bold;"&gt;Exporting number fields (like phone number) from a dataGrid or any other grid to EXCEL&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Note, this implementation will only work if you are iterating in all columns and rows of the             respective  data to be exported in Excel&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;use the following CSS style while exporting the respective column.&lt;br /&gt;.text {mso-number-format:\@;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4) &lt;span style="font-weight: bold;"&gt;Remove crash in code if user writes &lt;script&gt;&lt;/script&gt; in any input box&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;use the following in Page directive (in aspx page) &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;OR in Web.config file &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;br /&gt;pages validaterequest="'false'"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Will continue to post more regarding same.&lt;br /&gt;&lt;br /&gt;Please provide comments if you find this post helpful.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8124039877066021393-4228112870119642039?l=surjitdadhwal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://surjitdadhwal.blogspot.com/feeds/4228112870119642039/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8124039877066021393&amp;postID=4228112870119642039' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/4228112870119642039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/4228112870119642039'/><link rel='alternate' type='text/html' href='http://surjitdadhwal.blogspot.com/2008/03/html-tips-tricks-must-see.html' title='HTML Tips &amp; Tricks (must see)'/><author><name>Surjit Dadhwal</name><uri>http://www.blogger.com/profile/15544296152777769870</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/-mIXl4NuzK08/Tya0MQug_vI/AAAAAAAADlQ/BFKNRfXi8ps/s220/DSC_3431.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8124039877066021393.post-8769087598668076894</id><published>2008-03-03T00:41:00.000-08:00</published><updated>2008-04-30T02:06:22.284-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Optimize javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Tips for Javascript'/><title type='text'>Tips &amp; Tricks</title><content type='html'>&lt;span style="font-weight: bold;"&gt;1) &lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-weight: bold;"&gt;Debugging Javascript Code (in aspx file)&lt;br /&gt;&lt;/span&gt;Step 1: Make sure that in Browser Advanced options Disable "&lt;span style="font-style: italic;"&gt;Script Debugging&lt;/span&gt;" option should be unchecked.&lt;br /&gt;Step 2: Write &lt;span style="font-weight: bold;"&gt;debugger;&lt;/span&gt; just before the line you want to debug to start at runtime.&lt;br /&gt;&lt;br /&gt;Thats it guys [:)], now run the application and when you will fire the respective event the debugger will act at a breakpoint applied on that page.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2) Getting away from document.getElementById() method&lt;/span&gt;&lt;br /&gt;Have you ever thought that you are writing 23 characters everytime, just to get a variable. Now if you have to get 10 variables in one method, you will have to call this method 10 times !! [:(].&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;Underlying is a suggestion to all of you (including me [:)])&lt;br /&gt;1) Add a .js file in your project&lt;br /&gt;2) Write a method&lt;br /&gt; function $(elementID) { return document.getElementById(elementID);}&lt;br /&gt;3) Use this $ whereever you have written document.getElementById.&lt;br /&gt;&lt;br /&gt;e.g. in aspx page javascript function&lt;br /&gt;var ctl = $('inputId');&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Note: make sure that the .js file is referenced on that page where you are using this method (this is th only limitation)&lt;/span&gt;&lt;br /&gt;Hear you go..... you have optimized your javascript code and replaced 23 letter function with only one character function.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3) To Register a script from Codebehind&lt;/span&gt;&lt;br /&gt;Use the following code sample, in Page_Load event:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_AT2U2p9U0Hs/SBg2UzqvSOI/AAAAAAAAA4U/Wov8q_zKI_8/s1600-h/CodebehindScript.JPG"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://bp0.blogger.com/_AT2U2p9U0Hs/SBg2UzqvSOI/AAAAAAAAA4U/Wov8q_zKI_8/s400/CodebehindScript.JPG" alt="" id="BLOGGER_PHOTO_ID_5194961901266618594" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8124039877066021393-8769087598668076894?l=surjitdadhwal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://surjitdadhwal.blogspot.com/feeds/8769087598668076894/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8124039877066021393&amp;postID=8769087598668076894' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/8769087598668076894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/8769087598668076894'/><link rel='alternate' type='text/html' href='http://surjitdadhwal.blogspot.com/2008/03/tips-tricks.html' title='Tips &amp; Tricks'/><author><name>Surjit Dadhwal</name><uri>http://www.blogger.com/profile/15544296152777769870</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/-mIXl4NuzK08/Tya0MQug_vI/AAAAAAAADlQ/BFKNRfXi8ps/s220/DSC_3431.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp0.blogger.com/_AT2U2p9U0Hs/SBg2UzqvSOI/AAAAAAAAA4U/Wov8q_zKI_8/s72-c/CodebehindScript.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8124039877066021393.post-4204301389331313040</id><published>2008-02-27T22:09:00.000-08:00</published><updated>2008-04-28T02:29:51.716-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Check-Uncheck'/><category scheme='http://www.blogger.com/atom/ns#' term='Tips'/><category scheme='http://www.blogger.com/atom/ns#' term='Javascript HTML'/><title type='text'>Javascript Code samples</title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-weight: bold;"&gt;Overview&lt;/span&gt;&lt;br /&gt;To share sample code with all that I have leaned while working in .net&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1)&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;To Check/Un-check all checbox in a grid&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;function checkUncheck(chkBox)&lt;br /&gt;{&lt;br /&gt;   var frm = document.forms(0);&lt;br /&gt;   var ctl = form.elements[chkBox];&lt;br /&gt;   if(null != ctl)     &lt;br /&gt;   {&lt;br /&gt;       for(i=0;i&lt;frm.elements.length;i++) type="='checkBox')" id="" checked="ctl.checked;" how="" to="" call="" from="" aspx=""&gt;&lt;input onclick="checkUncheck(this)" id="chkHead" type="checkbox"&gt;&lt;br /&gt;&lt;input id="chk1" type="checkbox"&gt;&lt;br /&gt;&lt;input id="chk2" type="checkbox"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2) To assign ENTER key to a command button/Image Button&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;   The default button should be server side asp.net control and its onClick event will be fired when this function is called.&lt;br /&gt;&lt;br /&gt;   function onKeyDown(defaultButton)&lt;br /&gt;   {&lt;br /&gt;       if(event.keyCode==13)&lt;br /&gt;       {&lt;br /&gt;               with(event)&lt;br /&gt;               {&lt;br /&gt;                   cancelBubble = true;&lt;br /&gt;                   returnValue=false;&lt;br /&gt;               }&lt;br /&gt;               document.getElementById(defaultButton).focus();&lt;br /&gt;               document.getElementByID(defaultButton).click();&lt;br /&gt;       }&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;calling from aspx page:&lt;br /&gt;call on Body tag onkeydown="onKeyDown('BUTTON ID HERE');"&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3) Show/Hide Div on page&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;   function showHide(show_hide)&lt;br /&gt;     {&lt;br /&gt;         var ctlDiv = document.getElementById('divID');&lt;br /&gt;           if(null != ctlDiv)&lt;br /&gt;           {&lt;br /&gt;               var divStyle = ctlDiv.Style;&lt;br /&gt;               style.display=show_hide;&lt;br /&gt;          }&lt;br /&gt;           else&lt;br /&gt;                   alert ('control not found');&lt;br /&gt;     }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;calling from aspx page:&lt;br /&gt;&lt;br /&gt;on button1 :  onclick="showHide('block');"  ---to show div&lt;br /&gt;on button2 :  onclick="showHide('none');" ---to hide div&lt;br /&gt;&lt;br /&gt;&lt;/frm.elements.length;i++)&gt;&lt;div id="divID"&gt;&lt;br /&gt;   &lt;span&gt; Hey!!! can u see me.. i m now visible&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8124039877066021393-4204301389331313040?l=surjitdadhwal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://surjitdadhwal.blogspot.com/feeds/4204301389331313040/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8124039877066021393&amp;postID=4204301389331313040' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/4204301389331313040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/4204301389331313040'/><link rel='alternate' type='text/html' href='http://surjitdadhwal.blogspot.com/2008/02/javascript-code-samples.html' title='Javascript Code samples'/><author><name>Surjit Dadhwal</name><uri>http://www.blogger.com/profile/15544296152777769870</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/-mIXl4NuzK08/Tya0MQug_vI/AAAAAAAADlQ/BFKNRfXi8ps/s220/DSC_3431.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8124039877066021393.post-8117355835447800637</id><published>2008-02-27T21:17:00.000-08:00</published><updated>2008-02-27T22:08:52.968-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Language'/><category scheme='http://www.blogger.com/atom/ns#' term='Indian language'/><category scheme='http://www.blogger.com/atom/ns#' term='Hindi'/><title type='text'>Language Unification</title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold;font-family:verdana;" &gt;Overview&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Language, as all of us know, plays a very important role as a medium of communication with others. In this post I would like to share and get your views on concentrating one language as unique for all Indian States.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;My Views&lt;br /&gt;&lt;/span&gt;India is rich in languages and people are using regional languages from very long time. Since we all know that &lt;span style="font-weight: bold;"&gt;Hindi&lt;/span&gt; is our national language, but this is not the same consideration in other states (except North region). All IT people are aware of IEEE standards for electronics and .net Platform independent features. If we can think for unification of the things that are man made then we should also think and implement same kind of behavior in our society and country too.&lt;br /&gt;Politics in India is very much responsible for not allowing Hindi to enter in other regions (like in South, Hindi is not a subject in schools). We all should think in this direction and take the first step towards unification of language in India.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Why I created this Post&lt;/span&gt;&lt;br /&gt;I went to USA on May-2008, there was an Indian person (from south) working with our client and he become a friend of mine.&lt;br /&gt;One day we were in a shopping mall and talking in English (as usual to communicate), one english man came to us who was watching us from quite some time, he asked me "you are from which country" I said (proudly) "India" then he asked my friend "and which country you are from" he also said "India"; then english man said you both are from same country then why you are using a foreign language (English) to communicate????????&lt;br /&gt;Then I noticed people of other countries, living in USA, whenever they use to communicate with any person from there country they use one language like Chineese will use Chineese language, Russians will use Russian language, etc. irrespective of the area (east, west, north, south) from there country.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;My Concerns&lt;/span&gt;&lt;br /&gt;1) One language should be unique in India (I support Hindi as it is our national language)&lt;br /&gt;2) We all have to do something at our end and should not wait for government to do so.&lt;br /&gt;3) In some states Hindi is totally banned. why???&lt;br /&gt;4) One language like english is good to be accepted as foreign language, but one should be globalized for internal use also.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Questions for all or us&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;1) Why can't we bring standardization (like IEEE) in our lives to for language (at least)?&lt;br /&gt;2) Why can't we protest against not using our national language in our schools? &lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Looking forward for your valuable inputs on the above posted matter of concern....... Thanks&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;"सारे जहान से अच्छा...... हिन्दुस्तान हमारा....... हींदी हैं हम वतन हैं...... हिन्दुस्तान हमारा ... हमारा.... सारे जहान॥ से अच्छा ......."     &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8124039877066021393-8117355835447800637?l=surjitdadhwal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://surjitdadhwal.blogspot.com/feeds/8117355835447800637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8124039877066021393&amp;postID=8117355835447800637' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/8117355835447800637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/8117355835447800637'/><link rel='alternate' type='text/html' href='http://surjitdadhwal.blogspot.com/2008/02/language-unification.html' title='Language Unification'/><author><name>Surjit Dadhwal</name><uri>http://www.blogger.com/profile/15544296152777769870</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/-mIXl4NuzK08/Tya0MQug_vI/AAAAAAAADlQ/BFKNRfXi8ps/s220/DSC_3431.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8124039877066021393.post-4286964745633134538</id><published>2008-02-07T08:59:00.000-08:00</published><updated>2008-02-07T09:15:52.148-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript HTML'/><title type='text'>What is Javascript?</title><content type='html'>&lt;p style="font-family: trebuchet ms;" class="intro"&gt;JavaScript is used in millions of Web pages to improve the design, validate forms, detect browsers, create cookies, and much more.&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;" class="intro"&gt;JavaScript is the most popular scripting language on the internet, and works in all major browsers, such as Internet Explorer, Mozilla, Firefox, Netscape, and Opera.&lt;/p&gt;  &lt;hr style="font-family: trebuchet ms;"&gt;&lt;h2 style="font-family: trebuchet ms;"&gt;What is JavaScript?&lt;/h2&gt;  &lt;ul style="font-family: trebuchet ms;"&gt; &lt;li&gt;JavaScript was designed to add interactivity to HTML pages&lt;/li&gt;&lt;li&gt;JavaScript is a scripting language&lt;/li&gt;&lt;li&gt;A scripting language is a lightweight programming language&lt;/li&gt;&lt;li&gt;A JavaScript consists of lines of executable computer code&lt;/li&gt;&lt;li&gt;A JavaScript is usually embedded directly into HTML pages&lt;/li&gt;&lt;li&gt;JavaScript is an interpreted language (means that scripts execute without  preliminary compilation)&lt;/li&gt;&lt;li&gt;Everyone can use JavaScript without purchasing a   license&lt;/li&gt; &lt;/ul&gt;  &lt;hr style="font-family: trebuchet ms;"&gt;  &lt;h2 style="font-family: trebuchet ms;"&gt;Are Java and JavaScript the Same?&lt;/h2&gt;  &lt;p style="font-family: trebuchet ms;"&gt;NO!&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;"&gt;Java and JavaScript are two completely different languages in both concept  and design!&lt;/p&gt;  &lt;p style="font-family: trebuchet ms;"&gt;Java (developed by Sun Microsystems) is a powerful and much more complex programming language - in the same category as C and C++.&lt;/p&gt;  &lt;hr style="font-family: trebuchet ms;"&gt;  &lt;h2 style="font-family: trebuchet ms;"&gt;What can a JavaScript Do?&lt;/h2&gt;  &lt;ul style="font-family: trebuchet ms;"&gt; &lt;li&gt;&lt;b&gt;JavaScript gives HTML designers a programming tool - &lt;/b&gt;HTML authors are normally not programmers, but JavaScript is a scripting language with a very simple syntax! Almost anyone can put small "snippets" of code into their HTML pages&lt;/li&gt;&lt;li&gt;&lt;b&gt;JavaScript can put dynamic text into an HTML page - &lt;/b&gt;A JavaScript statement like this: document.write("" + name + "") can write a variable text into an HTML page&lt;/li&gt;&lt;li&gt;&lt;b&gt;JavaScript can react to events - &lt;/b&gt;A JavaScript can be set to execute when something happens, like when a page has finished loading or when a user clicks on an HTML element&lt;/li&gt;&lt;li&gt;&lt;b&gt;JavaScript can read and write HTML elements - &lt;/b&gt;A JavaScript can read    and change the content of an HTML element&lt;/li&gt;&lt;li&gt;&lt;b&gt;JavaScript can be used to validate data - &lt;/b&gt;A JavaScript can be used to validate form data before it is submitted to a server. This saves the server from extra processing&lt;/li&gt;&lt;li&gt;&lt;b&gt;JavaScript can be used to detect the visitor's browser&lt;/b&gt; - A JavaScript can be used to detect the visitor's browser, and - depending on the browser - load another page specifically designed for that browser&lt;/li&gt;&lt;li&gt;&lt;b&gt;JavaScript can be used to create cookies&lt;/b&gt; - A JavaScript can be   used to store and retrieve information on the visitor's computer&lt;/li&gt; &lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8124039877066021393-4286964745633134538?l=surjitdadhwal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://surjitdadhwal.blogspot.com/feeds/4286964745633134538/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8124039877066021393&amp;postID=4286964745633134538' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/4286964745633134538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/4286964745633134538'/><link rel='alternate' type='text/html' href='http://surjitdadhwal.blogspot.com/2008/02/what-is-javascript.html' title='What is Javascript?'/><author><name>Surjit Dadhwal</name><uri>http://www.blogger.com/profile/15544296152777769870</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/-mIXl4NuzK08/Tya0MQug_vI/AAAAAAAADlQ/BFKNRfXi8ps/s220/DSC_3431.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8124039877066021393.post-8496441628079266625</id><published>2008-02-03T03:36:00.000-08:00</published><updated>2008-02-03T03:45:47.588-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Surjit Dadhwal'/><title type='text'>Who Am I</title><content type='html'>I am Surjit Singh Dadhwal, MCA, working as Team Lead in a IT firm in Chandigarh.&lt;br /&gt;I am .net professional and worked in Microsoft technologies. I aspire to be a world class .net professional.&lt;br /&gt;&lt;br /&gt;My hobbies are Music, Dance, Programming.&lt;br /&gt;This is my first post so I am making it a general kind of post to describe myself. From the very next page I will try put technical information about the things I have learned in my Curriculum.&lt;br /&gt;&lt;br /&gt;I would like to share following information from next post:&lt;br /&gt;1) .Net&lt;br /&gt;2) SQL Server&lt;br /&gt;3) Javascript&lt;br /&gt;4) and many more&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8124039877066021393-8496441628079266625?l=surjitdadhwal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://surjitdadhwal.blogspot.com/feeds/8496441628079266625/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8124039877066021393&amp;postID=8496441628079266625' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/8496441628079266625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8124039877066021393/posts/default/8496441628079266625'/><link rel='alternate' type='text/html' href='http://surjitdadhwal.blogspot.com/2008/02/who-am-i.html' title='Who Am I'/><author><name>Surjit Dadhwal</name><uri>http://www.blogger.com/profile/15544296152777769870</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://2.bp.blogspot.com/-mIXl4NuzK08/Tya0MQug_vI/AAAAAAAADlQ/BFKNRfXi8ps/s220/DSC_3431.jpg'/></author><thr:total>0</thr:total></entry></feed>
