<?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-998131970402484381</id><updated>2012-01-11T04:45:56.247-08:00</updated><category term='DOTNET'/><category term='JavaScript'/><category term='SQL Server'/><title type='text'>Mahesh</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>73</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-7138922791605222877</id><published>2011-12-23T04:56:00.000-08:00</published><updated>2011-12-23T04:56:30.151-08:00</updated><title type='text'>How to create a feature in SP 2007</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;a href="http://miguelmoreno.net/sandbox/sharepointeventhandler/"&gt;http://miguelmoreno.net/sandbox/sharepointeventhandler/&lt;/a&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-7138922791605222877?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/7138922791605222877/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=7138922791605222877' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/7138922791605222877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/7138922791605222877'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2011/12/how-to-create-feature-in-sp-2007.html' title='How to create a feature in SP 2007'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-83756744644822423</id><published>2011-12-08T05:14:00.000-08:00</published><updated>2011-12-08T05:14:03.255-08:00</updated><title type='text'>14 hive and other SharePoint 2010 directories</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;C:\Inetpub\wwwroot\wss - This directory (or the corresponding directory under the Inetpub root on the server) is used as the default location for IIS Web sites.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;C:\ProgramFiles\Microsoft Office Servers\14.0 - This directory is the installation location for SharePoint Server 2010 binaries and data. The directory can be changed during installation.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;C:\ProgramFiles\Microsoft Office Servers\14.0\WebServices - This directory is the root directory where SharePoint back-end Web services are hosted, for example, Excel and Search.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;C:\ProgramFiles\Microsoft Office Servers\14.0\Data - This directory is the root location where local data is stored, including search indexes.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;C:\ProgramFiles\Microsoft Office Servers\14.0\Logs – This directory is the location where the run-time diagnostic logging is generated.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;b&gt;14 hive folders :&lt;/b&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Program Files\Common files\Microsoft Shared\Web Server Extensions\14 -&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;This directory is the installation directory for core SharePoint Server files.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Program Files\Common files\Microsoft Shared\Web Server Extensions\14\ADMISAPI -&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;This directory contains the soap services for Central Administration. If this directory is altered, remote site creation and other methods exposed in the service will not function correctly.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Program Files\Common files\Microsoft Shared\Web Server Extensions\14\CONFIG -&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;This directory contains files used to extend IIS Web sites with SharePoint Server. If this directory or its contents are altered, Web application provisioning will not function correctly.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Program Files\Common files\Microsoft Shared\Web Server Extensions\14\LOGS -&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;This directory contains setup and run-time tracing logs.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Program Files\Common files\Microsoft Shared\Web Server Extensions\Policy -&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Program Files\Common files\Microsoft Shared\Web Server Extensions\UserCode -&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;This directory contains files used to support your sandboxed solutions.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Program Files\Common files\Microsoft Shared\Web Server Extensions\WebClients -&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;This directory contains files related to the new Client Object Model.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;Program Files\Common files\Microsoft Shared\Web Server Extensions\WebServices -&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;This directory contains new wcf or .svc related files.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-83756744644822423?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/83756744644822423/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=83756744644822423' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/83756744644822423'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/83756744644822423'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2011/12/14-hive-and-other-sharepoint-2010.html' title='14 hive and other SharePoint 2010 directories'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-4427454011893025651</id><published>2010-11-17T01:26:00.000-08:00</published><updated>2010-11-17T01:28:07.696-08:00</updated><title type='text'>About Microsoft Dynamics CRM</title><content type='html'>&lt;strong&gt;Microsoft Dynamics CRM:&lt;/strong&gt;&lt;br /&gt;Microsoft Dynamics CRM made it possible to consolidate and access customer information much more quickly. Microsoft Dynamics CRM works within the MS outlook one of the most popular applications that people use every day. &lt;br /&gt;&lt;br /&gt;In Sales, Customer Service, and Marketing makes Microsoft Dynamics CRM an effective way to stay in touch with your customers and drive your business goals.&lt;br /&gt;&lt;br /&gt;Microsoft Dynamics CRM is designed to meet the needs of companies of all sizes—from small businesses to large enterprises. Today, Microsoft Dynamics CRM is used by more than 1 million people, including some of the world's largest organizations, in financial services, professional services, manufacturing, and the public sector.&lt;br /&gt;&lt;br /&gt;History of MS Dynamics CRM:&lt;br /&gt;- In Dec 2007, MS Dynamics CRM 4.0 launched&lt;br /&gt;- In April 2008, MS Dynamics CRM Online , on an demand service was introduced.&lt;br /&gt;- In Sep 2008, March 2009, and Nov 2009 Service updates for MS Dynamics CRM online were released.&lt;br /&gt;- In July 2009, Free CRM Accelerators were launched with new functionality for analytics, e-Service, Enterprise Search, sales forecasting, sales methodology and support.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-4427454011893025651?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/4427454011893025651/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=4427454011893025651' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/4427454011893025651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/4427454011893025651'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2010/11/about-microsoft-dynamics-crm.html' title='About Microsoft Dynamics CRM'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-8954508558445478357</id><published>2010-01-29T02:28:00.000-08:00</published><updated>2010-01-29T02:35:37.800-08:00</updated><title type='text'>Difference between synchronous and asynchronous communication?</title><content type='html'>Asynchronous:&lt;br /&gt;-asynch comm there is no need to establish a connection before data transmission.&lt;br /&gt;-asynch comm is used in packet swithed networks&lt;br /&gt;-widely used for PC communication and is commonly used for e-mail applications, Internet access, and asynchronous PC-to-PC communications.&lt;br /&gt;-data is transmitted one byte at a time with each byte containing one start bit, eight data bits, and one stop bit, thus yielding a total of ten bits.&lt;br /&gt;- Disadvantage: overhead because every byte sent contains two extra bits (the start and stop bits) and therefore a substantial loss of performance. &lt;br /&gt;&lt;br /&gt;Synchronous:&lt;br /&gt;-first connection will be established and the communication &lt;br /&gt;will take place.&lt;br /&gt;-synch comm is used in circut swithed netwoks.&lt;br /&gt;-data is transmitted as frames of large data blocks rather than bulky individual bytes. One advantage of synchronous is that control information is easily inserted at the beginning and end of each block to ensure constant timing, or synchronization.&lt;br /&gt;-Another advantage of synchronous is that it is more efficient than asynchronous. For example, a 56 Kbps dial-up synchronous line can carry 7000 bytes per second (56000/8) compared to a 56 Kbps dial-up asynchronous line which can only carry 5600 bytes per second (56000/10).When transmitting large amounts of information, this translates into a significant increase in speed and performance.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-8954508558445478357?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/8954508558445478357/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=8954508558445478357' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8954508558445478357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8954508558445478357'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2010/01/difference-between-synchronous-and.html' title='Difference between synchronous and asynchronous communication?'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-8105252452305858354</id><published>2010-01-06T03:31:00.000-08:00</published><updated>2010-01-06T03:37:30.383-08:00</updated><title type='text'>Web Part Life Cycle:</title><content type='html'>- OnInit – Configuration values set using WebBrowsable properties and those in web part task pane are loaded into the web part.&lt;br /&gt;- LoadViewState – The view state of the web part is populated over here.&lt;br /&gt;- CreateChildControls – All the controls specified are created and added to controls collection. When the page is being rendered for the first time the method generally occurs after the OnLoad() event. In case of postback, it is called before the OnLoad() event. We can make use of EnsureChildControls() - It checks to see if the CreateChildControls method has yet been called, and if it has not, calls it.&lt;br /&gt;- OnLoad&lt;br /&gt; User Generated Event – for e.g. button click on the web part.&lt;br /&gt;- OnPreRender – Here we can change any of the web part properties before the control output is drawn.&lt;br /&gt;- RenderContents – Html Output is generated.&lt;br /&gt;- SaveViewState - View state of the web part is serialized and saved.&lt;br /&gt;- Dispose &lt;br /&gt;- UnLoad.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-8105252452305858354?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/8105252452305858354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=8105252452305858354' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8105252452305858354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8105252452305858354'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2010/01/web-part-life-cycle.html' title='Web Part Life Cycle:'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-8143197887270335978</id><published>2009-08-25T04:21:00.000-07:00</published><updated>2009-08-25T04:22:15.858-07:00</updated><title type='text'>Query for getting the Constraint Information</title><content type='html'>SELECT f.name AS ForeignKey,&lt;br /&gt;OBJECT_NAME(f.parent_object_id) AS TableName,&lt;br /&gt;COL_NAME(fc.parent_object_id,&lt;br /&gt;fc.parent_column_id) AS ColumnName,&lt;br /&gt;OBJECT_NAME (f.referenced_object_id) AS ReferenceTableName,&lt;br /&gt;COL_NAME(fc.referenced_object_id,&lt;br /&gt;fc.referenced_column_id) AS ReferenceColumnName&lt;br /&gt;FROM sys.foreign_keys AS f&lt;br /&gt;INNER JOIN sys.foreign_key_columns AS fc&lt;br /&gt;ON f.OBJECT_ID = fc.constraint_object_id&lt;br /&gt;&lt;br /&gt;ALTER TABLE Insurance.Contract DROP CONSTRAINT FK_Contract_AccountID&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-8143197887270335978?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/8143197887270335978/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=8143197887270335978' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8143197887270335978'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8143197887270335978'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2009/08/query-for-getting-constraint.html' title='Query for getting the Constraint Information'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-7887371198947092344</id><published>2009-06-26T06:22:00.000-07:00</published><updated>2009-06-26T06:23:19.443-07:00</updated><title type='text'>Multi Table Update</title><content type='html'>select * from A&lt;br /&gt;select * from B&lt;br /&gt;&lt;br /&gt;UPDATE A&lt;br /&gt;SET F2 = B.F4&lt;br /&gt;FROM A, B&lt;br /&gt;WHERE A.F1 = B.F3 and A.F2 is null&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-7887371198947092344?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/7887371198947092344/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=7887371198947092344' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/7887371198947092344'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/7887371198947092344'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2009/06/multi-table-update.html' title='Multi Table Update'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-7632307289107766544</id><published>2009-04-16T02:46:00.000-07:00</published><updated>2009-04-16T02:47:32.493-07:00</updated><title type='text'>Trigger Example.</title><content type='html'>Sample Trigger&lt;br /&gt;&lt;br /&gt;CREATE TABLE dbo.Test (&lt;br /&gt;item varchar(50)&lt;br /&gt;)&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;CREATE TABLE dbo.Test1 (&lt;br /&gt;item varchar(50)&lt;br /&gt;)&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;Alter TRIGGER InsertEntry ON dbo.Test AFTER INSERT,UPDATE AS&lt;br /&gt; &lt;br /&gt;DECLARE @item int&lt;br /&gt; &lt;br /&gt;IF EXISTS(SELECT item FROM inserted)&lt;br /&gt;  BEGIN&lt;br /&gt;    DECLARE @msg varchar(500)&lt;br /&gt;    SET @msg = (SELECT item FROM inserted)&lt;br /&gt;    insert into test1 values(@msg)&lt;br /&gt;  END&lt;br /&gt;GO&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-7632307289107766544?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/7632307289107766544/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=7632307289107766544' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/7632307289107766544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/7632307289107766544'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2009/04/trigger-example.html' title='Trigger Example.'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-7145479183884445654</id><published>2009-03-31T02:53:00.001-07:00</published><updated>2009-03-31T02:55:47.490-07:00</updated><title type='text'>Creating Table, Populating the Dates, Retrieving the Weekends in SQL Server 2005</title><content type='html'>Below Script Create the DateLookup Table:&lt;br /&gt;&lt;br /&gt;CREATE TABLE DateLookup&lt;br /&gt;(&lt;br /&gt;    DateKey INT PRIMARY KEY,&lt;br /&gt;    DateFull DATETIME,&lt;br /&gt;    CharacterDate VARCHAR(10),&lt;br /&gt;    FullYear CHAR(4),&lt;br /&gt;    QuarterNumber TINYINT,&lt;br /&gt;    WeekNumber TINYINT,&lt;br /&gt;    WeekDayName VARCHAR(10),&lt;br /&gt;    MonthDay TINYINT,&lt;br /&gt;    MonthName VARCHAR(12),&lt;br /&gt;    YearDay SMALLINT,&lt;br /&gt;    DateDefinition VARCHAR(30),&lt;br /&gt;    WeekDay TINYINT,&lt;br /&gt;    MonthNumber TINYINT&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;The below Script Populate the Dates in to the lookup table:&lt;br /&gt;&lt;br /&gt;DECLARE @Date DATETIME&lt;br /&gt;SET @Date = '1/1/2009' &lt;br /&gt;&lt;br /&gt;WHILE @Date &lt; '1/1/2011'&lt;br /&gt;BEGIN&lt;br /&gt;  INSERT INTO DateLookup&lt;br /&gt;  (&lt;br /&gt;   DateKey, DateFull, FullYear,&lt;br /&gt;   QuarterNumber, WeekNumber, WeekDayName,&lt;br /&gt;   MonthDay, MonthName, YearDay,&lt;br /&gt;   DateDefinition,&lt;br /&gt;       CharacterDate,&lt;br /&gt;       WeekDay,&lt;br /&gt;       MonthNumber&lt;br /&gt;  )&lt;br /&gt;      SELECT&lt;br /&gt;        CONVERT(VARCHAR(8), @Date, 112), @Date, YEAR(@Date),&lt;br /&gt;        DATEPART(qq, @Date), DATEPART(ww, @Date), DATENAME(dw, @Date),&lt;br /&gt;        DATEPART(dd, @Date), DATENAME(mm, @Date), DATEPART(dy,@Date),&lt;br /&gt;              DATENAME(mm, @Date) + ' \' + CAST(DATEPART(dd, @Date) AS CHAR(2)) + ',\' &lt;br /&gt;  + CAST(DATEPART(yy, @Date) AS CHAR(4)),&lt;br /&gt;          CONVERT(VARCHAR(10), @Date, 101),&lt;br /&gt;          DATEPART(dw, @Date),&lt;br /&gt;          DATEPART(mm, @Date)&lt;br /&gt;   &lt;br /&gt;    SET @Date = DATEADD(dd, 1, @Date)&lt;br /&gt;END&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To Get the WeekEnds(Saturdays &amp; Sundays) Use the Below Query:&lt;br /&gt;&lt;br /&gt;select  *  from DateLookup where  datepart(w,DateFull) in (1) or datepart(w,DateFull) in (7)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-7145479183884445654?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/7145479183884445654/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=7145479183884445654' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/7145479183884445654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/7145479183884445654'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2009/03/creating-table-populating-dates.html' title='Creating Table, Populating the Dates, Retrieving the Weekends in SQL Server 2005'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-599482551681251524</id><published>2009-03-26T05:18:00.001-07:00</published><updated>2009-03-26T05:18:35.186-07:00</updated><title type='text'>SQL Server: Date Formats</title><content type='html'>SELECT CONVERT(VARCHAR(10), GETDATE(), 111) AS [YYYY/MM/DD]&lt;br /&gt;Result : 2009/03/05&lt;br /&gt;&lt;br /&gt;SELECT CONVERT(VARCHAR(10), GETDATE(), 11) AS [YY/MM/DD]&lt;br /&gt;Result : 09/03/05&lt;br /&gt;&lt;br /&gt;SELECT CONVERT(VARCHAR(30), GETDATE(), 131)as Datetime&lt;br /&gt;Result : 9/03/1430 2:05:32:957PM&lt;br /&gt;&lt;br /&gt;SELECT CONVERT(VARCHAR(22), GETDATE(), 100)as datetime&lt;br /&gt;Result : Mar 5 2009 2:06PM&lt;br /&gt;&lt;br /&gt;SELECT CONVERT(VARCHAR(10), GETDATE(), 101) AS [MM/DD/YYYY]&lt;br /&gt;Result :03/05/2009&lt;br /&gt;&lt;br /&gt;SELECT CONVERT(VARCHAR(8), GETDATE(), 10) AS [MM-DD-YY]&lt;br /&gt;Result :03-05-09&lt;br /&gt;&lt;br /&gt;SELECT CONVERT(VARCHAR(10), GETDATE(), 110) AS [MM-DD-YYYY]&lt;br /&gt;03-05-2009&lt;br /&gt;&lt;br /&gt;SELECT CONVERT(VARCHAR(10), GETDATE(), 7) AS [Mon DD, YY]&lt;br /&gt;Result :Mar 05, 09&lt;br /&gt;&lt;br /&gt;SELECT CONVERT(VARCHAR(12), GETDATE(), 107) AS [Mon DD, YYYY]&lt;br /&gt;Result :Mar 05, 2009&lt;br /&gt;&lt;br /&gt;SELECT CONVERT(VARCHAR(9), GETDATE(), 6) AS [DD MON YY]&lt;br /&gt;Result :05 Mar 09&lt;br /&gt;&lt;br /&gt;SELECT CONVERT(VARCHAR(11), GETDATE(), 106) AS [DD MON YYYY]&lt;br /&gt;Result :05 Mar 2009&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SELECT CONVERT(VARCHAR(8), GETDATE(), 4) AS [DD.MM.YY]&lt;br /&gt;Result :05.03.09&lt;br /&gt;&lt;br /&gt;SELECT CONVERT(VARCHAR(10), GETDATE(), 104) AS [DD.MM.YYYY]&lt;br /&gt;Result :05.03.2009&lt;br /&gt;&lt;br /&gt;SELECT CONVERT(VARCHAR(8), GETDATE(), 5) AS [DD-MM-YY]&lt;br /&gt;Result :05-03-09&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SELECT CONVERT(VARCHAR(10), GETDATE(), 105) AS [DD-MM-YYYY]&lt;br /&gt;Result :05-03-2009&lt;br /&gt;&lt;br /&gt;SELECT CONVERT(VARCHAR(8), GETDATE(), 3) AS [DD/MM/YY]&lt;br /&gt;Result :05/03/09&lt;br /&gt;&lt;br /&gt;SELECT CONVERT(VARCHAR(10), GETDATE(), 103) AS [DD/MM/YYYY]&lt;br /&gt;Result :05/03/2009&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-599482551681251524?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/599482551681251524/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=599482551681251524' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/599482551681251524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/599482551681251524'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2009/03/sql-server-date-formats.html' title='SQL Server: Date Formats'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-3455062211102058061</id><published>2009-03-26T03:12:00.001-07:00</published><updated>2009-03-26T03:15:10.155-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>SQL Server 2005 : Split Function</title><content type='html'>CREATE FUNCTION dbo.Splitter(@strList VARCHAR(8000),@strSeperator VARCHAR(10))      &lt;br /&gt;      Returns @tblSplit TABLE (splitValue VARCHAR(255))      &lt;br /&gt;AS      &lt;br /&gt;BEGIN            &lt;br /&gt; DECLARE @tmp_FnCommaSplitter TABLE (splitValue VARCHAR(255))            &lt;br /&gt; DECLARE @strTmp VARCHAR(5000)      &lt;br /&gt; DECLARE @pos INT      &lt;br /&gt; DECLARE @lenSeperator INT      &lt;br /&gt; SELECT @lenSeperator = LEN(@strSeperator)           &lt;br /&gt; SELECT @strTmp = @strList      &lt;br /&gt; SELECT @pos = PATINDEX('%'+@strSeperator+'%',@strTmp)  &lt;br /&gt; WHILE (@pos &lt;&gt; 0)      &lt;br /&gt; BEGIN           &lt;br /&gt;  IF SUBSTRING(@strTmp,1,@pos-1) &lt;&gt; ''      &lt;br /&gt;            INSERT @tmp_FnCommaSplitter VALUES (SUBSTRING(@strTmp,1,@pos-1)) &lt;br /&gt;       &lt;br /&gt;            SELECT @strTmp = SUBSTRING(@strTmp,@pos+@lenSeperator,5000)      &lt;br /&gt;            SELECT @pos = PATINDEX('%'+@strSeperator+'%',@strTmp)             &lt;br /&gt; END      &lt;br /&gt;  IF @strTmp &lt;&gt; ''      &lt;br /&gt;            INSERT @tmp_FnCommaSplitter VALUES (LTRIM(RTRIM(@strTmp)))      &lt;br /&gt; INSERT @tblSplit SELECT * FROM @tmp_FnCommaSplitter&lt;br /&gt; RETURN   &lt;br /&gt;END&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-3455062211102058061?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/3455062211102058061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=3455062211102058061' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/3455062211102058061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/3455062211102058061'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2009/03/sql-server-2005-split-function.html' title='SQL Server 2005 : Split Function'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-5547321396936471461</id><published>2009-03-18T21:49:00.001-07:00</published><updated>2009-03-26T03:15:10.155-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>SQL Datechecking</title><content type='html'>DECLARE @datestring varchar(8)&lt;br /&gt;SET @datestring = '12/21/98'&lt;br /&gt;SELECT ISDATE(@datestring)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-5547321396936471461?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/5547321396936471461/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=5547321396936471461' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/5547321396936471461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/5547321396936471461'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2009/03/sql-datechecking.html' title='SQL Datechecking'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-8012779332925846689</id><published>2009-01-12T21:09:00.000-08:00</published><updated>2009-03-26T03:15:10.155-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>Procedure to get the record Count instead of using count(*)</title><content type='html'>sp_spaceused '&lt;table-name&gt;' for getting the counts. &lt;br /&gt;This will be faster instead of using select count(*)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-8012779332925846689?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/8012779332925846689/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=8012779332925846689' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8012779332925846689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8012779332925846689'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2009/01/procedure-to-get-record-count-instead.html' title='Procedure to get the record Count instead of using count(*)'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-4041870012192388715</id><published>2009-01-07T22:16:00.001-08:00</published><updated>2009-01-07T22:17:04.259-08:00</updated><title type='text'>Gridview Manipulations like ADD,DELETE,UPDATE:</title><content type='html'>Gridview Operations:&lt;br /&gt;&lt;br /&gt;http://www.pritambaldota.com/Articles/Article9.aspx&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-4041870012192388715?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/4041870012192388715/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=4041870012192388715' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/4041870012192388715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/4041870012192388715'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2009/01/gridview-manipulations-like.html' title='Gridview Manipulations like ADD,DELETE,UPDATE:'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-8858418715290156540</id><published>2008-12-31T02:40:00.000-08:00</published><updated>2009-03-26T03:15:10.155-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>Cleaning the Transaction Logs in SQL Server2005</title><content type='html'>To Back up the transaction log file :&lt;br /&gt;BACKUP LOG &lt;DatabaseName&gt; TO DISK = '&lt;BackupFile&gt;'&lt;br /&gt;Eg.&lt;br /&gt;BACKUP LOG TestDB TO DISK='C:\TestDB1.bak'&lt;br /&gt;&lt;br /&gt;To Shrink the transaction log file:&lt;br /&gt;&lt;br /&gt;DBCC SHRINKFILE (&lt;FileName&gt;, &lt;TargetSize&gt;) WITH NO_INFOMSGS&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-8858418715290156540?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/8858418715290156540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=8858418715290156540' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8858418715290156540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8858418715290156540'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/12/cleaning-transaction-logs-in-sql.html' title='Cleaning the Transaction Logs in SQL Server2005'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-6822829927362622665</id><published>2008-12-31T02:29:00.000-08:00</published><updated>2009-03-26T03:15:10.156-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>How to clean the transaction Log in SQL Server</title><content type='html'>use master&lt;br /&gt;go&lt;br /&gt;dump transaction &lt;YourDBName&gt; with no_log&lt;br /&gt;go&lt;br /&gt;use &lt;YourDBName&gt;&lt;br /&gt;go&lt;br /&gt;DBCC SHRINKFILE (&lt;YourDBNameLogFileName&gt;, 100) -- where 100 is the size you may want to shrink it to in MB, change it to your needs&lt;br /&gt;go&lt;br /&gt;-- then you can call to check that all went fine&lt;br /&gt;dbcc checkdb(&lt;YourDBName&gt;)&lt;br /&gt;&lt;br /&gt;(or)&lt;br /&gt;&lt;br /&gt;To Truncate the log file:&lt;br /&gt;&lt;br /&gt;Backup the database &lt;br /&gt;Detach the database, either by using Enterprise Manager or by executing : *Sp_DetachDB [DBName]* &lt;br /&gt;Delete the transaction log file. (or rename the file, just in case) &lt;br /&gt;Re-attach the database again using: *Sp_AttachDB [DBName]* &lt;br /&gt;When the database is attached, a new transaction log file is created. &lt;br /&gt;To Shrink the log file:&lt;br /&gt;&lt;br /&gt;Backup log [DBName] with No_Log &lt;br /&gt;Shrink the database by either:&lt;br /&gt;&lt;br /&gt;Using Enterprise manager :- Right click on the database, All tasks, Shrink database, Files, Select log file, OK.&lt;br /&gt;&lt;br /&gt;Using T-SQL :- *Dbcc Shrinkfile ([Log_Logical_Name])*&lt;br /&gt;&lt;br /&gt;You can find the logical name of the log file by running sp_helpdb or by looking in the properties of the database in Enterprise Manager.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-6822829927362622665?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/6822829927362622665/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=6822829927362622665' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/6822829927362622665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/6822829927362622665'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/12/how-to-clean-transaction-log-in-sql.html' title='How to clean the transaction Log in SQL Server'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-1135155197350964397</id><published>2008-11-24T21:34:00.000-08:00</published><updated>2009-03-26T03:15:10.156-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>Replace the First Charater in SQL</title><content type='html'>Query for replacing the first character only.&lt;br /&gt;&lt;br /&gt;--select  replace(left('Mahesh',1),left('Mahesh',1),'H') + right('Mahesh',len('Mahesh') - 1)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-1135155197350964397?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/1135155197350964397/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=1135155197350964397' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/1135155197350964397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/1135155197350964397'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/11/replace-first-charater-in-sql.html' title='Replace the First Charater in SQL'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-7655701848392265116</id><published>2008-10-30T23:36:00.000-07:00</published><updated>2009-03-26T03:15:10.156-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>Generics in .NET 2.0</title><content type='html'>&lt;strong&gt;What Are Generics?&lt;/strong&gt;&lt;br /&gt;Generics allow you to realize type safety at compile time. They allow you to create a data structure without committing to a specific data type. When the data structure is used, however, the compiler makes sure that the types used with it are consistent for type safety. Generics provide type safety, but without any loss of performance or code bloat. While they are similar to templates in C++ in this regard, they are very different in their implementation.&lt;br /&gt;&lt;br /&gt;The short answer is this: "without generics, it is very difficult to create type-safe collections".&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Creating Our First Generic Type:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;public class Col&lt;T&gt; {&lt;br /&gt;  T t;&lt;br /&gt;  public T Val{get{return t;}set{t=value;}}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public class ColMain {&lt;br /&gt;  public static void Main() {&lt;br /&gt;	//create a string version of our generic class&lt;br /&gt;    Col&lt;string&gt; mystring = new Col&lt;string&gt;();&lt;br /&gt;	//set the value&lt;br /&gt;    mystring.Val = "hello";&lt;br /&gt;    &lt;br /&gt;	//output that value&lt;br /&gt;    System.Console.WriteLine(mystring.Val);&lt;br /&gt;	//output the value's type&lt;br /&gt;    System.Console.WriteLine(mystring.Val.GetType());&lt;br /&gt;    &lt;br /&gt;	//create another instance of our generic class, using a different type&lt;br /&gt;    Col&lt;int&gt; myint  = new Col&lt;int&gt;();&lt;br /&gt;	//load the value&lt;br /&gt;    myint.Val = 5;&lt;br /&gt;	//output the value&lt;br /&gt;    System.Console.WriteLine(myint.Val);&lt;br /&gt;	//output the value's type&lt;br /&gt;    System.Console.WriteLine(myint.Val.GetType());&lt;br /&gt;    &lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When we compile the two classes above and then run them, we will see the following output: &lt;br /&gt;&lt;br /&gt;hello&lt;br /&gt;System.String&lt;br /&gt;5&lt;br /&gt;System.Int32&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Generic Collections:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;User.cs &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;namespace Rob {&lt;br /&gt;  public class User {&lt;br /&gt;    protected string name;&lt;br /&gt;    protected int age;&lt;br /&gt;    public string Name{get{return name;}set{name=value;}}&lt;br /&gt;    public int Age{get{return age;}set{age=value;}}&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Main.cs &lt;br /&gt;&lt;br /&gt;public class M {&lt;br /&gt;  public static void Main(string[] args) {&lt;br /&gt;    System.Collections.Generic.List&lt;Rob.User&gt; users = new System.Collections.Generic.List&lt;Rob.User&gt;();&lt;br /&gt;    for(int x=0;x&lt;5;x++) {&lt;br /&gt;      Rob.User user = new Rob.User();&lt;br /&gt;      user.Name="Rob" + x;&lt;br /&gt;      user.Age=x;&lt;br /&gt;      users.Add(user);&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    foreach(Rob.User user in users) {&lt;br /&gt;      System.Console.WriteLine(System.String.Format("{0}:{1}", user.Name, user.Age));&lt;br /&gt;    }&lt;br /&gt;    System.Console.WriteLine("press enter");&lt;br /&gt;    System.Console.ReadLine();&lt;br /&gt;&lt;br /&gt;    for(int x=0;x&lt;users.Count;x++) {&lt;br /&gt;      System.Console.WriteLine(System.String.Format("{0}:{1}", users[x].Name, users[x].Age));&lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Output &lt;br /&gt;&lt;br /&gt;Rob0:0&lt;br /&gt;Rob1:1&lt;br /&gt;Rob2:2&lt;br /&gt;Rob3:3&lt;br /&gt;Rob4:4&lt;br /&gt;press enter&lt;br /&gt;&lt;br /&gt;Rob0:0&lt;br /&gt;Rob1:1&lt;br /&gt;Rob2:2&lt;br /&gt;Rob3:3&lt;br /&gt;Rob4:4&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/998131970402484381-7655701848392265116?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/7655701848392265116/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=7655701848392265116' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/7655701848392265116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/7655701848392265116'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/10/generics-in-net-20.html' title='Generics in .NET 2.0'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-4887048490283389213</id><published>2008-08-10T23:30:00.000-07:00</published><updated>2008-08-10T23:31:37.358-07:00</updated><title type='text'>MOSS2007 Dumps(542)</title><content type='html'>&lt;a href="http://www.4shared.com/file/58588160/d864fd5a/70-542_2.html" target=_blank&gt;MOSS2007 Dumps(542)&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-4887048490283389213?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/4887048490283389213/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=4887048490283389213' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/4887048490283389213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/4887048490283389213'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/08/moss2007-dumps542.html' title='MOSS2007 Dumps(542)'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-16059985626408046</id><published>2008-08-07T05:03:00.000-07:00</published><updated>2008-08-07T05:04:37.185-07:00</updated><title type='text'>Website to download latest free e-books</title><content type='html'>&lt;a href="http://www.free-ebooks-download.org" title="Free ebooks download"&gt;www.free-ebooks-download.org&lt;/a&gt;&lt;br/&gt;Website to download latest free e-books on C#, vb.net, asp.net, 2.0, ado.net, sql 2005, web services, ajax, .net framework, compact framework, xml, sharepoint, exchange server, seo, crystal reports and more.. All free ebooks download, Hurry!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-16059985626408046?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/16059985626408046/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=16059985626408046' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/16059985626408046'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/16059985626408046'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/08/website-to-download-latest-free-e-books.html' title='Website to download latest free e-books'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-8246146826071899939</id><published>2008-07-28T00:02:00.001-07:00</published><updated>2009-03-26T03:14:12.844-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>SQL Stored Procedure,Triggers, Cursors.</title><content type='html'>Stored Procedure:&lt;br /&gt;Pre-Compiled set of SQL Statments..&lt;br /&gt;Increases Performance&lt;br /&gt;Reduces Network Traffic&lt;br /&gt;&lt;br /&gt;Syntax:&lt;br /&gt;Create Procedure Proc_name(param list)&lt;br /&gt;As&lt;br /&gt;Begin&lt;br /&gt;// SQL Statements&lt;br /&gt;End&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Trigger:&lt;br /&gt;Equivalent to event raising, ie, doing certain action based on events like insert, update...&lt;br /&gt;&lt;br /&gt;syntax:&lt;br /&gt;create trigger trg_name&lt;br /&gt;As&lt;br /&gt;begin&lt;br /&gt;// sql statements&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;Cursor:&lt;br /&gt;cursors are used when row by row processing is needed.&lt;br /&gt;syntax&lt;br /&gt;DECLARE cur_name CURSOR&lt;br /&gt;FOR&lt;br /&gt;SELECT username&lt;br /&gt;FROM table&lt;br /&gt;&lt;br /&gt;OPEN cur_name&lt;br /&gt;&lt;br /&gt;FETCH NEXT FROM cur_name&lt;br /&gt;INTO @usrID&lt;br /&gt;&lt;br /&gt;WHILE @@FETCH_STATUS = 0&lt;br /&gt;BEGIN&lt;br /&gt;&lt;br /&gt;FETCH NEXT FROM cur_nmae&lt;br /&gt;INTO @usrID&lt;br /&gt;&lt;br /&gt;END&lt;br /&gt;&lt;br /&gt;CLOSE cur_name&lt;br /&gt;DEALLOCATE cur_name&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-8246146826071899939?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/8246146826071899939/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=8246146826071899939' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8246146826071899939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8246146826071899939'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/07/sql-stored-proceduretriggers-cursors.html' title='SQL Stored Procedure,Triggers, Cursors.'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-8586411478595962735</id><published>2008-07-23T01:58:00.000-07:00</published><updated>2009-03-26T03:15:10.156-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>Create A VB InputBox in C#</title><content type='html'>The below link will help out to know about the Inputbox in C#:&lt;br /&gt;&lt;br /&gt;http://www.knowdotnet.com/articles/inputbox.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-8586411478595962735?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/8586411478595962735/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=8586411478595962735' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8586411478595962735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8586411478595962735'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/07/create-vb-inputbox-in-c.html' title='Create A VB InputBox in C#'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-1605998422773163579</id><published>2008-07-20T23:44:00.001-07:00</published><updated>2009-03-26T03:15:10.156-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>Object Oriented Architecture Modeling</title><content type='html'>Why architecture with OO methods?&lt;br /&gt;OO methods provide a set of techniques for analyzing, decomposing, and modularizing software system architectures. In general, OO methods are characterized by structuring the system architecture on the basis of its objects (and classes of objects) rather than the actions it performs&lt;br /&gt;Main purpose of these design concepts is to manage software system complexity by improving software quality factors. This provides the following benefits &lt;br /&gt;• Helps to focus on large-scale system design&lt;br /&gt;• Separation of design concerns&lt;br /&gt;• Can identify good domain-specific architectures&lt;br /&gt;• Design abstraction&lt;br /&gt;• Have a common language&lt;br /&gt;o Managerial basis for cost estimation &amp; process mgmt&lt;br /&gt;o Reuse&lt;br /&gt;o Consistency and dependency analysis&lt;br /&gt;o Technical basis for design&lt;br /&gt;&lt;br /&gt;OO Modeling of an Solution:&lt;br /&gt;• Identifying Objects of Interest from the Model&lt;br /&gt;• Associating Attributes with Objects of Interest&lt;br /&gt;• Specify how the objects, and interactions and interrelationships among the objects, will effect a solution to the problem&lt;br /&gt;&lt;br /&gt;Types Model&lt;br /&gt;(a) Textual Models&lt;br /&gt;These are textual descriptions of both individual objects and systems of objects.&lt;br /&gt;&lt;br /&gt;(b) Graphical Models&lt;br /&gt;These graphically represent the characteristics of individual objects or systems of objects.&lt;br /&gt;&lt;br /&gt;(c) Class-Responsibility-Collaboration Cards (CRC Cards) &lt;br /&gt;&lt;br /&gt;Where do Objects come from?&lt;br /&gt;The following are potential sources of objects:&lt;br /&gt;• The model itself, e.g.:&lt;br /&gt;o Written documents&lt;br /&gt;paragraph, the nouns, pronouns, noun phrases, adjectives, adjectival phrases, adverbs, and adverbial phrases will suggest candidate objects.&lt;br /&gt;o Graphical model certain objects may be implied by such things as nodes and communication among the nodes.&lt;br /&gt;• The information supplied by the OORA(Object Oriented Requirement Analysis) process&lt;br /&gt;• The mind of the software engineer&lt;br /&gt;• A study of existing objects in an object library&lt;br /&gt;• Technical references, e.g., books and articles&lt;br /&gt;&lt;br /&gt;Object Modeling using UML&lt;br /&gt;There are three prominent aspects of the modeled system that are handled by UML:&lt;br /&gt;&lt;br /&gt;• Functional Model &lt;br /&gt;It describes the functionality of the system from the user's Point of View. &lt;br /&gt;It’s through Use Case Diagrams. &lt;br /&gt;• Object Model&lt;br /&gt;It showcases the structure and substructure of the system using objects, attributes, operations, and associations. &lt;br /&gt;It’s through Class Diagrams. &lt;br /&gt;• Dynamic Model &lt;br /&gt;It showcases the internal behavior of the system.&lt;br /&gt;It’s through Sequence Diagrams, Activity Diagrams and Statechart Diagrams&lt;br /&gt;&lt;br /&gt;Use Case model&lt;br /&gt;• Provide an overview of all or part of the usage requirements for a system or organization in the form of an model or a business model &lt;br /&gt;• Communicate the scope of a development project &lt;br /&gt;• Model the analysis of the usage requirements in the form of a system use case model &lt;br /&gt;&lt;br /&gt;Use Cases are used primarily to capture the high level user-functional requirements of a system. The Use Case model is about describing “what” the system will do at a high-level and with a user focus for the purpose of scoping the project and giving the application some structure. &lt;br /&gt;&lt;br /&gt;Class Diagram&lt;br /&gt;It shows the classes of the system, their inter-relationships, and the operations and attributes of the classes.  Class diagrams are used to:&lt;br /&gt;• Explore domain concepts in the form of a domain model &lt;br /&gt;• Analyze requirements in the form of a conceptual/analysis model &lt;br /&gt;• Depict the detailed design of object-oriented or object-based software&lt;br /&gt;&lt;br /&gt;Object Sequence Diagram&lt;br /&gt;Object Sequence Diagrams are about deciding and modeling HOW our system will achieve WHAT we described in the Use Case model. &lt;br /&gt;It’s a dynamic modeling technique. UML sequence diagrams are typically used to:&lt;br /&gt;• Validate and flesh out the logic of a usage scenario.&lt;br /&gt;• Explore the design because they provide a way to visually step through invocation of the operations defined by the classes. &lt;br /&gt;• To detect bottlenecks within an object-oriented design.  By looking at what messages are being sent to an object, and by looking at roughly how long it takes to run the invoked method, you quickly get an understanding of where need to change the design to distribute the load within the system.  In fact some CASE tools even enable to simulate this aspect of the software.  &lt;br /&gt;• Gives a feel for which classes in the application are going to be complex, which in turn is an indication that may need to draw state chart diagrams for those classes&lt;br /&gt;&lt;br /&gt;Activity Diagram&lt;br /&gt;This is used to explore the logic of the following&lt;br /&gt;• A complex operation &lt;br /&gt;• A complex business rule &lt;br /&gt;• A single use case &lt;br /&gt;• Several use cases &lt;br /&gt;• A business process  &lt;br /&gt;• Software processes&lt;br /&gt;&lt;br /&gt;Deployment Diagram &lt;br /&gt;Deployment diagrams show the hardware for the system, the software that is installed on that hardware, and the middleware used to connect the disparate machines to one another.  A deployment model is to:&lt;br /&gt;&lt;br /&gt;• Explore the issues involved with installing the system into production. &lt;br /&gt;• Explore the dependencies that your system has with other systems that are currently in, or planned for, the production environment. &lt;br /&gt;• Depict a major deployment configuration of a business application. &lt;br /&gt;• Design the hardware and software configuration of an embedded system.  &lt;br /&gt;• Depict the hardware/network infrastructure of an organization.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-1605998422773163579?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/1605998422773163579/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=1605998422773163579' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/1605998422773163579'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/1605998422773163579'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/07/object-oriented-architecture-modeling.html' title='Object Oriented Architecture Modeling'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-1450115105648163995</id><published>2008-07-20T22:38:00.000-07:00</published><updated>2008-07-22T02:48:07.890-07:00</updated><title type='text'>Disable the Right click option in the Webpage</title><content type='html'>1. write the below function in the script tag:&lt;br /&gt;function click(e)&lt;br /&gt; {&lt;br /&gt;if (document.all)&lt;br /&gt;{&lt;br /&gt;if (event.button==2event.button==3)&lt;br /&gt;{&lt;br /&gt;oncontextmenu='return false';&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;if (document.layers)&lt;br /&gt;{&lt;br /&gt;if (e.which == 3)&lt;br /&gt; {&lt;br /&gt;oncontextmenu='return false';&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;if (document.layers)&lt;br /&gt;{&lt;br /&gt;document.captureEvents(Event.MOUSEDOWN);&lt;br /&gt;}&lt;br /&gt;document.onmousedown=click;&lt;br /&gt;function handleKeyDown()&lt;br /&gt; {&lt;br /&gt;if (window.event.keyCode == 116)&lt;br /&gt;{&lt;br /&gt; event.keyCode=0;&lt;br /&gt; event.returnValue=false;&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;document.onkeydown = handleKeyDown;&lt;br /&gt;&lt;br /&gt;2. In Body Tag:&lt;br /&gt;&lt;br /&gt;call the funtion in the events as follows:&lt;br /&gt;oncontextmenu="return false" &lt;br /&gt;ondragstart="return false" &lt;br /&gt;onselectstart="return false"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3. write this inside the script tag:&lt;br /&gt;&lt;br /&gt;function click(e) {&lt;br /&gt;if (document.all) {&lt;br /&gt;if (event.button==2event.button==3) {&lt;br /&gt;oncontextmenu='return false';&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if (document.layers) {&lt;br /&gt;if (e.which == 3) {&lt;br /&gt;oncontextmenu='return false';&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if (document.layers) {&lt;br /&gt;document.captureEvents(Event.MOUSEDOWN);&lt;br /&gt;}&lt;br /&gt;document.onmousedown=click;&lt;br /&gt;&lt;br /&gt;function handleKeyDown() {&lt;br /&gt;if (window.event.keyCode == 116) {&lt;br /&gt;event.keyCode=0;&lt;br /&gt;event.returnValue=false;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;document.onkeydown = handleKeyDown;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-1450115105648163995?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/1450115105648163995/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=1450115105648163995' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/1450115105648163995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/1450115105648163995'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/07/disable-right-click-option-in-webpage.html' title='Disable the Right click option in the Webpage'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-8341784149806801486</id><published>2008-07-18T02:58:00.000-07:00</published><updated>2009-03-26T03:15:38.861-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>What's the difference between char,nvarchar,ntext and nvarchar(max) ? (SQL2005)</title><content type='html'>see the below link:&lt;br /&gt;&lt;br /&gt;http://geekswithblogs.net/claeyskurt/archive/2006/02/04/68161.aspx&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-8341784149806801486?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/8341784149806801486/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=8341784149806801486' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8341784149806801486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8341784149806801486'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/07/whats-difference-between.html' title='What&apos;s the difference between char,nvarchar,ntext and nvarchar(max) ? (SQL2005)'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-5994777640463703137</id><published>2008-07-18T02:10:00.000-07:00</published><updated>2009-03-26T03:14:12.844-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>SQL Server : Sum of 2 querries which has already sum function</title><content type='html'>There are 2 ways for summing the 2 sub querries:&lt;br /&gt;Method : 1&lt;br /&gt;select &lt;br /&gt;(select SUM(substring(SP_Product, 5, 2) * SP_Opening) AS Muliplied from tblStock_Packed_Factory &lt;br /&gt;where SP_Oil = 'Cocounut'and SP_Product like '%kg' and Len(SP_Product)=8 )&lt;br /&gt;+ &lt;br /&gt;(select SUM(substring (SP_Product, 5, 3) * SP_Opening) AS Muliplied from tblStock_Packed_Factory &lt;br /&gt;where SP_Oil = 'Cocounut'and SP_Product like '%kg' and Len(SP_Product)=9 ) AS Muliplied&lt;br /&gt;------------&lt;br /&gt;Method: 2&lt;br /&gt;select Sum(tmp.Muliplied) As Muliplied&lt;br /&gt;From (&lt;br /&gt;select SUM(substring (SP_Product, 5, 2) * SP_Opening) AS Muliplied from tblStock_Packed_Factory &lt;br /&gt;where SP_Oil = 'Cocounut'and SP_Product like '%kg' and Len(SP_Product)=8 &lt;br /&gt;union&lt;br /&gt;select SUM(substring (SP_Product, 5, 3) * SP_Opening) AS Muliplied from tblStock_Packed_Factory &lt;br /&gt;where SP_Oil = 'Cocounut'and SP_Product like '%kg' and Len(SP_Product)=9 ) as tmp&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-5994777640463703137?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/5994777640463703137/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=5994777640463703137' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/5994777640463703137'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/5994777640463703137'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/07/sql-server-sum-of-2-querries-which-has.html' title='SQL Server : Sum of 2 querries which has already sum function'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-586406522610136291</id><published>2008-07-18T01:23:00.000-07:00</published><updated>2008-07-18T01:25:47.034-07:00</updated><title type='text'>Deleting the listbox selected value through Javascript</title><content type='html'>Javascript:&lt;br /&gt;function removeOptions(selectbox)&lt;br /&gt;{&lt;br /&gt;var i;&lt;br /&gt;for(i=selectbox.options.length-1;i&gt;=0;i--)&lt;br /&gt;{&lt;br /&gt;if(selectbox.options[i].selected)&lt;br /&gt;selectbox.remove(i);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;HTML:&lt;br /&gt;&lt;FORM name="drop_list" method="POST" &gt;&lt;br /&gt;&lt;br /&gt;&lt;SELECT id="SubCat" NAME="SubCat" MULTIPLE size=6 width=10&gt;&lt;br /&gt;&lt;/SELECT&gt;&lt;br&gt;&lt;br /&gt;&lt;input type=button onClick="removeOptions(SubCat)"; value='Remove Selected'&gt;&lt;br /&gt;&lt;input type=button onClick="removeAllOptions(SubCat)"; value='Remove All'&gt;&lt;br /&gt;&lt;input type=button onClick="addOption_list()"; value='Add All'&gt; &lt;br /&gt;&lt;br /&gt;&lt;/form&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-586406522610136291?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/586406522610136291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=586406522610136291' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/586406522610136291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/586406522610136291'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/07/deleting-listbox-selected-value-through.html' title='Deleting the listbox selected value through Javascript'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-5420641040625800317</id><published>2008-07-17T23:15:00.000-07:00</published><updated>2009-03-26T03:15:10.156-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>Reading the Mails from the Outlook 2003 using C# .NET</title><content type='html'>The following demostrates how to retreive data from items within an Outlook folder (called "MySubFolderName" under the Inbox folder) using .NET:&lt;br /&gt;&lt;br /&gt;First add a reference to the Outlook COM object your project:&lt;br /&gt;&lt;br /&gt;1. In VS.NET right click on References and choose Add Reference. &lt;br /&gt;2. Select the COM tab Choose "Microsoft Outlook 11.0 Object Library" (this is for MS Office 2003 - I think 10.0 is for Office XP) and click Select. &lt;br /&gt;3. Click OK.&lt;br /&gt;Note that you can access any Outlook/Exchange object types, eg Appointments, Notes, Tasks, Emails etc - just use intellisense to select which one (eg Microsoft.Office.Interop.Outlook. ... - see definition of variable called 'item' below).&lt;br /&gt;&lt;br /&gt;Here's the code:&lt;br /&gt;&lt;br /&gt;Microsoft.Office.Interop.Outlook.Application app = null;&lt;br /&gt;Microsoft.Office.Interop.Outlook._NameSpace ns = null;&lt;br /&gt;Microsoft.Office.Interop.Outlook.PostItem item = null;&lt;br /&gt;Microsoft.Office.Interop.Outlook.MAPIFolder inboxFolder = null;&lt;br /&gt;Microsoft.Office.Interop.Outlook.MAPIFolder subFolder = null;&lt;br /&gt;&lt;br /&gt;try &lt;br /&gt;{&lt;br /&gt;  app = new Microsoft.Office.Interop.Outlook.Application();&lt;br /&gt;  ns = app.GetNamespace("MAPI");&lt;br /&gt;  ns.Logon(null,null,false, false);&lt;br /&gt;&lt;br /&gt;  inboxFolder = ns.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderInbox);&lt;br /&gt;  subFolder = inboxFolder.Folders["MySubFolderName"]; //folder.Folders[1]; also works&lt;br /&gt;  Console.WriteLine("Folder Name: {0}, EntryId: {1}", subFolder.Name, subFolder.EntryID);&lt;br /&gt;  Console.WriteLine("Num Items: {0}", subFolder.Items.Count.ToString());&lt;br /&gt;&lt;br /&gt;  for(int i=1;i&lt;=subFolder.Items.Count;i++)&lt;br /&gt;  {&lt;br /&gt;    item = (Microsoft.Office.Interop.Outlook.PostItem)subFolder.Items[i];&lt;br /&gt;    Console.WriteLine("Item: {0}", i.ToString());&lt;br /&gt;    Console.WriteLine("Subject: {0}", item.Subject); &lt;br /&gt;    Console.WriteLine("Sent: {0} {1}" item.SentOn.ToLongDateString(), item.SentOn.ToLongTimeString());&lt;br /&gt;    Console.WriteLine("Categories: {0}", item.Categories);&lt;br /&gt;    Console.WriteLine("Body: {0}", item.Body);&lt;br /&gt;    Console.WriteLine("HTMLBody: {0}", item.HTMLBody); &lt;br /&gt;  }&lt;br /&gt;} &lt;br /&gt;catch (System.Runtime.InteropServices.COMException ex) &lt;br /&gt;{&lt;br /&gt;  Console.WriteLine(ex.ToString());&lt;br /&gt;}&lt;br /&gt;finally&lt;br /&gt;{&lt;br /&gt;  ns = null;&lt;br /&gt;  app = null;&lt;br /&gt;  inboxFolder = null;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Note:If the Problem comes then change the PostItem into MailItem&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-5420641040625800317?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/5420641040625800317/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=5420641040625800317' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/5420641040625800317'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/5420641040625800317'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/07/reading-mails-from-outlook-2003-using-c.html' title='Reading the Mails from the Outlook 2003 using C# .NET'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-267995731114373427</id><published>2008-07-17T06:37:00.000-07:00</published><updated>2009-03-26T03:15:10.156-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>Programmatically Complete PDF Form Fields using VB and the iTextSharp DLL</title><content type='html'>Use the below link to get the Idea:&lt;br /&gt;&lt;br /&gt;http://www.vbdotnetheaven.com/UploadFile/scottlysle/PdfGenVB06162007031634AM/PdfGenVB.aspx&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-267995731114373427?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/267995731114373427/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=267995731114373427' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/267995731114373427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/267995731114373427'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/07/programmatically-complete-pdf-form.html' title='Programmatically Complete PDF Form Fields using VB and the iTextSharp DLL'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-8631332369438525552</id><published>2008-07-17T01:48:00.000-07:00</published><updated>2008-07-17T02:01:30.775-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>Caching in ASP .NET</title><content type='html'>&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;ASP.NET supports multiple levels of caching:&lt;/strong&gt;&lt;br /&gt;1. Output caching&lt;br /&gt;2. Fragment caching&lt;br /&gt;3. Data caching &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;Benefits:&lt;br /&gt;&lt;/strong&gt;Can increase performance by reducing trips to the database &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;Challenges:&lt;br /&gt;&lt;/strong&gt;Requires correct design and enough memory to be effective &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;strong&gt;ASP.NET provides built-in caching support that enables re-use of work:&lt;/strong&gt;&lt;br /&gt;1. Full Page Caching (Vary by params, language, user-agent)&lt;br /&gt;2. Partial Page Caching (Enables portions of pages to be cached)&lt;br /&gt;3. Web Service Caching (Vary by parameters and methods)&lt;br /&gt;4. Cache Engine: Extensible Cache API (Enables arbitrary objects to be cached)&lt;br /&gt;&lt;br /&gt; &lt;strong&gt;Cache Dependencies:&lt;/strong&gt;&lt;br /&gt;1. File Based dependencies&lt;br /&gt;2. Key Based dependencies&lt;br /&gt;3. Time Based dependencies&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How to do Caching:&lt;/strong&gt;&lt;br /&gt;Cache the content of an entire ASP.NET page&lt;br /&gt;–Declarative:&lt;br /&gt;    &lt;%@ OutputCache Duration="60" VaryByParam="None"%&gt;&lt;br /&gt;–Programmatic:&lt;br /&gt;•Response.Cache.SetExpires(DateTime.Now.AddSeconds(60))&lt;br /&gt;•Response.Cache.SetCacheability(HttpCacheability.Public)&lt;br /&gt;•Response.Cache.SetSlidingExpiration(True)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Example of Output Cache:&lt;/strong&gt;&lt;br /&gt; &lt;%@ OutputCache Duration="20" VaryByParam="none" %&gt;&lt;br /&gt;&lt;html&gt;&lt;br /&gt;&lt;head&gt;&lt;title&gt;Output Cache&lt;/title&gt;&lt;/head&gt;&lt;br /&gt;&lt;body&gt;&lt;br /&gt;Now :&lt;%= Now() %&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The content of the page will be same till 20 Sec.&lt;br /&gt;of the creation of cache of this output.&lt;br /&gt;&lt;/body&gt;&lt;br /&gt;&lt;/html&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-8631332369438525552?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/8631332369438525552/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=8631332369438525552' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8631332369438525552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8631332369438525552'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/07/caching-in-asp-net.html' title='Caching in ASP .NET'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-3736808143514300296</id><published>2008-07-01T21:10:00.000-07:00</published><updated>2008-07-17T02:02:06.801-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><title type='text'>Javascript : To check the URL Validation</title><content type='html'>&lt;html&gt;&lt;br /&gt;&lt;head&gt;&lt;br /&gt;&lt;script&gt;&lt;br /&gt;function checkUrl(theUrl){&lt;br /&gt;  if(theUrl.value.match(/^(http|ftp)\:\/\/\w+([\.\-]\w+)*\.\w{2,4}(\:\d+)*([\/\.\-\?\&amp;\%\#]\w+)*\/?$/i) ||&lt;br /&gt;     theUrl.value.match(/^mailto\:\w+([\.\-]\w+)*\@\w+([\.\-]\w+)*\.\w{2,4}$/i)){&lt;br /&gt;    return true;&lt;br /&gt;  } else {&lt;br /&gt;    alert("Wrong address.");&lt;br /&gt;    theUrl.select();&lt;br /&gt;    theUrl.focus();&lt;br /&gt;    return false;&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;/head&gt;&lt;br /&gt;&lt;/body&gt;&lt;br /&gt;&lt;form onSubmit="return checkUrl(this.URL)"&gt;&lt;br /&gt;URL:&lt;br /&gt;&lt;input type=text name="URL" size="45"&gt;&lt;br /&gt;&lt;input type=submit value="Save"&gt;&lt;br /&gt;&lt;/form&gt;&lt;br /&gt;&lt;/body&gt;&lt;br /&gt;&lt;/html&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-3736808143514300296?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/3736808143514300296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=3736808143514300296' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/3736808143514300296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/3736808143514300296'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/07/javascript-to-check-url-validation.html' title='Javascript : To check the URL Validation'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-3389047764490194652</id><published>2008-07-01T05:48:00.000-07:00</published><updated>2008-07-17T02:01:30.775-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>Finding the Control in the Grid</title><content type='html'>To find the control whether is existing in the grid:&lt;br /&gt;----------------------------------------------------&lt;br /&gt;&lt;br /&gt;TextBox txtcomments;&lt;br /&gt;txtcomments=(TextBox)e.Item.FindControl("txtcomments");&lt;br /&gt;txtcomments.Attributes.Add("Onchange","javascript:fncallcheck("+txtcomments.ClientID+")");&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-3389047764490194652?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/3389047764490194652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=3389047764490194652' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/3389047764490194652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/3389047764490194652'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/07/finding-control-in-grid.html' title='Finding the Control in the Grid'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-5530632394549302318</id><published>2008-07-01T05:47:00.000-07:00</published><updated>2008-07-17T02:01:30.775-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>String Array</title><content type='html'>For String array:&lt;br /&gt;------------------&lt;br /&gt;&lt;br /&gt;string[] strhistry = (string[])childdr["fldWFHistory"];&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-5530632394549302318?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/5530632394549302318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=5530632394549302318' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/5530632394549302318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/5530632394549302318'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/07/string-array.html' title='String Array'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-3692507637215628331</id><published>2008-07-01T03:14:00.000-07:00</published><updated>2008-07-17T02:01:30.776-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>Place Holder</title><content type='html'>For Place Holder:&lt;br /&gt;------------------&lt;br /&gt;&lt;br /&gt;StringBuilder str = new StringBuilder();&lt;br /&gt;str.Append("&lt;tr&gt;");&lt;br /&gt;str.Append("&lt;td&gt;strhistry[i].ToString()&lt;/td&gt;&lt;/tr&gt;");&lt;br /&gt;placecomments.Controls.Add(new LiteralControl(str.ToString()));&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-3692507637215628331?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/3692507637215628331/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=3692507637215628331' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/3692507637215628331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/3692507637215628331'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/07/place-holder.html' title='Place Holder'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-932496891671630719</id><published>2008-07-01T03:12:00.000-07:00</published><updated>2008-07-17T02:01:30.776-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>Formating the Date in C# .NET</title><content type='html'>The Date mm/dd/yyyy Can be changed in to dd/mm/yyyy using the below format:&lt;br /&gt;&lt;br /&gt;String.Format("{0:dd/MM/yyyy}",Convert.ToDateTime("12/20/2008"));&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-932496891671630719?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/932496891671630719/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=932496891671630719' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/932496891671630719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/932496891671630719'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/07/formating-date-in-c-net.html' title='Formating the Date in C# .NET'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-5269043788255888674</id><published>2008-05-02T07:58:00.000-07:00</published><updated>2008-07-17T02:01:56.978-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Duplicate Records Count</title><content type='html'>SELECT empname,COUNT(empname) FROM test2 GROUP BY empname&lt;br /&gt;HAVING COUNT(empname) &gt; 1 &lt;br /&gt;SELECT COUNT(*),empname FROM test2 GROUP BY empname HAVING COUNT(*)&gt;1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-5269043788255888674?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/5269043788255888674/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=5269043788255888674' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/5269043788255888674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/5269043788255888674'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/05/duplicate-records-count.html' title='Duplicate Records Count'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-849999005668434255</id><published>2008-05-02T07:55:00.000-07:00</published><updated>2008-07-17T02:01:56.978-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Deleting Duplicate Records in the Table</title><content type='html'>Table Name : Test2&lt;br /&gt;Fields : empid,empname&lt;br /&gt;&lt;br /&gt;Query to Delete the Duplicate values and keeping one value in the table.&lt;br /&gt;&lt;br /&gt;set rowcount 1&lt;br /&gt;select 1&lt;br /&gt;while @@rowcount &gt; 0&lt;br /&gt;delete test2 &lt;br /&gt;where 1 &lt; (select count(*) from test2 a2 where test2.empid = a2.empid)&lt;br /&gt;set rowcount 0&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-849999005668434255?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/849999005668434255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=849999005668434255' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/849999005668434255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/849999005668434255'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/05/deleting-duplicate-records-in-table.html' title='Deleting Duplicate Records in the Table'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-4999246152614243245</id><published>2008-02-29T06:10:00.000-08:00</published><updated>2008-07-17T02:01:30.776-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>.NET Web Application Setup &amp; Deployemnt</title><content type='html'>Step 1: Create an ASP.NET Web application&lt;br /&gt;1. Start Visual Studio .NET or Visual Studio 2005. &lt;br /&gt;2. Use Visual C# .NET or Visual C# 2005 or use Visual Basic .NET or Visual Basic 2005 to create an ASP.NET Web Application project. Name the project Project1.&lt;br /&gt;&lt;br /&gt;Note In Visual Studio 2005, create an ASP.NET Web Site project. &lt;br /&gt;3. On the Build menu, click Build Solution. &lt;br /&gt;&lt;br /&gt;Step 2: Add a Web Setup project to your solution&lt;br /&gt;1. In Solution Explorer, right-click the Project1 solution, point to Add, and then click Add New Project. The New Project dialog box appears. &lt;br /&gt;2. Under Project Types, click Setup and Deployment Projects. &lt;br /&gt;3. Under Templates, click Web Setup Project. &lt;br /&gt;4. In the Name text box, type WebSetupProject1. &lt;br /&gt;5. In the Location text box, type C:\DeployFolder, and then click OK. &lt;br /&gt;&lt;br /&gt;Step 3: Add the Web application files to Your Web Setup project&lt;br /&gt;1. In the File System (WebSetupProject1) window, right-click Web Application Folder, point to Add, and then click File. The Add Files dialog box appears. &lt;br /&gt;2. Locate the C:\Inetpub\wwwroot\Project1 folder. &lt;br /&gt;3. Select all the files that are in the Project1 folder, and then click Open. &lt;br /&gt;4. In the File System (WebSetupProject1) window, expand Web Application Folder. &lt;br /&gt;5. Under Web Application Folder, right-click bin, point to Add, and then click File. The Add Files dialog box appears. &lt;br /&gt;6. Locate the C:\Inetpub\wwwroot\Project1\bin folder. &lt;br /&gt;7. Click the Project1.dll file, and then click Open. &lt;br /&gt;&lt;br /&gt;Step 4: Configure the Bootstrapper URL for your Web Setup project&lt;br /&gt;1. In Solution Explorer, right-click WebSetupProject1, and then click Properties. The WebSetupProject1 Property Pages dialog box appears. &lt;br /&gt;2. In the Bootstrapper list box, click Web Bootstrapper. The Web Bootstrapper Settings dialog box appears. &lt;br /&gt;3. In the Setup folder URL text box, type http://devserver/Bootstrap1, and then click OK.&lt;br /&gt;&lt;br /&gt;Note devserver is a placeholder for the name of your Web server. &lt;br /&gt;4. In the WebSetupProject1 Property Pages dialog box, click OK. &lt;br /&gt;5. In Solution Explorer, right-click WebSetupProject1, and then click Build. &lt;br /&gt;&lt;br /&gt;Step 5: Copy files to the bootstrapping application folder&lt;br /&gt;1. In the C:\Inetpub\Wwwroot folder, create a folder that is named Bootstrap1. &lt;br /&gt;2. Create a virtual directory that is named Bootstrap1, and then map this virtual directory to the C:\Inetpub\wwwroot\Bootstrap1 folder. &lt;br /&gt;3. Copy the following files from the C:\DeployFolder\WebSetupProject1\debug folder to the C:\Inetpub\wwwroot\Bootstrap1 folder: • Setup.Exe &lt;br /&gt;• WebSetupProject1.msi &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Step 6: Run your Web Setup project on a remote (deployment) computer&lt;br /&gt;1. Start Microsoft Internet Explorer. &lt;br /&gt;2. Type the following URL in the address bar, and then press ENTER:&lt;br /&gt;http://devserver/Bootstrap1/Setup.Exe&lt;br /&gt;Note devserver is a placeholder for the name of your Web server. &lt;br /&gt;3. In the File Download dialog box, click Open. &lt;br /&gt;4. In the Security Warning dialog box, click Yes. &lt;br /&gt;5. In the WebSetupProject1 dialog box, click Next. &lt;br /&gt;6. Keep WebSetupProject1 in the Virtual directory text box. Click Next. &lt;br /&gt;7. On the Confirm Installation page of the WebSetupProject1 dialog box, click Next. &lt;br /&gt;8. On the Installation Complete page of the WebSetupProject1 dialog box, click Close. &lt;br /&gt;9. Locate the C:\Inetpub\wwwroot\WebSetupProject1 folder. &lt;br /&gt;10. Open the following file in a text editor such as Notepad:• If you are using Visual C# .NET or Visual C# 2005, open the Project1.csproj.webinfo file. &lt;br /&gt;• If you are using Visual Basic .NET or Visual Basic 2005, open the Project1.vbproj.webinfo file. &lt;br /&gt; &lt;br /&gt;11. Modify the URLPath element as follows:&lt;br /&gt;&lt;br /&gt;Visual C# .NET or Visual C# 2005 code&lt;VisualStudioUNCWeb&gt;&lt;br /&gt;    &lt;Web URLPath = "http://localhost/WebSetupProject1/WebSetupProject1.csproj" /&gt;&lt;br /&gt;&lt;/VisualStudioUNCWeb&gt;&lt;br /&gt;Visual Basic .NET or Visual Basic 2005 code&lt;VisualStudioUNCWeb&gt;&lt;br /&gt;    &lt;Web URLPath = "http://localhost/WebSetupProject1/WebSetupProject1.vbproj" /&gt;&lt;br /&gt;&lt;/VisualStudioUNCWeb&gt;&lt;br /&gt; &lt;br /&gt;12. Save the file as one of the following, depending on your project:• If you are using Visual C# .NET or Visual C# 2005, save the file as WebSetupProject1.csproj.webinfo. &lt;br /&gt;• If you are using Visual Basic .NET or Visual Basic 2005, save the file as WebSetupProject1.vbproj.webinfo. &lt;br /&gt; &lt;br /&gt;13. Open the following file, depending on your project:• If you are using Visual C# .NET or Visual C# 2005, open the Project1.csproj file. &lt;br /&gt;• If you are using Visual Basic .NET or Visual Basic 2005, open the Project1.vbproj file. &lt;br /&gt;You may receive the error message that appears in the "Symptoms" section of this article.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-4999246152614243245?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/4999246152614243245/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=4999246152614243245' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/4999246152614243245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/4999246152614243245'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/02/net-web-application-setup-deployemnt.html' title='.NET Web Application Setup &amp; Deployemnt'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-5374487276826081378</id><published>2008-02-23T04:59:00.000-08:00</published><updated>2008-07-17T02:01:30.776-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>.NET: Generating a Random Number in C#</title><content type='html'>private int RandomNumber(int min, int max)&lt;br /&gt;{&lt;br /&gt;Random random = new Random();&lt;br /&gt;return random.Next(min, max); &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Copy the above code in your class where you want to use it and call like this:&lt;br /&gt;&lt;br /&gt;int returnValue = RandomNumber(5, 20);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-5374487276826081378?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/5374487276826081378/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=5374487276826081378' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/5374487276826081378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/5374487276826081378'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/02/net-generating-random-number-in-c.html' title='.NET: Generating a Random Number in C#'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-249055040989218656</id><published>2008-02-23T04:56:00.001-08:00</published><updated>2008-07-22T06:31:37.406-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>.NET: How to create a scrollable DataGrid?</title><content type='html'>Place the Data Grid with the Div Tag:&lt;br /&gt;&lt;br /&gt;&lt;!--&lt;div style="OVERFLOW: auto; WIDTH: 800px; HEIGHT: 152px"&gt;&lt;br /&gt;&lt;/div&gt;--&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-249055040989218656?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/249055040989218656/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=249055040989218656' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/249055040989218656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/249055040989218656'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/02/net-how-to-create-scrollable-datagrid.html' title='.NET: How to create a scrollable DataGrid?'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-1574884057799981131</id><published>2008-02-23T04:46:00.000-08:00</published><updated>2008-07-17T02:01:30.777-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>.NET: Redirect .NET tracing to a file?</title><content type='html'>The Debug and Trace classes both have a Listeners property, which is a collection of sinks that receive the tracing that you send via Debug.WriteLine and Trace.WriteLine respectively. By default the Listeners collection contains a single sink, which is an instance of the DefaultTraceListener class. This sends output to the Win32 OutputDebugString() function and also the System.Diagnostics.Debugger.Log() method. This is useful when debugging, but if you're trying to trace a problem at a customer site, redirecting the output to a file is more appropriate. Fortunately, the TextWriterTraceListener class is provided for this purpose.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;How to use the TextWriterTraceListener class to redirect Trace output to a file:&lt;br /&gt;&lt;br /&gt;Trace.Listeners.Clear();&lt;br /&gt;FileStream fs = new FileStream( @"c:\log.txt", FileMode.Create, FileAccess.Write );&lt;br /&gt;Trace.Listeners.Add( new TextWriterTraceListener( fs ) );&lt;br /&gt;Trace.WriteLine( @"This will be writen to c:\log.txt!" );&lt;br /&gt;Trace.Flush();&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-1574884057799981131?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/1574884057799981131/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=1574884057799981131' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/1574884057799981131'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/1574884057799981131'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/02/net-redirect-net-tracing-to-file.html' title='.NET: Redirect .NET tracing to a file?'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-9100565797140551651</id><published>2008-02-23T04:27:00.000-08:00</published><updated>2008-02-23T04:31:14.517-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>SQL-Server: Finding the Nth Highest &amp; Nth Lowest in the SQL:</title><content type='html'>In the below way we can display any record, it can be fifth or 12th record from top. If we change the order by command to start in ascending order by changing the DESC to ASC ( or removing it , by default it is ASC ) we can get the lowest to highest and get the records from lowest ( last ) mark. &lt;br /&gt;&lt;br /&gt;SELECT * FROM `student` where class='Six' ORDER BY mark desc LIMIT 0,1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-9100565797140551651?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/9100565797140551651/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=9100565797140551651' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/9100565797140551651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/9100565797140551651'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/02/sql-server-finding-nth-highest-nth.html' title='SQL-Server: Finding the Nth Highest &amp; Nth Lowest in the SQL:'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-8736251397376785160</id><published>2008-02-23T04:15:00.000-08:00</published><updated>2008-02-23T04:31:14.518-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>SQL- Server: Case Statement</title><content type='html'>&lt;strong&gt;Sample for Case Statment:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;UPDATE tbl_emp SET salary =&lt;br /&gt;CASE WHEN salary BETWEEN 30000 AND 40000 THEN salary + 5000&lt;br /&gt;WHEN salary BETWEEN 40000 AND 55000 THEN salary + 7000&lt;br /&gt;WHEN salary BETWEEN 55000 AND 65000 THEN salary + 10000&lt;br /&gt;END&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-8736251397376785160?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/8736251397376785160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=8736251397376785160' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8736251397376785160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8736251397376785160'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/02/sql-server-case-statement.html' title='SQL- Server: Case Statement'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-2722922729785838555</id><published>2008-02-23T03:55:00.000-08:00</published><updated>2008-02-23T04:12:15.713-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>.NET : Framework &amp; ASP.NET Questions</title><content type='html'>&lt;strong&gt;1.)Various Providers available in .NET:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;1. Odbc Data Provider:System.Data.Odbc&lt;br /&gt;2. OleDb Data Provider:System.Data.OleDb&lt;br /&gt;3. SqlClient Data Provider:System.Data.SqlClient&lt;br /&gt;4. OracleClient Data Provider:System.Data.OracleClient&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2.)What is MSIL code?&lt;/strong&gt;&lt;br /&gt;This is an acronym for  Microsft Intermediate Language. In .net code that a developers develops will be complied in to MSIL code by the respective compilers and this code will be targeted towards the CLR which inturn contains JIT Compilers .This MSIL code will be converted in to the machine understandable code by JIT compiler&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;3.What are various types of assemblies ?&lt;/strong&gt;&lt;br /&gt;1) shared assembly&lt;br /&gt;2) private assembly&lt;br /&gt;3) satellite assembly&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;4. What is an assembly and what does manifest consists?&lt;/strong&gt;&lt;br /&gt;An Assembly is the building block of .net having metadata,mainfest,culture info,ver no. Mainfest cantain the information about the Metadata&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;5. What is boxing and unboxing?&lt;/strong&gt;&lt;br /&gt;Box is used to convert Value type to reference type(ie. Object)&lt;br /&gt;Unboxing is to convert Reference typr to Value Type&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;6. Types of caching?&lt;/strong&gt;&lt;br /&gt;There are 3 types of caching&lt;br /&gt;1.Page caching&lt;br /&gt;2.Fragment Caching&lt;br /&gt;3.Output Caching&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;7. What are various authentication mechanisms in ASP.NET?&lt;/strong&gt;&lt;br /&gt;There are three type of authentication mechanism in asp.net:&lt;br /&gt;&lt;br /&gt;1. Form Authentication&lt;br /&gt;2. Window Authentication&lt;br /&gt;3. Passport Authentication&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;8. What is CTS, CLS and CLR?&lt;/strong&gt;&lt;br /&gt;Common Type System CTS :A fundamental part of the .NET Framework's Common Language Runtime (CLR), the CTS specifies no particular syntax or keywords, but instead defines a common set of types that can be used with many different language syntaxes.&lt;br /&gt;&lt;br /&gt;Common Language Specification  (CLS):The Common Language Specification  (CLS) describes a set of features that different languages have in common. The CLS includes a subset of the Common Type System (CTS).&lt;br /&gt;&lt;br /&gt;The CLR is a multi-language execution environment&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;9. What are the main advantage in .net?&lt;/strong&gt;&lt;br /&gt;It is a Language independent, It supports all most all 40 LAngauges including third party languages&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;10. Where does the dispose method lie and how can it be used to clean up resources?&lt;/strong&gt;&lt;br /&gt;The dispose method is available in System.IDisposable interface. If you want to provide cleanup mechanism then implement this interface and provide the definition for dispose () method.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;11. What is value type and reference type?&lt;/strong&gt;&lt;br /&gt;In simple words value types are those data types that store there values on stack memory and values are settle down at compile time example are "ENUM" and reference type are those data type that store there values in heap memory and settle down while run time i.e dynamic types examples are strings, class type etc&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;12. How can u manage sessions?&lt;/strong&gt;&lt;br /&gt;Session Can be managed in 3 ways using &lt;br /&gt;1.in-proc&lt;br /&gt;2.out-proc and &lt;br /&gt;3. sql server.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;13. How can u manage state?&lt;/strong&gt;&lt;br /&gt;Managing state is done by two ways &lt;br /&gt;1. client side techniques like viewstate, querystring, cookies.&lt;br /&gt;2. Server Side techniques like Application state, Session state.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-2722922729785838555?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/2722922729785838555/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=2722922729785838555' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/2722922729785838555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/2722922729785838555'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/02/net-framework-aspnet-questions.html' title='.NET : Framework &amp; ASP.NET Questions'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-6620477037869789580</id><published>2008-02-23T03:52:00.001-08:00</published><updated>2008-02-23T03:53:48.538-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><title type='text'>JavaScript: Check all option for CheckBox Control.</title><content type='html'>To check all the Checkboxes in the CheckBox Control:&lt;br /&gt;-----------------------------------------------------&lt;br /&gt;function Allcheck()&lt;br /&gt;{&lt;br /&gt;	var ln=document.getElementsByTagName('input');&lt;br /&gt;	for(i=1;i&lt;ln.length;i++)&lt;br /&gt;	{&lt;br /&gt;		var input_type=ln[i].type;&lt;br /&gt;		if(input_type=="checkbox")&lt;br /&gt;		{&lt;br /&gt;			var Chck_ID=ln[i].id.indexOf("Check_All");&lt;br /&gt;			if(Chck_ID!=-1)&lt;br /&gt;			{&lt;br /&gt;				ln[i].checked=true;&lt;br /&gt;			}&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/998131970402484381-6620477037869789580?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/6620477037869789580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=6620477037869789580' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/6620477037869789580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/6620477037869789580'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/02/javascript-check-all-option-for.html' title='JavaScript: Check all option for CheckBox Control.'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-1855867817228886682</id><published>2008-02-23T03:47:00.000-08:00</published><updated>2008-02-23T03:53:48.538-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><title type='text'>Javscript E-Mail Validation:</title><content type='html'>Function for Email Validation:-&lt;br /&gt;--------------------------------&lt;br /&gt;function EmailValidation(fld)&lt;br /&gt;{&lt;br /&gt; if(fld.value!='')&lt;br /&gt; {&lt;br /&gt;  var id=fld.value;&lt;br /&gt;  var Reg=new RegExp("^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$");&lt;br /&gt;  if(id.match(Reg)==null)&lt;br /&gt;  {&lt;br /&gt;   alert("Please enter Valid Email-Id !");&lt;br /&gt;   fld.value='';&lt;br /&gt;   fld.focus();&lt;br /&gt;   return false;&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/998131970402484381-1855867817228886682?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/1855867817228886682/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=1855867817228886682' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/1855867817228886682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/1855867817228886682'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/02/javscript-e-mail-validation.html' title='Javscript E-Mail Validation:'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-8729026968034981229</id><published>2008-02-23T03:44:00.000-08:00</published><updated>2008-02-23T03:53:48.550-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><title type='text'>Javscript : Function to check Float.</title><content type='html'>Function to check Float:-&lt;br /&gt;----------------------------&lt;br /&gt;function ChkFloat(fld)&lt;br /&gt;{&lt;br /&gt; if(fld.value!='')&lt;br /&gt;        {&lt;br /&gt;  var id=fld.value;&lt;br /&gt;  var Reg=new RegExp("^[\-]{0,1}[0-9]{1,}(([\.\,]{0,1}[0-9]{1,})|([0-9]{0,}))$");&lt;br /&gt; if(id.match(Reg)==null)&lt;br /&gt; {&lt;br /&gt;         alert("Please Enter Numeric Values !");&lt;br /&gt;  fld.value='';&lt;br /&gt;  fld.focus();&lt;br /&gt;  return false;&lt;br /&gt; }&lt;br /&gt; if(id.indexOf("-")!=-1)&lt;br /&gt; {&lt;br /&gt;  alert("Please Enter Positive Values !");&lt;br /&gt;  fld.value='';&lt;br /&gt;  fld.focus();&lt;br /&gt;  return false;&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/998131970402484381-8729026968034981229?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/8729026968034981229/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=8729026968034981229' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8729026968034981229'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8729026968034981229'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/02/javscript-function-to-check-float.html' title='Javscript : Function to check Float.'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-1710729998359167299</id><published>2008-02-23T03:41:00.000-08:00</published><updated>2008-02-23T03:53:38.923-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>SQL-Server :Example of COALESCE</title><content type='html'>To bring the Multiple Column in to single column using comma separator:&lt;br /&gt;&lt;br /&gt;declare @var varchar(800)&lt;br /&gt;select @var=COALESCE(@var +',', '')+ CAST(&lt;fieldname&gt; AS varchar(250))  from &lt;tableName&gt;&lt;br /&gt;print @var&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-1710729998359167299?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/1710729998359167299/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=1710729998359167299' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/1710729998359167299'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/1710729998359167299'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/02/sql-server-example-of-coalesce.html' title='SQL-Server :Example of COALESCE'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-5647915216097326952</id><published>2008-02-23T03:35:00.000-08:00</published><updated>2008-02-23T03:53:38.923-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>SQL-Server : How to Kill the Database Users?</title><content type='html'>To view the Users who are all using the Database:&lt;br /&gt;--------------------------------------------------&lt;br /&gt;sp_who2&lt;br /&gt;&lt;br /&gt;To Kill the User:&lt;br /&gt;------------------&lt;br /&gt;&lt;br /&gt;kill 'SPID'&lt;br /&gt;eg: kill 58&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-5647915216097326952?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/5647915216097326952/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=5647915216097326952' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/5647915216097326952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/5647915216097326952'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/02/sql-server-how-to-kill-database-users.html' title='SQL-Server : How to Kill the Database Users?'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-8826990890625125692</id><published>2008-02-23T03:33:00.001-08:00</published><updated>2008-02-23T03:53:38.924-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>SQL-Server : To view the Column Name,type,size in the Table</title><content type='html'>To view the Columns in the table called "Activity"&lt;br /&gt;-----------------------------------------------------&lt;br /&gt;Type: 1&lt;br /&gt;SELECT *&lt;br /&gt;FROM INFORMATION_SCHEMA.COLUMNS&lt;br /&gt;WHERE TABLE_NAME = 'Activity'&lt;br /&gt;&lt;br /&gt;Type: 2&lt;br /&gt;select fname=col.name, dtype=type.name, col.length, col.status from syscolumns col&lt;br /&gt;inner join sysobjects obj&lt;br /&gt;on col.id = obj.id&lt;br /&gt;inner join systypes type&lt;br /&gt;on col.xtype = type.xtype&lt;br /&gt;where obj.name= 'Activity'&lt;br /&gt;and type.xtype = type.xusertype order by colid&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To Get the total number of Columns in the Table:&lt;br /&gt;---------------------------------------------------&lt;br /&gt;SELECT Count(*)&lt;br /&gt;FROM INFORMATION_SCHEMA.COLUMNS&lt;br /&gt;WHERE TABLE_NAME = 'Activity'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-8826990890625125692?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/8826990890625125692/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=8826990890625125692' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8826990890625125692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8826990890625125692'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/02/sql-server-to-view-column-nametypesize.html' title='SQL-Server : To view the Column Name,type,size in the Table'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-8780127707386574446</id><published>2008-02-23T03:20:00.000-08:00</published><updated>2008-02-23T03:26:39.573-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><title type='text'>Javascript Validation the CheckBox List:</title><content type='html'>The below code Validate the CheckBox list whether any one of the items are checked or not.&lt;br /&gt;&lt;br /&gt;Name of the CheckBox list is : chkFunctionType&lt;br /&gt;&lt;br /&gt;function fnValidate()&lt;br /&gt;{   &lt;br /&gt;            var flag=false;&lt;br /&gt;            var chkListfunction = document.getElementById ("chkFunctionType");&lt;br /&gt;            var arrCheckbox= chkListfunction.getElementsByTagName("input");&lt;br /&gt;            for(var i=0;i&lt;arrCheckbox.length;i++)&lt;br /&gt;            {&lt;br /&gt;                 if(arrCheckbox[i].checked==true)&lt;br /&gt;                 {&lt;br /&gt;                     flag=true;&lt;br /&gt;                 }&lt;br /&gt;            }&lt;br /&gt;            if(flag==false)&lt;br /&gt;            {&lt;br /&gt;	            alert('Please select the Function Level');&lt;br /&gt;	            return false;&lt;br /&gt;            }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Call this Function in the Button Click.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-8780127707386574446?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/8780127707386574446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=8780127707386574446' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8780127707386574446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8780127707386574446'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/02/javascript-validation-checkbox-list.html' title='Javascript Validation the CheckBox List:'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-5590824637939632199</id><published>2008-02-23T03:18:00.000-08:00</published><updated>2008-02-23T03:26:39.574-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><title type='text'>Javascript: Confirmation Msg</title><content type='html'>function checkdelete()&lt;br /&gt;{           &lt;br /&gt;    if(confirm('Are you certain that you want to delete this')==false)&lt;br /&gt;    {&lt;br /&gt;        return false;&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Call the Function in Button OnClick="return checkdelete();"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-5590824637939632199?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/5590824637939632199/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=5590824637939632199' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/5590824637939632199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/5590824637939632199'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/02/javascript-confirmation-msg.html' title='Javascript: Confirmation Msg'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-797518793848789065</id><published>2008-02-23T03:09:00.000-08:00</published><updated>2008-02-23T03:26:39.574-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><title type='text'>JavaScript:Allow only Numerics in TextBox</title><content type='html'>---------------Method 1&lt;br /&gt;&lt;br /&gt;&lt;Script&gt;&lt;br /&gt;function 'NumericValidation(o)&lt;br /&gt;{&lt;br /&gt;if(event.keyCode != 37 &amp;&amp; event.keyCode != 39)&lt;br /&gt;o.value = o.value.replace ( /[^0-9]/g, "" );&lt;br /&gt;}&lt;br /&gt;&lt;/Script&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;In .aspx Page:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;input type='text' maxlength='3' onKeyup='NumericValidation(this)' id='txt' Runat='server' /&gt;&lt;br /&gt;&lt;br /&gt;--------------Method 2&lt;br /&gt;&lt;br /&gt;function validNum(fld)&lt;br /&gt;{&lt;br /&gt; if(fld.value!='')&lt;br /&gt; {&lt;br /&gt;  var id=fld.value;&lt;br /&gt;  var Reg=new RegExp("^[0-9]*\[0-9]$");&lt;br /&gt;  if(id.match(Reg)==null)&lt;br /&gt;  {&lt;br /&gt;          alert("Please Enter Numeric Values !");&lt;br /&gt;          fld.value='';&lt;br /&gt;          fld.focus();&lt;br /&gt;   return false;&lt;br /&gt;  }&lt;br /&gt;  if(id.indexOf("-")!=-1)&lt;br /&gt;  {&lt;br /&gt;   alert("Please Enter Positive Values !");&lt;br /&gt;   fld.value='';&lt;br /&gt;   fld.focus();&lt;br /&gt;   return false;&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;In .aspx.cs Page:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Text Box Name: txtCorpName&lt;br /&gt;txtCorpName.Attributes.Add("OnKeyup", "Javascript:return(validNum(this));");&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-797518793848789065?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/797518793848789065/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=797518793848789065' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/797518793848789065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/797518793848789065'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/02/javascriptallow-only-numerics-in.html' title='JavaScript:Allow only Numerics in TextBox'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-5044576578461809127</id><published>2008-02-23T03:03:00.001-08:00</published><updated>2008-02-23T03:26:39.574-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><title type='text'>onbeforeunload Javascript</title><content type='html'>There are some cases where you might want to instruct the user before he/She is navigating to the next page. That might be a meaningful message like "Are you sure you want to navigate away from the current page?"&lt;br /&gt;Probably end user pressed the X button by mistake and he/she might loose his/her current state&lt;br /&gt;&lt;br /&gt;There is onbeforeunload event for the JavaScript that fires when you are navigating away from the current page.&lt;br /&gt;Here is the Code for that.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;script type="text/javascript"&lt;br /&gt;function close()&lt;br /&gt;{&lt;br /&gt;event.returnValue = "This will navigate to next page.";&lt;br /&gt;}&lt;br /&gt;script&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;body onbeforeunload="close()"&lt;br /&gt;&lt;br /&gt;&lt;a href="microsoft.com" Click Here to navigate to Microsoft&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Note:&lt;br /&gt;The default statement that appears in the dialog box, "Are you sure you want to navigate away from this page? ... Press OK to continue, or Cancel to stay on the current page.", cannot be removed or altered.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-5044576578461809127?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/5044576578461809127/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=5044576578461809127' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/5044576578461809127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/5044576578461809127'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/02/onbeforeunload-javascript.html' title='onbeforeunload Javascript'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-6779362411568065482</id><published>2008-02-23T03:00:00.000-08:00</published><updated>2008-02-23T03:26:39.575-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><title type='text'>Maxlength checking in Textarea Using Javascript</title><content type='html'>function maxcheck()&lt;br /&gt;{&lt;br /&gt;var maxval=1000;&lt;br /&gt;var maxtxtlength=window.document.myform.Description.value.length;&lt;br /&gt;if(parseInt(maxtxtlength)&gt;parseInt(maxval))&lt;br /&gt;{&lt;br /&gt;alert("This Description field accept only 1000 characters");&lt;br /&gt;window.document.myform.Description.innerText=window.document.myform.Description.value.substring(0,1000);&lt;br /&gt;return false;&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/998131970402484381-6779362411568065482?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/6779362411568065482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=6779362411568065482' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/6779362411568065482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/6779362411568065482'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/02/maxlength-checking-in-textarea-using.html' title='Maxlength checking in Textarea Using Javascript'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-778581521979553777</id><published>2008-02-23T02:59:00.000-08:00</published><updated>2008-02-23T03:26:39.575-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><title type='text'>Accesing Parent Window through Childwindow using Javascript</title><content type='html'>///////////////////////Accessing Id///////////////////////////&lt;br /&gt;alert(window.opener.document.getElementById("HidString").value)&lt;br /&gt;&lt;br /&gt;///////////////////////End Accessing Id///////////////////////////&lt;br /&gt;&lt;br /&gt;///////////////////////Accessing Function///////////////////////////&lt;br /&gt;child.aspx&lt;br /&gt;window.opener.LoadEmp(obj)&lt;br /&gt;&lt;br /&gt;parent.aspx&lt;br /&gt;function LoadEmp(ob)&lt;br /&gt;{&lt;br /&gt;alert(ob);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;///////////////////////End Accessing Function///////////////////////////&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;///////////////////////Refershing Parent Page from Child page////////////&lt;br /&gt;&lt;br /&gt;Response.Write("&lt;script language='javascript'&gt;&lt;br /&gt;window.opener.location.href=opener.location.href;&lt;/script&gt;");&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-778581521979553777?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/778581521979553777/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=778581521979553777' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/778581521979553777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/778581521979553777'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/02/accesing-parent-window-through.html' title='Accesing Parent Window through Childwindow using Javascript'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-1189514711720715219</id><published>2008-02-23T02:57:00.000-08:00</published><updated>2008-02-23T03:26:39.576-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><title type='text'>Reading and removing Listbox using Javascript </title><content type='html'>/////////////Reading/////////////////////////////////&lt;br /&gt;var listEmp=document.getElementById("PMEmpname");&lt;br /&gt;&lt;br /&gt;for(j=0;j&lt;listEmp.options.length;j++)&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;listEmp.options[j].value //Value field&lt;br /&gt;listEmp.options[j].text //Text Field &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;///////////Deleting///////////////////////////////////&lt;br /&gt;&lt;br /&gt;for(j=0;j&lt;listEmp.options.length;j++)&lt;br /&gt;{&lt;br /&gt;listEmp.remove(j);&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-1189514711720715219?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/1189514711720715219/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=1189514711720715219' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/1189514711720715219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/1189514711720715219'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/02/reading-and-removing-listbox-using.html' title='Reading and removing Listbox using Javascript '/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-5988518613361135674</id><published>2008-02-23T02:56:00.000-08:00</published><updated>2008-02-23T03:26:39.576-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><title type='text'>Using Javascript creating control without postback</title><content type='html'>&lt;table cellspacing="0" cellpadding="0" width="100%" border="0" id="Tellafriend1"&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td colspan="3" align="right"&gt;&lt;input type="button" value="Addmore" onclick="fnAddRow()" /&gt; &lt;input type="button" value="DeleteRow" onclick="fnDelRow()" /&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td colSpan="3"&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;Friend Name&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;br /&gt;Email Id&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;br /&gt;Delete&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;input type="text" id="txtfriendname1" name="txtfriendname1" /&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;br /&gt;&lt;input type="text" id="txtfriendemail1" name="txtfriendemail1" /&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;br /&gt;&lt;input type="checkbox" disabled="true" id="chkdelete" name="chkdelete" /&gt;&lt;br /&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;/////////////////////////////////Javascript///////////////////////////&lt;br /&gt;///////////////////This is for adding row/////////////////////////////&lt;br /&gt;var rowcount=1;&lt;br /&gt;var checkcount=1;&lt;br /&gt;function fnAddRow()&lt;br /&gt;{&lt;br /&gt;rowcount++;&lt;br /&gt;// var check=validate(); //this is for my page validation&lt;br /&gt;if(check!=false)&lt;br /&gt;{&lt;br /&gt;var objTbl = document.getElementById("Tellafriend1");&lt;br /&gt;var objTbody = objTbl.getElementsByTagName("tbody")[0];&lt;br /&gt;var row = document.createElement("tr"); &lt;br /&gt;//txtfriendname///&lt;br /&gt;var friendnameval=document.createElement("td"); &lt;br /&gt;var friendnameDel = document.createElement("INPUT")&lt;br /&gt;friendnameDel.setAttribute("type","text"); &lt;br /&gt;friendnameDel.setAttribute("name","txtfriendname"+rowcount); &lt;br /&gt;friendnameDel.setAttribute("id","txtfriendname"+rowcount); &lt;br /&gt;friendnameval.appendChild(friendnameDel)&lt;br /&gt;row.appendChild(friendnameval); &lt;br /&gt;//txtfriendname/// &lt;br /&gt;//txtfriendemail///&lt;br /&gt;var friendemailval=document.createElement("td");&lt;br /&gt;var friendemailDel = document.createElement("INPUT")&lt;br /&gt;friendemailDel.setAttribute("type","text"); &lt;br /&gt;friendemailDel.setAttribute("name","txtfriendemail"+rowcount); &lt;br /&gt;friendemailDel.setAttribute("id","txtfriendemail"+rowcount); &lt;br /&gt;friendemailval.appendChild(friendemailDel)&lt;br /&gt;row.appendChild(friendemailval); &lt;br /&gt;//txtfriendemail/// &lt;br /&gt;&lt;br /&gt;//checkbox///&lt;br /&gt;var checkval=document.createElement("td"); &lt;br /&gt;var ChkDel = document.createElement("INPUT")&lt;br /&gt;ChkDel.setAttribute("type","checkbox"); &lt;br /&gt;ChkDel.setAttribute("name","chkDelete"+rowcount); &lt;br /&gt;ChkDel.setAttribute("id","chkDelete"+rowcount); &lt;br /&gt;checkval.appendChild(ChkDel)&lt;br /&gt;row.appendChild(checkval); &lt;br /&gt;//End check box checkbox///&lt;br /&gt;objTbody.appendChild(row); &lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;return false;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;///////////////////End adding row/////////////////////////////&lt;br /&gt;&lt;br /&gt;Note:For deleting i am using checkbox...................&lt;br /&gt;///////////////Deleting Row//////////////////////////////////&lt;br /&gt;&lt;br /&gt;function fnDelRow()&lt;br /&gt;{&lt;br /&gt;var ChkOption = ""&lt;br /&gt;for(var i=2;i&lt;=rowcount;i++)&lt;br /&gt;{&lt;br /&gt;var ChkCtrl = document.getElementById("chkDelete"+i)&lt;br /&gt;&lt;br /&gt;if(ChkCtrl == '[object]')&lt;br /&gt;{&lt;br /&gt;if(ChkCtrl.checked)&lt;br /&gt;{&lt;br /&gt;ChkOption = "1"&lt;br /&gt;delRow(ChkCtrl)&lt;br /&gt;checkcount++;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;if(ChkOption == "" &amp;&amp; rowcount!=1)&lt;br /&gt;{ &lt;br /&gt;alert("Select any one option to delete")&lt;br /&gt;return false;&lt;br /&gt;}&lt;br /&gt;} &lt;br /&gt;function delRow(button)&lt;br /&gt;{&lt;br /&gt;var row = button.parentNode.parentNode; &lt;br /&gt;var tbody = document.getElementById('Tellafriend1').getElementsByTagName('tbody')[0]; &lt;br /&gt;tbody.removeChild(row);&lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;/////////////////////////////End Deleting row////////////////////////////////&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-5988518613361135674?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/5988518613361135674/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=5988518613361135674' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/5988518613361135674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/5988518613361135674'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/02/using-javascript-creating-control.html' title='Using Javascript creating control without postback'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-6302784148313748689</id><published>2008-02-23T02:54:00.000-08:00</published><updated>2008-02-23T03:27:31.860-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>Statemanagement Using C#.Net</title><content type='html'>State Management is a process of maintaining the state of the control or variable after page postback from server or between pages. In Asp.Net we are having many ways to maintain the state management. Basically it is dividied into server side and client side state management. Depends on the resource that we have to plan. They are as follows....&lt;br /&gt;1. Session state&lt;br /&gt;2. Hidden Variables&lt;br /&gt;3. Query String&lt;br /&gt;4. Cookies&lt;br /&gt;5. ViewState&lt;br /&gt;6. Caching&lt;br /&gt;Out of which session state and caching are server side state management. others are client side state management.&lt;br /&gt;1. Session State&lt;br /&gt;&lt;br /&gt;Session State is responsible for maintaining the state of a variable between pages and page postback. There are two types of session state. They are &lt;br /&gt;a. Application state &lt;br /&gt;b. Session state &lt;br /&gt;An object that is instant in application state will be available to the entire application. The lifetime of that instance will be available as long as application exists. Synatax for it is &lt;br /&gt;&lt;br /&gt;Application.lock();&lt;br /&gt;Application["Name"] = "Senthil";&lt;br /&gt;Application.unlock();&lt;br /&gt;string strName = Application["Name"].ToString();&lt;br /&gt;&lt;br /&gt;and an instance created in session state will be available for that session (i.e browser).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Session["RoleID"] = "ADMIN";&lt;br /&gt;string strRole = Session["RoleID"].ToString();&lt;br /&gt;&lt;br /&gt;Session state can stored in three places &lt;br /&gt;a. InProc - same system &lt;br /&gt;b. StateServer - storing values in other server. Use " net start aspnet_state" for configuring the state server. &lt;br /&gt;c. SQLServer - In database - use "aspnet_regsql" for configuring the sql server.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This can be set in web.config&lt;br /&gt;&lt;br /&gt;&lt;configuration&gt; &lt;system.web&gt; &lt;sessionstate mode="InProc" stateserver="129.23.33.53" sqlserver="" cookieless="true" /&gt; &lt;/system.web&gt;&lt;/configuration&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To get more info about state management, set the trace to on&lt;br /&gt;&lt;br /&gt;&lt;configuration&gt; &lt;system.web&gt; &lt;trace enable="true" pageoutput="true" /&gt;&lt;br /&gt;&lt;/system.web&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If pageoutput is set to false, then we find the contents in trace.axd file which is available in the root folder.&lt;br /&gt;&lt;br /&gt;2. Hidden variables&lt;br /&gt;&lt;br /&gt;Hidden controls are for storing few informations and retrieving it when page gets submits. We cannot get one hidden value in another page. The syntax for hidden variables are as follows.&lt;br /&gt;&lt;br /&gt;&lt;input type="hidden" name="hid" value=""&gt;&lt;br /&gt;&lt;%=Request.Form("hid")%&gt;&lt;br /&gt;&lt;br /&gt;3. QueryString&lt;br /&gt;&lt;br /&gt;Easiest way to transfer data between pages is the querystring. But we cannot transfer a bulk of data through it. Basically querystring has two keywords ? and &amp;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Example&lt;br /&gt;&lt;br /&gt;document.frm.action="login.aspx?Name=" &amp; strName &amp; "?Role=ADMIN"&lt;br /&gt;&lt;%= Request.QueryString["Name"] %&gt;&lt;br /&gt;&lt;br /&gt;4. Cookies&lt;br /&gt;&lt;br /&gt;Cookies are client side and it is used to store few values in the client machine. We cannot create cookies in server side. Many browsers restrict using cookies in the websites. The class that supports cookies in dotnet are HttpCookies.&lt;br /&gt;&lt;br /&gt;5. ViewState&lt;br /&gt;&lt;br /&gt;ViewState are used to maintain the state of the control. It can be set page wise or control wise. To set it by page wise&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;% @ Page EnableviewState="True" %&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For setting viewstate control wise set the viewstate property to true. &lt;br /&gt;&lt;br /&gt;The value of the control would be retained once the pages get postback.&lt;br /&gt;&lt;br /&gt;6. Caching&lt;br /&gt;&lt;br /&gt;Caching too places a part in state management. Its similar to session state but the only difference is we have to set the duration for it. &lt;br /&gt;Caching can be done by page levels or application levels.&lt;br /&gt;&lt;br /&gt;Syntax for page level caching[CODE]&lt;br /&gt;&lt;br /&gt;&lt;% outputcache duration="10" valuebyParam="none" /&gt;[CODE]&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-6302784148313748689?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/6302784148313748689/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=6302784148313748689' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/6302784148313748689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/6302784148313748689'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/02/statemanagement-using-cnet.html' title='Statemanagement Using C#.Net'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-4800707574238128104</id><published>2008-02-23T02:53:00.001-08:00</published><updated>2008-02-23T03:26:39.577-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><title type='text'>Javascript Debugger Enabling</title><content type='html'>Step 1. Disable Script Debugger - Make this option unchecked in the IE.&lt;br /&gt;function someFunct()&lt;br /&gt;{&lt;br /&gt;Javascript:debugger;alert(window.name)&lt;br /&gt;alert("Mahesh");&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-4800707574238128104?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/4800707574238128104/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=4800707574238128104' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/4800707574238128104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/4800707574238128104'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/02/javascript-debugger-enabling.html' title='Javascript Debugger Enabling'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-321033107139362224</id><published>2008-02-23T02:47:00.000-08:00</published><updated>2008-02-23T03:26:58.397-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><title type='text'>How to Set Screen width for any kind of resolution?</title><content type='html'>&lt;script language="Javascript"&gt;&lt;br /&gt;function resolution()&lt;br /&gt;{&lt;br /&gt;UserWidth = window.screen.availWidth&lt;br /&gt;UserHeight = window.screen.availheightwindow.resizeTo(UserWidth, UserHeight)window.moveTo(0,0)&lt;br /&gt;}&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;/head&gt;&lt;br /&gt;2) Call the function on load event of body.&lt;br /&gt;&lt;body onload="”resolution();”"&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-321033107139362224?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/321033107139362224/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=321033107139362224' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/321033107139362224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/321033107139362224'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/02/how-to-set-screen-width-for-any-kind-of.html' title='How to Set Screen width for any kind of resolution?'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-1031324934747223549</id><published>2008-01-26T06:04:00.000-08:00</published><updated>2008-02-23T03:27:48.265-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>What are the different types of assemblies available and their purpose?</title><content type='html'>&lt;p&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Private, Public/shared and Satellite Assemblies. &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;Private Assemblies :&lt;/strong&gt; Assembly used within an application is known as private assemblies &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;Public/shared Assemblies :&lt;/strong&gt; Assembly which can be shared across applicaiton is known as shared assemblies. Strong Name has to be created to create a shared assembly. This can be done using SN.EXE. The same has to be registered using GACUtil.exe (Global Assembly Cache). &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;Satellite Assemblies :&lt;/strong&gt; These assemblies contain resource files pertaining to a locale (Culture+Language). These assemblies are used in deploying an Gloabl applicaiton for different languages.&lt;/span&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-1031324934747223549?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/1031324934747223549/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=1031324934747223549' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/1031324934747223549'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/1031324934747223549'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/01/what-are-different-types-of-assemblies.html' title='What are the different types of assemblies available and their purpose?'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-5637629421826681631</id><published>2008-01-26T05:05:00.000-08:00</published><updated>2008-01-26T05:59:09.455-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>OOPS Interview Questions:</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;1. What is Class?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;A user-defined data structure that groups properties and methods. Class doesn’t occupy memory.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;2. What is Object?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Instance of Class is called object. An object is created in memory using keyword “new”.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;3. Difference between Struct and Class?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;i) Struct are Value type and are stored on stack, while Class are Reference type and are stored on heap&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;ii) Struct “do not support” inheritance, while class supports inheritance. However struct can implements interface&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;iii) Struct should be used when you want to use a small data structure, while Class is better choice for complex data structure.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;4. What is Encapsulation?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Wrapping up of data and function into a single unit is known as Encapsulation.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;5. What is Properties?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Attribute of object is called properties. Eg1:- A car has color as property.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;eg.: private string m_Color;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;public string Color&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{ &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;get&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;return m_Color;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;set&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;m_Color = value;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Car Maruti = new Car();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Maruti.Color= “White”;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Console.Write(Maruti.Color);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;6. Use of "this" Keyword?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Each object has a reference “this” which points to itself. Two uses of this keyword are 1)Can be used to refer to the current object, 2)It can also be used by one constructor to explicitly invoke another constructor of the same class.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;7. What is Constructor?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;- A constructor is a special method whose task is to initialize the object of its class&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;- It is special because its name is the same as the class name.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;- They do not have return types, not even void and therefore they cannot return values.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;- They cannot be inherited, though a derived class can call the base class constructor&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;- Constructor is invoked whenever an object of its associated class is created&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Note: There is always atleast one constructor in every class. If you do not write a constructor, C# automatically provides one for you, this is called default constructor. Eg: class A, default constructor is A().&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;8. What is Static Members of the class?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;-Static members belong to the whole class rather than to individual object&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;-Static members are accessed with the name of class rather than reference to objects.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Eg:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;class Test&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;public int rollNo;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;public int mathsMarks;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;public static int totalMathMarks;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;class TestDemo&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;public static void main()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Test stud1 = new Test();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;stud1.rollNo = 1;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;stud1.mathsMarks = 40;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;stud2.rollNo = 2;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;stud2.mathsMarks = 43;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Test.totalMathsMarks = stud1.mathsMarks + stud2.mathsMarks;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;9. What is Static Method of the class?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Methods that you can call directly without first creating an instance of a class. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Eg: Main() Method, Console.WriteLine()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;10. what is Destructor?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;A destructor is just opposite to constructor. It has same as the class name, but with prefix ~ (tilde). They do not have return types, not even void and therefore they cannot return values.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;11. What is Garbage Collection?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Garbage collection is the mechanism that reclaims the memory resources of an object when it is no longer referenced by a variable.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;.Net Runtime performs automatically performs garbage collection, however you can force the garbage collection to run at a certain point in your code by calling System.GC.Collect()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;12. Use of Enumeration?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Enumeration improves code readability. It also helps in avoiding typing mistake.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;13. Concept of Heap and Stack:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;The Program Instruction and Global and Static variables are stored in a region known as permanent storage area and the local variables are stored in another area called stack. The memory space located between these two regions is available for dynamic memory allocation during execution of program. This free memory region is called heap. The size of heap keeps on changing when program is executed due to creation and death of variables that are local to functions and blocks. Therefore, it is possible to encounter memory “overflow” during dynamic allocation process.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;14. What is Value Type and Reference Type?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;A variable is value type or reference type is solely determined by its data type.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Eg: int, float, char, decimal, bool, decimal, struct, etc are value types, &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;object type such as class, String, Array, etc are reference type.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;15. what is Boxing and Un-Boxing?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Boxing: means converting value-type to reference-type.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Eg:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;int I = 20;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;string s = I.ToSting(); &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;UnBoxing: means converting reference-type to value-type. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Eg:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;int I = 20;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;string s = I.ToString(); //Box the int&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;int J = Convert.ToInt32(s); //UnBox it back to an int.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Note: Performance Overheads due to boxing and unboxing as the boxing makes a copy of value type from stack and place it inside an object of type System.Object in the heap.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;16. What is Inheritance?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;The process of sub-classing a class to extend its functionality is called Inheritance.It provides idea of reusability.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;17. What are Sealed Classes in C#?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;The sealed modifier is used to prevent derivation from a class. A compile-time error occurs if a sealed class is specified as the base class of another class. (A sealed class cannot also be an abstract class) &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;18. Can you prevent your class from being inherited by another class?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Yes. The keyword “sealed” will prevent the class from being inherited.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;19. Can you allow a class to be inherited, but prevent the method from being over-ridden?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Yes. Just leave the class public and make the method sealed. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;20. List of Facts in Inheritance?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;- Multiple inheritance of classes is not allowed in C#.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;- In C# you can implements more than one interface, thus multiple inheritance is achieved through interface.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;- The Object class defined in the System namespace is implicitly the ultimate base class of all the classes in C# (and the .NET framework) &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;- Structures (struct) in C# does not support inheritance, it can only implements interfaces.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;21. What is Polymorphism?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Polymorphism means same operation may behave differently on different classes.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Eg:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Method Overloading is an example of Compile Time Polymorphism.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Method Overriding is an example of Run Time Polymorphism&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;22. How many types of Access Modifiers?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;1) Public – Allows the members to be globally accessible&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;2) Private – Limits the member’s access to only the containing &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;3) Protected – Limits the member’s access to the containing type and all classes derived from the containing type&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;4) Internal – Limits the member’s access to within the current project&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;23. What is Method Overloading?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Method with same name but with different arguments is called method overloading. Method Overloading forms compile-time polymorphism.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Eg. class A1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;void hello()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{ &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Console.WriteLine(“Hello”);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;void hello(string s)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{ &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Console.WriteLine(“Hello {0}”,s); &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;24. What is Method Overriding?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Method overriding occurs when child class declares a method that has the same type arguments as a method declared by one of its superclass. Method overriding forms Run-time polymorphism.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Eg. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Class parent&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{ &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;virtual void hello() &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{ &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Console.WriteLine(“Hello from Parent”); &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;br /&gt;Class child : parent&lt;br /&gt;{ &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;override void hello() &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{ &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Console.WriteLine(“Hello from Child”); &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;br /&gt;static void main()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;parent objParent = new child();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;objParent.hello();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;br /&gt;//Output&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Hello from Child.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;25. What is Virtual Method?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;By declaring base class function as virtual, we allow the function to be overridden in any of derived class.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Eg:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Class parent&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;virtual void hello()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{ &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Console.WriteLine(“Hello from Parent”); &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Class child : parent&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;override void hello()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{ Console.WriteLine(“Hello from Child”); &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;static void main()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;parent objParent = new child();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;objParent.hello();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;//Output&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Hello from Child.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;&lt;strong&gt;26. What is Interface?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;- Interface states “what” to do, rather than “how” to do.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;- An interface defines only the members that will be made available by an implementing object. The definition of the interface states nothing about the implementation of the members, only the parameters they take and the types of values they will return. Implementation of an interface is left entirely to the implementing class. It is possible, therefore, for different objects to provide dramatically different implementations of the same members.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;Eg. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;public interface IDrivable&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;void GoForward(int Speed);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;public class Truck : IDrivable&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;public void GoForward(int Speed)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;// Implementation omitted&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;public class Aircraft : IDrivable&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;public void GoForward(int Speed)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;// Implementation omitted&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;public class Train : IDrivable&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;public void GoForward(int Speed)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;// Implementation omitted&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;&lt;strong&gt;27. Difference between Interface and Abstract Class?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;Multiple inheritance:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;A class may implement several interfaces. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;A class may extend only one abstract class. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;Default implementation:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;An interface cannot provide any code at all, much less default code.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;An abstract class can provide complete code, default code, and/or just stubs that have to be overridden.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;Third party convenience:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;An interface implementation may be added to any existing third party class. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;A third party class must be rewritten to extend only from the abstract class.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-5637629421826681631?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/5637629421826681631/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=5637629421826681631' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/5637629421826681631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/5637629421826681631'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/01/oops-interview-questions.html' title='OOPS Interview Questions:'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-41273232738583299</id><published>2008-01-23T01:31:00.000-08:00</published><updated>2008-01-23T01:36:18.870-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>Types of Multitasking</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;"&gt;There are two types of multitasking:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;1. Process Based:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;                 -  Process-based multitasking handles the concurrent execution of programs.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;                     &lt;em&gt;eg.:running word processor the same time you are browsing the net.&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;2. Thread Based&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;                 -  Thread-based multitasking deals with the concurrent execution of pieces of the same program.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;                     &lt;em&gt;eg.: A text editor can be formatting text at the same time that it is printing.&lt;/em&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-41273232738583299?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/41273232738583299/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=41273232738583299' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/41273232738583299'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/41273232738583299'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/01/types-of-multitasking.html' title='Types of Multitasking'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-777880784968804988</id><published>2008-01-20T01:44:00.000-08:00</published><updated>2008-01-20T01:45:38.418-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>What is reflection?</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;"&gt;Reflection is the mechanism of discovering class information solely at run time&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-777880784968804988?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/777880784968804988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=777880784968804988' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/777880784968804988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/777880784968804988'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/01/what-is-reflection.html' title='What is reflection?'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-2607601646844502868</id><published>2008-01-20T01:39:00.000-08:00</published><updated>2008-01-20T01:45:38.418-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>What’s the use of SmartNavigation property?</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;"&gt;Its a feature provided by ASP .NET to prevent the flickering and the redrawing when the page is posted back. Gets or sets a value indicating whether smart navigation is enabled.&lt;/span&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;VB: Public Property SmartNavigation As Boolean&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt;C#: Public bool SmartNavigation {get; set;}&lt;/em&gt; &lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-2607601646844502868?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/2607601646844502868/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=2607601646844502868' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/2607601646844502868'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/2607601646844502868'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/01/whats-use-of-smartnavigation-property.html' title='What’s the use of SmartNavigation property?'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-8323816178960956851</id><published>2008-01-20T01:33:00.000-08:00</published><updated>2008-01-20T01:36:51.875-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>What is concept of Boxing and Unboxing?</title><content type='html'>&lt;p&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Boxing and unboxing is a essential concept in. NET’s type system. With Boxing and unboxing one can link between value-types and reference-types by allowing any value of a value-type to be converted to and from type object. &lt;/span&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Boxing and unboxing enables a unified view of the type system wherein a value of any type can ultimately be treated as an object.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Converting a value type to reference type is called Boxing. Unboxing is the opposite operation and is an explicit operation.&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-8323816178960956851?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/8323816178960956851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=8323816178960956851' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8323816178960956851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8323816178960956851'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/01/what-is-concept-of-boxing-and-unboxing.html' title='What is concept of Boxing and Unboxing?'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-6058780764397971388</id><published>2008-01-20T00:18:00.000-08:00</published><updated>2008-01-20T00:21:59.582-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>Various State Management in a Page:</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;"&gt;There are Nine ways by which we can Maintain State of Page:&lt;br /&gt;&lt;br /&gt;1. Application&lt;br /&gt;2. Cookies&lt;br /&gt;3. Hidden Fields&lt;br /&gt;4. Query String&lt;br /&gt;5. Session&lt;br /&gt;6. Cache&lt;br /&gt;7. Context&lt;br /&gt;8. ViewState&lt;br /&gt;9. Web.Config and Machine.Config&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-6058780764397971388?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/6058780764397971388/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=6058780764397971388' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/6058780764397971388'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/6058780764397971388'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/01/various-state-management-in-page.html' title='Various State Management in a Page:'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-2295078746265410308</id><published>2008-01-20T00:15:00.000-08:00</published><updated>2008-01-20T00:17:55.808-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Keys Concept in DBMS.</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;"&gt;1) PRIMARY KEY:-A primary key is a field that uniquely identifies each record in a table. As it uniquely identify each entity, it cannot contain null value and duplicate value.&lt;em&gt;eg:-Consider the customer table, which has field :customer_number, customer_socialsecurity_number, and customer_address.here customer_number of each entity in customer table is distinct so customer-number can be a primary key of customer-table.&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;2) SUPER KEY :- If we add additional attributes to a primary key, the resulting combination would still uniquely identify an instance of the entity set. Such augmented keys are called superkey.A primary key is therefore a minimum superkey.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;3) CANDIDATE KEY:-A nominee's for primary key field are know as candidate key.&lt;em&gt;eg:-From above example of customer table, customer_socialsecurity_number is candidate key as it has all characteristics of primary key.&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;4) ALTERNATE KEY:-A candidate key that is not the primary key is called an Alternate key.eg:- In above example, customer_socialsecurity_number is a candidate key but not a primary key so it can be considered as alternate key.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;5) COMPOSITE KEY:- Creating more than one primary key are jointly known as composite key.&lt;em&gt;eg:-In above example, if customer_number and customer_socialsecurity_number are made primary key than they will be jointly known as composite key.&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;6) FOREIGN KEY:- Foreign key is a primary key of master table, which is reference in the current table, so it is known as foreign key in the current table. A foreign key is one or more columns whose value must exist in the primary key of another table.&lt;em&gt;eg:-Consider two tables emp(contains employees description) and emp_edu(contains details of employee's education), so emp_id which is primary key in emp table will be referred as foreign key in emp_edu table.&lt;/em&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-2295078746265410308?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/2295078746265410308/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=2295078746265410308' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/2295078746265410308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/2295078746265410308'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/01/keys-concept-in-dbms_20.html' title='Keys Concept in DBMS.'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-8213118017607388963</id><published>2008-01-18T04:19:00.001-08:00</published><updated>2008-01-20T00:21:34.563-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>What is viewstate?</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;"&gt;View State is the built in structure for automatically retain the values amoung multiple requests for the same page. Viewstate is internally maintained in the HiddenField on the page.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-8213118017607388963?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/8213118017607388963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=8213118017607388963' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8213118017607388963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8213118017607388963'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/01/what-is-viewstate.html' title='What is viewstate?'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-8203819541766720490</id><published>2008-01-17T04:11:00.000-08:00</published><updated>2008-01-20T00:15:28.980-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Define candidate key, alternate key, composite key?</title><content type='html'>&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:85%;"&gt;A &lt;em&gt;candidate key&lt;/em&gt; is one that can identify each row of a table uniquely.Generally a candidate key becomes the primary key of the table. If thetable has more than one candidate key, one of them will become theprimary key, and the rest are called &lt;em&gt;alternate keys.&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;A key formed by combining at least two or more columns is called composite key.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-8203819541766720490?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/8203819541766720490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=8203819541766720490' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8203819541766720490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/8203819541766720490'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/01/define-candidate-key-alternate-key.html' title='Define candidate key, alternate key, composite key?'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-5851628794055759622</id><published>2008-01-17T04:06:00.000-08:00</published><updated>2008-01-20T00:15:28.981-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>What is Canditate Key?</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;color:#000000;"&gt;A table which is having more that one combination of column that could uniqly identify the rows in a table. Each combination is a canditate key.&lt;/span&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:verdana;font-size:78%;color:#000000;"&gt;Eg.  In the supplier table SupplierID, Supplier name are the canditate key but we can pick up only the supplierID as a primary key.&lt;/span&gt;&lt;/em&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-5851628794055759622?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/5851628794055759622/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=5851628794055759622' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/5851628794055759622'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/5851628794055759622'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/01/what-is-canditate-key.html' title='What is Canditate Key?'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-998131970402484381.post-9049982775418079368</id><published>2008-01-17T01:21:00.000-08:00</published><updated>2008-01-20T00:12:01.352-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNET'/><title type='text'>Enabling an asynchronous web page</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;"&gt;Step 1. Add the Async="true" attribute the page directive:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;em&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;em&gt;            eg: Page Language="C#" Async="true" AutoEventWireup="true" &lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Step 2. Create events to start and end the asynchronous code that &lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:85%;"&gt;implements &lt;/span&gt;&lt;span style="font-size:85%;"&gt;the &lt;em&gt;System.Web.IHttpAsyncHandler.BeginProcessRequest&lt;/em&gt; and &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;em&gt;System.Web.IHttpAsyncHandler.EndProcessRequest&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;em&gt;eg: IAsyncResult BeginGetAsyncData(Object src, EventArgs args, AsyncCallback cb, &lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Object state)&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{ }&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;void EndGetAsyncData(IAsyncResult ar)&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;{ }&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;Step 3. call the &lt;em&gt;AddOnPreRenderCompleteAsync&lt;/em&gt; method to declare the event handlers:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;em&gt;eg:  BeginEventHandler bh=new BeginEventHandler(this.BeginGetAsyncData);&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;      EndEventHandler eh= new EndEventHandler(this.EndGetAsyncData);&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;      AddOnPreRenderCompleteAsync (bh,eh)&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/998131970402484381-9049982775418079368?l=vkmaheshkumar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vkmaheshkumar.blogspot.com/feeds/9049982775418079368/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=998131970402484381&amp;postID=9049982775418079368' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/9049982775418079368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/998131970402484381/posts/default/9049982775418079368'/><link rel='alternate' type='text/html' href='http://vkmaheshkumar.blogspot.com/2008/01/enabling-asynchronous-web-page.html' title='Enabling an asynchronous web page'/><author><name>Mahesh</name><uri>http://www.blogger.com/profile/00329081109769971376</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/-D54lT7YKnck/TuC3MbCKeqI/AAAAAAAAB_I/Ej9_0PZStjM/s220/Mahesh1.jpg'/></author><thr:total>0</thr:total></entry></feed>
