<?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-1956839675958440715</id><updated>2011-07-07T13:40:09.157-07:00</updated><category term='C#'/><category term='Ajax Control'/><category term='Real Life Project'/><category term='javascript'/><category term='FAQ- ASP.Net'/><category term='Asp.Net'/><category term='SQL Server'/><category term='HTML'/><category term='Meta Tag'/><category term='JScript.Net'/><category term='New Feature in ASP.Net 2.0'/><category term='Tips'/><category term='Genral'/><category term='ASP.Net Controls'/><category term='Information'/><category term='database'/><category term='ADO.Net'/><title type='text'>Dot Net Heaven</title><subtitle type='html'>ASP.Net(1.1,2.0), C#, SQL Server2000 &amp;amp; 2005 Javascript, Ajax. A programming and knowledge base blog.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>33</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-7701381358390020517</id><published>2009-08-01T03:34:00.001-07:00</published><updated>2009-08-01T03:35:37.424-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><title type='text'>User Defined Function</title><content type='html'>&lt;strong&gt;User Defined Function&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;A user defined function takes 0 or more parameter and return a scalar or table value data type.  User-defined functions can be invoked from a query like built-in functions such as OBJECT_ID, LEN, DATEDIFF, or can be executed through an EXECUTE statement like stored procedures.&lt;br /&gt;There are three type of User Defined Function&lt;br /&gt;&lt;strong&gt;i. Scalar Function&lt;br /&gt;ii. Single Table Valued Function&lt;br /&gt;iii. Multistatement Table Valued Function&lt;/strong&gt;&lt;br /&gt;Scalar functions return a single data value (not a table) with RETURNS clause. Scalar functions can use all scalar data types, with exception of timestamp and user-defined data types.&lt;br /&gt; Inline table-valued functions return the result set of a single SELECT statement. &lt;br /&gt;Multistatement table-valued functions return a table, which was built with many TRANSACT-SQL statements.&lt;br /&gt;&lt;strong&gt;Notes:&lt;/strong&gt; On Microsoft SQL Server 2000 a table-valued function which 'wraps' a View may be much faster than the View itself. On Microsoft SQL Server 2005 the result of the same code execution is the opposite: view is executed faster than the 'function-wrapper'.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-7701381358390020517?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/7701381358390020517/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/08/user-defined-function.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/7701381358390020517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/7701381358390020517'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/08/user-defined-function.html' title='User Defined Function'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-7381626780512737639</id><published>2009-08-01T02:48:00.000-07:00</published><updated>2009-08-01T03:03:42.443-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><title type='text'>SQL Sub Query and Types of Sub Query.</title><content type='html'>as a database developer you must we written sum query that take inputs from other query. That type of query called subquery. this artile describe about that sub query.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Sub Query:&lt;/strong&gt; Subquery is that query which is the part of query and return the result to the parent query. exa-&lt;br /&gt;Use Northwind&lt;br /&gt;SELECT     *&lt;br /&gt;FROM         Employees&lt;br /&gt;WHERE     (Country NOT IN&lt;br /&gt;                          (SELECT DISTINCT country&lt;br /&gt;                            FROM          Employees))&lt;br /&gt;in the above example you can see there is a main query and a sub query. the sub query return the list of distinct country to the main query.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Type Of Sub Query:&lt;/strong&gt; There are two type of sub query&lt;br /&gt;i.  Self containted sub query&lt;br /&gt;ii. co related sub query&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;self contained sub query:&lt;/strong&gt; this is the sub query which have either scalre value or multi row values and return that value to the parent query.&lt;br /&gt;&lt;br /&gt;ex. the example shown above is self contained sub query.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;co related sub query:&lt;/strong&gt; co related sub query are those query which has joined with other table. co related sub query is a part of joined query.&lt;br /&gt;&lt;br /&gt;Here the sample of correlated subquery :&lt;br /&gt;&lt;br /&gt;Select s.shipperid, (select count(*) from dbo.orders as o where o.shipperid = s.shipperid) as numberOfOrders&lt;br /&gt;&lt;br /&gt;From dbo.shippers as s;&lt;br /&gt;&lt;br /&gt;Another operators that handle correlated subquery is EXISTS (NOT EXISTS) and IN (NOT IN).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-7381626780512737639?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/7381626780512737639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/08/sql-sub-query-and-types-of-sub-query.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/7381626780512737639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/7381626780512737639'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/08/sql-sub-query-and-types-of-sub-query.html' title='SQL Sub Query and Types of Sub Query.'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-6640482361486482028</id><published>2009-06-17T07:05:00.000-07:00</published><updated>2009-06-17T07:08:30.480-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Genral'/><title type='text'>4+1 Views Model</title><content type='html'>4+1 is a view model designed by Philippe Kruchten for describing the architecture of software-intensive systems, based on the use of multiple, concurrent views. The views are used to describe the system in the viewpoint of different stakeholders, such as end-users, developers and project managers. The four views of the model are logical, development, process and physical view. In addition selected use cases or scenarios are utilized to illustrate the architecture serving as the 'plus one' view.&lt;br /&gt;&lt;br /&gt;The views are - &lt;br /&gt;• Logical view : The logical view is concerned with the functionality that the system provides to end-users. UML Diagrams to represent logical view include Class Diagram, Sequence diagram.&lt;br /&gt;• Development/Implementation view : The development view illustrates a system from a programmers perspective and is concerned with software management. E.g Package diagram&lt;br /&gt;• Process view : The process model deals with the dynamic aspect of the system, explains the system processes and how they communicate, and focuses on the runtime behavior of the system. E.g Activity Diagram&lt;br /&gt;• Physical or Deployment view : The physical view depicts the system from a system engineer's point-of-view. It is concerned with the topology of software components on the physical layer, as well as communication between these components. E.g Deployment diagram&lt;br /&gt;• Use case View : It is from the end user’s perspective. It details the functional requirements, the use cases and the users of the system. It overlaps with every other perspective in the system&lt;br /&gt;&lt;br /&gt;Source :&lt;br /&gt;&lt;a href="https://k-edge.ps.net/personal/gandhia/Blog/Lists/Posts/Post.aspx?ID=5"&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.cs.ubc.ca/~gregor/teaching/papers/4+1view-architecture.pdf"&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-6640482361486482028?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/6640482361486482028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/06/41-views-model.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/6640482361486482028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/6640482361486482028'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/06/41-views-model.html' title='4+1 Views Model'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-7657951761431647143</id><published>2009-03-05T08:43:00.001-08:00</published><updated>2009-03-05T08:45:29.431-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Information'/><title type='text'>The Economic Cycle: CHEER UP- Message from Warren Buffet---Cross Ur fingers</title><content type='html'>As per Warren Buffet, recovery cycle has started ……….&lt;br /&gt; &lt;br /&gt;(Do read the text highlighted in red)&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Hope this is true!!!&lt;br /&gt; &lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_Jml_Gpc9xOs/SbABZw6597I/AAAAAAAAA0A/VkTi3FgtpLc/s1600-h/image001_01.gif"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 252px;" src="http://3.bp.blogspot.com/_Jml_Gpc9xOs/SbABZw6597I/AAAAAAAAA0A/VkTi3FgtpLc/s320/image001_01.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5309745502810142642" /&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt; We are at 5 right now......GOOD TIMES RETURN AT 6, SO CHEER UP!&lt;br /&gt;&lt;br /&gt;"We begin this New Year with dampened enthusiasm and dented optimism. Our happiness is diluted and our peace is threatened by the financial illness that has infected our families, organizations and nations.&lt;br /&gt;&lt;br /&gt;Everyone is desperate to find a remedy that will cure their financial illness and help them recover their financial health. They expect the financial experts to provide them with remedies, forgetting the fact that it is these experts who created this financial mess.&lt;br /&gt;&lt;br /&gt;Every new year, I adopt a couple of old maxims as my beacons to guide my future. This self-prescribed therapy has ensured that with each passing year, I grow wiser and not older.&lt;br /&gt;&lt;br /&gt;This year, I invite you to tap into the financial wisdom of our elders along with me, and become financially wiser.&lt;br /&gt;&lt;br /&gt;Hard work        :           All hard work brings profit; but mere talk leads only to poverty.&lt;br /&gt;Laziness          :          A sleeping lobster is carried away by the water current.&lt;br /&gt;Earnings          :          Never depend on a single source of income.&lt;br /&gt;Spending         :         If you buy things you don't need, you'll soon sell things you need.&lt;br /&gt;Savings            :         Don't save what is left after spending; Spend what is left after saving.&lt;br /&gt;Accounting       :          It's no use carrying an umbrella, if your shoes are leaking.&lt;br /&gt;Auditing           :          Beware of little expenses; a small leak can sink a large ship.&lt;br /&gt;Risk-taking       :          Never test the depth of the river with both feet.&lt;br /&gt;Investment       :           Don't put all your eggs in one basket.&lt;br /&gt;&lt;br /&gt;I'm certain that those who have already been practicing these principles remain financially healthy. I'm equally confident that those who resolve to start practicing these principles will quickly regain their financial health.&lt;br /&gt;&lt;br /&gt;Let us become wiser and lead a happy, healthy, prosperous and peaceful life."&lt;br /&gt;&lt;br /&gt;----- Warren Buffet&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-7657951761431647143?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/7657951761431647143/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/03/economic-cycle-cheer-up-message-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/7657951761431647143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/7657951761431647143'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/03/economic-cycle-cheer-up-message-from.html' title='The Economic Cycle: CHEER UP- Message from Warren Buffet---Cross Ur fingers'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_Jml_Gpc9xOs/SbABZw6597I/AAAAAAAAA0A/VkTi3FgtpLc/s72-c/image001_01.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-444889766875924791</id><published>2009-03-02T09:20:00.000-08:00</published><updated>2009-03-02T09:24:23.438-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ADO.Net'/><title type='text'>What is difference between Dataset and Datareader?</title><content type='html'>1. Data Set is a connectionless service and Data reader is a connection oriented service.&lt;br /&gt;2. Dataset is used to store the data, it contains collections of Datatable. Datareader is used to connect to the database for retrieving data.&lt;br /&gt;3. Data Reader - Forward only where as Dataset - Can loop through dataset.&lt;br /&gt;4. Data Reader - Connected Recordset where as DataSet - Disconnected Recordset&lt;br /&gt;5. Data Reader - Less Memory occupying where as DataSet occupies more memory&lt;br /&gt;6. Data Reader - Only Single Table can be used where as Dataset - Datatable Concept allows data to be stored in multiple tables.&lt;br /&gt;7. Data Reader - Read only where as DataSet - Can add/update/delete using the dataset&lt;br /&gt;8. Data Reader - No relationship can be maintained where as DataSet - Relationship can be maintained.&lt;br /&gt;9. Data Reader - No Xml Storage available where as DataSet - Can be stored as XML.&lt;br /&gt;10. The Dataset is a core of disconnected architecture. Disconnected architecture means once you have retrieved the data from the database the data source is dropped. The disconnected data become very commonly. The dataset for the disconnected data from the Dataset object. The DataReader is a readonly, forward only stream from the database. While using the datareader can improve the application performance reduces the system overhead because only one buffer row at a time in memory.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-444889766875924791?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/444889766875924791/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/03/what-is-difference-between-dataset-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/444889766875924791'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/444889766875924791'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/03/what-is-difference-between-dataset-and.html' title='What is difference between Dataset and Datareader?'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-8138441971314171856</id><published>2009-03-02T09:19:00.000-08:00</published><updated>2009-03-02T09:20:07.425-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><title type='text'>What is the difference between Web.config and Machine.config?</title><content type='html'>1. The settings configure in the web.config file are appliy to a particular web application&lt;br /&gt;only whereas the settings of machine.config file are applied to the every asp.net application with in a server. &lt;br /&gt;&lt;br /&gt;2. Web.config will be for that particular application while the machine.config use for the whole machine. &lt;br /&gt;&lt;br /&gt;3. Every ASP.NET application has a web.config file. The settings specified in this will imply only to that application. Whereas you’re System has a machine.config file in Microsoft.NET\Framework\v1.1.4322\CONFIG Folder &lt;br /&gt;which contains specifications and settings at a system level. &lt;br /&gt;&lt;br /&gt;4. Web.config file override the settings from the machine.config file. machine.config file settings are applied to all the webapplications residing on the server while web.config settings are application specific. &lt;br /&gt;&lt;br /&gt;5. machine.config is created when you install ASP.NET in your machine &lt;br /&gt;Web.config is created when you create an application.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-8138441971314171856?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/8138441971314171856/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/03/what-is-difference-between-webconfig.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/8138441971314171856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/8138441971314171856'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/03/what-is-difference-between-webconfig.html' title='What is the difference between &lt;strong&gt;Web.config&lt;/strong&gt; and &lt;strong&gt;Machine.config&lt;/strong&gt;?'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-8077205712366010882</id><published>2009-03-02T07:39:00.000-08:00</published><updated>2009-03-02T07:41:08.680-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>What is difference between string and string builder?</title><content type='html'>String is immutable which means once you have the content there you cannot change it, while StringBuilder is mutable because it allows you to change the content you have already placed. &lt;br /&gt;The most common operation with a string is concatenation.This actvity has to be performed very efficiently. When we use the "String" object to concatenate two strings, the first string is combined to the other string by creating a new copy in the memory as a string object, and then the old string is deleted. This process is a little long. Hence we say "Strings are immutable".&lt;br /&gt;&lt;br /&gt;Notice that a string allows you to change the content but off course it creates a new string reference. For example, all string methods return a new string and don't update the same string variable. &lt;br /&gt;When you have huge amount of concatenation, best recommendation to go for StringBuilder! &lt;br /&gt;&lt;br /&gt;If you are doing string concatenation StringBuilder class is far better in performance than String class. &lt;br /&gt;&lt;br /&gt;You can use StringBuilder's Append() method to use concatenation. Both String and StringBuilder are classes used to handle strings.&lt;br /&gt;&lt;br /&gt;When we make use of the "stringBuilder" object, the Append method is used. This means, an insertion is done on the existing string. Operation on StringBuilder objext is faster than String operations, as the copy is done to the same location.Usage of StringBuilder is more efficient in case large amounts of string manipulations have to be performed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-8077205712366010882?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/8077205712366010882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/03/what-is-difference-between-string-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/8077205712366010882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/8077205712366010882'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/03/what-is-difference-between-string-and.html' title='What is difference between string and string builder?'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-1018316901800919403</id><published>2009-02-16T08:06:00.000-08:00</published><updated>2009-02-16T08:23:03.940-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Information'/><title type='text'>How can I put HTML code in blog post?</title><content type='html'>How can I put HTML code in blog post? Every time this question comes in my mind when I try to post an html code in my blog. One day I try this trick and its really working. The posting about making HTML code appear in the blog posting and to do that, you have to change the character orders from HTML code with certain notation. The characters notation given below:&lt;br /&gt;&lt;br /&gt;Characters Notation &lt;br /&gt;&lt;br /&gt;&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;         &amp; gt ;&lt;br /&gt;&lt;  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;        &amp; lt ;&lt;br /&gt;"   &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;       &amp; quot ;&lt;br /&gt;&amp;  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;        &amp; amp ;&lt;br /&gt;± &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;         &amp; plusmn ;&lt;br /&gt;Space &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;      &amp; nbsp ;&lt;br /&gt;©  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;        &amp; copy ;&lt;br /&gt;®  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;        &amp; reg ;&lt;br /&gt;&lt;br /&gt;In your posting, if you want to post it like that, then you can’t write it like that because the posting of the code won’t appear. But, the effects of the code you write will appear. What should we do than? As I write in the table, you have to change the characters of order with the notation replacement.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Please Note:&lt;/strong&gt;&lt;br /&gt;1. put your html code between &amp;lt;pre&amp;gt;&amp;lt;/pre&amp;gt; tag. The addition of &amp;lt;pre&amp;gt; and &amp;lt;/pre&amp;gt; is to mark that what you have written is HTML code. And as the result, the writing of the order will be different with other writing.&lt;br /&gt;&lt;br /&gt;2. Another important thing is that when you write the replacement code above, you have to change into Edit HTML modus, not compose modes. If you have written the code, you can change into Compose modus again.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-1018316901800919403?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/1018316901800919403/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/02/how-can-i-put-html-code-in-blog-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/1018316901800919403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/1018316901800919403'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/02/how-can-i-put-html-code-in-blog-post.html' title='How can I put HTML code in blog post?'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-485880415549739211</id><published>2009-02-15T10:19:00.000-08:00</published><updated>2009-02-16T07:37:47.585-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><title type='text'>Check all checkbox column in Datagrid using javascript</title><content type='html'>&lt;strong&gt;Check all checkbox column in Datagrid using javascript&lt;/strong&gt;&lt;br /&gt;Here is the code how to put a check all checkbox in the Column Header of the datagrid so that when the user clicks it all the checkboxes in all rows below also get checked. Also, the cool thing is that this will happen on the client side using javascript without any postbacks.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Default.aspx&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;DataGrid&lt;/strong&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&amp;lt;asp:DataGrid ID="dg1" AutoGenerateColumns="False" Width="100%" Runat="server"&amp;gt;&lt;br /&gt;             &amp;lt;Columns&amp;gt;&lt;br /&gt;              &amp;lt;asp:TemplateColumn&amp;gt;&lt;br /&gt;               &amp;lt;HeaderTemplate&amp;gt;&lt;br /&gt;                &amp;lt;input ID="chkAll" type="checkbox" onclick="CheckAllDataGridCheckBoxes('chkItem',this.checked)"&amp;gt;&lt;br /&gt;               &amp;lt;/HeaderTemplate&amp;gt;&lt;br /&gt;               &amp;lt;ItemTemplate&amp;gt;&lt;br /&gt;                &amp;lt;asp:CheckBox ID="chkItem" Runat="server"&amp;gt;&amp;lt;/asp:CheckBox&amp;gt;&lt;br /&gt;               &amp;lt;/ItemTemplate&amp;gt;&lt;br /&gt;               &amp;lt;ItemTemplate&amp;gt;&lt;br /&gt;               &amp;lt;/ItemTemplate&amp;gt; &lt;br /&gt;              &amp;lt;/asp:TemplateColumn&amp;gt;&lt;br /&gt;              &amp;lt;/Columns&amp;gt; &lt;br /&gt;        &amp;lt;/asp:datagrid&amp;gt; &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;strong&gt;Function:CheckAllDataGridCheckBoxes&lt;/strong&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;script language="javascript" type="text/javascript" &amp;gt;&lt;br /&gt;     &lt;br /&gt;     function CheckAllDataGridCheckBoxes(aspCheckBoxID, checkVal)&lt;br /&gt;     {&lt;br /&gt;     debugger;&lt;br /&gt;      re = new RegExp(':' + aspCheckBoxID + '$')  //generated control name starts with a colon&lt;br /&gt;      for(i = 0; i &amp;lt; form1.elements.length; i++)&lt;br /&gt;      {&lt;br /&gt;       item = document.forms[0].elements[i]&lt;br /&gt;       if (item.type == 'checkbox')&lt;br /&gt;       {&lt;br /&gt;        if (re.test(item.name))&lt;br /&gt;         item.checked = checkVal;&lt;br /&gt;       }&lt;br /&gt;      }&lt;br /&gt;     }&lt;br /&gt;    &amp;lt;/script&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Default.aspx.cs&lt;/strong&gt;&lt;br /&gt;Hashtable ht = new Hashtable();&lt;br /&gt;            ht.Add( "1", "A1" );  &lt;br /&gt;            ht.Add( "2", "A2" );  &lt;br /&gt;            ht.Add( "3", "A3" );  &lt;br /&gt;            ht.Add( "4", "A4" );  &lt;br /&gt;            ht.Add( "5", "A5" );  &lt;br /&gt;            ht.Add( "6", "A6" );&lt;br /&gt;&lt;br /&gt;            dg1.DataSource = ht;&lt;br /&gt;            dg1.DataBind();&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-485880415549739211?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/485880415549739211/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/02/check-all-checkbox-column-in-datagrid.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/485880415549739211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/485880415549739211'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/02/check-all-checkbox-column-in-datagrid.html' title='Check all checkbox column in Datagrid using javascript'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-1019177518184098371</id><published>2009-02-05T06:51:00.000-08:00</published><updated>2009-02-05T07:21:31.497-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Information'/><title type='text'>ICC World Twenty20 2009 - Match Schedule</title><content type='html'>&lt;div&gt;&lt;br /&gt;    &lt;table align="center" border="0" cellpadding="0" cellspacing="0" width="100%"&gt;&lt;br /&gt;        &lt;tr&gt;&lt;br /&gt;            &lt;td&gt;&lt;br /&gt;                &lt;table align="center" cellpadding="0" cellspacing="0" width="100%"&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td&gt;ICC World Twenty20 2009  Match Schedule&lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                 &lt;/table&gt;&lt;br /&gt;            &lt;/td&gt;&lt;br /&gt;        &lt;/tr&gt;&lt;br /&gt;        &lt;tr&gt;&lt;br /&gt;            &lt;td&gt;&lt;br /&gt;                &lt;table align="center" cellpadding="0" cellspacing="0" width="100%"&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td width="25%"&gt;GROUP A&lt;/td&gt;&lt;br /&gt;                        &lt;td width="25%"&gt;GROUP B&lt;/td&gt;&lt;br /&gt;                        &lt;td width="25%"&gt;GROUP C&lt;/td&gt;&lt;br /&gt;                        &lt;td width="25%"&gt;GROUP D&lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td width="25%"&gt;India&lt;/td&gt;&lt;br /&gt;                        &lt;td width="25%"&gt;Pakistan&lt;/td&gt;&lt;br /&gt;                        &lt;td width="25%"&gt;Australia&lt;/td&gt;&lt;br /&gt;                        &lt;td width="25%"&gt;New Zealand&lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td width="25%"&gt;Bangladesh&lt;/td&gt;&lt;br /&gt;                        &lt;td width="25%"&gt;England&lt;/td&gt;&lt;br /&gt;                        &lt;td width="25%"&gt;Sri Lanka&lt;/td&gt;&lt;br /&gt;                        &lt;td width="25%"&gt;South Africa&lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td width="25%"&gt;Ireland&lt;/td&gt;&lt;br /&gt;                        &lt;td width="25%"&gt;Netherlands&lt;/td&gt;&lt;br /&gt;                        &lt;td width="25%"&gt;West Indies&lt;/td&gt;&lt;br /&gt;                        &lt;td width="25%"&gt;Scotland&lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                 &lt;/table&gt;&lt;br /&gt;            &lt;/td&gt;&lt;br /&gt;        &lt;/tr&gt;&lt;br /&gt;        &lt;tr&gt;&lt;br /&gt;            &lt;td&gt;&lt;br /&gt;                &lt;table align="center" cellpadding="0" cellspacing="0" width="100%"&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;JUNE 2009&lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;GROUP A&lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;GROUP B&lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;GROUP C&lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;GROUP D&lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;05 Fri&lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;&amp;nbsp;&lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;      ENG vs        NED &lt;br /&gt;&lt;br /&gt;                            Lord's, England&lt;br /&gt;                            1730 - 2030 hrs BST &lt;br /&gt;                        &lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;&amp;nbsp;&lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;&amp;nbsp;&lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;06 Sat&lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;IND vs        BAN &lt;br /&gt;&lt;br /&gt;            Trent Bridge, England&lt;br /&gt;            1730 - 2030 hrs BST &lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;&amp;nbsp&lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;AUS vs        WI &lt;br /&gt;&lt;br /&gt;            Oval, England&lt;br /&gt;            1330 - 1630 hrs BST &lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt; NZ vs        SCO &lt;br /&gt;&lt;br /&gt;            Oval, England&lt;br /&gt;            1000 - 1300 hrs BST &lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;07 Sun&lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;&amp;nbsp;&lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;ENG vs        PAK &lt;br /&gt;&lt;br /&gt;            Oval, England&lt;br /&gt;            1730 - 2030 hrs BST &lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;&amp;nbsp;&lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;RSA vs        SCO &lt;br /&gt;&lt;br /&gt;            Oval, England&lt;br /&gt;            1330 - 1630 hrs BST &lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;&lt;br /&gt;                            08 Mon&lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;IRE vs        BAN &lt;br /&gt;&lt;br /&gt;            Trent Bridge, England&lt;br /&gt;            1330 - 1630 hrs BST &lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;&amp;nbsp;&lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;AUS vs        SL &lt;br /&gt;&lt;br /&gt;            Trent Bridge, England&lt;br /&gt;            1730 - 2030 hrs BST &lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;&amp;nbsp;&lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                    &lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;09 Tue&lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;&amp;nbsp;&lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;PAK vs        NED &lt;br /&gt;&lt;br /&gt;            Lord's, England&lt;br /&gt;            1330 - 1630 hrs BST &lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;&amp;nbsp;&lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;NZ vs        RSA &lt;br /&gt;&lt;br /&gt;            Lord's, England&lt;br /&gt;            1730 - 2030 hrs BST &lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;10 Wed&lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;IND vs        IRE &lt;br /&gt;&lt;br /&gt;            Trent Bridge, England&lt;br /&gt;            1730 - 2030 hrs BST &lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;&amp;nbsp;&lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;SL vs        WI &lt;br /&gt;&lt;br /&gt;            Trent Bridge, England&lt;br /&gt;            1330 - 1630 hrs BST &lt;/td&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;&amp;nbsp;&lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                 &lt;/table&gt;&lt;br /&gt;            &lt;/td&gt;&lt;br /&gt;        &lt;/tr&gt;&lt;br /&gt;        &lt;tr&gt;&lt;br /&gt;            &lt;td&gt;&lt;br /&gt;                &lt;table align="center" cellpadding="0" cellspacing="0" width="100%"&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td colspan="2"&gt;Super Eight - Groups&lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td&gt;&lt;br /&gt;                        &lt;/td&gt;&lt;br /&gt;                        &lt;td&gt;&lt;br /&gt;                        &lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                 &lt;/table&gt;&lt;br /&gt;            &lt;/td&gt;&lt;br /&gt;        &lt;/tr&gt;&lt;br /&gt;        &lt;tr&gt;&lt;br /&gt;            &lt;td&gt;&lt;br /&gt;                &lt;table align="center" cellpadding="0" cellspacing="0" width="50%"&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td width="50%"&gt;GROUP E&lt;/td&gt;&lt;br /&gt;                        &lt;td width="50%"&gt;GROUP F&lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td&gt;A1&lt;/td&gt;&lt;br /&gt;                        &lt;td&gt;B1&lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td&gt;B2&lt;/td&gt;&lt;br /&gt;                        &lt;td&gt;A2&lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td&gt;C1&lt;/td&gt;&lt;br /&gt;                        &lt;td&gt;C2&lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td&gt;D2&lt;/td&gt;&lt;br /&gt;                        &lt;td&gt;D1&lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                 &lt;/table&gt;&lt;br /&gt;            &lt;/td&gt;&lt;br /&gt;        &lt;/tr&gt;&lt;br /&gt;        &lt;tr&gt;&lt;br /&gt;            &lt;td&gt;&lt;br /&gt;                &lt;table align="center" cellpadding="0" cellspacing="0" width="100%"&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td width="20%"&gt;Super 8s&lt;/td&gt;&lt;br /&gt;                        &lt;td width="40%"&gt;GROUP E&lt;/td&gt;&lt;br /&gt;                        &lt;td width="40%"&gt;GROUP F&lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td&gt;11 THURS&lt;/td&gt;&lt;br /&gt;                        &lt;td&gt; B2 vs  D2 &lt;br /&gt;&lt;br /&gt;            Trent Bridge, England&lt;br /&gt;            1730 - 2030 hrs BST &lt;/td&gt;&lt;br /&gt;                        &lt;td&gt;D1 vs  A2 &lt;br /&gt;&lt;br /&gt;            Trent Bridge, England&lt;br /&gt;            1330 - 1630 hrs BST &lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td&gt;12 FRI&lt;/td&gt;&lt;br /&gt;                        &lt;td&gt;A1 vs  C1 &lt;br /&gt;&lt;br /&gt;            Lord's, England&lt;br /&gt;            1730 - 2030 hrs BST&lt;/td&gt;&lt;br /&gt;                        &lt;td&gt; B1 vs  C2 &lt;br /&gt;&lt;br /&gt;            Lord's, England&lt;br /&gt;            1330 - 1630 hrs BST&lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td&gt;13 SAT&lt;/td&gt;&lt;br /&gt;                        &lt;td&gt; C1 vs  D2 &lt;br /&gt;&lt;br /&gt;            Oval, England&lt;br /&gt;            1330 - 1630 hrs BST&lt;/td&gt;&lt;br /&gt;                        &lt;td&gt;D1 vs  B1 &lt;br /&gt;&lt;br /&gt;            Oval, England&lt;br /&gt;            1730 - 2030 hrs BST&lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td&gt;14 SUN&lt;/td&gt;&lt;br /&gt;                        &lt;td&gt; A1 vs  B2 &lt;br /&gt;&lt;br /&gt;            Lord's, England&lt;br /&gt;            1730 - 2030 hrs BST&lt;/td&gt;&lt;br /&gt;                        &lt;td&gt; A2 vs  C2 &lt;br /&gt;&lt;br /&gt;            Lord's, England&lt;br /&gt;            1330 - 1630 hrs BST&lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td&gt;15 MON&lt;/td&gt;&lt;br /&gt;                        &lt;td&gt;B2 vs  C1 &lt;br /&gt;&lt;br /&gt;            Oval, England&lt;br /&gt;            1330 - 1630 hrs BST&lt;/td&gt;&lt;br /&gt;                        &lt;td&gt;B1 vs  A2 &lt;br /&gt;&lt;br /&gt;            Oval, England&lt;br /&gt;            1730 - 2030 hrs BST&lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td&gt;16 TUE&lt;/td&gt;&lt;br /&gt;                        &lt;td&gt; D2 vs  A1 &lt;br /&gt;&lt;br /&gt;            Trent Bridge, England&lt;br /&gt;            1730 - 2030 hrs BST&lt;/td&gt;&lt;br /&gt;                        &lt;td&gt;D1 vs  C2 &lt;br /&gt;&lt;br /&gt;            Trent Bridge, England&lt;br /&gt;            1330 - 1630 hrs BST&lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                &lt;/table&gt;&lt;br /&gt;            &lt;/td&gt;&lt;br /&gt;        &lt;/tr&gt;&lt;br /&gt;        &lt;tr&gt;&lt;br /&gt;            &lt;td&gt;&lt;br /&gt;                &lt;table align="center" border="0" cellpadding="0" cellspacing="0" width="100%"&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td width="30%"&gt;18 THURS&lt;/td&gt;&lt;br /&gt;                        &lt;td width="70%"&gt;Semi Final 1&lt;br /&gt;&lt;br /&gt;            Trent Bridge, England&lt;br /&gt;            1730 - 2030 hrs BST&lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td width="30%"&gt;19 FRI&lt;/td&gt;&lt;br /&gt;                        &lt;td width="70%"&gt;Men's Semi Final 2&lt;br /&gt;&lt;br /&gt;            Oval, England&lt;br /&gt;            1730 - 2030 hrs BST&lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                &lt;/table&gt;&lt;br /&gt;            &lt;/td&gt;&lt;br /&gt;        &lt;/tr&gt;&lt;br /&gt;        &lt;tr&gt;&lt;br /&gt;            &lt;td&gt;&lt;br /&gt;                &lt;table align="center" border="0" cellpadding="0" cellspacing="0" width="100%"&gt;&lt;br /&gt;                    &lt;tr&gt;&lt;br /&gt;                        &lt;td width="30%"&gt;21 SUN&lt;/td&gt;&lt;br /&gt;                        &lt;td width="70%"&gt;Final&lt;br /&gt;&lt;br /&gt;            Lord's, England&lt;br /&gt;            1500 - 1800 hrs BST&lt;/td&gt;&lt;br /&gt;                    &lt;/tr&gt;&lt;br /&gt;                    &lt;/table&gt;&lt;br /&gt;            &lt;/td&gt;&lt;br /&gt;        &lt;/tr&gt;&lt;br /&gt;    &lt;/table&gt;    &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-1019177518184098371?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://icc-cricket.yahoo.com/wt20-2009/fixtures.html' title='ICC World Twenty20 2009 - Match Schedule'/><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/1019177518184098371/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/02/icc-world-twenty20-2009-match-schedule.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/1019177518184098371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/1019177518184098371'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/02/icc-world-twenty20-2009-match-schedule.html' title='ICC World Twenty20 2009 - Match Schedule'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-7274573421494220398</id><published>2009-01-21T08:26:00.000-08:00</published><updated>2009-01-21T09:14:13.578-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>JAGGED ARRAY</title><content type='html'>&lt;strong&gt;JAGGED ARRAY:&lt;/strong&gt;&lt;br /&gt;A &lt;strong&gt;jagged array&lt;/strong&gt; is really an array of arrays. Each entry in the array is another array that can hold any number of items. Because each entry can hold any number of other items, the array has a jagged appearance. A Jagged Array is an array of an array in which the length of each array index can differ.&lt;br /&gt;The following is a declaration of a single-dimensional array that has three elements, each of which is a single-dimensional array of integers:&lt;br /&gt;&lt;br /&gt;int[][] testJaggedArray = new int[3][];&lt;br /&gt;&lt;br /&gt;Before you can use testJaggedArray, its elements must be initialized. You can initialize the elements like this example:&lt;br /&gt;&lt;br /&gt;testJaggedArray[0] = new int[5];&lt;br /&gt;testJaggedArray[1] = new int[4];&lt;br /&gt;testJaggedArray[2] = new int[2];&lt;br /&gt;&lt;br /&gt;Each of the elements is a single-dimensional array of integers. The first element is an array of 5 integers, the second is an array of 4 integers, and the third is an array of 2 integers. &lt;br /&gt;It is also possible to use initializers to fill the array elements with values, in which case you don't need the array size, for example:&lt;br /&gt;&lt;br /&gt;testJaggedArray[0] = new int[] {1,3,5,7,9};&lt;br /&gt;testJaggedArray[1] = new int[] {0,2,4,6};&lt;br /&gt;testJaggedArray[2] = new int[] {11,22};&lt;br /&gt;&lt;br /&gt;You can also initialize the array upon declaration like this:&lt;br /&gt;int[][] testJaggedArray = new int [][] &lt;br /&gt;{&lt;br /&gt;   new int[] {1,3,5,7,9},&lt;br /&gt;   new int[] {0,2,4,6},&lt;br /&gt;   new int[] {11,22}&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;You can use the following shortcut (notice that you cannot omit the new operator from the elements initialization because there is no default initialization for the elements):&lt;br /&gt;int[][] testJaggedArray = {&lt;br /&gt;                           new int[] {1,3,5,7,9},&lt;br /&gt;                           new int[] {0,2,4,6},&lt;br /&gt;                           new int[] {11,22}&lt;br /&gt;                        };&lt;br /&gt;You can access individual array elements like these examples:&lt;br /&gt;// Assign 33 to the second element of the first array:&lt;br /&gt;testJaggedArray[0][1] = 33;&lt;br /&gt;// Assign 44 to the second element of the third array:&lt;br /&gt;testJaggedArray[2][1] = 44;&lt;br /&gt;It is possible to mix jagged and multidimensional arrays. The following is a declaration and initialization of a single-dimensional jagged array that contains two-dimensional array elements of different sizes:&lt;br /&gt;int[][,] testJaggedArray = new int [3][,] &lt;br /&gt;                         {&lt;br /&gt;                            new int[,] { {1,3}, {5,7} },&lt;br /&gt;                            new int[,] { {0,2}, {4,6}, {8,10} },&lt;br /&gt;                            new int[,] { {11,22}, {99,88}, {0,9} } &lt;br /&gt;                         };&lt;br /&gt;You can access individual elements like this example, which displays the value of the element [1,0] of the first array (value 5):&lt;br /&gt;Console.Write("{0}", testJaggedArray[0][1,0]);&lt;br /&gt;Example&lt;br /&gt;This example builds an array, testArray, whose elements are arrays. Each one of the array elements has a different size.&lt;br /&gt;// cs_array_of_arrays.cs&lt;br /&gt;using System;&lt;br /&gt;public class TestArray &lt;br /&gt;{&lt;br /&gt;   public static void Main() &lt;br /&gt;   {&lt;br /&gt;      // Declare the array of two elements:&lt;br /&gt;      int[][] testArray = new int[2][];&lt;br /&gt;&lt;br /&gt;      // Initialize the elements:&lt;br /&gt;      testArray[0] = new int[5] {1,3,5,7,9};&lt;br /&gt;      testArray[1] = new int[4] {2,4,6,8};&lt;br /&gt;&lt;br /&gt;      // Display the array elements:&lt;br /&gt;      for (int i=0; i &lt; testArray.Length; i++) &lt;br /&gt;      {&lt;br /&gt;         Console.Write("Element({0}): ", i);&lt;br /&gt;&lt;br /&gt;         for (int j = 0 ; j &lt; testArray[i].Length ; j++)&lt;br /&gt;            Console.Write("{0}{1}", testArray[i][j],&lt;br /&gt;                          j == (testArray[i].Length-1) ? "" : " ");&lt;br /&gt;&lt;br /&gt;         Console.WriteLine();&lt;br /&gt;      }&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;strong&gt;Output&lt;/strong&gt;&lt;br /&gt;Element(0): 1 3 5 7 9&lt;br /&gt;Element(1): 2 4 6 8&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-7274573421494220398?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/7274573421494220398/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/01/jagged-array.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/7274573421494220398'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/7274573421494220398'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/01/jagged-array.html' title='JAGGED ARRAY'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-2990381002722026472</id><published>2009-01-20T07:45:00.000-08:00</published><updated>2009-01-20T08:35:54.240-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Real Life Project'/><title type='text'>Free Real Life Project Training in Dotnet for Fresher, BTech, MCA Collage pass students</title><content type='html'>I want to start a Real Time project for fresher. I want to help collage pass out B Tech and MCA Students. I just give you idea and you create it on your own. By doing this project you can learn a lot about Real Time project. You can learn documentation, coding standards, database structure etc. In this project I provide you guidelines about project and you can start it on your PC. Time to time you send your develop code to me and I will check out your progress and tell you How can you improve it. By this way you will learn all challenges which you will face in your life in future.&lt;br /&gt;&lt;br /&gt;If you are ready to take these challenges and want to work with me send me your resume in word format with give some brief information about you. My mail id is &lt;a href=mailto:agnikhil82@gmail.com?Free Dotnet Project Training&gt;agnikhil82@gmail.com&lt;/a&gt; I will send you project Details so that you can start it now.&lt;br /&gt;&lt;br /&gt;If you need experience certificate to submit in your collage, I can provide it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-2990381002722026472?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/2990381002722026472/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/01/free-real-life-project-training-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/2990381002722026472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/2990381002722026472'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/01/free-real-life-project-training-in.html' title='Free Real Life Project Training in Dotnet for Fresher, BTech, MCA Collage pass students'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-1639347939548893817</id><published>2009-01-20T06:42:00.001-08:00</published><updated>2009-01-20T06:44:10.140-08:00</updated><title type='text'>Law  on arresting a woman in INDIA</title><content type='html'>An incident took place in Pune - a young girl was attacked by a man posing as a plain clothes officer; he asked her 2 come 2 the police station when she &amp; her male friend didn't have a driver's license 2 show. He sent the boy off 2 get his license and asked the girl to accompany him to the police station. Took her instead to an isolated area where the horrendous crime was committed.   &lt;br /&gt;The law [which most of us are not aware of] clearly states that between 6 pm and 6 am (from sunset until sunrise), a woman has the right to REFUSE to go to the Police Station , even if an arrest warrant has been issued against her. It is a procedural issue that a woman can be arrested between 6pm and 6am, if and ONLY iff she is arrested by a woman officer &amp; taken to an ALL WOMEN police station. And if she is arrested by a male officer, it has to be proven that a woman officer was on duty at the time of arrest. &lt;br /&gt;&lt;br /&gt;Please fwd this 2 as many girls you know on your mailing list . Also!  2 boys coz this can help them protect their wives,  friends, sisters and mothers. It is good for us to know our rights. &lt;br /&gt;Do not neglect, fwd to your entire mail list. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Note: &lt;/strong&gt;&lt;br /&gt;Read National Human Rights Comission Report for elaborate details&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-1639347939548893817?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/1639347939548893817/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/01/law-on-arresting-woman-in-india.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/1639347939548893817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/1639347939548893817'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/01/law-on-arresting-woman-in-india.html' title='Law  on arresting a woman in INDIA'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-5790516670943371780</id><published>2009-01-20T06:40:00.000-08:00</published><updated>2009-01-20T06:42:07.391-08:00</updated><title type='text'>No harm in keeping this in mind</title><content type='html'>If you are ever forced by a thief or  someone to take money out of an ATM machine, enter your pin number  reversed.&lt;br /&gt;&lt;br /&gt;So if your number is 1234 mark 4321.&lt;br /&gt;&lt;br /&gt;The ATM machine will give  you your money, but will automatically recognize this as a plea for help and  will alert the police unknown to the thief.&lt;br /&gt;&lt;br /&gt;This option is in all ATM  machines, but not many people know this.&lt;br /&gt;&lt;br /&gt;Please pass this information on to  others. No harm in keeping this in&lt;br /&gt;mind!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-5790516670943371780?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/5790516670943371780/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/01/no-harm-in-keeping-this-in-mind.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/5790516670943371780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/5790516670943371780'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/01/no-harm-in-keeping-this-in-mind.html' title='No harm in keeping this in mind'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-994756429855854304</id><published>2009-01-20T06:38:00.000-08:00</published><updated>2009-01-20T06:40:36.591-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Information'/><title type='text'>ALL INDIA TOLL-FREE Terror Help-line "1090"</title><content type='html'>In case you come across any suspicious activity, any suspicious movement or have any information to tell to the Anti-Terror Squad, please take a note of the new &lt;strong&gt;ALL INDIA TOLL-FREE Terror Help-line "1090"&lt;/strong&gt;. Your city's Police or Anti-Terror squad will take action as quickly as possible.&lt;br /&gt;Remember that this single number &lt;strong&gt;1090&lt;/strong&gt; is valid all over India.&lt;br /&gt;This is a toll free number and can be dialed from mobile phones also. Moreover, the identity of the caller will be kept a secret.&lt;br /&gt;Please, try to aware each and every citizen of India about this facility. Forward this mail to as many people as possible, and tell everyone individually also.&lt;br /&gt;Store this number in your handset………………….&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-994756429855854304?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/994756429855854304/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/01/all-india-toll-free-terror-help-line.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/994756429855854304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/994756429855854304'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/01/all-india-toll-free-terror-help-line.html' title='ALL INDIA TOLL-FREE Terror Help-line &quot;1090&quot;'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-2455180217156298998</id><published>2009-01-19T07:23:00.000-08:00</published><updated>2009-01-19T07:26:35.165-08:00</updated><title type='text'>DR. A. P. J. Abdul Kalam 's Speech in Hyderabad</title><content type='html'>&lt;strong&gt;Why is the media here so negative?&lt;/strong&gt;&lt;br /&gt;Why are we in India so embarrassed to recognize our own strengths, our achievements?&lt;br /&gt;We are such a great nation. We have so many amazing success stories but we refuse to acknowledge them. Why?&lt;br /&gt;We are the first in milk production.&lt;br /&gt;We are number one in Remote sensing satellites.&lt;br /&gt;We are the second largest producer of wheat.&lt;br /&gt;We are the second largest producer of rice.&lt;br /&gt;Look at Dr. Sudarshan , he has transferred the tribal village into a self-sustaining, self-driving unit. There are millions of such achievements but our media is only obsessed in the bad news and failures and disasters.&lt;br /&gt;I was in Tel Aviv once and I was reading the Israeli newspaper. It was the day after a lot of attacks and bombardments and deaths had taken place. The Hamas had struck. But the front page of the newspaper had the picture of a Jewish gentleman who in five years had transformed his desert into an orchid and a granary. It was this inspiring picture that everyone woke up to. The gory details of killings, bombardments, deaths, were inside in the newspaper, buried among other news.&lt;br /&gt;In India we only read about death, sickness, terrorism, crime.. Why are we so NEGATIVE? Another question: Why are we, as a nation so obsessed with foreign things? We want foreign T.Vs, we want foreign shirts. We want foreign technology.&lt;br /&gt;Why this obsession with everything imported. Do we not realize that self-respect comes with self-reliance? I was in Hyderabad giving this lecture, when a 14 year old girl asked me for my autograph. I asked her what her goal in life is. She replied: I want to live in a developed India . For her, you and I will have to build this developed India . You must proclaim. India is not an under-developed nation; it is a highly developed nation.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Do you have 10 minutes? Allow me to come back with a vengeance.&lt;br /&gt;Got 10 minutes for your country? If yes, then read; otherwise, choice is yours.&lt;/strong&gt;&lt;br /&gt;YOU say that our government is inefficient.&lt;br /&gt;YOU say that our laws are too old.&lt;br /&gt;YOU say that the municipality does not pick up the garbage.&lt;br /&gt;YOU say that the phones don't work, the railways are a joke. The airline is the worst in the world, mails never reach their destination. &lt;br /&gt;YOU say that our country has been fed to the dogs and is the absolute pits.&lt;br /&gt;YOU say, say and say. What do YOU do about it?&lt;br /&gt;Take a person on his way to Singapore. Give him a name - 'YOURS'. Give him a face - 'YOURS'. YOU walk out of the airport and you are at your International best. In Singapore you don't throw cigarette butts on the roads or eat in the stores. YOU are as proud of their Underground links as they are. You pay $5 (approx. Rs. 60) to drive through Orchard Road (equivalent of Mahim Causeway or Pedder Road) between 5 PM and 8 PM. YOU come back to the parking lot to punch your parking ticket if you have over stayed in a restaurant or a shopping mall irrespective of your status identity… In Singapore you don't say anything, DO YOU? YOU wouldn't dare to eat in public during Ramadan, in Dubai . YOU would not dare to go out without your head covered in Jeddah.&lt;br /&gt;YOU would not dare to buy an employee of the telephone exchange in London at 10 pounds (Rs.650) a month to, 'see to it that my STD and ISD calls are billed to someone else.'YOU would not dare to speed beyond 55 mph (88 km/h) in Washington and then tell the traffic cop, 'Jaanta hai main kaun hoon (Do you know who I am?). I am so and so's son. Take your two bucks and get lost.' YOU wouldn't chuck an empty coconut shell anywhere other than the garbage pail on the beaches in Australia and New Zealand .&lt;br /&gt;Why don't YOU spit Paan on the streets of Tokyo? Why don't YOU use examination jockeys or buy fake certificates in Boston??? We are still talking of the same YOU. YOU who can respect and conform to a foreign system in other countries but cannot in your own. You who will throw papers and cigarettes on the road the moment you touch Indian ground. If you can be an involved and appreciative citizen in an alien country, why cannot you be the same here in India?&lt;br /&gt;Once in an interview, the famous Ex-municipal commissioner of Bombay, Mr. Tinaikar, had a point to make. 'Rich people's dogs are walked on the streets to leave their affluent droppings all over the place,' he said. 'And then the same people turn around to criticize and blame the authorities for inefficiency and dirty pavements. What do they expect the officers to do? Go down with a broom every time their dog feels the pressure in his bowels?&lt;br /&gt;In America every dog owner has to clean up after his pet has done the job. Same in Japan.&lt;br /&gt;Will the Indian citizen do that here?' He's right. We go to the polls to choose a government and after that forfeit all responsibility.&lt;br /&gt;We sit back wanting to be pampered and expect the government to do everything for us whilst our contribution is totally negative. We expect the government to clean up but we are not going to stop chucking garbage all over the place nor are we going to stop to pick a up a stray piece of paper and throw it in the bin. We expect the railways to provide clean bathrooms but we are not going to learn the proper use of bathrooms.&lt;br /&gt;We want Indian Airlines and Air India to provide the best of food and toiletries but we are not going to stop pilfering at the least opportunity.&lt;br /&gt;This applies even to the staff who is known not to pass on the service to the public.&lt;br /&gt;When it comes to burning social issues like those related to women, dowry, girl child! and others, we make loud drawing room protestations and continue to do the reverse at home. Our excuse? 'It's the whole system which has to change, how will it matter if I alone forego my sons' rights to a dowry.' So who's going to change the system?&lt;br /&gt;What does a system consist of? Very conveniently for us it consists of our neighbors, other households, other cities, other communities and the government. But definitely not me and YOU. When it comes to us actually making a positive contribution to the system we lock ourselves along with our families into a safe cocoon and look into the distance at countries far away and wait for a Mr.Clean to come along &amp; work miracles for us with a majestic sweep of his hand or we leave the country and run away.&lt;br /&gt;Like lazy cowards hounded by our fears we run to America to bask in their glory and praise their system. When New York becomes insecure we run to England . When England experiences unemployment, we take the next flight out to the Gulf. When the Gulf is war struck, we demand to be rescued and brought home by the Indian government. Everybody is out to abuse and rape the country. Nobody thinks of feeding the system. Our conscience is mortgaged to money.&lt;br /&gt;Dear Indians, The article is highly thought inductive, calls for a great deal of introspection and pricks one's conscience too…. I am echoing J. F. Kennedy's words to his fellow Americans to relate to Indians…..&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;'ASK WHAT WE CAN DO FOR INDIA AND DO WHAT HAS TO BE DONE TO MAKE INDIA WHAT AMERICA AND OTHER WESTERN COUNTRIES ARE TODAY'&lt;/strong&gt;&lt;br /&gt;Lets do what India needs from us.&lt;br /&gt;Forward this to each Indian for a change instead of sending Jokes or junk mails.&lt;br /&gt;Thank you,&lt;br /&gt;&lt;strong&gt;Dr. Abdul Kalam&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-2455180217156298998?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/2455180217156298998/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/01/dr-p-j-abdul-kalam-s-speech-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/2455180217156298998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/2455180217156298998'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/01/dr-p-j-abdul-kalam-s-speech-in.html' title='DR. A. P. J. Abdul Kalam &apos;s Speech in Hyderabad'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-5853174739587828378</id><published>2009-01-19T07:19:00.000-08:00</published><updated>2009-01-19T07:22:25.844-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tips'/><category scheme='http://www.blogger.com/atom/ns#' term='Information'/><title type='text'>To all those who do not TURN OFF their PC's before Leaving</title><content type='html'>Most of us in the IT field, used to do one thing before leaving for the day from office, &lt;br /&gt;Press Ctrl+Alt+ Del and leave to home happily. That means your PC is still on..   &lt;br /&gt;One normal PC in the sleeping mode (Hibernation) will consume 35 watts/hr.   &lt;br /&gt;Based on this we will do a small calculation.   &lt;br /&gt;For one week 24 * 7 = 168 Hrs &lt;br /&gt;Of this if we consider that we are working for 68 hours, then   &lt;br /&gt;the PC is in sleeping mode for 100 Hrs a week. &lt;br /&gt;For one month 4 * 100 = 400 Hrs   &lt;br /&gt;In a normal IT office, if we assume approximately 250 PCs are there,   &lt;br /&gt;250 * 400 = 1,00,000 Hrs (Sleeping Mode) &lt;br /&gt;So the power wasted in an office in a month is, &lt;br /&gt;100000 * 35 = 3500 KWH or units. &lt;br /&gt;If the charge per unit is Indian Rs. 6, then totally the wastage value is approximately 21000 Indian rupees.   &lt;br /&gt;&lt;br /&gt;Here the sad thing is not the money loss to the company but the power loss to the country. (Hope no company is bothered about this procedure of keeping the system in sleeping mode)   &lt;br /&gt;&lt;br /&gt;Apart from the loss to the country we need to think of the efforts people are putting for producing the power in the Mines, Thermal Stations, Hydro electric Stations, etc. If this is to continue, the cost of unit power will go up &amp; at one stage we will not get power even if we are ready to pay any cost. &lt;br /&gt;&lt;br /&gt; So before leaving to home take some time to shut down the PC and do some favour to the country and the organisation.   &lt;br /&gt;If you feel that this point is to be considered forward this to all your friends.   &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;*** Do it once it will become a Habit... Good Habit... be a good citizen of India.***&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-5853174739587828378?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/5853174739587828378/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/01/to-all-those-who-do-not-turn-off-their.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/5853174739587828378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/5853174739587828378'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/01/to-all-those-who-do-not-turn-off-their.html' title='To all those who do not TURN OFF their PC&apos;s before Leaving'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-4251513983958959361</id><published>2009-01-19T07:13:00.000-08:00</published><updated>2009-01-19T07:17:43.476-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Information'/><title type='text'>TERROR HELPLINE, ALL INDIA: DIAL 1090</title><content type='html'>&lt;strong&gt;Dial from land line or the mobile phone. This is an All India Toll Free Helpline which gets connected to the local police headquarters anywhere in India.&lt;/strong&gt;&lt;br /&gt;In case you come across any suspicious activity, any suspicious movement or have any information to tell to the Anti-Terror Squad, please take a note of the new ALL INDIA TOLL-FREE Terror Help-line "1090". Your city's Police or Anti-Terror squad will take action as quickly as possible. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Remember that this single number 1090 is valid all over India. &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;This is a toll free number and can be dialed from mobile phones also. Moreover, the identity of the caller will be kept a secret. &lt;br /&gt;&lt;br /&gt;Please, try to aware each and every citizen of India about this facility. Forward this mail to as many people as possible, and tell everyone individually also. &lt;br /&gt;&lt;br /&gt;Store this number in your handset, who knows when this comes in handy. It isn't just the Government's responsibility to check terror.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Advisory&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;In case of any suspicion on any person or suspect out of ordinary activity anticipating terror activity, please call on he helpline. &lt;br /&gt;&lt;br /&gt;• Stay away from the crowded place like markets, places of worship, auditoriums in case of Bomb scare&lt;br /&gt;• Please report any unclaimed object to the police&lt;br /&gt;• Don’t try to touch any unclaimed object&lt;br /&gt;• Don’t try to diffuse the supposed bomb&lt;br /&gt;• Report it to the helpline.1090&lt;br /&gt;• If the Bomb threat call is received, please try to find the answers to the following checklist for further inquiry.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;• &lt;strong&gt;Bomb Threat Checklist&lt;/strong&gt;&lt;br /&gt;• Exact time of call:____________________________________________&lt;br /&gt;&lt;br /&gt;• Exact words of caller:_________________________________________&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;• &lt;strong&gt;QUESTIONS TO ASK:&lt;/strong&gt;&lt;br /&gt;• 1. When is the bomb going to explode?___________________________&lt;br /&gt;&lt;br /&gt;• 2. Where is the bomb?________________________________________&lt;br /&gt;&lt;br /&gt;• 3. What does it look like?___________________________________&lt;br /&gt;&lt;br /&gt;• 4. What kind of bomb is it?_____________________________________&lt;br /&gt;&lt;br /&gt;• 5. What will cause it to explode?_________________________________&lt;br /&gt;&lt;br /&gt;• 6. Did you place the bomb?_____________________________________&lt;br /&gt;&lt;br /&gt;• 7.Why?____________________________________________ _________&lt;br /&gt;&lt;br /&gt;• 8. Where are you calling from?__________________________________&lt;br /&gt;&lt;br /&gt;• 9. What is your address?_______________________________________&lt;br /&gt;&lt;br /&gt;• 10. What is your name?________________________________________&lt;br /&gt;&lt;br /&gt;• CALLER'S VOICE (circle all that apply)&lt;br /&gt;&lt;br /&gt;• Calm• Slow• Crying• Slurred&lt;br /&gt;• Stutter• Deep• Loud• Broken&lt;br /&gt;• Giggling• Accent• Angry• Rapid&lt;br /&gt;• Stressed• Nasal• Lisp• Excited&lt;br /&gt;• Disguised• Sincere• Squeaky• Normal&lt;br /&gt;&lt;br /&gt;• If voice is familiar, whom did it sound like?________________________&lt;br /&gt;&lt;br /&gt;• Were there any background noises?______________________________&lt;br /&gt;&lt;br /&gt;• &lt;strong&gt;Remarks:&lt;/strong&gt;&lt;br /&gt;• Person receiving call:__________________________________________&lt;br /&gt;&lt;br /&gt;• Telephone number call received on:______________________________ &lt;br /&gt;&lt;br /&gt;• Date:__________&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-4251513983958959361?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/4251513983958959361/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/01/terror-helpline-all-india-dial-1090.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/4251513983958959361'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/4251513983958959361'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/01/terror-helpline-all-india-dial-1090.html' title='TERROR HELPLINE, ALL INDIA: DIAL 1090'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-5218597221767275094</id><published>2009-01-19T07:00:00.000-08:00</published><updated>2009-01-19T07:09:58.666-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Information'/><title type='text'>International Symbol of marriage</title><content type='html'>&lt;a href="http://2.bp.blogspot.com/_Jml_Gpc9xOs/SXSXOF2_2VI/AAAAAAAAAcg/CBwMT6ifY8o/s1600-h/InternationalMarriageSymbol.gif"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 269px; height: 207px;" src="http://2.bp.blogspot.com/_Jml_Gpc9xOs/SXSXOF2_2VI/AAAAAAAAAcg/CBwMT6ifY8o/s320/InternationalMarriageSymbol.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5293021730413992274" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;On April 21, 2005, The Commission of Human Rights approved the new International Symbol of Marriage.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-5218597221767275094?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/5218597221767275094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/01/international-symbol-of-marriage.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/5218597221767275094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/5218597221767275094'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/01/international-symbol-of-marriage.html' title='International Symbol of marriage'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_Jml_Gpc9xOs/SXSXOF2_2VI/AAAAAAAAAcg/CBwMT6ifY8o/s72-c/InternationalMarriageSymbol.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-1524267094830754882</id><published>2009-01-18T06:52:00.000-08:00</published><updated>2009-01-18T06:54:21.185-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>HTML tbody Tag</title><content type='html'>&lt;strong&gt;Definition&lt;/strong&gt;&lt;br /&gt;To group the body content in an HTML table uses tbody tag. It should be used in conjunction with the thead and tfoot elements. The thead element is used to group the header content in an HTML table and the tfoot element is used to group the footer content in an HTML table.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Note:&lt;/strong&gt; that these elements will not affect the layout of the table by default. However, you can use CSS to let these elements affect the table's layout.&lt;br /&gt;&lt;br /&gt;&lt;textarea cols='50' rows='25'&gt;&lt;br /&gt;&lt;table border="1"&gt;&lt;br /&gt;  &lt;thead&gt;&lt;br /&gt;    &lt;tr&gt;&lt;br /&gt;      &lt;th&gt;Class&lt;/th&gt;&lt;br /&gt;      &lt;th&gt;Students&lt;/th&gt;&lt;br /&gt;    &lt;/tr&gt;&lt;br /&gt;  &lt;/thead&gt;&lt;br /&gt;  &lt;tbody&gt;&lt;br /&gt;    &lt;tr&gt;&lt;br /&gt;      &lt;td&gt;10th&lt;/td&gt;&lt;br /&gt;      &lt;td&gt;40&lt;/td&gt;&lt;br /&gt;    &lt;/tr&gt;&lt;br /&gt;    &lt;tr&gt;&lt;br /&gt;      &lt;td&gt;12th&lt;/td&gt;&lt;br /&gt;      &lt;td&gt;50&lt;/td&gt;&lt;br /&gt;    &lt;/tr&gt;&lt;br /&gt;  &lt;/tbody&gt;&lt;br /&gt;  &lt;tfoot&gt;&lt;br /&gt;    &lt;tr&gt;&lt;br /&gt;      &lt;td&gt;BSc&lt;/td&gt;&lt;br /&gt;      &lt;td&gt;60&lt;/td&gt;&lt;br /&gt;    &lt;/tr&gt;&lt;br /&gt;  &lt;/tfoot&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;/textarea&gt;&lt;br /&gt;&lt;br /&gt;The &lt;tbody&gt; tag is only partially supported in IE, Firefox, Opra, Google Chrome, Safari browsers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-1524267094830754882?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/1524267094830754882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/01/html-tbody-tag.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/1524267094830754882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/1524267094830754882'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/01/html-tbody-tag.html' title='HTML tbody Tag'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-4490660511365166100</id><published>2009-01-18T03:57:00.000-08:00</published><updated>2009-01-18T05:59:46.669-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><title type='text'>Date and Time Format In .NET</title><content type='html'>&lt;strong&gt;Namespace: Systesm Class: DateTime&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The &lt;strong&gt;DateTime&lt;/strong&gt; class has a number of properties and methods, additionally; there are a couple of static members. The two static properties that are &lt;strong&gt;Now&lt;/strong&gt; and &lt;strong&gt;Today&lt;/strong&gt;. &lt;strong&gt;Now&lt;/strong&gt; contains the date and time for the moment the call is made. &lt;strong&gt;Today&lt;/strong&gt; returns the current date. You should note that although the &lt;strong&gt;Today&lt;/strong&gt; property gives you only a valid date. It does not give you the current time, even though you can access time members.&lt;br /&gt;Because these are static properties, their values can be obtained using the class name rather than an instant name. In other words, to get the current date or the current time, you need only do the following:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;DateTime.Now&lt;br /&gt;&lt;br /&gt;DateTime.Today&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;These commands assume that you have included the System namespace. If you didn't include the namespace, then you'll need to fully qualify the names:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;System.DateTime.Now&lt;br /&gt;&lt;br /&gt;System.DateTime.Today&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Formatting the Date and Time&lt;/strong&gt;&lt;br /&gt;There are a number of specifiers in .Net that can be used specifically with dates and times, or both. These are using to display information in short and long format. Below Table contains the date and time specifiers.&lt;br /&gt;&lt;strong&gt;Date And Time Formatting Characters&lt;/strong&gt;&lt;br /&gt;&lt;table style="WIDTH: 100%" cellspacing="0" cellpadding="0" border="0"&gt;&lt;br /&gt;        &lt;tr&gt;&lt;td width="10%"&gt;&lt;strong&gt;Specifier&lt;/strong&gt;&lt;/td&gt;&lt;td width="60%" align="center"&gt;&lt;strong&gt;Default Format&lt;/strong&gt;&lt;/td&gt;&lt;td width="30%"&gt;&lt;strong&gt;Example Output&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;        &lt;tr&gt;&lt;td width="10%"&gt;d&lt;/td&gt;&lt;td width="60%"&gt;mm/dd/yyyy&lt;/td&gt;&lt;td width="30%"&gt;12/31/2008&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;        &lt;tr&gt;&lt;td&gt;D&lt;/td&gt;&lt;td&gt;day, month dd, yyyy&lt;/td&gt;&lt;td&gt;Wednesday, December 31, 2008&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;        &lt;tr&gt;&lt;td&gt;f&lt;/td&gt;&lt;td&gt;time day, month dd, yyyy hh:mm AM/PM&lt;/td&gt;&lt;td&gt;Wednesday, December 31, 2008 12:30 PM&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;        &lt;tr&gt;&lt;td&gt;F&lt;/td&gt;&lt;td&gt;month dd, yyyy HH:mm:ss AM/PM&lt;/td&gt;&lt;td&gt;Wednesday, Dec 31, 2008 12:30:54 PM&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;        &lt;tr&gt;&lt;td&gt;g&lt;/td&gt;&lt;td&gt;mm/dd/yyyy HH:mm&lt;/td&gt;&lt;td&gt;12/31/2008 12:30 PM&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;        &lt;tr&gt;&lt;td&gt;G&lt;/td&gt;&lt;td&gt;mm/dd/yyyy hh:mm:ss&lt;/td&gt;&lt;td&gt;12/31/2008 12:30:54 PM&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;        &lt;tr&gt;&lt;td&gt;M or m&lt;/td&gt;&lt;td&gt;month dd&lt;/td&gt;&lt;td&gt;December 06&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;        &lt;tr&gt;&lt;td&gt;g&lt;/td&gt;&lt;td&gt;mm/dd/yyyy HH:mm&lt;/td&gt;&lt;td&gt;12/31/2008 12:30 PM&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;        &lt;tr&gt;&lt;td&gt;R or r&lt;/td&gt;&lt;td&gt;ddd, dd Month yyyy hh:mm:ss GMT&lt;/td&gt;&lt;td&gt;Wed, 31 December 2008 12:30:54 GMT&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;        &lt;tr&gt;&lt;td&gt;s&lt;/td&gt;&lt;td&gt;yyyy-mm-dd hh:mm:ss&lt;/td&gt;&lt;td&gt;2001-31-12 T12:30:54&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;        &lt;tr&gt;&lt;td&gt;t&lt;/td&gt;&lt;td&gt;hh:mm AM/PM&lt;/td&gt;&lt;td&gt;12:30 PM&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;        &lt;tr&gt;&lt;td&gt;T&lt;/td&gt;&lt;td&gt;hh:mm:ss AM/PM&lt;/td&gt;&lt;td&gt;12:30:54 PM&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;        &lt;tr&gt;&lt;td&gt;u&lt;/td&gt;&lt;td&gt;yyyy-mm-dd hh:mm:ss&lt;/td&gt;&lt;td&gt;2008-12-31 12:30:54&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;        &lt;tr&gt;&lt;td&gt;U&lt;/td&gt;&lt;td&gt;day, month dd, yyyy hh:mm:ss AM/PM&lt;/td&gt;&lt;td&gt;Wednesday, December 31, 2008 12:30:54 PM&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Y or y&lt;/td&gt;&lt;td&gt;Year/month month, yyyy&lt;/td&gt;&lt;td&gt;December, 2008&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;       &lt;/table&gt;&lt;strong&gt;Note:&lt;/strong&gt; s is used as a specifier for printing a sortable date. Note that this is a lower case s. An uppercase S is not a valid format specifier and will generate an exception if used.&lt;br /&gt;&lt;table style="WIDTH: 100%" cellspacing="0" cellpadding="0" border="0"&gt;&lt;br /&gt;&lt;tbody&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;&lt;br /&gt;&lt;strong&gt;//Listing 1. dtformat.cs—The Date Formats&lt;/strong&gt;&lt;br /&gt;// dtformat.cs - date/time formats&lt;br /&gt;//-----------------------------------------------&lt;br /&gt;using System;&lt;br /&gt;class myApp&lt;br /&gt;{&lt;br /&gt;public static void Main()&lt;br /&gt;{&lt;br /&gt;DateTime CurrTime = DateTime.Now;&lt;br /&gt;Console.WriteLine("d: {0:d}", CurrTime );&lt;br /&gt;Console.WriteLine("D: {0:D}", CurrTime );&lt;br /&gt;Console.WriteLine("f: {0:f}", CurrTime );&lt;br /&gt;Console.WriteLine("F: {0:F}", CurrTime );&lt;br /&gt;Console.WriteLine("g: {0:g}", CurrTime );&lt;br /&gt;Console.WriteLine("G: {0:G}", CurrTime );&lt;br /&gt;Console.WriteLine("m: {0:m}", CurrTime );&lt;br /&gt;Console.WriteLine("M: {0:M}", CurrTime );&lt;br /&gt;Console.WriteLine("r: {0:r}", CurrTime );&lt;br /&gt;Console.WriteLine("R: {0:R}", CurrTime );&lt;br /&gt;Console.WriteLine("s: {0:s}", CurrTime );&lt;br /&gt;//Console.WriteLine("S: {0:S}", CurrTime );// error!!!&lt;br /&gt;Console.WriteLine("t: {0:t}", CurrTime );&lt;br /&gt;Console.WriteLine("T: {0:T}", CurrTime );&lt;br /&gt;Console.WriteLine("u: {0:u}", CurrTime );&lt;br /&gt;Console.WriteLine("U: {0:U}", CurrTime );&lt;br /&gt;Console.WriteLine("y: {0:y}", CurrTime );&lt;br /&gt;Console.WriteLine("Y: {0:Y}", CurrTime );&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;table style="WIDTH: 100%" cellspacing="0" cellpadding="0" border="0"&gt;&lt;br /&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;The output from this listing is:&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;&lt;br /&gt;d: 5/6/2002&lt;br /&gt;&lt;br /&gt;D: Sunday, May 06, 2002&lt;br /&gt;&lt;br /&gt;f: Sunday, May 06, 2002 1:06 PM&lt;br /&gt;&lt;br /&gt;F: Sunday, May 06, 2002 1:06:51 PM&lt;br /&gt;&lt;br /&gt;g: 5/6/2002 1:06 PM&lt;br /&gt;&lt;br /&gt;G: 5/6/2002 1:06:51 PM&lt;br /&gt;&lt;br /&gt;m: May 06 M: May 06&lt;br /&gt;&lt;br /&gt;r: Sun, 06 May 2002 13:06:51 GMT&lt;br /&gt;&lt;br /&gt;R: Sun, 06 May 2002 13:06:51 GMT&lt;br /&gt;&lt;br /&gt;s: 2002-05-06T13:06:51 t: 1:06 PM&lt;br /&gt;&lt;br /&gt;T: 1:06:51 PMst&lt;br /&gt;&lt;br /&gt;u: 2002-05-06 13:06:51&lt;br /&gt;&lt;br /&gt;U: Sunday, May 06, 2002 6:06:51 PM&lt;br /&gt;&lt;br /&gt;y: May, 2002&lt;br /&gt;&lt;br /&gt;Y: May, 2002&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;In line 10, this listing declares an object to hold the date and time. This is done using the DateTime class. This object is called CurrTime. It is assigned the static value from the DateTime class, Now, which provides the current date and time. Looking at the output, you can see that it was midday in May when I ran this listing. Lines 12 to 29 present this same date and time in all the date/time formats.&lt;br /&gt;Line 23 is commented. This line uses the S specifier, which is not legal. If you uncomment this line, you will see that the listing throws an exception.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-4490660511365166100?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/4490660511365166100/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/01/date-and-time-format-in-net.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/4490660511365166100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/4490660511365166100'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/01/date-and-time-format-in-net.html' title='Date and Time Format In .NET'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-835321509338048255</id><published>2009-01-16T20:42:00.001-08:00</published><updated>2009-01-16T20:42:38.534-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Information'/><title type='text'>Section 49-O of the Constitution</title><content type='html'>Did you know that there is a system in our constitution, as per the 1969 act, in section '49-O' that a person can go to the polling booth, confirm his identity, get his finger marked, and convey the presiding election officer that he / she doesn't want to vote anyone!&lt;br /&gt;&lt;br /&gt;Yes, such a feature is available, but obviously these seemingly notorious leaders have never disclosed it. This is called '49-O'.&lt;br /&gt;&lt;br /&gt;Why should you go and say 'I VOTE NOBODY'? ... Because, in a ward, if a candidate wins, say by 123 votes, and that particular ward has received '49-O' votes more than 123, then that polling will be cancelled and will have to be re-polled. Not only that, but the candidate of the contestants will be removed and they cannot contest the re-polling, since people had already expressed their decision on them.&lt;br /&gt;&lt;br /&gt;This would bring fear into parties and hence look for genuine candidates for their parties for election. This would change the way, of our whole political system... it is seemingly surprising why the election commission has not revealed such a feature to the public.... Please spread this news to as many as you know... Seems to be a wonderful weapon against corrupt  parties in India... show your power, expressing your desire not to vote for anybody, is even more powerful than voting... so don't miss your chance. &lt;br /&gt;So either vote, or vote not to vote (vote '49-O') and pass on this info...&lt;br /&gt;&lt;br /&gt;Please forward this mail to as many as possible, so that we, the People of India, can really use this power to save our nation.&lt;br /&gt;&lt;br /&gt;Use your voting right for a better INDIA. &lt;br /&gt;&lt;br /&gt;Jago India .!!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-835321509338048255?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/835321509338048255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/01/section-49-o-of-constitution.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/835321509338048255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/835321509338048255'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/01/section-49-o-of-constitution.html' title='Section 49-O of the Constitution'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-5230603808096880545</id><published>2009-01-14T07:10:00.000-08:00</published><updated>2009-01-14T07:16:52.151-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tips'/><title type='text'>Code-Snippet option in Visual Studio.</title><content type='html'>To save time while does Code in Visual studio by using Code-Snippets.&lt;br /&gt;&lt;br /&gt;To get Code-Snippest option in Visual Studio just press Ctrl+X in any Visual Studio.&lt;br /&gt;&lt;br /&gt;Here you can easily insert code blocks using short keywords. You just have to fillup the blanks. It saves a lot of time and makes it very easy to write code.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;key words&lt;br /&gt;----------&lt;br /&gt;prop -  To creates a property declaration with get and set methods.&lt;br /&gt;propg - To creates a property declaration with get method only.&lt;br /&gt;exception - To creates full declarations for an exception class.&lt;br /&gt;if - To creates an if block&lt;br /&gt;for - To creates a for loop &lt;br /&gt;foreach - To creates foreach loop&lt;br /&gt;indexer - To creates an indexer block with get and set methods&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-5230603808096880545?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/5230603808096880545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/01/code-snippet-option-in-visual-studio.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/5230603808096880545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/5230603808096880545'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/01/code-snippet-option-in-visual-studio.html' title='Code-Snippet option in Visual Studio.'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-5473715984406499196</id><published>2009-01-14T06:57:00.000-08:00</published><updated>2009-01-14T06:58:44.829-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JScript.Net'/><title type='text'>Create a Web Service using JScript .NET</title><content type='html'>The Web Service we'll create performs a test to determine if a given number is a prime number. Testing pro prime numbers is a science in itself and there are many ways of determining if a number is prime. I want to focus on the Web Service instead of getting into advanced number theory; as a result, the test the Web Service performs is limited to small numbers (numbers less than 999,999). &lt;br /&gt;What makes a Web Service different from an ASP.NET page is its extension - a Web Service resides in a file with an ".asmx" extension. The next attribute that distinguishes a Web Service from other types of files is the first line in the file, as shown below: &lt;br /&gt;&lt;br /&gt;&lt;%@ WebService Language="JScript" Class="PrimeNumbers" %&gt;&lt;br /&gt;The line represents a page-level directive that informs ASP.NET that the contents of the file represent a Web Service written in JScript .NET whose code resides in a class called PrimeNumbers. Once you have the page level directive in place, creating a Web Service is as easy as creating a class and adding methods to it. Here's a JScript class that performs the test to determine if a given number is a prime number: &lt;br /&gt;&lt;br /&gt;public class IsPrimeNumbers&lt;br /&gt;{&lt;br /&gt;  public function IsPrime(n:int) : int&lt;br /&gt;  {&lt;br /&gt;    var i:int;&lt;br /&gt;&lt;br /&gt;      if (n % 2 == 0)&lt;br /&gt;        return (n == 2);&lt;br /&gt;      if (n % 3 == 0)&lt;br /&gt;        return (n==3);&lt;br /&gt;      if (n % 5 == 0)&lt;br /&gt;        return (n==5);&lt;br /&gt;      for (i=7; i*i &lt;= n; i+=2)&lt;br /&gt;        if (n % i == 0)&lt;br /&gt;          return 0;&lt;br /&gt;      return 1;&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;The class is called IsPrimeNumbers and has a single method, IsPrime. At the moment, the class does not represent a Web Service. Here's what you need to do to convert the class into a Web Service: &lt;br /&gt;1. Import the System.Web.Services namespace &lt;br /&gt;2. Derive the class from the .NET Class Library's WebService class &lt;br /&gt;3. For each method you want to expose as a Web Service method, add the attribute WebMethodAttribute to the beginning of the method's declaration &lt;br /&gt;That's it! Here's the same class converted into a Web Service:&lt;br /&gt;&lt;br /&gt;import System.Web.Services;&lt;br /&gt;&lt;br /&gt;public class PrimeNumbers extends WebService&lt;br /&gt;{&lt;br /&gt;  WebMethodAttribute public function IsPrime(n:int) : int&lt;br /&gt;  {&lt;br /&gt;    // implementation identical to previous listing...&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;Having a Web Service is great, but Web Services aren't all that useful by themselves. The .NET Framework includes some code that makes it easy to test your Web Service directly; however, the interface is very basic and is not intended to serve as a primary interface.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-5473715984406499196?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/5473715984406499196/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/01/create-web-service-using-jscript-net.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/5473715984406499196'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/5473715984406499196'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/01/create-web-service-using-jscript-net.html' title='Create a Web Service using JScript .NET'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-5457636065033292666</id><published>2009-01-10T08:59:00.000-08:00</published><updated>2009-01-10T09:15:51.672-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>How to create a link to send an email ?</title><content type='html'>How the browser read a link as an e-mail link, simply use "mailto:" rather than "http://" to begin the address. After the "mailto:", you will use your e-mail address rather than a Web address&lt;br /&gt;Below is a sample code to create an email link&lt;br /&gt;&lt;textarea cols="47" rows="1"&gt;&lt;a href="mailto:my_email_address"&gt;E-mail Me.&lt;/a&gt;&lt;/textarea&gt;&lt;br /&gt;Here is the result:&lt;br /&gt;&lt;br /&gt;&lt;a href="mailto:agnikhil82@gmail.com"&gt;Give me some mail!&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you click on the link, your browser will bring up a window for you to send an e-mail, with the e-mail address already filled in.&lt;br /&gt;You can also create the subject of the message so the viewer doesn't have to fill in something in the subject line. You do this by adding a "?" at the end of your e-mail address and then your subject, like this:&lt;br /&gt;&lt;textarea cols="47" rows="1"&gt;&lt;a href="mailto:" subject="Hi"&gt;Mail Me!&lt;/a&gt;&lt;/textarea&gt;&lt;br /&gt;&lt;br /&gt;The example link is below, notice that when you click it, the subject field of your email message is already filled in with "Hey John".&lt;br /&gt;Mail Me!&lt;br /&gt;Other than adding the subject, there are a couple of extras thing that you can also add in your email link. You can add a carbon copy recipient, a blind carbon copy recipient, or use a combination of the subject with either or both of these.&lt;br /&gt;To send a carbon copy, you add the cc= command after the question mark, followed by the e-mail address of the person you want to send the carbon copy to:&lt;br /&gt;&lt;br /&gt;&lt;textarea cols="47" rows="1"&gt;&lt;a href="mailto:me@gmail.com?cc=friend@gmail.com"&gt;Mail Me&lt;/a&gt;&lt;/textarea&gt;&lt;br /&gt;&lt;br /&gt;The same goes for a blind carbon copy, except you use the bcc= command instead:&lt;br /&gt;&lt;br /&gt;&lt;textarea cols="47" rows="1"&gt;&lt;a href="mailto:me@gmail.com?bcc=friend@gmail.com"&gt;Mail Me&lt;/a&gt;&lt;/textarea&gt;&lt;br /&gt;You can send the copies to multiple addresses by separating them with commas:&lt;br /&gt;&lt;br /&gt;&lt;textarea cols="47" rows="1"&gt;&lt;a href="mailto:me@gmail.com?bcc=friend@gmail.com,"&gt;Mail Me&lt;/a&gt;&lt;/textarea&gt;&lt;br /&gt;&lt;br /&gt;To combine more than one of these commands after the question mark, you add them in using an "&amp;amp;" sign at the end of the first command. For instance, if you want a subject and a blind carbon copy, it would look like this:&lt;br /&gt;&lt;br /&gt;&lt;textarea cols="47" rows="1"&gt;&lt;a href="mailto:me@gmail.com?subject=Hi&amp;amp;bcc=friend@gmail.com"&gt;Mail Me&lt;/a&gt;&lt;/textarea&gt;&lt;br /&gt;&lt;br /&gt;If you want all three, use the "&amp;amp;" sign again:&lt;br /&gt;&lt;br /&gt;&lt;textarea cols="47" rows="1"&gt;&lt;a href="mailto:me@gmail.com?subject=Hi&amp;amp;bcc=friend@gmail.com&amp;amp;cc=other@gmail.com"&gt;Mail Me&lt;/a&gt;&lt;/textarea&gt;&lt;br /&gt;&lt;br /&gt;With that, you can have some more fun with your e-mail links.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-5457636065033292666?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/5457636065033292666/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/01/how-to-create-link-to-send-email.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/5457636065033292666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/5457636065033292666'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/01/how-to-create-link-to-send-email.html' title='How to create a link to send an email ?'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-7544349593908284892</id><published>2009-01-08T06:57:00.000-08:00</published><updated>2009-01-08T07:04:02.796-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FAQ- ASP.Net'/><title type='text'>Importent .NET Remoting FAQ with answers.</title><content type='html'>Q. Explain what relationship is between a Process, Application Domain, and Application?&lt;br /&gt;A. A process is an instance of a running application. An application is an executable on the hard drive or network. Each application is running on separate application domain. There can be numerous processes launched of the same application (5 copies of Word running), but 1 process can run just 1 application.&lt;br /&gt;  &lt;br /&gt;Q. What are possible implementations of distributed applications in .NET?&lt;br /&gt;A. .NET Remoting and ASP.NET Web Services. If we talk about the Framework Class Library, noteworthy classes are in System.Runtime.Remoting and System.Web.Services.&lt;br /&gt; &lt;br /&gt;Q. What are the consideration in deciding to use .NET Remoting or ASP.NET Web Services?&lt;br /&gt;A. The main difference between Remoting and Web service is that remoting works only in .Net environment while Web Service have open Protocol.&lt;br /&gt;Remoting is a more efficient communication exchange when you can control both ends of the application involved in the communication process.  Web Services provide an open-protocol-based exchange of informaion.  Web Services are best when you need to communicate with an external organization or another (non-.NET) technology.&lt;br /&gt;  &lt;br /&gt;Q. What’s a proxy of the server object in .NET Remoting?&lt;br /&gt;A. It’s a fake copy of the server object that resides on the client side and behaves as if it was the server. It handles the communication between real server object and the client object. This process is also known as marshaling.&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Q. What security measures exist for .NET Remoting in System.Runtime.Remoting?&lt;br /&gt;A. None. Security should be taken care of at the application level. Cryptography and other security techniques can be applied at application or server level.&lt;br /&gt; &lt;br /&gt;Q. What is a formatter?&lt;br /&gt;A. A formatter is an object that is responsible for encoding and serializing data into messages on one end, and deserializing and decoding messages into data on the other end.&lt;br /&gt; &lt;br /&gt;Choosing between HTTP and TCP for protocols and Binary and SOAP for formatters, what are the trade-offs?&lt;br /&gt;Binary over TCP is the most effiecient, SOAP over HTTP is the most interoperable.&lt;br /&gt; &lt;br /&gt;Q. What’s SingleCall activation mode used for?&lt;br /&gt;A. If the server object is instantiated for responding to just one single request, the request should be made in SingleCall mode.&lt;br /&gt; &lt;br /&gt;Q. What’s Singleton activation mode?&lt;br /&gt;A. A single object is instantiated regardless of the number of clients accessing it. Lifetime of this object is determined by lifetime lease.&lt;br /&gt; &lt;br /&gt;Q. How do you define the lease of the object?&lt;br /&gt;A. By implementing ILease interface when writing the class code.&lt;br /&gt; &lt;br /&gt;Q. Can you configure a .NET Remoting object via XML file?&lt;br /&gt;A. Yes, via machine.config and application level .config file (or web.config in ASP.NET). Application-level XML settings take precedence over machine.config.&lt;br /&gt; &lt;br /&gt;Q. How can you automatically generate interface for the remotable object in .NET with Microsoft tools?&lt;br /&gt;A. Use the Soapsuds tool.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-7544349593908284892?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/7544349593908284892/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/01/importent-net-remoting-faq-with-answers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/7544349593908284892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/7544349593908284892'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/01/importent-net-remoting-faq-with-answers.html' title='Importent .NET Remoting FAQ with answers.'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-2499664388074819157</id><published>2009-01-08T06:44:00.000-08:00</published><updated>2009-01-08T06:49:00.420-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Information'/><title type='text'>Bangalored: An adjective which recently added in the dictionary.</title><content type='html'>&lt;strong&gt;Do u know that?&lt;br /&gt;&lt;/strong&gt; &lt;span style="color:#cc33cc;"&gt;&lt;span style="color:#ff0000;"&gt;"Bangalored" &lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;is an adjective which recently added in the dictionary.&lt;br /&gt;&lt;/span&gt;  A person is said to be bangalored ,if he has lost his job due to  the work&lt;br /&gt;outsourced to Bangalore or any other city in India (Asia) ..&lt;br /&gt;&lt;br /&gt;Have you bangalored by your company ?&lt;br /&gt;&lt;br /&gt;U can also type this word "bangalored" in Google search n see. (Or&lt;br /&gt;www.dictionary.com)&lt;br /&gt;&lt;br /&gt;Lot of people in US got bangalored that it became an issue during the US&lt;br /&gt;&lt;br /&gt;Presidential election. That ' s exactly when this term was coined.&lt;br /&gt;Bangalored is a neologism used as a verb . Bangalored is used to indicate a&lt;br /&gt;layoff , often systemic, and usually due to corporate outsourcing of the&lt;br /&gt;business function to lower wage economies. The word is derived from&lt;br /&gt;Bangalore in India , which was one of the first places to outsource centers&lt;br /&gt;for Western economies.&lt;br /&gt;It refers to people who have been laid off from a multinational company&lt;br /&gt;because their job has been moved to India — a business practice designed to&lt;br /&gt;save money that is arousing passions in some countries, especially Britain&lt;br /&gt;and the United States . Bangalore is cited in particular because of its&lt;br /&gt;reputation as a high-tech city, and widely regarded as the Silicon Valley&lt;br /&gt;of India and it has benefited significantly from such outsourcing..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-2499664388074819157?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/2499664388074819157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/01/bangalored-adjective-which-recently.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/2499664388074819157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/2499664388074819157'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/01/bangalored-adjective-which-recently.html' title='Bangalored: An adjective which recently added in the dictionary.'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-875329986657236744</id><published>2009-01-07T07:32:00.000-08:00</published><updated>2009-01-07T07:35:29.134-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><title type='text'>What is Cookies?</title><content type='html'>&lt;strong&gt;Cookies&lt;/strong&gt;&lt;br /&gt;Cookies are simply a text file stored in the client machine which are sent up and down to and from the server with every Request and Response.&lt;br /&gt;&lt;br /&gt;Generally Cookies are used to store client information such as session value. Cookies are simple text file so any one can read it so we can not store confidential information about user like username or password in it.&lt;br /&gt;The Cookie is first sent down from the Server and is stored somewhere on the Client's hard-drive.&lt;br /&gt;It's up to the Web Application developer to do the Cookie processing on the Server side. The Cookie can be accessed from the Request as the Cookie is a property of the HttpRequest, Request.Cookie["cookiename"];&lt;br /&gt;&lt;br /&gt;Below I provide a general code to explain how to set and get a cookie in ASP.Net&lt;br /&gt;&lt;br /&gt;protected void btnSubmit_Click(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;HttpCookie aCookie = new HttpCookie("TestCookie");&lt;br /&gt;aCookie.Path = "/";&lt;br /&gt;aCookie.Expires = Convert.ToDateTime("March 14 2000");&lt;br /&gt;aCookie.Value = "Nikhil Agarwal";&lt;br /&gt;Response.SetCookie(aCookie);&lt;br /&gt;&lt;br /&gt;HttpCookie aCookieValue = new HttpCookie("TestCookie");&lt;br /&gt;if (aCookieValue != null)&lt;br /&gt;{&lt;br /&gt;Response.Write(aCookieValue.Value.ToString());&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-875329986657236744?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/875329986657236744/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/01/what-is-cookies.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/875329986657236744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/875329986657236744'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/01/what-is-cookies.html' title='What is Cookies?'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-6560983015565191542</id><published>2009-01-05T08:01:00.000-08:00</published><updated>2009-01-05T08:35:10.341-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Meta Tag'/><title type='text'>How do Meta Tag Refresh works?</title><content type='html'>You see it when an old web page has moved to a new web page. You usually put the Meta tag in the header of your page. The syntax is:&lt;br /&gt;&lt;textarea cols="47" rows="1"&gt;&lt;meta content="x;url" equiv="Refresh"&gt;&lt;/textarea&gt;&lt;br /&gt;&lt;strong&gt;X&lt;/strong&gt;: is the number of seconds&lt;br /&gt;&lt;strong&gt;url&lt;/strong&gt;: is the url to refresh to.(If you leave the url off then the page refreshes itself)&lt;br /&gt;&lt;br /&gt;In this sample code, the page refresh in every 10 seconds. In the pageload event I have this code to set the meta tag:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;if (this.Page.Header != null)&lt;br /&gt;{&lt;br /&gt;HtmlHead htmlHead = this.Page.Header;&lt;br /&gt;HtmlMeta htmlMeta = new HtmlMeta();&lt;br /&gt;htmlMeta.Attributes.Add("http-equiv", "Refresh");&lt;br /&gt;htmlMeta.Attributes.Add("content", "10");&lt;br /&gt;htmlHead.Controls.Add(htmlMeta);&lt;br /&gt;}&lt;/strong&gt;&lt;br /&gt;Visit Cricinfo.com for example where page refresh automatic in given time period.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-6560983015565191542?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/6560983015565191542/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/01/how-do-meta-tag-refresh-works.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/6560983015565191542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/6560983015565191542'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/01/how-do-meta-tag-refresh-works.html' title='How do Meta Tag Refresh works?'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-1695024250011447688</id><published>2009-01-05T06:45:00.000-08:00</published><updated>2009-01-05T06:47:01.466-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net Controls'/><title type='text'>Difference between Web User Control and Web Custom Control</title><content type='html'>&lt;strong&gt;Custom Controls&lt;/strong&gt;&lt;br /&gt;Web custom controls are compiled components that run on the server and that encapsulate user-interface and other related functionality into reusable packages. They can include all the design-time features of standard ASP.NET server controls, including full support for Visual Studio design features such as the Properties window, the visual designer, and the Toolbox. &lt;br /&gt;There are several ways that you can create Web custom controls: &lt;br /&gt;• You can compile a control that combines the functionality of two or more existing controls. For example, if you need a control that encapsulates a button and a text box, you can create it by compiling the existing controls together. &lt;br /&gt;• If an existing server control almost meets your requirements but lacks some required features, you can customize the control by deriving from it and overriding its properties, methods, and events. &lt;br /&gt;• If none of the existing Web server controls (or their combinations) meet your requirements, you can create a custom control by deriving from one of the base control classes. These classes provide all the basic functionality of Web server controls, so you can focus on programming the features you need. &lt;br /&gt;If none of the existing ASP.NET server controls meet the specific requirements of your applications, you can create either a Web user control or a Web custom control that encapsulates the functionality you need. The main difference between the two controls lies in ease of creation vs. ease of use at design time.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Web user controls &lt;/strong&gt;&lt;br /&gt;They are easy to make, but user controls almost exactly the same way that you develop Web Forms pages. Like Web Forms, user controls can be created in the visual designer, they can be written with code separated from the HTML, and they can handle execution events. However, because Web user controls are compiled dynamically at run time they cannot be added to the Toolbox, and they are represented by a simple placeholder glyph when added to a page. This makes Web user controls harder to use if you are accustomed to full Visual Studio .NET design-time support, including the Properties window and Design view previews. Also, the only way to share the user control between applications is to put a separate copy in each application, which takes more maintenance if you make changes to the control.&lt;br /&gt;Web custom controls are compiled code, which makes them easier to use but more difficult to create; Web custom controls must be authored in code. Once you have created the control, however, you can add it to the Toolbox and display it in a visual designer with full Properties window support and all the other design-time features of ASP.NET server controls. In addition, you can install a single copy of the Web custom control in the global assembly cache and share it between applications, which makes maintenance easier.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-1695024250011447688?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/1695024250011447688/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/01/difference-between-web-user-control-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/1695024250011447688'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/1695024250011447688'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/01/difference-between-web-user-control-and.html' title='Difference between Web User Control and Web Custom Control'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-8913270681902154488</id><published>2009-01-05T06:13:00.000-08:00</published><updated>2009-01-05T06:20:46.622-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>SQL: Difference between SP(Stored Procedure) and UDF(User Defined Functions)</title><content type='html'>&lt;strong&gt;Stored procedure&lt;/strong&gt;&lt;br /&gt;a stored procedure is a program (or procedure) which is physically stored within a database. They are usually written in a proprietary database language like PL/SQL for Oracle database or PL/PgSQL for PostgreSQL. The advantage of a stored procedure is that when it is run, in response to a user request, it is run directly by the database engine, which usually runs on a separate database server. As such, it has direct access to the data it needs to manipulate and only needs to send its results back to the user, doing away with the overhead of communicating large amounts of data back and forth.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;User-defined function&lt;/strong&gt;&lt;br /&gt;a user-defined function is a routine that encapsulates useful logic for use in other queries. While views are limited to a single SELECT statement, user-defined functions can have multiple SELECT statements and provide more powerful logic than is possible with views.&lt;br /&gt;&lt;br /&gt;In SQL Server 2000&lt;br /&gt;User defined functions have 3 main categories&lt;br /&gt;Scalar-valued function - returns a scalar value such as an integer or a timestamp. Can be used as column name in queries&lt;br /&gt;Inline function - can contain a single SELECT statement.&lt;br /&gt;Table-valued function - can contain any number of statements that populate the table variable to be returned. They become handy when you need to return a set of rows, but you can't enclose the logic for getting this rowset in a single SELECT statement. &lt;br /&gt;Differences between Stored procedure and User defined functions&lt;br /&gt;UDF can be used in the SQL statements anywhere in the WHERE/HAVING/SELECT section where as Stored procedures cannot be.&lt;br /&gt;UDFs that return tables can be treated as another rowset. This can be used in JOINs with other tables.&lt;br /&gt;Inline UDF's can be though of as views that take parameters and can be used in JOINs and other Rowset operations.&lt;br /&gt;Of course there will be Syntax differences and here is a sample of that &lt;br /&gt;stored procedure&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here are example to understand How create Procedure and Function in SQL.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Code: SQL Procedure&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;CREATE PROCEDURE dbo.StoredProcedure1&lt;br /&gt;/*&lt;br /&gt;(&lt;br /&gt;@parameter1 datatype = default value,&lt;br /&gt;@parameter2 datatype OUTPUT&lt;br /&gt;)&lt;br /&gt;*/&lt;br /&gt;AS&lt;br /&gt;/* SET NOCOUNT ON */&lt;br /&gt;RETURN&lt;br /&gt;&lt;br /&gt;User defined functions&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Code: SQL Function&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;CREATE FUNCTION dbo.Function1&lt;br /&gt;(&lt;br /&gt;/*&lt;br /&gt;@parameter1 datatype = default value,&lt;br /&gt;@parameter2 datatype&lt;br /&gt;*/&lt;br /&gt;)&lt;br /&gt;RETURNS /* datatype */&lt;br /&gt;AS&lt;br /&gt;BEGIN&lt;br /&gt;/* sql statement ... */&lt;br /&gt;RETURN /* value */&lt;br /&gt;END&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-8913270681902154488?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/8913270681902154488/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/01/stored-procedure-stored-procedure-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/8913270681902154488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/8913270681902154488'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/01/stored-procedure-stored-procedure-is.html' title='SQL: Difference between SP(Stored Procedure) and UDF(User Defined Functions)'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-2385636294628643873</id><published>2009-01-04T09:16:00.000-08:00</published><updated>2009-01-04T09:17:33.606-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ajax Control'/><title type='text'>AJAX 'NoBot extender' control</title><content type='html'>ASP.Net AJAX NoBot extender control also belongs to AJAX Control Toolkit provided by Microsoft having inbuilt functionality that performs the automatic caching of client’s IP address and its postback activities on ASP.Net web pages. AJAX NoBot extender control provides the functionality similar to CAPTCHA very popular these days. Do you know? What is the purpose to use such validations on web pages? A simple explanation to this is, protect the web forms from automated submission by auto pilot softwares. These softwares are purposely used for spamming that lead to downtime of web sites. AJAX NoBot extender control checks such kind of spamming behavior of web site user that ensures whether the user is human or intelligent software. Following are the features of ASP.Net AJAX NoBot extender control: &lt;br /&gt;AJAX NoBot control checks whether all the client side javascript is working or has been disabled by the spamming software. It performs the javascript client side calculation that returns a numeric result as part of postback to verify the NoBot validation. &lt;br /&gt;AJAX NoBot extender verifies the delay in requests sent by the user within a given time span. E.g.: A human cannot fill up and submit the web form within a minute. &lt;br /&gt;AJAX NoBot extender also checks the number of requests from a single IP within a specified time span. E.g.: A human cannot fill up and submit the same web form five times in a minute.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-2385636294628643873?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/2385636294628643873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/01/ajax-nobot-extender-control.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/2385636294628643873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/2385636294628643873'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/01/ajax-nobot-extender-control.html' title='AJAX &apos;NoBot extender&apos; control'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1956839675958440715.post-7265204123105521282</id><published>2009-01-04T08:04:00.000-08:00</published><updated>2009-01-04T08:30:53.418-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='New Feature in ASP.Net 2.0'/><title type='text'>A new feature in .net 2.0 "Anonymous Delegates"</title><content type='html'>How to check in a list/collection if there are duplicate entries? &lt;br /&gt;E.g. &lt;br /&gt;A collection of student objects. &lt;br /&gt;Student&lt;br /&gt;ID &lt;br /&gt;Name &lt;br /&gt;phoneNumber &lt;br /&gt;&lt;br /&gt;If we want to do &lt;br /&gt;if (student.Exist(nameToCheck)) &lt;br /&gt;do something &lt;br /&gt;else &lt;br /&gt;do some other thing &lt;br /&gt;&lt;br /&gt;Using Anonymous Delegates it is easy. &lt;br /&gt;if( list.Exists( delegate(Student supp) { return stud.Name == nameToCheck; } ) ) &lt;br /&gt;do something &lt;br /&gt;else &lt;br /&gt;do some other thing &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For more details, visit http://blogs.msdn.com/devdev/archive/2006/06/30/652802.aspx&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1956839675958440715-7265204123105521282?l=mycodediary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycodediary.blogspot.com/feeds/7265204123105521282/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycodediary.blogspot.com/2009/01/new-feature-in-net-20-anonymous.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/7265204123105521282'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1956839675958440715/posts/default/7265204123105521282'/><link rel='alternate' type='text/html' href='http://mycodediary.blogspot.com/2009/01/new-feature-in-net-20-anonymous.html' title='A new feature in .net 2.0 &quot;Anonymous Delegates&quot;'/><author><name>Nikhil Agarwal</name><uri>http://www.blogger.com/profile/16351867192707559588</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_Jml_Gpc9xOs/S-rbhv1izPI/AAAAAAAABqg/gyVxEClhyHU/S220/IMAGE_520.jpg'/></author><thr:total>0</thr:total></entry></feed>
