tag:blogger.com,1999:blog-29044434068720424332024-02-19T04:29:31.655-08:00ChittibabuSoftware or Hardware Depends upon BrainwareAnonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.comBlogger222125tag:blogger.com,1999:blog-2904443406872042433.post-23694151077141457652014-06-11T06:40:00.002-07:002014-06-11T06:40:34.533-07:00Web design and development warangal kazipet and hanamkonda<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="mbl">
<div class="mhl">
<h2 style="text-align: left;">
<a href="http://www.maddysoft.co.in/" rel="nofollow nofollow" target="_blank">www.maddysoft.co.in</a> <div class="separator" style="clear: both; text-align: center;">
<a href="https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xfp1/t1.0-9/72041_181252435234499_4667726_n.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="320" src="https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xfp1/t1.0-9/72041_181252435234499_4667726_n.jpg" width="106" /></a></div>
</h2>
</div>
<div class="mhl">
</div>
<div class="mhl">
We
are a web design company with a passion for anything technical. We
Offer a wide-range of online marketing services so get in touch to see
if we can help you. We are glad to help you. <a href="http://www.maddysoft.co.in/" rel="nofollow nofollow" target="_blank">www.maddysoft.co.in</a></div>
<div class="mhl">
<div class="mvm uiP fsm">
<span class="fwb">Description</span></div>
<div class="mvm uiP fsm">
<span class="fwb"> </span></div>
We
are a web design company with a passion for anything technical. We
Offer a wide-range of online marketing services so get in touch to see
if we can help you. We are glad to help you. Please email
info@maddysoft.co.in or call us. +91-991-259-5591</div>
<div class="mhl">
<div class="mvm uiP fsm">
<span class="fwb">General Information</span></div>
<div class="mvm uiP fsm">
<span class="fwb"> </span></div>
MaddySoft
started as a web design agency in Hanamkonda, Warangal District 2009.
Whether it’s a small 5 page site or a dynamic e-commerce shop, we’ll
help you create an online presence.</div>
</div>
</div>
<div class="blogger-post-footer">Feed from Twitter</div>Anonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.com0tag:blogger.com,1999:blog-2904443406872042433.post-41507974069135488892013-12-14T09:03:00.000-08:002013-12-14T09:03:38.760-08:00sitemap<div dir="ltr" style="text-align: left;" trbidi="on">
<?xml version="1.0" encoding="UTF-8"?><br />
<urlset<br />
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"<br />
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br />
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9<br />
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"><br />
<!-- created with Free Online Sitemap Generator www.xml-sitemaps.com --><br />
<br />
<url><br />
<loc>http://chittimca3.blogspot.in/</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2013/11/general-hr-questions-for-interview.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2013/08/earn-free-mobile-recharge-by-simply.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2013/03/simple-jquery-popup-window-opens-when-page-loads.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2013/02/Create-a-webservice-and-how-to-use-a-webservice-in-aspnet.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2013/01/virtual-keyboard-sample-using-javascript.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2013/01/prime-even-odd-number-sample-programs-using-VBNET.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2013/01/email-validation-from-server-side-using-VBNET.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2012/12/redirect-your-site-to-a-mobile-version-through-JavaScript.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2012/12/Javascript-code-to-redirect-mobile-phoneusers.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2012/12/mobile-redirect-code-using-javascript.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2012/08/software-development-life-cycle-sdlc.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2012/03/redirect-your-website-to-mobile-site.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/10/add-facebook-share-button-in.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/08/differences-between-wcf-and-aspnet-web.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/08/cursors-in-sql-server.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/08/creating-duplicate-table-in-sql-server.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/07/aspnet-split-string-examples.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/07/silverlight-star-rating-control.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/07/installing-windows-virtual-pc-on.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/07/10-csharp-keywords-you-should-be-using.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/07/about-chittibabu-madishetti.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/07/contact-us.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/07/c-coding-standards-and-coding-style.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/07/turn-off-auto-play-for-pen-drive.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/07/dynamically-loading-user-control-on.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/07/how-to-maintain-scroll-position-after.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/07/how-to-refresh-page-conditionally-in.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/07/how-to-change-login-mode-in-sql-server.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/07/load-user-controls-dynamically-in.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/07/bind-gridview-with-array-data-source.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/07/reload-gridview-data-regularly-without.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/07/mssql-server-tips-and-tricks.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/07/jquery-validation-with-regular.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/07/sqlquery-to-delete-all-procedures-and_15.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/07/sqlquery-to-delete-all-procedures-and.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/07/vbnet-and-cnet-comparison.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/07/installing-phpmyadmin-on-windows-and.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/06/aspnet-software-life-cycle-models.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/06/detail-software-development-life-cycle.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/06/aspnet-software-development-models.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/06/read-excel-data-and-import-data-to.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/06/sql-server-database-coding-standards_21.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/06/sql-server-database-coding-standards.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/06/ucertify-fastest-way-to-it.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/06/linq-to-xml-and-linq-to-objects-basic.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/06/sql-query-analyzer-keyboard-shortcuts.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/06/top-100-interview-question-and-short.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/06/understanding-aspnet-mvc-model-view.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/03/aspnet-interview-questions.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/02/about-cookies-where-cookies-stores-what.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/02/earn-upto-rs-9000-pm-with-paisalivecom.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/02/get-mobile-recharge-from-your-1st-day.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/02/creating-wcf-web-service-with-vs2010.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/02/sql-interview-questions-with-answers.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/02/advantages-of-stored-procedures.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/02/difference-between-outer-join-and-inner.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/02/difference-between-aspnet-server.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/02/difference-between-identity.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/02/built-in-functions-system-functions.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/02/built-in-functions-aggregate-functions.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/02/built-in-functions-string-functions.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/01/csharp-interveiw-questions1.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/01/csharp-interveiw-questions.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/01/basic-net-framework-questions.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/01/calulator-using-javascript_27.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/01/difference-between-aspnet-web-services.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/01/net-remoting-interview-questions.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2011/01/visual-studio-2010-ide-features.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/12/ado-dot-net-interview-question.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/11/introduction-to-windows-presentation.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/11/what-is-wpf-architecture.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/11/architecture-of-wpf-windows.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/11/introduction-to-xaml-in-wpf.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/11/wcf-basics_16.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/11/understanding-basics-of-wcf-services.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/11/wcf-binding.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/11/wcf-hosting.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/11/wcf-architecture-with-screen-shot.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/11/wcf-basics.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/11/basic-wcf-concept-and-terminologies.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/11/computer-networking-concepts-and.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/10/net-framework-interview-questions.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/10/oops-interview-questions.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/09/how-to-convert-database-of-sql-server.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/09/khairatabad-ganesh-idol-2010.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/09/ganesh-chaturthi-2010-real-spirit-of.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/09/devinagar-ganesh-youth-association.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/08/get-paid-to-read-and-rate-articles.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/08/configure-outlook-2003-using-gmail.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/08/total-functions-in-sql-server-2005.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/07/sql-server-date-formats.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/07/sql-server-retrieve-current-date-time.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/07/demystifying-sql-server-datetime.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/07/sql-server-2005-cast-convert-date-time.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/07/essential-sql-server-date-time-and.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/06/2010-fifa-world-cup-match-schedule.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/05/what-is-trigger-in-database-what-is-use.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/05/how-does-trigger-work.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/05/what-is-trigger-in-sql-and-why-do-you.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/05/introduction-to-triggers-part-i.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/05/alter-table-using-stored-procedure.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/05/stored-procedures-optimization-tips.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/05/advantages-of-jquery-or-why-jquery.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/05/sql-query-to-list-all-users-or-login.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/05/sql-query-to-find-out-particular-field.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/03/andhra-telangana-pre-history.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/03/telangana-voicestelangana-dhoom.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/03/telangana-poems-telangana-geethalu-jai.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/03/bathukamma-bathukamma-festival_08.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/03/andhra-valasa-paalanlo.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/03/sammakka-saralamma-jatara-medaram.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/03/sri-krishna-committee-on-telangana.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/03/telangana-districts-telangana-districts.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/02/3-tier-architecture.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/02/108-facts-about-telangana-need-and.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/02/aspnet-gridview-control.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2010/02/step-by-step-guide-on-how-to-configure.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/12/backup-your-gmail-emails-to-your-hard.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/11/get-gmail-messages-delivered-on.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/11/free-online-image-and-35-photo-editing.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/10/adding-images-to-tinymce-rich-text.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/10/excellent-free-rich-text-editors.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/10/multiple-page-forms-with-multiview.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/10/9-useful-jquery-calendar-and-date.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/10/ykeyc1be0981cc0aaa61.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/10/how-to-create-custom-forms-using-drupal.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/10/how-do-i-actually-use-analytics-to.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/10/analytics-adwords-and-big-spenders.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/10/tips-and-tools-for-expanding-keywords.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/10/contact-form-in-drupal.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/10/16-website-analytical-tools.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/10/10-promising-free-web-analytics-tools.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/10/promote-and-get-votes-for-chittibabu.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/introducing-aspnet-20-gridview-control.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/earn-money-by-reading-sms-on-your.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/paypal-integration-code-using-aspnet-c.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/paypal-integration-instructions-samples.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/zee-sports-live-channel.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/oh-no-not-again-tv-channel.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/hollywood-live-tv-channel.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/hollywoodlive-live-channel_14.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/hollywoodlive-live-channel.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/theohd-live-channel.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/live-espn-sports-channel.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/live-etv-telugu-channel.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/wrwrestling-live-tv-channel.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/fenix-live-channel.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/watch-tv1-telugu-channel-live.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/watch-live-indian-cricket.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/creating-new-front-page-with-views-and.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/to-add-custom-fields-to-content-type-in.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/create-custom-forms-using-drupal-in-4.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/google-crawling-html-forms-is-harmful.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/good-drupal-image-module.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/how-to-create-photo-gallery-in-drupal.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/configuring-block-in-drupal.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/drupal-image-in-block-on-front-page-of.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/basic-seo-keyword-tips.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/10-reasons-to-use-dotnetnuke-for-new.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/dotnet-nuke-how-to-copy-content-from.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/easy-dotnetnuke-installation-guide.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/dotnetnuke-modules.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/dotnetnuke-themes.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/dotnetnuke-installation.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/smtp-module-in-drupal.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/facebook-connect-for-drupal-module.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/45-new-jquery-techniques-for-users.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/ajaxjavascript-techniques-recently.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/top-10-jquery-examples-with-live-demos.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/25-jquery-tutorials-roundup-with.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/15-best-examples-of-free-jquery-content_04.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/5-sliding-content-techniques-examples_04.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/09/tv-9-news-channel.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/08/10-drupal-modules-you-may-not-know.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/08/adding-newsletters-to-web-site-using.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/08/20-ready-to-use-auto-completion-scripts.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/08/30-animated-tab-based-interface-and.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/08/30-tooltips-scripts-with-javascript.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/08/installing-joomla-15-on-windows-with.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/08/how-to-install-joomla-with-xampp-in-10.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/08/41-of-best-mootools-ajax-examples_1363.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/08/install-joomla-cms-manually.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/08/drupal-seo-by-activating-drupals-clean.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/08/drupal-seo-activate-drupals-clean-urls.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/08/using-drupal-with-microsoft-url-rewrite.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/08/how-to-set-up-google-custom-search-for.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/08/jquery-tools-small-list-of-things-you.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/jquery-zoom-updated-to-evolution.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/50-amazing-jquery-examples.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/crystal-reports-in-aspnet.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/funny-animation.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/install-tricky-drupal-smtp-module-for.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/michael-jackson-remix-with-chitti-babu.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/i-news-channel.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/ndtv-live.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/m-tv-channel.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/timesnow-channel.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/sony-live.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/zee-telugu-tv-live.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/engagement-day-for-sania-mirza.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/watch-sakshi-online-tv.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/client-side-script-debugging-in-aspnet.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/refactor-2008.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/firefox-vuneralbilities.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/testing-e-mail-functionality.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/michael-jackson-farewell-video.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/michael-jackson-funeral-july-7-2009-los.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/michael-jackson-funeral-video.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/watch-michael-jackson-memorial-service.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/michael-jacksons-funeral-live.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/aspnet-mvc-10.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/how-to-create-backup-of-drupal_08.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/how-to-upgrade-your-drupal-application.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/how-to-create-backup-of-drupal.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/search-engine-friendly-urls.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/access-control-in-drupal-cms.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/managing-users-in-drupal-detailed.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/how-to-change-default-drupal-theme.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/how-to-installenable-drupal-modules.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
<url><br />
<loc>http://chittimca3.blogspot.in/2009/07/configuration.html</loc><br />
<lastmod>2013-12-08T10:39:59+00:00</lastmod><br />
</url><br />
</urlset></div>
<div class="blogger-post-footer">Feed from Twitter</div>Anonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.com0tag:blogger.com,1999:blog-2904443406872042433.post-59760911405575120332011-07-28T10:52:00.001-07:002013-12-08T02:39:59.929-08:00About Chittibabu Madishetti<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjScjkC4lX7TmzqEUTsK5LdfbZInHY26mx27yaCunu8G7BMGc0LQdXCrePMXWzR4jyQADlqaVsrlwXbRNpBsYbpQQzmNNiaeksbpkzXBwwiaVJhnK17tTLJNPWvb-2PtJpIfgqv2-MUlpw/s1600/chitti.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjScjkC4lX7TmzqEUTsK5LdfbZInHY26mx27yaCunu8G7BMGc0LQdXCrePMXWzR4jyQADlqaVsrlwXbRNpBsYbpQQzmNNiaeksbpkzXBwwiaVJhnK17tTLJNPWvb-2PtJpIfgqv2-MUlpw/s320/chitti.jpg" width="252" /></a></div>
<br />
I am <b>Chittibabu Madishetti</b>, I am from <b>Warangal, India.</b> I completed Master of computer applicaions in Osmania University. I passed out 2008 batch. Working as a Software Engineer in a concern. Having 4+ years of work experience in Asp.net web application. Working in 2 tier & 3 tier architecture applications<br />
<br />
I am fond of trying new things that are newly released. Among my latest applications, I have tried, Visual Studio 2010, Windows 7, Windows Azure etc and produced some really cool articles for my followers.<br />
<br />
Some thought and Knowledge Sharing of <b>Microsoft.NET Technologies, SQL Server, C#, AJAX, SQL, VB.net, .Net Framework, WCF, WPF, WWF, WSS 3.0, MOSS 2007, OOPs Concepts, SQL Server</b>, Programming and all the related topics, <br />
this links to some other blogs as well as knoledgebase which may help other developers.<br />
<br />
And i Love to share my knowledge with all and to make lots of friends.<br />
<br />
<br /></div>
<div class="blogger-post-footer">Feed from Twitter</div>Anonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.com2tag:blogger.com,1999:blog-2904443406872042433.post-43838051440784338492013-11-11T06:25:00.003-08:002013-11-11T06:26:52.638-08:00General HR questions for Interview process<div dir="ltr" style="text-align: left;" trbidi="on">
<h3 class="post-title entry-title" itemprop="name">
General HR questions
</h3>
<div class="post-header">
<div class="post-header-line-1">
</div>
</div>
<br />
<div class="post-body entry-content" id="post-body-6699415664415956798" itemprop="description articleBody">
1. Tell about yourself and job<br />
2. Tell about current project<br />
3. What are sequence diagrams, collaboration diagrams and difference between them<br />
4. What is your role in the current project and what kinds of responsibilites you are handling<br />
5. What is the team size and how do you ensure quality of code<br />
6. What is the S/W model used in the project. What are the optimization techniques used. Give examples.<br />
7. What are the SDLC phases you have invloved<br />
8. About educational background<br />
9. About work experience<br />
10. About area of work<br />
11.
Current salary, why are looking for a change and about notice period
About company strength, verticals, clients, domains etc.<br />
12. Rate yourself in different areas of .NET and SQL <br />
13. About procsses followed<br />
14. Notice period<br />
15. Appraisal process<br />
16. About effort estimation<br />
17. Whether salary negotiable<br />
18. Why are looking for a change<br />
19. How fo you appraise a person<br />
20. Do you think CMM process takes time<br />
21. About peer reviews<br />
22. About educational background, work experience, and area of work </div>
</div>
<div class="blogger-post-footer">Feed from Twitter</div>Anonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.com0tag:blogger.com,1999:blog-2904443406872042433.post-20080434056619442282013-08-14T06:58:00.001-07:002013-08-14T06:58:44.106-07:00Earn Free Mobile Recharge By Simply Playing games<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.amulyam.in/images/amulyam_logo.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://www.amulyam.in/images/amulyam_logo.png" /></a></div>
<br />
Amulyam is a very good experience for those persons who r interested in earning free recharge and while playing various contests and games we get learn new things,and also fills my pocket,this is a very innovative initiative,i would it to as many as friends possible.though i would suggest to add some moregames and contests to the site,which would be really good.<br />
<br />
Create signup using the below link and start earning today..<br />
<a href="http://www.amulyammail.com/amulyamCo.do?cafp=showNL&utm_campaign=blogPromotion14Aug13&utm_email=chittimca3@gmail.com&utm_location=signup&utm_url=http%3A%2F%2Fwww.amulyam.in%2Fsignup.do%3Fid%3D7c319151-295e-45d2-8caa-0fae4602b988%26utm_source%3Dgmail%26utm_campaign%3DblogPromotion14Aug13%26utm_medium%3Demail" style="background-color: white; color: #1155cc; font-family: arial, sans-serif; font-size: 13px;" target="_blank">http://www.amulyam.in/signup.<wbr></wbr>do?id=7c319151-295e-45d2-8caa-<wbr></wbr>0fae4602b988</a><br />
<br />
<br /></div>
<div class="blogger-post-footer">Feed from Twitter</div>Anonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.com0tag:blogger.com,1999:blog-2904443406872042433.post-39514283391011788692013-03-11T04:48:00.000-07:002013-03-11T04:48:19.376-07:00Simple jquery popup window opens when page load<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"><html xmlns="http://www.w3.org/1999/xhtml"></span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"><head></span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"><title>Simple JQuery Modal Window from Queness</title></span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"><script type="text/javascript"</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script></span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"><script type="text/javascript"></span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">$(document).ready(function() {</span><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">var id = '#dialog';</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">//Get the screen height and width</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">var maskHeight = $(document).height();</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">var maskWidth = $(window).width();</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">//Set heigth and width to mask to fill up the whole screen</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">$('#mask').css({'width':maskWidth,'height':maskHeight});</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">//transition effect</span><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">$('#mask').fadeIn(1000);</span><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">$('#mask').fadeTo("slow",0.8);</span><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">//Get the window height and width</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">var winH = $(window).height();</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">var winW = $(window).width();</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"> </span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">//Set the popup window to center</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">$(id).css('top', winH/2-$(id).height()/2);</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">$(id).css('left', winW/2-$(id).width()/2);</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">//transition effect</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">$(id).fadeIn(2000); </span><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">//if close button is clicked</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">$('.window .close').click(function (e) {</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">//Cancel the link behavior</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">e.preventDefault();</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">$('#mask').hide();</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">$('.window').hide();</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">});</span><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">//if mask is clicked</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">$('#mask').click(function () {</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">$(this).hide();</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">$('.window').hide();</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">});</span><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span class="Apple-tab-span" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; white-space: pre;"> </span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">});</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"></script></span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"><style type="text/css"></span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">body {</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">font-family:verdana;</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">font-size:15px;</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">}</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">a {color:#333; text-decoration:none}</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">a:hover {color:#ccc; text-decoration:none}</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">#mask {</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"> position:absolute;</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"> left:0;</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"> top:0;</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"> z-index:9000;</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"> background-color:#000;</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"> display:none;</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">} </span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">#boxes .window {</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"> position:absolute;</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"> left:0;</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"> top:0;</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"> width:440px;</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"> height:200px;</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"> display:none;</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"> z-index:9999;</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"> padding:20px;</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">}</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">#boxes #dialog {</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"> width:375px;</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"> height:203px;</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"> padding:10px;</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"> background-color:#ffffff;</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">}</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"></style></span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"></head><body></span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"><h2><a href="http://www.queness.com/">Simple jQuery Modal Window Examples from</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">Queness WebBlog</a></h2></span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"><div style="font-size: 10px; color: rgb(204, 204, 204);">Except where otherwise</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">noted, content on this site is licensed under a Creative Commons Attribution 3.0</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">License.</div></span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"><div id="boxes"></span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"><div style="top: 199.5px; left: 551.5px; display: none;" id="dialog"</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">class="window"></span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">Simple Modal Window |</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"><a href="#" class="close">Close it</a></span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"></div></span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"><!-- Mask to cover the whole screen --></span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"><div style="width: 1478px; height: 602px; display: none; opacity: 0.8;"</span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">id="mask"></div></span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"></div></span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"></body></span><br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"></html></span></div>
<div class="blogger-post-footer">Feed from Twitter</div>Anonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.com0Secunderabad, Andhra Pradesh, India17.4399295 78.498274117.1963545 78.176924100000008 17.6835045 78.8196241tag:blogger.com,1999:blog-2904443406872042433.post-12643913645551952172013-02-11T07:04:00.000-08:002013-02-11T07:04:45.571-08:00Create a webservice and how to use a webservice in asp.net<div dir="ltr" style="text-align: left;" trbidi="on">
<b><u><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Introduction:</span></u></b><br />
<br />
<div class="MsoNormal" style="margin-bottom: 12pt;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> <b><u><br />
</u></b>Here I will explain what webservice is, uses of webservice and
how to create webservice and how to consume webservice in asp.net.<br />
<br />
<b><u>Description:</u></b></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Today
I am writing article to explain about webservices. First we will see
what is webservice is and uses of webservice and then we will see how to
use webservice in our applications. </span></div>
<a href="" name="more"></a><br />
<div class="MsoNormal">
<b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">What is Web Service?</span></b></div>
<div class="MsoNormal">
<br />
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;">Web
Service is an application that is designed to interact directly with
other applications over the internet. In simple sense, Web Services are
means for interacting with objects over the Internet.</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;"> <span class="clsblurb">The
Web serivce consumers are able to invoke method calls on remote objects
by using SOAP and HTTP over the Web. WebService is language independent
and </span></span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%;">Web Services communicate by using standard web protocols and data formats, such as</span></div>
<ul type="disc">
<li class="MsoNormal"><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">HTTP</span></li>
<li class="MsoNormal"><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">XML</span></li>
<li class="MsoNormal"><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">SOAP</span></li>
</ul>
<div class="MsoNormal" style="margin-bottom: 0in;">
<b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Advantages of Web Service</span></b></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"><br />
Web Service messages are formatted as XML, a standard way for
communication between two incompatible system. And this message is sent
via HTTP, so that they can reach to any machine on the internet without
being blocked by firewall.</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<br />
</div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Examples for Web Service</span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br />
</div>
<div class="MsoNormal">
<b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Weather Reporting:</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> You can use Weather Reporting web service to display weather information in your personal website.</span></div>
<div class="MsoNormal">
<br />
</div>
<div class="MsoNormal">
<b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Stock Quote:</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> You can display latest update of Share market with Stock Quote on your web site.</span></div>
<div class="MsoNormal">
<br />
</div>
<div class="MsoNormal">
<b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">News Headline:</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> You can display latest news update by using News Headline Web Service in your website.</span></div>
<div class="MsoNormal">
<br />
</div>
<div class="MsoNormal">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">In
summary you can any use any web service which is available to use. You
can make your own web service and let others use it. Example you can
make Free SMS Sending Service with footer with your advertisement, so
whosoever use this service indirectly advertise your company... You can
apply your ideas in N no. of ways to take advantage of it.</span></div>
<div class="MsoNormal">
<br />
</div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Frequently used word with web services</span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br />
</div>
<div class="MsoNormal">
<b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">What is SOAP?</span></b></div>
<div class="MsoNormal">
<br />
</div>
<div class="MsoNormal">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">SOAP
(simple object access protocol) is a remote function calls that invokes
method and execute them on Remote machine and translate the object
communication into XML format. In short, SOAP are way by which method
calls are translate into XML format and sent via HTTP.</span></div>
<div class="MsoNormal">
<br />
</div>
<div class="MsoNormal">
<b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">What is WSDL?</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> </span><br />
<br />
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">WSDL
stands for Web Service Description Language, a standard by which a web
service can tell clients what messages it accepts and which results it
will return.</span></div>
<div class="MsoNormal">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">WSDL
contains every detail regarding using web service and Method and
Properties provided by web service and URLs from which those methods can
be accessed and Data Types used.</span></div>
<div class="MsoNormal">
<br />
</div>
<div class="MsoNormal">
<b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">What is UDDI?</span></b></div>
<div class="MsoNormal">
<br />
</div>
<div class="MsoNormal">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">UDDI allows you to find web services by connecting to a directory.</span></div>
<div class="MsoNormal">
<br />
</div>
<div class="MsoNormal">
<b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">What is Discovery or .Disco Files?</span></b></div>
<div class="MsoNormal">
<br />
</div>
<div class="MsoNormal">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Discovery
files are used to group common services together on a web server.
Discovery files .Disco and .VsDisco are XML based files that contains
link in the form of URLs to resources that provides discovery
information for a web service. Disco File contains URL for the WSDL, URL
for the documentation and URL to which SOAP messages should be sent.</span></div>
<div class="MsoNormal">
<br />
</div>
<div class="MsoNormal">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Before start creating web service first create one table in your database and give name <b>UserInformation</b> in my code I am using same name and enter some dummy data for our testing purpose</span></div>
<div class="MsoNormal">
<br />
</div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: medium none;"><tbody>
<tr> <td style="background: none repeat scroll 0% 0% rgb(227, 108, 10); border: 1pt solid windowtext; padding: 0in 5.4pt; width: 159.6pt;" valign="top" width="213"><div class="MsoNormal">
<b><span style="color: white; font-family: "Verdana","sans-serif"; font-size: 10pt;">Column Name</span></b></div>
</td> <td style="background: none repeat scroll 0% 0% rgb(227, 108, 10); border: 1pt solid windowtext; padding: 0in 5.4pt; width: 159.6pt;" valign="top" width="213"><div class="MsoNormal">
<b><span style="color: white; font-family: "Verdana","sans-serif"; font-size: 10pt;">Data Type</span></b></div>
</td> <td style="background: none repeat scroll 0% 0% rgb(227, 108, 10); border: 1pt solid windowtext; padding: 0in 5.4pt; width: 159.6pt;" valign="top" width="213"><div class="MsoNormal">
<b><span style="color: white; font-family: "Verdana","sans-serif"; font-size: 10pt;">Allow Nulls</span></b></div>
</td> </tr>
<tr> <td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 159.6pt;" valign="top" width="213"><div class="MsoNormal">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">UserId</span></div>
</td> <td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 159.6pt;" valign="top" width="213"><div class="MsoNormal">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Int(Set Identity=true)</span></div>
</td> <td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 159.6pt;" valign="top" width="213"><div class="MsoNormal">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">No</span></div>
</td> </tr>
<tr> <td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 159.6pt;" valign="top" width="213"><div class="MsoNormal">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">UserName</span></div>
</td> <td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 159.6pt;" valign="top" width="213"><div class="MsoNormal">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Varchar(50)</span></div>
</td> <td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 159.6pt;" valign="top" width="213"><div class="MsoNormal">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Yes</span></div>
</td> </tr>
<tr> <td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 159.6pt;" valign="top" width="213"><div class="MsoNormal">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">FirstName</span></div>
</td> <td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 159.6pt;" valign="top" width="213"><div class="MsoNormal">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Varchar(50)</span></div>
</td> <td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 159.6pt;" valign="top" width="213"><div class="MsoNormal">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Yes</span></div>
</td> </tr>
<tr> <td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 159.6pt;" valign="top" width="213"><div class="MsoNormal">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">LastName</span></div>
</td> <td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 159.6pt;" valign="top" width="213"><div class="MsoNormal">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Varchar(50)</span></div>
</td> <td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 159.6pt;" valign="top" width="213"><div class="MsoNormal">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Yes</span></div>
</td> </tr>
<tr> <td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 159.6pt;" valign="top" width="213"><div class="MsoNormal">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Location</span></div>
</td> <td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 159.6pt;" valign="top" width="213"><div class="MsoNormal">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Varchar(50)</span></div>
</td> <td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 159.6pt;" valign="top" width="213"><div class="MsoNormal">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Yes</span></div>
</td> </tr>
</tbody></table>
<div class="MsoNormal" style="margin-bottom: 0in;">
<br />
</div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Now we will see how to create new web service application in asp.net</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<br />
</div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Open visual studio ---> </span><span style="font-family: Wingdings; font-size: 10pt;"></span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> Select <b>File</b> ---> </span><span style="font-family: Wingdings; font-size: 10pt;"></span><b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">New</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> ---> </span><span style="font-family: Wingdings; font-size: 10pt;"></span><b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Web Site</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> ---></span><span style="font-family: Wingdings; font-size: 10pt;"></span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> select <b>ASP.NET Web Service</b></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<br />
</div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="border: 1pt dashed brown;"><tbody>
<tr> <td style="border: medium none; padding: 0.75pt;"><div class="MsoNormal" style="margin-bottom: 0in;">
<a href="http://4.bp.blogspot.com/-X3aVhFmpCGE/TdKg8c-1PTI/AAAAAAAAAhU/CNK6ludf_1Y/s1600/SelectWebservice.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-X3aVhFmpCGE/TdKg8c-1PTI/AAAAAAAAAhU/CNK6ludf_1Y/s1600/SelectWebservice.png" /></a><br />
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"></span></div>
</td> <td style="border: medium none; padding: 0.75pt;"><br />
</td> </tr>
</tbody></table>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Now our new web service ready our webservice website like this</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<br />
</div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="border: 1pt dashed brown;"><tbody>
<tr> <td style="border: medium none; padding: 0.75pt;"><div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-1PSIdBJT89I/TdKhIu3KEYI/AAAAAAAAAhY/7GjqcXEfmOc/s1600/WebServiceSite.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-1PSIdBJT89I/TdKhIu3KEYI/AAAAAAAAAhY/7GjqcXEfmOc/s1600/WebServiceSite.jpg" /></a></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"><br />
</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"></span></div>
</td> <td style="border: medium none; padding: 0.75pt;"><br />
</td> </tr>
</tbody></table>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Now open your <b>Service.cs</b> file in web service website to write the code to get the user details from database</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<br />
</div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Before writing the WebMethod in <b>Service.cs </b>first add following namespaces</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<br />
</div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="border: 1pt dashed brown;"><tbody>
<tr> <td style="border: medium none; padding: 0.75pt;"><br />
</td> <td style="border: medium none; padding: 0.75pt;"><div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">using</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> System.Xml;</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">using</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> System.Configuration;</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">using</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> System.Data;</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">using</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> System.Data.SqlClient;</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"></span></div>
</td> </tr>
</tbody></table>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">After adding namespaces write the following method </span><b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">GetUserDetails</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> in <b>Service.cs </b>page</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<br />
</div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="border: 1pt dashed brown;"><tbody>
<tr> <td style="border: medium none; padding: 0.75pt;"><div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">[<span style="color: #2b91af;">WebMethod</span>]</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">public</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> <span style="color: #2b91af;">XmlElement</span> GetUserDetails(<span style="color: blue;">string</span> userName)</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">{</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: #2b91af; font-family: "Verdana","sans-serif"; font-size: 10pt;">SqlConnection</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> con = <span style="color: blue;">new</span> <span style="color: #2b91af;">SqlConnection</span>(<span style="color: #2b91af;">ConfigurationManager</span>.ConnectionStrings[<span style="color: #a31515;">"dbconnection"</span>].ToString());</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">con.Open();</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: #2b91af; font-family: "Verdana","sans-serif"; font-size: 10pt;">SqlCommand</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> cmd = <span style="color: blue;">new</span> <span style="color: #2b91af;">SqlCommand</span>(<span style="color: #a31515;">"select * from UserInformation where UserName like @userName+'%'"</span>, con);</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">cmd.Parameters.AddWithValue(<span style="color: #a31515;">"@userName"</span>, userName);</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">cmd.ExecuteNonQuery();</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: #2b91af; font-family: "Verdana","sans-serif"; font-size: 10pt;">SqlDataAdapter</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> da = <span style="color: blue;">new</span> <span style="color: #2b91af;">SqlDataAdapter</span>(cmd);</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: green; font-family: "Verdana","sans-serif"; font-size: 10pt;">// Create an instance of DataSet.</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: #2b91af; font-family: "Verdana","sans-serif"; font-size: 10pt;">DataSet</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> ds = <span style="color: blue;">new</span> <span style="color: #2b91af;">DataSet</span>();</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">da.Fill(ds);</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">con.Close();</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: green; font-family: "Verdana","sans-serif"; font-size: 10pt;">// Return the DataSet as an XmlElement.</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: #2b91af; font-family: "Verdana","sans-serif"; font-size: 10pt;">XmlDataDocument</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> xmldata = <span style="color: blue;">new</span> <span style="color: #2b91af;">XmlDataDocument</span>(ds);</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: #2b91af; font-family: "Verdana","sans-serif"; font-size: 10pt;">XmlElement</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> xmlElement = xmldata.DocumentElement;</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">return</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> xmlElement;</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">}</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"></span></div>
</td> <td style="border: medium none; padding: 0.75pt;"><br />
</td> </tr>
</tbody></table>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Here we need to remember one point that is adding </span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">[<span style="color: #2b91af;">WebMethod</span>]
before method definition because we need to access web method pulically
otherwise it’s not possible to access method publically. If you observe
above code I converted dataset to <span style="color: #2b91af;">XmlElement </span>t because sometimes we will get error like <b>return type dataset invalid type it must be </b></span><b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">either an IListSource, IEnumerable, or IDataSource </span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">to avoid this error I converted dataset to XmlElement.</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<br />
</div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Here we need to set the database connection in <b>web.config </b>because here I am getting database connection from <b>web.config </b></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<br />
</div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="border: 1pt dashed brown;"><tbody>
<tr> <td style="border: medium none; padding: 0.75pt;"><br />
</td> <td style="border: medium none; padding: 0.75pt;"><div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"><</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">connectionStrings</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"><</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">add</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"> </span><span style="color: red; font-family: "Verdana","sans-serif"; font-size: 10pt;">name</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">=</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">"<span style="color: blue;">dbconnection</span>"<span style="color: blue;"> </span><span style="color: red;">connectionString</span><span style="color: blue;">=</span>"<span style="color: blue;">Data Source=SureshDasari;Integrated Security=true;Initial Catalog=MySampleDB</span>"<span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"></</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">connectionStrings</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">></span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"></span></div>
</td> </tr>
</tbody></table>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Now run your web service it would be like this </span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<br />
</div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="border: 1pt dashed brown;"><tbody>
<tr> <td style="border: medium none; padding: 0.75pt;"><a href="http://imgboot.com/images/sureshdasari/finalwebservice.gif" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://imgboot.com/images/sureshdasari/finalwebservice.gif" /></a></td> <td style="border: medium none; padding: 0.75pt;"><br />
</td> </tr>
</tbody></table>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Our web service is working fine now we need to know <b>how we can use webservice in our application</b>?
Before to know about using web service in application first Deploy your
webservice application in your local system if you want to know how to
deploy application in your local system check this link </span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"><a href="http://www.aspdotnet-suresh.com/2010/09/publish-or-deploy-website-in-our-local.html" target="_blank">deploy application in local system</a></span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<br />
</div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">How to Use Web service in web application?</span></b></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<br />
</div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">By using this webservice we can get the user details based on username. For that first create one new web application</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<br />
</div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Open visual studio -</span><span style="font-family: Wingdings; font-size: 10pt;"></span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">--> Select <b>File </b>---> </span><span style="font-family: Wingdings; font-size: 10pt;"></span><b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">New</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> ---> </span><span style="font-family: Wingdings; font-size: 10pt;"></span><b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Web Site</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> ---></span><span style="font-family: Wingdings; font-size: 10pt;"></span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> select <b>ASP.NET Web Site</b></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<br />
</div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="border: 1pt dashed brown;"><tbody>
<tr> <td style="border: medium none; padding: 0.75pt;"><br />
</td> <td style="border: medium none; padding: 0.75pt;"><div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-FRa9p2ASbG4/TdKissG2WjI/AAAAAAAAAhc/cNzIo2SAMG0/s1600/SelectWebapplication.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-FRa9p2ASbG4/TdKissG2WjI/AAAAAAAAAhc/cNzIo2SAMG0/s1600/SelectWebapplication.png" /></a></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"></span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"></span></div>
</td> </tr>
</tbody></table>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">After creation of new website right click on solution explorer and choose “Add web reference” that would be like this </span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<br />
</div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="border: 1pt dashed brown;"><tbody>
<tr> <td style="border: medium none; padding: 0.75pt;"><a href="http://3.bp.blogspot.com/-baDFrgWF8Qk/TdKi5ZDLaWI/AAAAAAAAAhg/W9imi6GjPu8/s1600/AddWebreference.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://3.bp.blogspot.com/-baDFrgWF8Qk/TdKi5ZDLaWI/AAAAAAAAAhg/W9imi6GjPu8/s320/AddWebreference.png" width="293" /></a></td> <td style="border: medium none; padding: 0.75pt;"></td> </tr>
</tbody></table>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">After select Add Web reference option one window will open like this </span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br />
</div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="border: 1pt dashed brown;"><tbody>
<tr> <td style="border: medium none; padding: 0.75pt;"><div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-Rle2KNrGKmg/TdKjHO0MxeI/AAAAAAAAAhk/GtAIaGdYi3I/s1600/WebReference.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-Rle2KNrGKmg/TdKjHO0MxeI/AAAAAAAAAhk/GtAIaGdYi3I/s1600/WebReference.jpg" /></a></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"><br />
</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"></span></div>
</td> <td style="border: medium none; padding: 0.75pt;"><br />
</td> </tr>
</tbody></table>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Now
enter your locally deployed web service link and click Go button after
that your web service will found and window will looks like this </span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<br />
</div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="border: 1pt dashed brown;"><tbody>
<tr> <td style="border: medium none; padding: 0.75pt;"><br />
</td> <td style="border: medium none; padding: 0.75pt;"><div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-iDf7XLmySqA/TdKjZ4aMyUI/AAAAAAAAAho/7acD04mdWVA/s1600/AddServicee.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-iDf7XLmySqA/TdKjZ4aMyUI/AAAAAAAAAho/7acD04mdWVA/s1600/AddServicee.jpg" /></a> </div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"><br />
</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"></span></div>
</td> </tr>
</tbody></table>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Now click on Add Reference button web service will add successfully. Now open your Default.aspx page and design like this </span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<br />
</div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="border: 1pt dashed brown;"><tbody>
<tr> <td style="border: medium none; padding: 0.75pt;"><div class="MsoNormal" style="margin-bottom: 0in;">
<br />
</div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"><</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">html</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> <span style="color: red;">xmlns</span><span style="color: blue;">="http://www.w3.org/1999/xhtml"></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"><</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">head</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> <span style="color: red;">runat</span><span style="color: blue;">="server"></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"><</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">title</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">></span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Getting Data from WebService<span style="color: blue;"></</span><span style="color: #a31515;">title</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"></</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">head</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"><</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">body</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"><</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">form</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> <span style="color: red;">id</span><span style="color: blue;">="form1"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"><</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">div</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"><</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">table</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"><</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">tr</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"><</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">td</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"><</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">b</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">></span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Enter UserName:<span style="color: blue;"></</span><span style="color: #a31515;">b</span><span style="color: blue;">></span> </span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"></</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">td</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"><</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">td</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"><</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">asp</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">:</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">TextBox</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> <span style="color: red;">ID</span><span style="color: blue;">="txtUserName"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"></</span><span style="color: #a31515;">asp</span><span style="color: blue;">:</span><span style="color: #a31515;">TextBox</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"></</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">td</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"><</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">td</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"><</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">asp</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">:</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">Button</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> <span style="color: red;">ID</span><span style="color: blue;">="btnSubmit"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">="Submit"</span> <span style="color: red;">onclick</span><span style="color: blue;">="btnSubmit_Click"</span> <span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"></</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">td</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"></</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">tr</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"></</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">table</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"></</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">div</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"><</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">div</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"><</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">asp</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">:</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">GridView</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> <span style="color: red;">ID</span><span style="color: blue;">="gvUserDetails"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">EmptyDataText</span><span style="color: blue;">="No Record Found"></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"><</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">RowStyle</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> <span style="color: red;">BackColor</span><span style="color: blue;">="#EFF3FB"</span> <span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"><</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">FooterStyle</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> <span style="color: red;">BackColor</span><span style="color: blue;">="#507CD1"</span> <span style="color: red;">Font-Bold</span><span style="color: blue;">="True"</span> <span style="color: red;">ForeColor</span><span style="color: blue;">="White"</span> <span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"><</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">PagerStyle</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> <span style="color: red;">BackColor</span><span style="color: blue;">="#2461BF"</span> <span style="color: red;">ForeColor</span><span style="color: blue;">="White"</span> <span style="color: red;">HorizontalAlign</span><span style="color: blue;">="Center"</span> <span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"><</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">HeaderStyle</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> <span style="color: red;">BackColor</span><span style="color: blue;">="#507CD1"</span> <span style="color: red;">Font-Bold</span><span style="color: blue;">="True"</span> <span style="color: red;">ForeColor</span><span style="color: blue;">="White"</span> <span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"><</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">AlternatingRowStyle</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> <span style="color: red;">BackColor</span><span style="color: blue;">="White"</span> <span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"></</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">asp</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">:</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">GridView</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"></</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">div</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"></</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">form</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"></</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">body</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">></span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;"></</span><span style="color: #a31515; font-family: "Verdana","sans-serif"; font-size: 10pt;">html</span><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">></span></div>
</td> </tr>
</tbody></table>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Now in code behind add following namespaces</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<br />
</div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="border: 1pt dashed brown;"><tbody>
<tr> <td colspan="2" style="border: medium none; padding: 0.75pt;"><div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">using</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> System.Data;</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">using</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> System.Xml;</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"></span></div>
</td> </tr>
<tr> <td style="border: medium none; padding: 0.75pt;"><br />
</td> <td style="border: medium none; padding: 0in;"><br />
</td> </tr>
</tbody></table>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">After adding namespaces write the following code in code behind</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<br />
</div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="border: 1pt dashed brown;"><tbody>
<tr> <td style="border: medium none; padding: 0.75pt;"><div class="MsoNormal" style="margin-bottom: 0in;">
<br />
</div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">protected</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> <span style="color: blue;">void</span> Page_Load(<span style="color: blue;">object</span> sender, <span style="color: #2b91af;">EventArgs</span> e)</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">{</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">if</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">(!IsPostBack)</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">{</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">BindUserDetails(<span style="color: #a31515;">""</span>);</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">}</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">}</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">protected</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> <span style="color: blue;">void</span> BindUserDetails(<span style="color: blue;">string</span> userName)</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">{</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">localhost.<span style="color: #2b91af;">Service</span> objUserDetails = <span style="color: blue;">new</span> localhost.<span style="color: #2b91af;">Service</span>();</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: #2b91af; font-family: "Verdana","sans-serif"; font-size: 10pt;">DataSet</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> dsresult = <span style="color: blue;">new</span> <span style="color: #2b91af;">DataSet</span>();</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: #2b91af; font-family: "Verdana","sans-serif"; font-size: 10pt;">XmlElement</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> exelement = objUserDetails.GetUserDetails(userName);</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">if</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">(exelement!=<span style="color: blue;">null</span>)</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">{</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: #2b91af; font-family: "Verdana","sans-serif"; font-size: 10pt;">XmlNodeReader</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> nodereader = <span style="color: blue;">new</span> <span style="color: #2b91af;">XmlNodeReader</span>(exelement);</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">dsresult.ReadXml(nodereader, <span style="color: #2b91af;">XmlReadMode</span>.Auto);</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">gvUserDetails.DataSource = dsresult;</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">gvUserDetails.DataBind();</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">}</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">else</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">{</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">gvUserDetails.DataSource = <span style="color: blue;">null</span>;</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">gvUserDetails.DataBind(); </span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">}</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">}</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10pt;">protected</span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> <span style="color: blue;">void</span> btnSubmit_Click(<span style="color: blue;">object</span> sender, <span style="color: #2b91af;">EventArgs</span> e)</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">{</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">BindUserDetails(txtUserName.Text);</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">}</span></div>
</td> </tr>
</tbody></table>
<div class="MsoNormal" style="margin-bottom: 0in;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Now run your application and check output</span></div>
<div class="MsoNormal" style="margin-bottom: 0in;">
<br />
</div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="border: 1pt dashed brown;"><tbody>
<tr> <td style="border: medium none; padding: 0.75pt;"><a href="http://imgboot.com/images/sureshdasari/finaloutput.gif" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://imgboot.com/images/sureshdasari/finaloutput.gif" /></a></td> <td style="border: medium none; padding: 0.75pt;"><br /></td></tr>
</tbody></table>
</div>
<div class="blogger-post-footer">Feed from Twitter</div>Anonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.com0tag:blogger.com,1999:blog-2904443406872042433.post-86997720625461032572013-01-18T06:16:00.001-08:002013-01-18T06:16:29.419-08:00Virtual keyboard sample using javascript <div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<html><br />
<head runat="server"><br />
<title></title><br />
<script type="text/javascript" src="vkboard.js"></script><br />
<script><!--<br />
<br />
// This example shows the very basic installation<br />
// of the Virtual Keyboard.<br />
//<br />
// 'keyb_change' and 'keyb_callback' functions<br />
// do all the job here.<br />
<br />
var opened = false, vkb = null, text = null;<br />
<br />
function keyb_change() {<br />
document.getElementById("switch").innerHTML = (opened ? "Show keyboard" : "Hide keyboard");<br />
opened = !opened;<br />
<br />
if (opened && !vkb) {<br />
// Note: all parameters, starting with 3rd, in the following<br />
// expression are equal to the default parameters for the<br />
// VKeyboard object. The only exception is 15th parameter<br />
// (flash switch), which is false by default.<br />
<br />
vkb = new VKeyboard("keyboard", // container's id<br />
keyb_callback, // reference to the callback function<br />
true, // create the arrow keys or not? (this and the following params are optional)<br />
true, // create up and down arrow keys?<br />
false, // reserved<br />
true, // create the numpad or not?<br />
"", // font name ("" == system default)<br />
"14px", // font size in px<br />
"#000", // font color<br />
"#F00", // font color for the dead keys<br />
"#FFF", // keyboard base background color<br />
"#FFF", // keys' background color<br />
"#DDD", // background color of switched/selected item<br />
"#777", // border color<br />
"#CCC", // border/font color of "inactive" key (key with no value/disabled)<br />
"#FFF", // background color of "inactive" key (key with no value/disabled)<br />
"#F77", // border color of the language selector's cell<br />
true, // show key flash on click? (false by default)<br />
"#CC3300", // font color during flash<br />
"#FF9966", // key background color during flash<br />
"#CC3300", // key border color during flash<br />
false, // embed VKeyboard into the page?<br />
true, // use 1-pixel gap between the keys?<br />
0); // index(0-based) of the initial layout<br />
}<br />
else<br />
vkb.Show(opened);<br />
<br />
text = document.getElementById("textfield");<br />
text.focus();<br />
<br />
if (document.attachEvent)<br />
text.attachEvent("onblur", backFocus);<br />
}<br />
<br />
function backFocus() {<br />
if (opened) {<br />
var l = text.value.length;<br />
<br />
setRange(text, l, l);<br />
<br />
text.focus();<br />
}<br />
}<br />
<br />
// Callback function:<br />
function keyb_callback(ch) {<br />
var val = text.value;<br />
<br />
switch (ch) {<br />
case "BackSpace":<br />
var min = (val.charCodeAt(val.length - 1) == 10) ? 2 : 1;<br />
text.value = val.substr(0, val.length - min);<br />
break;<br />
<br />
case "Enter":<br />
text.value += "\n";<br />
break;<br />
<br />
default:<br />
text.value += ch;<br />
}<br />
}<br />
<br />
function setRange(ctrl, start, end) {<br />
if (ctrl.setSelectionRange) // Standard way (Mozilla, Opera, ...)<br />
{<br />
ctrl.setSelectionRange(start, end);<br />
}<br />
else // MS IE<br />
{<br />
var range;<br />
<br />
try {<br />
range = ctrl.createTextRange();<br />
}<br />
catch (e) {<br />
try {<br />
range = document.body.createTextRange();<br />
range.moveToElementText(ctrl);<br />
}<br />
catch (e) {<br />
range = null;<br />
}<br />
}<br />
<br />
if (!range) return;<br />
<br />
range.collapse(true);<br />
range.moveStart("character", start);<br />
range.moveEnd("character", end - start);<br />
range.select();<br />
}<br />
}<br />
<br />
//--></script><br />
</head><br />
<br />
<body><br />
<form id="form1" runat="server"><br />
<div><br />
<table border="0" width="60%"><br />
<tr><br />
<td width="100px"><br />
<textarea id="textfield" rows="12" cols="50"></textarea><br />
</td><br />
<td width="10px"><br />
</td><br />
</tr><br />
</table><br />
<p><br />
<a href="javascript:keyb_change()" onclick="javascript:blur()" id="switch" style="font-family: Tahoma;<br />
font-size: 14px; text-decoration: none; border-bottom: 1px dashed #0000F0; color: #0000F0"><br />
Show keyboard</a></p><br />
<div id="keyboard"><br />
</div><br />
</div><br />
</form><br />
</body><br />
</html><br />
</div>
<div class="blogger-post-footer">Feed from Twitter</div>Anonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.com0tag:blogger.com,1999:blog-2904443406872042433.post-918510467831156552013-01-18T06:13:00.000-08:002013-01-18T06:13:50.302-08:00Prime/Even/Odd number sample programs using VB.NET<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<b>Prime number sample program using vb.net.</b><br />
<b><br /></b>
<b>Public Sub PrintPrimeNumber()</b><br />
Dim Num As Long<br />
Dim NN As Long<br />
Dim IsPrime As Boolean<br />
<br />
For Num = 2 To 100<br />
IsPrime = True<br />
For NN = 2 To Int(Num / 2)<br />
If Num Mod NN = 0 Then<br />
IsPrime = False<br />
Exit For<br />
End If<br />
Next<br />
If IsPrime Then<br />
Response.Write(Num & " is a prime number!" & "<br>")<br />
End If<br />
Next<br />
<b>End Sub</b><br />
<b><br /></b>
<b>Odd number sample program using vb.net</b><br />
<b><br /></b>
<br />
<b>Public Sub PrintOddNumber()</b><br />
For number As Integer = 0 To 100<br />
If (number Mod 2) = 1 Then<br />
Response.Write(number & ", ")<br />
End If<br />
Next<br />
<b> End Sub</b><br />
<br />
<b>Even number sample program using vb.net</b><br />
<b><br /></b>
<b> Public Sub PrintEvenNumber()</b><br />
For number As Integer = 0 To 100<br />
If (number Mod 2) = 0 Then<br />
Response.Write(number & ", ")<br />
End If<br />
Next<br />
<b> End Sub</b><br />
<br />
</div>
<div class="blogger-post-footer">Feed from Twitter</div>Anonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.com0tag:blogger.com,1999:blog-2904443406872042433.post-49554820472018072812013-01-18T06:06:00.000-08:002013-01-18T06:06:23.290-08:00Email validation from server side using VB.NET<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<b>Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load</b><br />
Response.Write(IsEmail("chittimca3@gmail.com"))<br />
<b> End Sub</b><br />
<br />
<br />
<b> Public Function IsEmail(ByVal Email As String) As Boolean</b><br />
Dim strRegex As String = "^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}" & "\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\" & ".)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$"<br />
Dim re As New Regex(strRegex)<br />
If re.IsMatch(Email) Then<br />
Return (True)<br />
Else<br />
Return (False)<br />
End If<br />
<b> End Function</b><br />
</div>
<div class="blogger-post-footer">Feed from Twitter</div>Anonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.com0tag:blogger.com,1999:blog-2904443406872042433.post-53651257435006225652012-12-14T06:17:00.001-08:002012-12-14T06:17:19.839-08:00redirect your site to a mobile version through JavaScript<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
Here JavaScript comes to the rescue and I wrote a script that makes the redirection happen called “<strong>redirection_mobile.js</strong>“.<br />
<br />
You can find the source <a href="http://github.com/sebarmeli/JS-Redirection-Mobile-Site"> <strong>here on Github</strong></a>.<br />
<br />
The first thing to keep in mind is that the function implemented checks the <em>User-Agent</em> string from the Navigator object and from there it decides if the redirection needs to happen <br />
<br />
In some cases the user wants to access to the Desktop version of the
site from a mobile device (sometimes the desktop version has more
functionality). The script handles this situation as well, it checks if
the previous page hit was one from the mobile site (we can suppose the
user clicked on a link such “<em>Go to full site</em>“) or if there is a
specific parameter in the querystring of the URL. In those cases the
redirection won’t occur. To keep the user in the desktop version for the
whole session,<br />
sessionStorage object has been used, specifically an
item will be stored to distinguish if we’re browsing through the desktop
site.<br />
<br />
There is a fallback for old browsers that don’t support sessionStorage,
and a cookie will be used. The cookie that makes the access to the
desktop version from a mobile device possible will expiry in one hour or
you configure the expiry time.<br />
<br />
iPhone, iPad, iPod, Android phones support completely sessionStorage,
there are still some versions of Blackberry that using IE don’t and so
we still need the “cookie” fallback.<br />
<br />
The function accepts an argument which is a configuration object with few properties:<br />
- <strong>mobile_prefix</strong> : prefix appended to the hostname,
such as “m” to redirect to “m.domain.com”. “m” is the default value if
the property is not specified.<br />
<br />
- <strong>mobile_url</strong> : mobile url to use for the redirection
(without the protocol), such as “whatever.com”/example to redirect to
“whatever.com/example”. If “mobile_prefix” is existing as well,
“mobile_prefix” will be ignored. Empty string is the default value.<br />
<br />
- <strong>mobile_scheme</strong> : url scheme (http/https) of the mobile site domain, such as “https” to redirect to “<a href="https://m.domain.com%26/#8221" rel="nofollow">https://m.domain.com&#8221</a>;. The protocol of the current page is the default value.<br />
<br />
- <strong>noredirection_param</strong> – up to version 0.6 <strong>param</strong>
was used: parameter to pass in the querystring of the URL to avoid the
redirection (the value must be equal to “true”). Default value is
“noredirection”. Eg: <a href="http://domain.com/?noredirection=true" rel="nofollow">http://domain.com?noredirection=true</a>.
It’s also the name of the item in the localStorage (or cookie name)
used to avoid mobile redirection. Prior version 0.9.5 this parameter was
called “redirection_paramName”, but I renamed it to make the meaning
clearer.<br />
<br />
- <strong>cookie_hours</strong> : number of hours the cookie needs to exist after redirection to desktop site. “1″ is the default value.<br />
<br />
- <strong>tablet_redirection</strong> : boolean value that
enables/disables(default) the redirection for tablet such as iPad,
Samsung Galaxy Tab, Kindle or Motorola Xoom. – Default:false. The value
needs to be a string (so wrapped in double or single quotes). If
‘tablet_url’ parameter not specified, the user will be redirected to the
same URL as for mobile devices.<br />
- <strong>tablet_url</strong> : url to use for the redirection in case the user is using a tablet to access the site. Default value is “”<br />
- <strong>keep_path</strong> : boolean to determine if the destination url needs to keep the path from the original url. Default value is ‘false’<br />
- <strong>keep_query</strong> : boolean to determine if the destination url needs to keep the querystring from the original url. Default value is ‘false’<br />
- <strong>beforeredirection_callback</strong> : if specified, callback
launched before the redirection happens. If a falsy value is returned
from the callback the redirection doesn’t happen.<br />
<br />
To use “<strong>redirection_mobile</strong>” function, you need to
load your script in the HTML of the “desktop” pages and call it as
SA.redirection_mobile(config). See the code below:<br />
<code><br /><span style="color: blue;">
<!doctype html><br />
<html><br />
<head><br />
<title></title><br />
<script type="text/javascript" src="/js/redirection_mobile.min.js"/><br />
<script type="text/javascript"><br />
SA.redirection_mobile ({noredirection_param:"noredirection", mobile_prefix : "mobile", cookie_hours : "2" });<br />
</script></span><br />
</code><br />
For instance, in this case, accessing from a mobile device to<strong> <a href="http://www.domain.com/" rel="nofollow">http://www.domain.com</a></strong>, you’ll be redirected to “<strong><a href="http://mobile.domain.com/" rel="nofollow">http://mobile.domain.com</a></strong>“.<br />
<br />
Considering the previous code, from version <strong>0.6</strong>, if you hit a page such as “<strong><a href="http://domain.com/?noredirection=true" rel="nofollow">http://domain.com/?noredirection=true</a></strong>”
the redirection won’t happen. For all the browser session, if
sessionStorage is supported by the browser, the redirection won’t occur.
If sessionStorage (HTML5) is not supported, a cookie
“noredirection=true” will be stored for 2 hours and it will block the
redirection to the mobile site.<br />
<br />
If sessionStorage (HTML5) is not supported, a cookie named
“noredirection” will be stored for 2 hours and it will block the
redirection to the mobile site.<br />
<br />
The script from version <strong>0.5</strong> allows you to redirect the user to whatever url. Thus if you need to redirect the user to “<strong><a href="https://domain2.com/mobile" rel="nofollow">https://domain2.com/mobile</a></strong>” now you can invoke the function like this:<br />
<code><br /><span style="color: blue;"><br />
<script type="text/javascript"><br />
SA.redirection_mobile ({mobile_scheme:"https", mobile_url : "domain2.com/mobile"});<br />
</script><br />
</span></code><br />
<span style="color: blue;">Alternatively you can use “redirection_mobile_self.js”, that is it’s
an anonyimous self-executing function and it uses it uses the default
values for the different properties:</span><br />
<span style="color: blue;">- “mobile_prefix” : “m”<br />
- “redirection_paramName” : “mobile_redirect”<br />
- “cookie_hours” : 1<br />
- “mobile_url” : “”<br />
- “mobile_scheme” : protocol of the current page<br />
- “tablet_redirection” : false<br />
- “beforeredirection_callback” : n/a</span><br />
It doesn’t need any configuration or any invocation, so you just need
to drop it on your webserver and call the script from the HTML of the
“desktop” pages . See code below:<br />
<code><br /><span style="color: blue;">
<!doctype html><br />
<html><br />
<head><br />
<title></title><br />
<script type="text/javascript" src="/js/redirection_mobile_self.min.js"/></span>
</code><br />
in this case, accessing from a mobile device to <strong><a href="http://www.domain.com/" rel="nofollow">http://www.domain.com</a></strong>, you’ll be redirected to “<strong><a href="http://m.domain.com/" rel="nofollow">http://m.domain.com</a></strong>“.<br />
<br />
To redirect to a desktop/standard version of the site from a mobile
device, you may need to embed a link in your mobile pages such as<br />
<code><br /><span style="color: blue;">
<a href="http://www.domain.com">Go to main site</a></span><br />
</code><br />
and the script included in the desktop page will do the rest.<br />
<br />
I also created “<strong>redirection_mobile_testable.js</strong>” that
is just a copy from “redirection_mobile.js”, but it’s using few
arguments such as “document”, “window”, “navigator” for testing purpose.
Test cases have been written, using QUnit, to test this script and they
mock “document”, “window” and “navigator” in a rudimentary way.<br />
<br />
The scripts have their minified versions (used <strong>YUI compressor</strong>).<br />
<br />
If you want to test the script on different devises within your desktop browser, you can use a plugin for Firefox called <strong>User Agent Switcher</strong>, that you can download <a href="https://addons.mozilla.org/en-US/firefox/addon/59/">here</a>.<br />
<br />
Feel free to fork the project and improve it if necessary.<br />
<br />
..and feel free to make a donation from <a href="http://www.sebastianoarmelibattana.com/projects/js-redirection" title="JS-redirection"> this page </a><br />
</div>
<div class="blogger-post-footer">Feed from Twitter</div>Anonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.com0tag:blogger.com,1999:blog-2904443406872042433.post-60053176819383983872012-12-14T06:13:00.000-08:002012-12-14T06:13:16.550-08:00Javascript code to redirect mobile phone users<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div class="post-text" itemprop="description">
<h4 style="text-align: left;">
I have a javascript code to redirect mobile phone users.
Could you please check the code, I've picked it up from the net, total
newb and I'd value your input regarding the quality of the script...
Does it cover all types of mobile phones?</h4>
<br />
<pre class="default prettyprint prettyprinted"><code><span style="color: blue;"><span class="tag"><script</span><span class="pln"> </span><span class="atn">type</span><span class="pun">=</span><span class="atv">"text/javascript"</span><span class="tag">></span><span class="pln">
</span><span class="kwd">function</span><span class="pln"> </span><span class="typ">RedirectSmartphone</span><span class="pun">(</span><span class="pln">url</span><span class="pun">){</span><span class="pln">
</span><span class="kwd">if</span><span class="pln"> </span><span class="pun">(</span><span class="pln">url </span><span class="pun">&&</span><span class="pln"> url</span><span class="pun">.</span><span class="pln">length </span><span class="pun">></span><span class="pln"> </span><span class="lit">0</span><span class="pln"> </span><span class="pun">&&</span><span class="pln"> </span><span class="typ">IsSmartphone</span><span class="pun">())</span><span class="pln">
window</span><span class="pun">.</span><span class="pln">location </span><span class="pun">=</span><span class="pln"> url</span><span class="pun">;</span><span class="pln">
</span><span class="pun">}</span><span class="pln">
</span><span class="kwd">function</span><span class="pln"> </span><span class="typ">IsSmartphone</span><span class="pun">(){</span><span class="pln">
</span><span class="kwd">if</span><span class="pln"> </span><span class="pun">(</span><span class="typ">DetectUagent</span><span class="pun">(</span><span class="str">"android"</span><span class="pun">))</span><span class="pln"> </span><span class="kwd">return</span><span class="pln"> </span><span class="kwd">true</span><span class="pun">;</span><span class="pln">
</span><span class="kwd">else</span><span class="pln"> </span><span class="kwd">if</span><span class="pln"> </span><span class="pun">(</span><span class="typ">DetectUagent</span><span class="pun">(</span><span class="str">"iphone"</span><span class="pun">))</span><span class="pln"> </span><span class="kwd">return</span><span class="pln"> </span><span class="kwd">true</span><span class="pun">;</span><span class="pln">
</span><span class="kwd">else</span><span class="pln"> </span><span class="kwd">if</span><span class="pln"> </span><span class="pun">(</span><span class="typ">DetectUagent</span><span class="pun">(</span><span class="str">"ipod"</span><span class="pun">))</span><span class="pln"> </span><span class="kwd">return</span><span class="pln"> </span><span class="kwd">true</span><span class="pun">;</span><span class="pln">
</span><span class="kwd">else</span><span class="pln"> </span><span class="kwd">if</span><span class="pln"> </span><span class="pun">(</span><span class="typ">DetectUagent</span><span class="pun">(</span><span class="str">"symbian"</span><span class="pun">))</span><span class="pln"> </span><span class="kwd">return</span><span class="pln"> </span><span class="kwd">true</span><span class="pun">;</span><span class="pln">
</span><span class="kwd">return</span><span class="pln"> </span><span class="kwd">false</span><span class="pun">;</span><span class="pln">
</span><span class="pun">}</span><span class="pln">
</span><span class="kwd">function</span><span class="pln"> </span><span class="typ">DetectUagent</span><span class="pun">(</span><span class="pln">name</span><span class="pun">){</span><span class="pln">
</span><span class="kwd">var</span><span class="pln"> uagent </span><span class="pun">=</span><span class="pln"> navigator</span><span class="pun">.</span><span class="pln">userAgent</span><span class="pun">.</span><span class="pln">toLowerCase</span><span class="pun">();</span><span class="pln">
</span><span class="kwd">if</span><span class="pln"> </span><span class="pun">(</span><span class="pln">uagent</span><span class="pun">.</span><span class="pln">search</span><span class="pun">(</span><span class="pln">name</span><span class="pun">)</span><span class="pln"> </span><span class="pun">></span><span class="pln"> </span><span class="pun">-</span><span class="lit">1</span><span class="pun">)</span><span class="pln">
</span><span class="kwd">return</span><span class="pln"> </span><span class="kwd">true</span><span class="pun">;</span><span class="pln">
</span><span class="kwd">else</span><span class="pln">
</span><span class="kwd">return</span><span class="pln"> </span><span class="kwd">false</span><span class="pun">;</span><span class="pln">
</span><span class="pun">}</span><span class="pln">
</span><span class="typ">RedirectSmartphone</span><span class="pun">(</span><span class="str">"http://mobile.version.com"</span><span class="pun">);</span><span class="pln">
</span><span class="tag"></script></span></span></code></pre>
<pre class="default prettyprint prettyprinted"><code><span class="pln"> </span></code></pre>
Ty very much! </div>
</div>
<div class="blogger-post-footer">Feed from Twitter</div>Anonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.com0tag:blogger.com,1999:blog-2904443406872042433.post-20744878536124051982012-12-14T06:09:00.000-08:002012-12-14T06:09:38.875-08:00Mobile Redirect Code using Javascript For ANY Mobile Device<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<h4>
Javascript Mobile Device Detection</h4>
<a class="cboxElement" href="http://mainehost.com/wp-content/uploads/desktop-to-mobile.min_.png" rel="lightbox[9648]" title="desktop-to-mobile.min"><img alt="" class="alignright" height="218" src="http://mainehost.com/wp-content/uploads/desktop-to-mobile.min_.png" style="margin: 10px;" title="desktop-to-mobile.min" width="285" /></a>Here
is the simplest Javascript Mobile Redirect Code we’ve found. It work
regardless of the device, as long as it’s screen size is less that what
you specify in the script. In this example and device that has a screen
smaller than 700 pixels will get your mobile website redirect. The idea
is that mobile devices will not have a screen width wider than a certain
pixel size (e.g. 700 or 800). Users with a screen width less than what
you specify will be redirected to the mobile site. Here’s an example of
the Javascript you would want to insert into each of your pages:<br />
<span style="color: blue;"><span style="font-family: terminal, monaco;"><script type=”text/javascript”></span><br /><span style="font-family: terminal, monaco;"><!–</span><br /><span style="font-family: terminal, monaco;">if (screen.width <= 700) {</span><br /><span style="font-family: terminal, monaco;">window.location = “https://yourweburl.com/mobile/”;</span><br /><span style="font-family: terminal, monaco;">}</span><br /><span style="font-family: terminal, monaco;">//–></span><br /><span style="font-family: terminal, monaco;"></script></span></span><br />
Having a mobile version of your website is a great way to make sure
that visitors using a mobile device are able to properly view your site
on their device. Some tools for creating mobile versions of websites
have built-in options for redirecting visitors to the mobile versions.
If not, you will want to redirect mobile visitors to the right version.<br />
</div>
<div class="blogger-post-footer">Feed from Twitter</div>Anonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.com0Secunderabad, Andhra Pradesh, India17.4399295 78.498274117.318740000000002 78.3403456 17.561119 78.6562026tag:blogger.com,1999:blog-2904443406872042433.post-89232002734763875782012-08-01T11:00:00.000-07:002012-08-01T11:00:04.945-07:00SOFTWARE DEVELOPMENT LIFE CYCLE [SDLC]<div dir="ltr" style="text-align: left;" trbidi="on">
Software Development Life Cycle, or Software Development Process, defines the steps/stages/phases in the building of software.<br />
There are various kinds of software development models like:<br />
<ul>
<li>Waterfall model</li>
<li>Spiral model</li>
<li>Iterative and incremental development (like ‘Unified Process’ and ‘Rational Unified Process’)</li>
<li>Agile development (like ‘Extreme Programming’ and ‘Scrum’)</li>
</ul>
Models are evolving with time and the development life cycle can vary
significantly from one model to the other. It is beyond the scope of
this particular article to discuss each model. However, each model
comprises of all or some of the following phases/activities/tasks.<br />
<strong><span id="more-311"></span>SDLC IN SUMMARY</strong><br />
<ul>
<li>Project Planning</li>
<li>Requirements Development</li>
<li>Estimation</li>
<li>Scheduling</li>
<li>Design</li>
<li>Coding</li>
<li>Test Build/Deployment</li>
<li>Unit Testing</li>
<li>Integration Testing</li>
<li>User Documentation</li>
<li>System Testing</li>
<li>Acceptance Testing</li>
<li>Production Build/Deployment</li>
<li>Release</li>
<li>Maintenance</li>
</ul>
</div><div class="blogger-post-footer">Feed from Twitter</div>Anonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.com3tag:blogger.com,1999:blog-2904443406872042433.post-27445914828336150852012-03-08T06:35:00.000-08:002012-03-08T06:35:46.370-08:00Redirect your website to a mobile site version through JavaScript<div dir="ltr" style="text-align: left;" trbidi="on"> <strong>SCENARIO</strong> :<br />
The user needs to be redirected to the mobile version of the site (home page) if it’s trying to access the site from a mobile device.<br />
<br />
<strong>SOLUTION</strong>:<br />
<br />
<strong>UPDATE</strong> 25/07/2011 : Version 0.9.5 released with support for “tablet_url”, “keep_path” and “keep_query” properties. Ipad and other tablet devices have been excluded from the list of mobile devices by default. You can use “tablet_redirection” and “tablet_url” parameters for tablets.<br />
<br />
To solve this problem, the best approach is implementing something server-side, and I find a good approach using the <strong>WURFL</strong> file to check the capabilities and features of mobile devices. Read <a href="http://wurfl.sourceforge.net/">here</a> to know more about WURFL.<br />
<br />
Sometimes, a server-side solution can become difficult to implement especially if we have a CDN or reverse proxy (sitting in front of our Web Server) caching our pages.<br />
<br />
Here JavaScript comes to the rescue and I wrote a script that makes the redirection happen called “<strong>redirection_mobile.js</strong>“.<br />
<br />
You can find the source <a href="http://github.com/sebarmeli/JS-Redirection-Mobile-Site"> <strong>here on Github</strong></a>.<br />
<br />
The first thing to keep in mind is that the function implemented checks the <em>User-Agent</em> string from the Navigator object and from there it decides if the redirection needs to happen.<br />
<br />
In some cases the user wants to access to the Desktop version of the site from a mobile device (sometimes the desktop version has more functionality). The script handles this situation as well, it checks if the previous page hit was one from the mobile site (we can suppose the user clicked on a link such “<em>Go to full site</em>“) or if there is a specific parameter in the querystring of the URL. In those cases the redirection won’t occur. To keep the user in the desktop version for the whole session, sessionStorage object has been used, specifically an item will be stored to distinguish if we’re browsing through the desktop site.<br />
<br />
There is a fallback for old browsers that don’t support sessionStorage, and a cookie will be used. The cookie that makes the access to the desktop version from a mobile device possible will expiry in one hour or you configure the expiry time.<br />
<br />
iPhone, iPad, iPod, Android phones support completely sessionStorage, there are still some versions of Blackberry that using IE don’t and so we still need the “cookie” fallback.<br />
<br />
The function accepts an argument which is a configuration object with few properties:<br />
<br />
- <strong>mobile_prefix</strong> : prefix appended to the hostname, such as “m” to redirect to “m.domain.com”. “m” is the default value if the property is not specified.<br />
<br />
- <strong>mobile_url</strong> : mobile url to use for the redirection (without the protocol), such as “whatever.com”/example to redirect to “whatever.com/example”. If “mobile_prefix” is existing as well, “mobile_prefix” will be ignored. Empty string is the default value.<br />
<br />
- <strong>mobile_scheme</strong> : url scheme (http/https) of the mobile site domain, such as “https” to redirect to “https://m.domain.com”. The protocol of the current page is the default value.<br />
<br />
<br />
- <strong>noredirection_param</strong> – up to version 0.6 <strong>param</strong> was used: parameter to pass in the querystring of the URL to avoid the redirection (the value must be equal to “true”). Default value is “noredirection”. Eg: http://domain.com?noredirection=true. It’s also the name of the item in the localStorage (or cookie name) used to avoid mobile redirection. Prior version 0.9.5 this parameter was called “redirection_paramName”, but I renamed it to make the meaning clearer.<br />
<br />
- <strong>cookie_hours</strong> : number of hours the cookie needs to exist after redirection to desktop site. “1″ is the default value.<br />
<br />
- <strong>tablet_redirection</strong> : boolean value that enables/disables(default) the redirection for tablet such as iPad, Samsung Galaxy Tab, Kindle or Motorola Xoom. – Default:false. The value needs to be a string (so wrapped in double or single quotes). If ‘tablet_url’ parameter not specified, the user will be redirected to the same URL as for mobile devices.<br />
<br />
- <strong>tablet_url</strong> : url to use for the redirection in case the user is using a tablet to access the site. Default value is “”<br />
- <strong>keep_path</strong> : boolean to determine if the destination url needs to keep the path from the original url. Default value is ‘false’<br />
<br />
- <strong>keep_query</strong> : boolean to determine if the destination url needs to keep the querystring from the original url. Default value is ‘false’<br />
<br />
- <strong>beforeredirection_callback</strong> : if specified, callback launched before the redirection happens. If a falsy value is returned from the callback the redirection doesn’t happen.<br />
<br />
To use “<strong>redirection_mobile</strong>” function, you need to load your script in the HTML of the “desktop” pages and call it as SA.redirection_mobile(config). See the code below:<br />
<br />
<code><br />
<!doctype html><br />
<html><br />
<head><br />
<title></title><br />
<script type="text/javascript" src="/js/redirection_mobile.min.js"/><br />
<script type="text/javascript"><br />
SA.redirection_mobile ({noredirection_param:"noredirection", mobile_prefix : "mobile", cookie_hours : "2" });<br />
</script><br />
</code><br />
For instance, in this case, accessing from a mobile device to<strong> http://www.domain.com</strong>, you’ll be redirected to “<strong>http://mobile.domain.com</strong>“.<br />
<br />
Considering the previous code, from version <strong>0.6</strong>, if you hit a page such as “<strong>http://domain.com/?noredirection=true</strong>” the redirection won’t happen. For all the browser session, if sessionStorage is supported by the browser, the redirection won’t occur. If sessionStorage (HTML5) is not supported, a cookie “noredirection=true” will be stored for 2 hours and it will block the redirection to the mobile site.<br />
If sessionStorage (HTML5) is not supported, a cookie named “noredirection” will be stored for 2 hours and it will block the redirection to the mobile site.<br />
<br />
The script from version <strong>0.5</strong> allows you to redirect the user to whatever url. Thus if you need to redirect the user to “<strong>https://domain2.com/mobile</strong>” now you can invoke the function like this:<br />
<br />
<code><br />
<script type="text/javascript"><br />
SA.redirection_mobile ({mobile_scheme:"https", mobile_url : "domain2.com/mobile"});<br />
</script></code><br />
<code><br />
</code><br />
Alternatively you can use “redirection_mobile_self.js”, that is it’s an anonyimous self-executing function and it uses it uses the default values for the different properties:<br />
<br />
- “mobile_prefix” : “m”<br />
- “redirection_paramName” : “mobile_redirect”<br />
- “cookie_hours” : 1<br />
- “mobile_url” : “”<br />
- “mobile_scheme” : protocol of the current page<br />
- “tablet_redirection” : false<br />
- “beforeredirection_callback” : n/a<br />
<br />
It doesn’t need any configuration or any invocation, so you just need to drop it on your webserver and call the script from the HTML of the “desktop” pages . See code below:<br />
<code><br />
<!doctype html><br />
<html><br />
<head><br />
<title></title><br />
<script type="text/javascript" src="/js/redirection_mobile_self.min.js"/><br />
</code><br />
in this case, accessing from a mobile device to <strong>http://www.domain.com</strong>, you’ll be redirected to “<strong>http://m.domain.com</strong>“.<br />
<br />
To redirect to a desktop/standard version of the site from a mobile device, you may need to embed a link in your mobile pages such as<br />
<code><br />
<a href="http://www.domain.com">Go to main site</a><br />
</code><br />
and the script included in the desktop page will do the rest.<br />
<br />
I also created “<strong>redirection_mobile_testable.js</strong>” that is just a copy from “redirection_mobile.js”, but it’s using few arguments such as “document”, “window”, “navigator” for testing purpose. Test cases have been written, using QUnit, to test this script and they mock “document”, “window” and “navigator” in a rudimentary way.<br />
<br />
The scripts have their minified versions (used <strong>YUI compressor</strong>).<br />
<br />
If you want to test the script on different devises within your desktop browser, you can use a plugin for Firefox called <strong>User Agent Switcher</strong>, that you can download <a href="https://addons.mozilla.org/en-US/firefox/addon/59/">here</a>.<br />
<br />
Feel free to fork the project and improve it if necessary.<br />
<br />
..and feel free to make a donation from <a href="http://www.sebastianoarmelibattana.com/projects/js-redirection" title="JS-redirection"> this page </a><br />
<br />
<strong>UPDATE</strong> 20/12/2010 : Added support for more devices and fixed a critical issue on IE<br />
<br />
<strong>UPDATE</strong> 05/01/2011 : Version 0.5 released with support for “mobile_url” and “mobile_scheme” properties<br />
<br />
<strong>UPDATE</strong> 02/04/2011 : Version 0.8 released with support for “ipad_redirection” and<br />
“beforeredirection_callback” properties<br />
<br />
You can support me clicking the <strong>DONATE</strong> button you can find on my site <a href="http://www.sebastianoarmelibattana.com/projects/js-redirection">http://www.sebastianoarmelibattana.com/projects/js-redirection</a></div><div class="blogger-post-footer">Feed from Twitter</div>Anonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.com0tag:blogger.com,1999:blog-2904443406872042433.post-39793064080693889492011-10-03T08:10:00.000-07:002011-10-03T08:10:38.230-07:00Add Facebook Share Button in Blogger/Blogspot Posts<div dir="ltr" style="text-align: left;" trbidi="on"><h3 class="post-title entry-title"> <a href="http://www.betatemplates.com/2010/06/add-facebook-share-button-in-blogger.html">How to Add Facebook Share Button in Blogger/Blogspot Posts</a> </h3><div class="post-header"> Posted by Bilal | Thursday, June 04, 2009 | 22 Comments </div><div class="post-img"><a href="http://www.betatemplates.com/2010/06/add-facebook-share-button-in-blogger.html"><img alt="Add Facebook Share Button in Blogger Posts" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiofSeZhVjGB7_NTBuqLch-CbykNvv6IPNeDu32tyP_YdLtXuKngB_TD2IXSHljRIpHTUUorbcbLIZYjeK-Phn7X4vJ0V9OMfH0BUBWnPoQPVhuveGPiOFSn9YI1IIdtn_Od2xE3PLO3Cw/s1600/Add-Facebook-Share-Button-in-Blogger-Posts.png" style="border: 1px solid #f4f4f4; height: 190px; width: 300px;" /></a></div><br />
Social media sites like Facebook & Twitter could be great source of quality traffic for any blog. You can also add a Facebook share button in each of your posts. This button will allow users to quickly share a post on Facebook.<a href="" name="more"></a><br />
<br />
<h2>Steps to Add Facebook Share Button Below Post Title</h2><br />
To add Facebook share button below post title, simply follow these steps:<br />
<br />
<ol><li><a href="http://www.betatemplates.com/2009/06/how-to-backup-blogger-xml-template.html">Back up your layout/template.</a></li>
<li>Go to <span style="font-weight: bold;">Layout</span> then <span style="font-weight: bold;">Edit HTML</span> tab.</li>
<li>Check <span style="font-weight: bold;">Expand Widget Templates</span>. The page will automatically refresh.</li>
<li>Now find this code:<br />
<pre><code><data:post.body/></code></pre></li>
<li>Place the following code right before the code found in step 4:<br />
<pre><b><code><!-- Facebook Button -->
<div style='float: left; padding: 5px; '>
<a expr:share_url='data:post.url' name='fb_share' rel='nofollow' type='<span style="color: red;">TYPE OF BUTTON</span>'/>
<script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'/>
</div>
<!-- Facebook Button --></code></b></pre><br />
<b>The result should look something like this:</b><pre><code><b><!-- Facebook Button -->
<div style='float: left; padding: 5px; '>
<a expr:share_url='data:post.url' name='fb_share' rel='nofollow' type='<span style="color: red;">TYPE OF BUTTON</span>'/>
<script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'/>
</div>
<!-- Facebook Button --></b>
<span style="color: #3366ff;"><data:post.body/></span></code></pre></li>
<li>Click <span style="font-weight: bold;">Preview</span> button to see the result and then save your template.</li>
</ol><br />
<h2>Add Facebook Share Button Below Post Body</h2><br />
To place the Facebook share button under each post, you have to follow the exact steps given above but step 5 is a little changed.<br />
<br />
5- Place the following code right below the code found in step 4:<br />
<pre><b><code><!-- Facebook Button -->
<div style='float: left; padding: 5px; '>
<a expr:share_url='data:post.url' name='fb_share' rel='nofollow' type='<span style="color: red;">TYPE OF BUTTON</span>'/>
<script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'/>
</div>
<!-- Facebook Button --></code></b></pre><br />
The result would look something like this:<br />
<pre><b><code><span style="color: #3366ff;"><data:post.body/></span>
<!-- Facebook Button -->
<div style='float: left; padding: 5px; '>
<a expr:share_url='data:post.url' name='fb_share' rel='nofollow' type='<span style="color: red;">TYPE OF BUTTON</span>'/>
<script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'/>
</div>
<!-- Facebook Button --></code></b></pre><br />
<h2>Button Modifications</h2><br />
You can also change the button type like adding a counter with the button. All you need is to replace <em>TYPE OF BUTTON</em> from the above code with:<br />
<br />
<em>button</em> for a button like this:<br />
<img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkhzCnXf3pHLFNC2USzCCZaqlXiHDccbCSW4W2BNJmBAwyn9NEp1c8t0symNwSwi-D4Fdh_QJ5q3wsPt79GlB4LmghVa0ibQDdyXrWtm49I_DkOTDXZsRt5lZW-MedXFM8xUd8fDupf6M/s1600/Facebook+share+button.png" style="height: 24px; width: 64px;" /><br />
<br />
<em>button_count</em> for a button like this:<br />
<img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjJS11-3Vuo9-fh9UEU9Gl8lYRmyJnVSmLmvjpXbb1QntYUjoQAjcB-bbraI35esl3WkOMm9zlMgef8FdSSGmjiAxQBT42ZlF20pzl-05nwhM3i7XlWwxdQBfYNZm4wZcaNg966Sh6CU/s1600/Facebook+share+button+with+counter+small.png" style="height: 27px; width: 107px;" /><br />
<br />
<em>box_count</em> for a button like this:<br />
<img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEia19_G8c0TazeFZFCta2Reu8TnrIHkkcWiFVYwJCF-RoY-Z-54v839P04Q2SMS4CAE4L5p5yQWR5LrBX5y2fyBm_uk-b5y45exUkdYeMzwtfLa-yoRvB0ModFmqRtRFqdofqzPkGFk2tw/s1600/Facebook+share+button+with+counter+large.png" style="height: 66px; width: 64px;" /><br />
<br />
<em>icon</em> for a button like this:<br />
<img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXRL-87js-cALKCsLPQbJ0dt49hmfa2Zhq4W_04fJFA37yLuP8bdvkPjmVWmw5-tz0PvQxlxjG-8RyTEOlevS1Mzoi0dcSlolzcDx2uZN4Y-Ff8FHZRQKxK4xPx7JhloERZ3CMxD7REqQ/s400/Facebook+share+icon.png" style="height: 19px; width: 19px;" /></div><div class="blogger-post-footer">Feed from Twitter</div>Anonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.com3tag:blogger.com,1999:blog-2904443406872042433.post-73538727331949131482011-08-16T06:56:00.000-07:002011-08-16T06:56:56.373-07:00Differences Between WCF and ASP.NET Web Services<div dir="ltr" style="text-align: left;" trbidi="on"><br />
<span class="Apple-style-span" style="color: red;"><b>Here are the 10 important differences between WCF Services and ASP.NET Web Services:</b></span><br />
<br />
<div style="font-family: "Trebuchet MS",sans-serif;"><table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU-3wFRxDAAz6uye8XqGFGkwTlr6ofXv9e9Gsqvlo27_VjMlkVK8uVQ8luZgzxDm9lI_Jel8qsC22BC0O-iMYrrkPtbnD_VcZWdyCOnxW28W0lY3Uqu5cEqV6NQRsas5ADCfNuYADp1Thz/s1600/WCFandWebServicesDiff.PNG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU-3wFRxDAAz6uye8XqGFGkwTlr6ofXv9e9Gsqvlo27_VjMlkVK8uVQ8luZgzxDm9lI_Jel8qsC22BC0O-iMYrrkPtbnD_VcZWdyCOnxW28W0lY3Uqu5cEqV6NQRsas5ADCfNuYADp1Thz/s1600/WCFandWebServicesDiff.PNG" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span class="Apple-style-span" style="color: blue; font-size: small;"><b>Differences Between WCF and ASP.NET Web Services</b></span></td></tr>
</tbody></table></div></div><div class="blogger-post-footer">Feed from Twitter</div>Anonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.com0tag:blogger.com,1999:blog-2904443406872042433.post-48147048337904957382011-08-04T07:33:00.000-07:002011-08-05T11:23:55.425-07:00How to Create duplicate table in sql server 2005,2008<div dir="ltr" style="text-align: left;" trbidi="on"><span style="color: midnightblue; font-family: Verdana, Arial, Helvetica;"><span class="spnMessageText" id="msg">The "SELECT INTO" technique will create a table with the same columns but doesn't reproduce the keys, constraints, and defaults.</span></span><br />
<span style="color: midnightblue; font-family: Verdana, Arial, Helvetica;"><span class="spnMessageText" id="msg"><br />
</span></span><br />
<span style="color: midnightblue; font-family: Verdana, Arial, Helvetica;"><span class="spnMessageText" id="msg">This query is used to create a dupliate table with same columns and data</span></span><br />
<br />
<span class="Apple-style-span" style="color: midnightblue; font-family: Verdana, Arial, Helvetica;">Code:</span><br />
<span style="color: midnightblue; font-family: Verdana, Arial, Helvetica;"> </span><br />
<div id="post_message_2232583"><div style="margin: 5px 20px 20px;"><span style="font-family: Verdana, Arial, Helvetica;"> </span><br />
<pre class="alt2" dir="ltr" style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; height: 34px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-width: 700px; overflow-x: auto; overflow-y: auto; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; text-align: left; width: 700px;"><span style="font-family: Verdana, Arial, Helvetica;"><span class="Apple-style-span" style="color: red; font-size: large;"><b>select * into newtable from oldtable</b></span></span></pre></div><span style="color: midnightblue; font-family: Verdana, Arial, Helvetica;"><br />
</span></div><span style="color: midnightblue; font-family: Verdana, Arial, Helvetica;"> </span></div><div class="blogger-post-footer">Feed from Twitter</div>Anonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.com0tag:blogger.com,1999:blog-2904443406872042433.post-73637656897402874452011-08-04T08:35:00.000-07:002011-08-04T08:46:48.144-07:00cursors in sql server<div dir="ltr" style="text-align: left;" trbidi="on">A cursor is a set of rows together with a pointer that identifies a current row. <br />
<br />
In other word, Cursor is a database object used by applications to manipulate data in a set on a row-by-row basis, its like recordset in the ASP and visual basic.<br />
<br />
SQL Server is very good at handling sets of data. For example, you can use a single UPDATE statement to update many rows of data. There are times when you want to loop through a series of rows a perform processing for each row. In this case you can use a cursor.<br />
<div id="page_content"><div id="article_body"><br />
<span class="Apple-style-span" style="color: #b45f06;">The basic syntax of a cursor is:</span><br />
<pre><span class="Apple-style-span" style="color: #b45f06;">DECLARE @AuthorID char(11)
DECLARE c1 CURSOR <strong>READ_ONLY</strong>
FOR
SELECT au_id
FROM authors
OPEN c1
FETCH NEXT FROM c1
INTO @AuthorID
WHILE @@FETCH_STATUS = 0
BEGIN
PRINT @AuthorID
FETCH NEXT FROM c1
INTO @AuthorID
END
CLOSE c1
DEALLOCATE c1</span></pre><pre></pre>The DECLARE CURSOR statement defines the SELECT statement that forms the basis of the cursor. You can do just about anything here that you can do in a SELECT statement. The OPEN statement statement executes the SELECT statement and populates the result set. The FETCH statement returns a row from the result set into the variable. You can select multiple columns and return them into multiple variables. The variable @@FETCH_STATUS is used to determine if there are any more rows. It will contain 0 as long as there are more rows. We use a WHILE loop to move through each row of the result set.<br />
The READ_ONLY clause is important in the code sample above. That dramatically improves the performance of the cursor.<br />
<br />
<b>In this example</b>, I just print the contents of the variable. You can execute any type of statement you wish here. In a recent script I wrote I used a cursor to move through the rows in a table and call a stored procedure for each row passing it the primary key. Given that cursors are not very fast and calling a stored procedure for each row in a table is also very slow, my script was a resource hog. However, the stored procedure I was calling was written by the software vendor and was a very easy solution to my problem. In this case, I might have something like this:<br />
<br />
<pre><b><span class="Apple-style-span" style="color: #b45f06;">EXEC spUpdateAuthor (@AuthorID)</span></b></pre><pre><b><span class="Apple-style-span" style="color: red;">
</span></b></pre><pre></pre>instead of my Print statement. The CLOSE statement releases the row set and the DEALLOCATE statement releases the resources associated with a cursor.<br />
If you are going to update the rows as you go through them, you can use the UPDATE clause when you declare a cursor. You'll also have to remove the READ_ONLY clause from above.<br />
<b><span class="Apple-style-span" style="color: #b45f06;"><br />
</span></b><br />
<pre><b><span class="Apple-style-span" style="color: #b45f06;">DECLARE c1 CURSOR FOR
SELECT au_id, au_lname
FROM authors
FOR UPDATE OF au_lname</span></b></pre><br />
You can code your UPDATE statement to update the current row in the cursor like this<br />
<span class="Apple-style-span" style="color: #b45f06;"><br />
</span><br />
<pre><b><span class="Apple-style-span" style="color: #b45f06;">UPDATE authors
SET au_lname = UPPER(Smith)
WHERE CURRENT OF c1</span></b></pre><pre><b>
</b></pre>That covers the basics of cursors. You can check Books Online for more detailed information.</div><div id="article-footer"></div><script>
</script> </div></div><div class="blogger-post-footer">Feed from Twitter</div>Anonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.com0tag:blogger.com,1999:blog-2904443406872042433.post-52080376577619879732011-07-29T12:03:00.000-07:002011-07-29T12:08:21.954-07:00ASP.NET Split String Examples<div dir="ltr" style="text-align: left;" trbidi="on"><br />
<h2><span class="Apple-style-span" style="color: orange;">Split example</span></h2>To start, here we see how you can split a VB.NET String based on a space character, " "c. We allocate a New Char() array as well as a String() array to store the words in. Finally, we loop over the Strings and display them to the Console.<br />
<pre><b>Program that uses Split on String [VB.NET]</b>
Module Module1
Sub Main()
<i>' We want to split this input string</i>
Dim s As String = "there is a cat"
<i>' Split string based on spaces</i>
Dim words As String() = s.<u>Split</u>(New Char() {" "c})
<i>' Use For Each loop over words and display them</i>
Dim word As String
For Each word In words
Console.WriteLine(word)
Next
End Sub
End Module
<b>Output</b>
there
is
a
cat</pre><h2>Split parts of file path</h2>Here we see how you can Split a file system path into separate parts using Visual Basic .NET. We use a New Char() array with one string, "\""c, and then loop through and display the results.<br />
<pre><b>Program that splits file path [VB.NET]</b>
Module Module1
Sub Main()
<i>' The file system path we need to split</i>
Dim s As String = "C:\Users\Sam\Documents\Perls\Main"
<i>' Split the string on the backslash character</i>
Dim parts As String() = s.<u>Split</u>(New Char() {"\"c})
<i>' Loop through result strings with For Each</i>
Dim part As String
For Each part In parts
Console.WriteLine(part)
Next
End Sub
End Module
<b>Output</b>
C:
Users
Sam
Documents
Perls
Main</pre><h2>Split based on words</h2>Often you need to extract the words from a String or sentence in VB.NET. The code here needs to handle punctuation and non-word characters differently than the String Split method. Here we use Regex.Split to parse the words.<br />
<pre><b>Program that splits words [VB.NET]</b>
Imports System.Text.RegularExpressions
Module Module1
Sub Main()
<i>' Declare iteration variable</i>
Dim s As String
<i>' Loop through words in string</i>
Dim arr As String() = SplitWords("That is a cute cat, man!")
<i>' Display each word. Note that punctuation is handled correctly.</i>
For Each s In arr
Console.WriteLine(s)
Next
Console.ReadLine()
End Sub
<i>''' <summary>
''' Split the words in string on non-word characters.
''' This means commas and periods are handled correctly.
''' </summary></i>
Private Function SplitWords(ByVal s As String) As String()
<i>'
' Call Regex.Split function from the imported namespace.
' Return the result array.
'</i>
Return <u>Regex.Split</u>(s, "\W+")
End Function
End Module
<b>Output</b>
That
is
a
cute
cat
man</pre></div><div class="blogger-post-footer">Feed from Twitter</div>Anonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.com0tag:blogger.com,1999:blog-2904443406872042433.post-43277420010327911482011-07-28T11:15:00.000-07:002011-07-28T11:15:09.940-07:00Silverlight Star Rating Control<div dir="ltr" style="text-align: left;" trbidi="on">I found myself needing a star rating control for a Silverlight application recently, and although I found a few open source ones, none of them worked quite how I wanted them to. Besides, I designed my own <a href="http://mark-dot-net.blogspot.com/2008/02/xaml-star-rating.html">star shape in XAML</a> a while ago and wanted to use that as the basis.<br />
<a href="http://lh6.ggpht.com/-wzAVvoaYMMc/Tg4t1Hs3JTI/AAAAAAAAAe8/eS8IeNY2SOE/s1600-h/StarRating%25255B3%25255D.png"><img alt="StarRating" border="0" height="97" src="http://lh5.ggpht.com/-MQtr2XO8a6k/Tg4t16lrmVI/AAAAAAAAAfA/BgBXrKcU8i0/StarRating_thumb%25255B1%25255D.png?imgmax=800" style="background-image: none; border: 0px none; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="StarRating" width="186" /></a><br />
In particular I wanted the ability to have half-star ratings. I thought at first it would require me to use some kind of complicated clipping construct, with a rectangle hidden behind my star, but I realised I could cheat by creating a half-star shape. Each star is a UserControl made up of three shapes – a star fill, a half star on top and then an outline on top. <br />
I also wanted the colours to change as you hovered the mouse over it, indicating what rating would be given were you to click at any moment. This required the background of the control to be painted with a transparent brush, otherwise mouse events are only received while you are over stars and not in between them.<br />
The biggest difficulty was making resize work. Path objects can be a pain to resize. I ended up putting them on a Canvas and using a ScaleTransform to get them the right size. All the brushes are customisable (six of them), plus you can change the number of stars, the line joins (pointy or round edged stars) and the line thicknesses. You can also turn off editing to simply display a star rating.<br />
The <a href="http://starratingcontrol.codeplex.com/">Silverlight Star Rating Control</a> is open source and available on CodePlex. The easiest way to install it is <a href="http://nuget.org/List/Packages/MarkHeath.StarRating">using NuGet</a>.<br />
To have a play with the star rating control, you can try it in my (rather chaotic looking) test harness below:<br />
<div id="silverlightControlHost" style="height: 430px; width: 592px;"><object data="data:application/x-silverlight-2," height="100%" type="application/x-silverlight-2" width="100%"> <param name="source" value="http://www.wordandspirit.co.uk/software/SilverlightStarRatingControl.xap"><param name="onError" value="onSilverlightError"><param name="background" value="white"><param name="minRuntimeVersion" value="4.0.50826.0"><param name="autoUpgrade" value="true"><a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50826.0" style="text-decoration: none;"> <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style: none;"> </a> </object></div></div><div class="blogger-post-footer">Feed from Twitter</div>Anonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.com0tag:blogger.com,1999:blog-2904443406872042433.post-55317303477973865132011-07-28T11:09:00.000-07:002011-07-28T11:09:22.331-07:00Installing Windows Virtual PC on Windows 7 Home PremiumMicrosoft have replaced Virtual PC 2007 with “Windows Virtual PC”, but theoretically it is only supported with Windows 7 Professional and above. However, if you head over to the Windows Virtual PC website, and say that you have Windows 7 Professional, it enables the downloads of Windows XP Mode and Windows Virtual PC. You only need to download the Virtual PC part, which arrives as the rather cryptically named Windows6.1-KB958559-x86.msu. Simply double-click to install.<br />
<br />
Once installed you may, like me, run into the issue that hardware assisted virtualization is not enabled in your BIOS. I have a Dell laptop, and it was a matter of hitting F12 on bootup and searching around for the option in the BIOS settings. More info on enabling HAV.<br />
<br />
The final step was to load up one of the old Virtual PC 2007 vmc files I had lying around. This went smoothly, although my virtualized XP did attempt and fail to install new device drivers when it booted up. Windows Virtual PC adds a Virtual Machines folder under your user account from which you can set up a new virtual machine if you require. I haven’t done this yet, but I might give it a go later and attempt to get Ubuntu running (something which was notoriously difficult under VPC 2007 so hopefully the process is a bit smoother now).<br />
<br />
Anyway, it’s nice that Microsoft have made this tool available for free, which is very useful for software testing, and even better that its usable on Win 7 Home Premium, without having to upgrade to Professional.<div class="blogger-post-footer">Feed from Twitter</div>Anonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.com0tag:blogger.com,1999:blog-2904443406872042433.post-35062487615646511872011-07-28T11:00:00.000-07:002011-07-28T11:04:44.276-07:0010 CSharp keywords you should be using in ProgrammingMost developers who learn C# pick up the basic keywords quite quickly. Within a few weeks of working with a typical codebase you’ll have come across around a third of the C# keywords, and understand roughly what they do. You should have no trouble explaining what the following keywords mean:<br />
<br />
public, private, protected, internal, class, namespace, interface, get, set, for, foreach .. in, while, do, if, else, switch, break, continue, new, null, var, void, int, bool, double, string, true, false, try, catch<br />
<br />
However, while doing code reviews I have noticed that some developers get stuck with a limited vocabulary of keywords and never really get to grips with some of the less common ones, and so miss out on their benefits. So here’s a list, in no particular order, of some keywords that you should not just understand, but be using on a semi-regular basis in your own code.<br />
<i><b>is & as</b></i><br />
<br />
Sometimes I come across a variation of the following code, where we want to cast a variable to a different type but would like to check first if that cast is valid:<br />
<b><br />
if (sender.GetType() == typeof(TextBox))<br />
{<br />
TextBox t = (TextBox)sender;<br />
...<br />
}<br />
</b><br />
While this works fine, the is keyword could be used to simplify the if clause:<br />
<b> <br />
if (sender is TextBox)<br />
{<br />
TextBox t = (TextBox)sender;<br />
...<br />
}<br />
</b><br />
We can improve things further by using the as keyword, which is like a cast, but doesn’t throw an exception if the conversion is not valid – it just returns null instead. This means we can write code in a way that doesn’t require the .NET framework to check the type of our sender variable twice:<br />
<b><br />
TextBox t = sender as TextBox;<br />
if (t != null)<br />
{<br />
...<br />
}<br />
</b><br />
I feel obliged to add that if your code contains a lot of casts, you are probably doing something wrong, but that is a discussion for another day.<br />
<b><i>using</i></b><br />
<br />
Most developers are familiar with the using keyword for importing namespaces, but a surprising number do not make regular use of it for dealing with objects that implement IDisposable. For example, consider the following code:<br />
<b> <br />
var writer = new StreamWriter("test.txt");<br />
writer.WriteLine("Hello World");<br />
writer.Dispose();<br />
</b><br />
What we have here is a potential resource leak if there is an exception thrown between opening the file and closing it. The using keyword ensures that Dispose will always be called if the writer object was successfully created.<br />
<b> <br />
using (var writer = new StreamWriter("test.txt"))<br />
{<br />
writer.WriteLine("Hello World");<br />
}<br />
</b><br />
Make it a habit to check whether the classes you create implement IDisposable, and if so, make use of the using keyword.<br />
<b><i>finally</i></b><br />
<br />
Which brings us onto our next keyword, finally. Even developers who know and use using often miss appropriate scenarios for using a finally block. Here’s a classic example:<br />
<b> <br />
public void Update()<br />
{ <br />
if (this.updateInProgress)<br />
{ <br />
log.WriteWarning("Already updating"); <br />
return;<br />
}<br />
this.updateInProgress = true;<br />
...<br />
DoUpdate();<br />
...<br />
this.updateInProgress = false;<br />
<br />
}</b><br />
<br />
The code is trying to protect us from some kind of re-entrant or multithreaded scenario where an Update can be called while one is still in progress (please ignore the potential race condition for the purposes of this example). But what happens if there is an exception thrown within DoUpdate? Now we are never able to call Update again because our updateInProgress flag never got unset. A finally block ensures we can’t get into this invalid state:<br />
<b> <br />
public void Update()<br />
{ <br />
if (this.updateInProgress)<br />
{ <br />
log.WriteWarning("Already updating"); <br />
return;<br />
}<br />
try<br />
{<br />
this.updateInProgress = true;<br />
...<br />
DoUpdate();<br />
...<br />
}<br />
finally<br />
{<br />
this.updateInProgress = false;<br />
}<br />
}</b><br />
<br />
<b><i>readonly</i></b><br />
<br />
OK, this one is a fairly simple one, and you could argue that code works just fine without it. The readonly keyword says that a field can only be written to from within the constructor. It’s handy from a code readability point of view, since you can immediately see that this is a field whose value will never change during the lifetime of the class. It also becomes a more important keyword as you begin to appreciate the benefits of immutable classes. Consider the following class:<br />
<br />
<b>public class Person<br />
{<br />
public string FirstName { get; private set; }<br />
public string Surname { get; private set; }<br />
<br />
public Person(string firstName, string surname)<br />
{<br />
this.FirstName = firstName;<br />
this.Surname = surname;<br />
}<br />
}<br />
</b><br />
Person is certainly immutable from the outside – no one can change the FirstName or Surname properties. But nothing stops me from modifying those properties within the class. In other words, my code doesn’t advertise that I intend this to be an immutable class. Using the readonly keyword, we can express our intent better:<br />
<b> <br />
public class Person<br />
{<br />
private readonly string firstName;<br />
private readonly string surname;<br />
<br />
public string FirstName { get { return firstName; } }<br />
public string Surname { get { return surname; } }<br />
<br />
public Person(string firstName, string surname)<br />
{<br />
this.firstName = firstName;<br />
this.surname = surname;<br />
}<br />
}</b><br />
<br />
Yes, it’s a shame that this second version is a little more verbose than the first, but it makes it more explicit that we don’t want firstName or surname to be modified during the lifetime of the class. (Sadly C# doesn’t allow the readonly keyword on properties).<br />
<b><i>yield</i></b><br />
<br />
This is a very powerful and yet rarely used keyword. Suppose we have a class that searches our hard disk for all MP3 files and returns their paths. Often we might see it written like this:<br />
<b><br />
<br />
public List<string> FindAllMp3s()<br />
{<br />
var mp3Paths = List<string>();<br />
...<br />
// fill the list<br />
return mp3Paths;<br />
}<br />
</b><br />
Now we might use that method to help us search for a particular MP3 file we had lost:<br />
<br />
<b>foreach(string mp3File in FindAllMp3s())<br />
{<br />
if (mp3File.Contains("elvis"))<br />
{<br />
Console.WriteLine("Found it at: {0}", mp3File);<br />
break;<br />
} <br />
}<br />
</b><br />
Although this code seems to work just fine, it’s performance is sub-optimal, since we first find every MP3 file on the disk, and then search through that list. We could save ourselves a lot of time if we checked after each file we found and aborted the search at that point.<br />
<br />
The yield keyword allows us to fix this without changing our calling code at all. We modify FindAllMp3s to return an IEnumerable<string> instead of a List. And now every time it finds a file, we return it using the yield keyword. So with some rather contrived example helper functions (.NET 4 has already added a method that does exactly this) our FindAllMp3s method looks like this:<br />
<b> <br />
public IEnumerable<string> FindAllMp3s()<br />
{<br />
var mp3Paths = List<string>();<br />
<br />
for (var dir in GetDirs())<br />
{<br />
for (var file in GetFiles(dir))<br />
{<br />
if (file.EndsWith(".mp3")<br />
{<br />
yield return file;<br />
}<br />
}<br />
} <br />
}</b><br />
<br />
This not only saves us time, but it saves memory too, since we now don’t need to store the entire collection of mp3 files in a List.<br />
<br />
It can take a little while to get used to debugging this type of code since you jump in and out of a function that uses yield repeatedly as you walk through the sequence, but it has the power to greatly improve the design and performance of the code you write and is worth mastering.<br />
<b><i>select</i></b><br />
<br />
OK, this one is cheating since this is a whole family of related keywords. I won’t attempt to explain LINQ here, but it is one of the best features of the C# language, and you owe it to yourself to learn it. It will revolutionise the way you write code. Download LINQPad and start working through the tutorials it provides.<br />
<b><i>interface</i></b><br />
<br />
So you already know about this keyword. But you probably aren’t using it nearly enough. The more you write code that is testable and adheres to the Dependency Inversion Principle, the more you will need it. In fact at some point you will grow to hate how much you are using it and wish you were using a dynamic language instead. (dynamic is itself another very interesting new C# keyword, but I feel that the C# community is only just beginning to discover how we can best put it to use).<br />
<b><i>throw</i></b><br />
<br />
You do know you are allowed to throw as well as catch exceptions right? Some developers seem to think that a function should never let any exceptions get away, and so contain a generic catch block which writes an error to the log and returns giving the caller no indication that things went wrong.<br />
<br />
This is almost always wrong. Most of the time your methods should simply allow exceptions to propagate up to the caller. If you are using the using keyword correctly, you are probably already doing all the cleanup you need to.<br />
<br />
But you can and should sometimes throw exceptions. An exception thrown at the point you realise something is wrong with a good error message can save hours of debugging time.<br />
<br />
Oh, and if you really do need to catch an exception and re-throw it, make sure you use do it the correct way.<br />
<b><i>goto</i></b><br />
<br />
Only joking, pretend you didn’t see this one. Just because a keyword is in the language, doesn’t mean it is a good idea to use it. out and ref usually fall into this category too – there are better ways to write your code.<div class="blogger-post-footer">Feed from Twitter</div>Anonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.com0tag:blogger.com,1999:blog-2904443406872042433.post-77380682065765583182011-07-28T07:46:00.000-07:002011-07-28T07:47:33.241-07:00Contact Us<div dir="ltr" style="text-align: left;" trbidi="on"><b><span class="Apple-style-span" style="color: red;">Use the form below to contact us by email. Please verify that your email address is typed correctly, or we won't be able to respond to your inquiry.</span></b><br />
<script type="text/javascript">
id = 35026;
</script><br />
<script src="http://kontactr.com/wp.js" type="text/javascript">
</script></div><div class="blogger-post-footer">Feed from Twitter</div>Anonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.com0tag:blogger.com,1999:blog-2904443406872042433.post-41851355008987553392011-07-22T05:34:00.000-07:002011-07-22T05:34:52.838-07:00C# Coding Standards and Coding Style<div dir="ltr" style="text-align: left;" trbidi="on"><br />
Following the right Coding standars comes with Practice and proper Guidance if you are a starter, and also lots of companies define or customize their own coding standards.<br />
<br />
<span class="Apple-style-span" style="font-size: x-large;">Coding Style</span><br />
Coding style causes the most inconsistency and controversy between developers. Each developer has a preference, and<br />
rarely are two the same. However, consistent layout, format, and organization are key to creating maintainable code.<br />
The following sections describe the preferred way to implement C# source code in order to create readable, clear, and<br />
consistent code that is easy to understand and maintain.<br />
<span class="Apple-style-span" style="font-size: large;"><b> 3.1 Formatting</b></span><br />
<div style="text-align: left;"><i>1. Never declare more than 1 namespace per file.</i></div><div style="text-align: left;"><i>2. Avoid putting multiple classes in a single file.</i></div><div style="text-align: left;"><i>3. Always place curly braces ({ and }) on a new line.</i></div><div style="text-align: left;"><i>4. Always use curly braces ({ and }) in conditional statements.</i></div><div style="text-align: left;"><i>5. Always use a Tab & Indention size of 4.</i></div><div style="text-align: left;"><i>6. Declare each variable independently – not in the same statement.</i></div><div style="text-align: left;"><i>7. Place namespace “using” statements together at the top of file. Group .NET namespaces above custom</i></div><div style="text-align: left;"><i>namespaces.</i></div><div style="text-align: left;"><i>8. Group internal class implementation by type in the following order:</i></div><div style="text-align: left;"><i>a. Member variables.</i></div><div style="text-align: left;"><i>b. Constructors & Finalizers.</i></div><div style="text-align: left;"><i>c. Nested Enums, Structs, and Classes.</i></div><div style="text-align: left;"><i>d. Properties</i></div><div style="text-align: left;"><i>e. Methods</i></div><div style="text-align: left;"><i>9. Sequence declarations within type groups based upon access modifier and visibility:</i></div><div style="text-align: left;"><i>a. Public</i></div><div style="text-align: left;"><i>b. Protected</i></div><div style="text-align: left;"><i>c. Internal</i></div><div style="text-align: left;"><i>d. Private</i></div><div style="text-align: left;"><i>10. Segregate interface Implementation by using #region statements.</i></div><div style="text-align: left;"><i>11. Append folder-name to namespace for source files within sub-folders.</i></div><div style="text-align: left;"><i>12. Recursively indent all code blocks contained within braces.</i></div><div style="text-align: left;"><i>13. Use white space (CR/LF, Tabs, etc) liberally to separate and organize code.</i></div><div style="text-align: left;"><i>14. Only declare related attribute declarations on a single line, otherwise stack each attribute as a separate</i></div><div style="text-align: left;"><i>declaration.</i></div><div style="text-align: left;"><i>Example:</i></div><div style="text-align: left;"><i>// Bad!</i></div><div style="text-align: left;"><i>[Attrbute1, Attrbute2, Attrbute3]</i></div><div style="text-align: left;"><i>public class MyClass</i></div><div style="text-align: left;"><i>{…}</i></div><div style="text-align: left;"><i>// Good!</i></div><div style="text-align: left;"><i>[Attrbute1, RelatedAttribute2]</i></div><div style="text-align: left;"><i>[Attrbute3]</i></div><div style="text-align: left;"><i>[Attrbute4]</i></div><div style="text-align: left;"><i>public class MyClass</i></div><div style="text-align: left;"><i>{…}</i></div><div style="text-align: left;"><i>15. Place Assembly scope attribute declarations on a separate line.</i></div><div style="text-align: left;"><i>16. Place Type scope attribute declarations on a separate line.</i></div><div style="text-align: left;"><i>17. Place Method scope attribute declarations on a separate line.</i></div><div style="text-align: left;"><i>18. Place Member scope attribute declarations on a separate line.</i></div><div style="text-align: left;"><i>19. Place Parameter attribute declarations inline with the parameter.</i></div><div style="text-align: left;"><i>20. If in doubt, always err on the side of clarity and consistency.</i></div><br />
<span class="Apple-style-span" style="font-size: large;"><b>Code Commenting</b></span><br />
<br />
<i>21. All comments should be written in the same language, be grammatically correct, and contain appropriate</i><br />
<i>punctuation.</i><br />
<i>22. Use // or /// but never /* … */</i><br />
<i>23. Do not “flowerbox” comment blocks.</i><br />
<i>Example:</i><br />
<i>// ***************************************</i><br />
<i>// Comment block</i><br />
<i>// ***************************************</i><br />
<i>24. Use inline-comments to explain assumptions, known issues, and algorithm insights.</i><br />
<i>25. Do not use inline-comments to explain obvious code. Well written code is self documenting.</i><br />
<i>26. Only use comments for bad code to say “fix this code” – otherwise remove, or rewrite the code!</i><br />
<i>27. Include comments using Task-List keyword flags to allow comment-filtering.</i><br />
<i>Example:</i><br />
<i>// TODO: Place Database Code Here</i><br />
<i>// UNDONE: Removed P\Invoke Call due to errors</i><br />
<i>// HACK: Temporary fix until able to refactor</i><br />
<i>28. Always apply C# comment-blocks (///) to public, protected, and internal declarations.</i><br />
<i>29. Only use C# comment-blocks for documenting the API.</i><br />
<i>30. Always include <summary> comments. Include <param>, <return>, and <exception> comment</i><br />
<i>sections where applicable.</i><br />
<i>31. Include <see cref=””/> and <seeAlso cref=””/> where possible.</i><br />
<i>32. Always add CDATA tags to comments containing code and other embedded markup in order to avoid</i><br />
<i>encoding issues.</i><br />
<i>Example:</i><br />
<i>/// <example></i><br />
<i>/// Add the following key to the “appSettings” section of your config:</i><br />
<i>/// <code><![CDATA[</i><br />
<i>/// <configuration></i><br />
<i>/// <appSettings></i><br />
<i>/// <add key=”mySetting” value=”myValue”/></i><br />
<i>/// </appSettings></i><br />
<i>/// </configuration></i><br />
<i>/// ]]></code></i><br />
<i>/// </example></i><br />
<i><br />
</i><br />
<br />
<b><span class="Apple-style-span" style="font-size: large;">Object Model & API Design</span></b><br />
<div style="font-style: italic;">1. Always prefer aggregation over inheritance.</div><div style="font-style: italic;">2. Avoid “Premature Generalization”. Create abstractions only when the intent is understood.</div><div style="font-style: italic;">3. Do the simplest thing that works, then refactor when necessary.</div><div style="font-style: italic;">4. Always make object-behavior transparent to API consumers.</div><div style="font-style: italic;">5. Avoid unexpected side-affects when properties, methods, and constructors are invoked.</div><div style="font-style: italic;">6. Always separate presentation layer from business logic.</div><div style="font-style: italic;">7. Always prefer interfaces over abstract classes.</div><div style="font-style: italic;">8. Try to include the design-pattern names such as “Bridge”, “Adapter”, or “Factory” as a suffix to class names</div><div style="font-style: italic;">where appropriate.</div><div style="font-style: italic;">9. Only make members virtual if they are designed and tested for extensibility.</div><div style="font-style: italic;">10. Refactor often!</div><br />
<br />
</div><div class="blogger-post-footer">Feed from Twitter</div>Anonymoushttp://www.blogger.com/profile/16161455342869003318noreply@blogger.com0