<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-4171517281700622278</atom:id><lastBuildDate>Fri, 18 May 2012 11:26:40 +0000</lastBuildDate><category>install</category><category>apk</category><category>control</category><category>coordinates</category><category>charts</category><category>custom error</category><category>javascript</category><category>disable button</category><category>google maps</category><category>Iphone</category><category>master page</category><category>iis7</category><category>validators</category><category>onload</category><category>alignment</category><category>postback</category><category>sql server</category><category>c#</category><category>popup blocker</category><category>sqlserver</category><category>android</category><category>text</category><category>emulator</category><category>cms</category><category>html</category><category>favicon</category><category>Uilalertview</category><category>asp.net</category><category>phonegap</category><category>Indexes</category><category>image</category><category>mousemove</category><category>dotnenuke</category><category>jquerymobile</category><title>Knowledge Center</title><description /><link>http://ravipulluri.blogspot.com/</link><managingEditor>noreply@blogger.com (Ravi Pulluri)</managingEditor><generator>Blogger</generator><openSearch:totalResults>33</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/KnowledgeCenter" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="knowledgecenter" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4171517281700622278.post-562505471299906610</guid><pubDate>Fri, 18 May 2012 11:26:00 +0000</pubDate><atom:updated>2012-05-18T04:26:40.027-07:00</atom:updated><title>Remote Debugging Phonegap application</title><description>For remote debugging your phonegap application use&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://debug.phonegap.com/"&gt;http://debug.phonegap.com/&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4171517281700622278-562505471299906610?l=ravipulluri.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://ravipulluri.blogspot.com/2012/05/remote-debugging-phonegap-application.html</link><author>noreply@blogger.com (Ravi Pulluri)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4171517281700622278.post-4119314975955473118</guid><pubDate>Fri, 18 May 2012 10:51:00 +0000</pubDate><atom:updated>2012-05-18T03:53:00.836-07:00</atom:updated><title>Enabling Crossbrowser calls in Chrome</title><description>&lt;br /&gt;&lt;div style="border: 0px; line-height: 22px; margin-bottom: 14px; margin-top: 14px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;If you want your HTML file from the local file system, and that file will be able to make requests to other sites to access data or other resources in chrome browser,then run below command in terminal window.&lt;/span&gt;&lt;/div&gt;&lt;div style="border: 0px; line-height: 22px; margin-bottom: 14px; margin-top: 14px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&lt;strong style="letter-spacing: -1px;"&gt;open -a /Applications/Google\ Chrome.app --args --allow-file-access-from-files --disable-web-security&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong style="line-height: 22px;"&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="border: 0px; line-height: 22px; margin-bottom: 14px; margin-top: 14px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="line-height: 22px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Note : Before running above command close the chrome.&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4171517281700622278-4119314975955473118?l=ravipulluri.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://ravipulluri.blogspot.com/2012/05/enabling-crossbrowser-calls-in-chrome.html</link><author>noreply@blogger.com (Ravi Pulluri)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4171517281700622278.post-8173274635928151895</guid><pubDate>Thu, 26 Apr 2012 12:11:00 +0000</pubDate><atom:updated>2012-04-26T05:12:20.590-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Iphone</category><title>Custom font in IPhone Application</title><description>Sometimes we have apply our own custom fonts in application.&lt;br /&gt;&lt;div&gt;Normally we add the fontfile name with extension to resources and a entry in plist.&lt;/div&gt;&lt;div&gt;In code we will use the font some thing like this&lt;br /&gt;&lt;br /&gt;&lt;div class="p1"&gt;&lt;span class="s1"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;lblTest&lt;/span&gt;&lt;span class="s1"&gt; &lt;/span&gt;setFont&lt;span class="s1"&gt;: [&lt;/span&gt;&lt;span class="s2"&gt;UIFont&lt;/span&gt;&lt;span class="s1"&gt; &lt;/span&gt;fontWithName&lt;span class="s1"&gt;: &lt;/span&gt;&lt;span class="s3"&gt;@"&lt;b&gt;fontfilenamewithoutextension&lt;/b&gt;"&lt;/span&gt;&lt;span class="s1"&gt; &lt;/span&gt;size&lt;span class="s1"&gt;:&lt;/span&gt;&lt;span class="s4"&gt;30&lt;/span&gt;&lt;span class="s1"&gt;]];&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;But this&amp;nbsp;doesn't&amp;nbsp;works if font name is different from font file name.&lt;br /&gt;To get the font name use below code.&lt;br /&gt;&lt;br /&gt;&lt;div class="p1"&gt;&amp;nbsp; &amp;nbsp;&lt;span class="s1"&gt;NSArray&lt;/span&gt; *familyNames = [&lt;span class="s1"&gt;UIFont&lt;/span&gt; &lt;span class="s2"&gt;familyNames&lt;/span&gt;];&lt;/div&gt;&lt;div class="p1"&gt;&amp;nbsp; &amp;nbsp; &lt;span class="s3"&gt;for&lt;/span&gt;( &lt;span class="s1"&gt;NSString&lt;/span&gt; *familyName &lt;span class="s3"&gt;in&lt;/span&gt; familyNames ){&lt;/div&gt;&lt;div class="p1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="s4"&gt;printf&lt;/span&gt;( &lt;span class="s5"&gt;"Family: %s \n"&lt;/span&gt;, [familyName &lt;span class="s2"&gt;UTF8String&lt;/span&gt;] );&lt;/div&gt;&lt;div class="p1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="s1"&gt;NSArray&lt;/span&gt; *fontNames = [&lt;span class="s1"&gt;UIFont&lt;/span&gt; &lt;span class="s2"&gt;fontNamesForFamilyName&lt;/span&gt;:familyName];&lt;/div&gt;&lt;div class="p1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="s3"&gt;for&lt;/span&gt;( &lt;span class="s1"&gt;NSString&lt;/span&gt; *fontName &lt;span class="s3"&gt;in&lt;/span&gt; fontNames ){&lt;/div&gt;&lt;div class="p1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="s4"&gt;printf&lt;/span&gt;( &lt;span class="s5"&gt;"\tFont: %s \n"&lt;/span&gt;, [fontName &lt;span class="s2"&gt;UTF8String&lt;/span&gt;] );&lt;/div&gt;&lt;div class="p1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div class="p1"&gt;&amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div class="p1"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="p1"&gt;Pick the font name from the list which is printed in the log and then just replace that&amp;nbsp;&lt;/div&gt;&lt;div class="p1"&gt;&lt;span class="s1"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;lblTest&lt;/span&gt;&lt;span class="s1"&gt;&amp;nbsp;&lt;/span&gt;setFont&lt;span class="s1"&gt;: [&lt;/span&gt;&lt;span class="s2"&gt;UIFont&lt;/span&gt;&lt;span class="s1"&gt;&amp;nbsp;&lt;/span&gt;fontWithName&lt;span class="s1"&gt;:&amp;nbsp;&lt;/span&gt;&lt;span class="s3"&gt;@"&lt;b&gt;fontname&lt;/b&gt;"&lt;/span&gt;&lt;span class="s1"&gt;&amp;nbsp;&lt;/span&gt;size&lt;span class="s1"&gt;:&lt;/span&gt;&lt;span class="s4"&gt;30&lt;/span&gt;&lt;span class="s1"&gt;]];&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Now your custom font works :).&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4171517281700622278-8173274635928151895?l=ravipulluri.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://ravipulluri.blogspot.com/2012/04/custom-font-in-iphone-application.html</link><author>noreply@blogger.com (Ravi Pulluri)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4171517281700622278.post-1868365531104699111</guid><pubDate>Thu, 19 Apr 2012 11:18:00 +0000</pubDate><atom:updated>2012-04-19T04:18:16.150-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">jquerymobile</category><category domain="http://www.blogger.com/atom/ns#">Iphone</category><category domain="http://www.blogger.com/atom/ns#">phonegap</category><title>Disabling native iOS vertical window movement in phonegapp application</title><description>&lt;span style="background-color: white; font-family: arial, sans-serif; font-size: 12px;"&gt;When we are developing phonegap application page moves up and down when we scroll in the webview eventhough page has little data.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; font-family: arial, sans-serif; font-size: 12px;"&gt;- (void)webViewDidFinishLoad:(UIWebView *)theWebView&lt;/span&gt;&lt;span style="background-color: white; font-family: arial, sans-serif; font-size: 12px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: white; font-family: arial, sans-serif; font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; {&amp;nbsp;&lt;/span&gt;&lt;br style="background-color: white; font-family: arial, sans-serif; font-size: 12px;" /&gt;&lt;span style="background-color: white; font-family: arial, sans-serif; font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;for(id subview in theWebView.subviews) {&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;br style="background-color: white; font-family: arial, sans-serif; font-size: 12px;" /&gt;&lt;span style="background-color: white; font-family: arial, sans-serif; font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if([[subview class]isSubclassOfClass:[UIScrollView class]])&amp;nbsp;&lt;/span&gt;&lt;br style="background-color: white; font-family: arial, sans-serif; font-size: 12px;" /&gt;&lt;span style="background-color: white; font-family: arial, sans-serif; font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ((UIScrollView *)subview).bounces = NO;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br style="background-color: white; font-family: arial, sans-serif; font-size: 12px;" /&gt;&lt;span style="background-color: white; font-family: arial, sans-serif; font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial, sans-serif; font-size: 12px;"&gt;Just add above extra code in&lt;/span&gt;&lt;b style="font-family: arial, sans-serif; font-size: 12px;"&gt; appdelegates.m file webviewdidfinish&lt;/b&gt;&lt;span style="font-family: arial, sans-serif; font-size: 12px;"&gt; load function.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial, sans-serif;"&gt;&lt;span style="font-size: 12px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial, sans-serif;"&gt;&lt;span style="font-size: 12px;"&gt;This will fix the issue.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial, sans-serif;"&gt;&lt;span style="font-size: 12px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4171517281700622278-1868365531104699111?l=ravipulluri.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://ravipulluri.blogspot.com/2012/04/disabling-native-ios-vertical-window.html</link><author>noreply@blogger.com (Ravi Pulluri)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4171517281700622278.post-7049019804976636356</guid><pubDate>Fri, 02 Mar 2012 16:09:00 +0000</pubDate><atom:updated>2012-03-02T08:32:21.578-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">install</category><category domain="http://www.blogger.com/atom/ns#">apk</category><category domain="http://www.blogger.com/atom/ns#">emulator</category><category domain="http://www.blogger.com/atom/ns#">android</category><title>Installing Apk on Android Emulator Window and Mac</title><description>&lt;span style="font-family: Georgia, serif; font-size: 100%; font-style: normal; font-variant: normal; line-height: normal; font-weight: bold; "&gt;Below are the Steps to install Apk on Windows Android Emulator.&lt;/span&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-weight: normal; font-style: normal; font-variant: normal; line-height: normal; "&gt;&lt;b&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-weight: normal; font-style: normal; font-variant: normal; line-height: normal; "&gt;&lt;span&gt;Open command prompt&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-weight: normal; font-style: normal; font-variant: normal; line-height: normal; "&gt;&lt;span&gt;Go to Android Sdk  folder.&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 20px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "&gt;C:\android-sdk-windows\tools&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-weight: normal; font-style: normal; font-variant: normal; line-height: normal; "&gt;&lt;span&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 20px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "&gt;In command prompt type&lt;/span&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 20px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "&gt; adb install apkname.apk&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-weight: normal; font-style: normal; font-variant: normal; line-height: normal; "&gt;&lt;span&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 20px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-style: normal; font-variant: normal; line-height: normal; "&gt;&lt;span&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 20px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "  &gt;If you don' find adb command then &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-style: normal; font-variant: normal; line-height: normal; "&gt;&lt;span  &gt;&lt;span style="color: rgb(102, 102, 102); background-color: rgb(255, 255, 255); line-height: 20px; text-align: -webkit-auto; "&gt;Download&lt;/span&gt;&lt;span style="color: rgb(102, 102, 102); background-color: rgb(255, 255, 255); line-height: 20px; text-align: -webkit-auto; "&gt; the&lt;/span&gt;&lt;a target="_blank" href="http://www.botskool.com/downloads/geeks/android/adb.zip" style="background-color: rgb(255, 255, 255); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-decoration: none; line-height: 20px; text-align: -webkit-auto; "&gt; &lt;/a&gt;&lt;span style="background-color: rgb(255, 255, 255); line-height: 20px; text-align: -webkit-auto;"&gt;&lt;a href="http://www.botskool.com/downloads/geeks/android/adb.zip"&gt;adb.zip&lt;/a&gt;&lt;/span&gt;&lt;span style="color: rgb(102, 102, 102); background-color: rgb(255, 255, 255); line-height: 20px; text-align: -webkit-auto; "&gt; file which contains adb.exe, AdbWinApi.dll and InstallAgent(batch file)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-weight: normal; font-style: normal; font-variant: normal; line-height: normal; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 20px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "&gt;&lt;span style="line-height: normal; text-align: left; "&gt;&lt;span&gt;&lt;span style="color: rgb(102, 102, 102); font-weight: normal; line-height: 20px; text-align: -webkit-auto; "  &gt;unzip and copy these files to tools directory.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-weight: normal; font-style: normal; font-variant: normal; line-height: normal; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 20px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "&gt;&lt;span style="line-height: normal; text-align: left; "&gt;&lt;span&gt;&lt;span style="color: rgb(102, 102, 102); font-family: Verdana, 'DejaVu Sans', Sans; font-size: 12px; font-weight: normal; line-height: 20px; text-align: -webkit-auto; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-weight: normal; font-style: normal; font-variant: normal; line-height: normal; "&gt;&lt;strong style="font-size: 100%; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 20px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "&gt;&lt;span style="line-height: normal; text-align: left; "&gt;&lt;span&gt;Below are the Steps to install Apk on Mac os Android Emulator.&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-weight: normal; font-style: normal; font-variant: normal; line-height: normal; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 20px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "&gt;&lt;span style="line-height: normal; text-align: left; "&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-weight: normal; font-style: normal; font-variant: normal; line-height: normal; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 20px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "&gt;&lt;span style="line-height: normal; text-align: left; "&gt;&lt;span&gt;Open Terminal&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-weight: normal; font-style: normal; font-variant: normal; line-height: normal; "&gt;&lt;span&gt;&lt;span&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 20px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "&gt;&lt;span style="line-height: normal; text-align: left; "&gt;go to&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 20px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); "&gt;android-sdk-mac\platform-tools&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-weight: normal; line-height: normal; "&gt;&lt;span style="font-family: arial; background-color: rgb(255, 255, 255); line-height: 20px; text-align: -webkit-auto; "&gt;type&lt;/span&gt;&lt;b style="font-family: arial; background-color: rgb(255, 255, 255); line-height: 20px; text-align: -webkit-auto; "&gt; ./adb install myApp.apk&lt;/b&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-weight: normal; line-height: normal; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); line-height: 20px;"&gt;&lt;span&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-weight: normal; line-height: normal; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); line-height: 20px;"&gt;&lt;span&gt;If you get any error while installing on Mac just restart the adb.Below are the commands&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-weight: normal; line-height: normal; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); line-height: 20px;"&gt;&lt;span&gt;&lt;div&gt;&lt;b&gt;./adb kill-server&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;./adb start-server&lt;/b&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-weight: normal; line-height: normal; text-align: -webkit-auto; "&gt;&lt;span&gt;&lt;span style="line-height: 20px;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; font-weight: normal; line-height: normal; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-align: -webkit-auto; background-color: rgb(255, 255, 255); line-height: 20px;"&gt;&lt;span&gt;&lt;b&gt;Note : copy apk to tools and platform-tools directories on windows and mac respectively.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Georgia, serif; font-size: 100%; line-height: normal; font-weight: normal; text-align: -webkit-auto; "&gt;&lt;span style="line-height: 20px;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4171517281700622278-7049019804976636356?l=ravipulluri.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://ravipulluri.blogspot.com/2012/03/installing-apk-on-android-emulator.html</link><author>noreply@blogger.com (Ravi Pulluri)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4171517281700622278.post-717874070816875579</guid><pubDate>Thu, 15 Sep 2011 12:54:00 +0000</pubDate><atom:updated>2011-09-15T05:58:20.542-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">html</category><category domain="http://www.blogger.com/atom/ns#">google maps</category><title>Height Percentage issue with Google Maps</title><description>If you try to use style="width:100%;height:100%" on your map div, you get a map div that has zero height. That's because the div tries to be a percentage of the size of the &lt;body&gt;, but by default the &lt;body&gt; has an indeterminate height.&lt;br /&gt;There are ways to determine the height of the screen and use that number of pixels as the height of the map div, but a simple alternative is to change the &lt;body&gt; so that its height is 100% of the page. We can do this by applying style="height:100%" to both the &lt;body&gt; and the &lt;html&gt;. (We have to do it to both, otherwise the &lt;body&gt; tries to be 100% of the height of the document, and the default for that is an indeterminate height.&lt;br /&gt;&lt;br /&gt;The &lt;body&gt; also has a margin by default. If you want to switch that off, add "margin:0" to the &lt;body&gt; style, to push the body right out to the edge of the screen.&lt;br /&gt;&lt;br /&gt;Reference : http://econym.org.uk/gmap/basic19.htm&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4171517281700622278-717874070816875579?l=ravipulluri.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://ravipulluri.blogspot.com/2011/09/using-percentage-height-for-map-div.html</link><author>noreply@blogger.com (Ravi Pulluri)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4171517281700622278.post-4051012947019123317</guid><pubDate>Mon, 02 May 2011 07:43:00 +0000</pubDate><atom:updated>2011-05-02T00:45:37.676-07:00</atom:updated><title>Getting Current URL from UIWebView</title><description>To get the current URL string from a UIWebView object.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;NSString *currentURL = UIWebViewID.request.URL.absoluteString;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4171517281700622278-4051012947019123317?l=ravipulluri.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://ravipulluri.blogspot.com/2011/05/getting-current-url-from-uiwebview.html</link><author>noreply@blogger.com (Ravi Pulluri)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4171517281700622278.post-3926258786555509980</guid><pubDate>Thu, 02 Dec 2010 09:31:00 +0000</pubDate><atom:updated>2010-12-02T01:39:07.865-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">text</category><category domain="http://www.blogger.com/atom/ns#">Iphone</category><category domain="http://www.blogger.com/atom/ns#">alignment</category><category domain="http://www.blogger.com/atom/ns#">Uilalertview</category><title>UIAlertView Text Aligment</title><description>Below is the code to left align the text in UIAlertView.&lt;br /&gt;&lt;br /&gt;UIAlertView *someAlert = [[UIAlertView alloc] initWithTitle:@”Alert" message:@”Here long Description goes."  delegate: self cancelButtonTitle: @"Ok" otherButtonTitles: nil]; &lt;br /&gt; [someAlert show];&lt;br /&gt; [someAlert release];&lt;br /&gt; ((UILabel*)[[someAlert subviews] objectAtIndex:1]).textAlignment = UITextAlignmentLeft;//left alignment&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4171517281700622278-3926258786555509980?l=ravipulluri.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://ravipulluri.blogspot.com/2010/12/uialertview-text-aligment.html</link><author>noreply@blogger.com (Ravi Pulluri)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4171517281700622278.post-4950534662713577340</guid><pubDate>Thu, 04 Feb 2010 12:43:00 +0000</pubDate><atom:updated>2010-02-04T04:45:32.726-08:00</atom:updated><title>DevFest 2010 developer conference in Hyderabad and Pune</title><description>Google is excited to announce DevFest 2010 developer conference in Hyderabad and Pune in the month of february and march. This event is focused on sharing latest offerings for Google developer products : App Engine, Maps APIs, Chrome Extensions and Orkut APIs.&lt;br /&gt;More information and to register click here&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;a href="http://sites.google.com/site/devfest2010/"&gt;http://sites.google.com/site/devfest2010/&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4171517281700622278-4950534662713577340?l=ravipulluri.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://ravipulluri.blogspot.com/2010/02/devfest-2010-developer-conference-in.html</link><author>noreply@blogger.com (Ravi Pulluri)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4171517281700622278.post-708027254893835766</guid><pubDate>Mon, 18 Jan 2010 05:03:00 +0000</pubDate><atom:updated>2010-01-17T21:09:47.947-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">iis7</category><title>Configuration file is not well-formed XML-ApplicationHost.config</title><description>This is totally IIS configuration related issue as applicationHost.config marked as corrupted. You may get this error due to various reasons unmanaged restoration, erroneous editing of applicationHost.config, etc. Here I am going to show you quick recovery method without going any deep. Technically we are going to restore the applicationHost.config file form IIS generated backups by using AppCmd.exe command line tool.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Go to the Command Prompt.&lt;br /&gt;&lt;br /&gt;Change the path to &gt; %windir%\system32\inetsrv\&lt;br /&gt;&lt;br /&gt;Find the current backup list &gt; %windir%\system32\inetsrv\appcmd.exe list backup&lt;br /&gt;&lt;br /&gt;Select the latest backup by sequence number&lt;br /&gt;Restore the backup &gt; %windir%\system32\inetsrv\appcmd.exe restore backup &lt;backup name&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4171517281700622278-708027254893835766?l=ravipulluri.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://ravipulluri.blogspot.com/2010/01/configuration-file-is-not-well-formed.html</link><author>noreply@blogger.com (Ravi Pulluri)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4171517281700622278.post-2892669311913744590</guid><pubDate>Thu, 22 Oct 2009 06:23:00 +0000</pubDate><atom:updated>2009-10-21T23:26:35.074-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cms</category><category domain="http://www.blogger.com/atom/ns#">asp.net</category><category domain="http://www.blogger.com/atom/ns#">dotnenuke</category><title>Dotnet Nuke</title><description>Recently started working on Dotnet Nuke CMS.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;DotNetNuke&lt;/span&gt; provides extensive functionality out-of-the-box to create rich, functional and easy to use web sites. The content management system allows non-technical users to create and edit content, add custom features and personalize the site look and feel. It can be further expanded with addition of third party modules and tailored with custom graphics and layouts in a form of skins.&lt;br /&gt;The &lt;span style="font-weight:bold;"&gt;DotNetNuke &lt;/span&gt;Corporation provides a free, open-source version of DotNetNuke called the Community Edition. It includes access to the source code of the entire framework and basic modules, and a BSD-style license [3] allowing very flexible modification and distribution rights.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4171517281700622278-2892669311913744590?l=ravipulluri.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://ravipulluri.blogspot.com/2009/10/dotnet-nuke.html</link><author>noreply@blogger.com (Ravi Pulluri)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4171517281700622278.post-7068928476131741905</guid><pubDate>Wed, 24 Jun 2009 15:39:00 +0000</pubDate><atom:updated>2009-06-24T08:42:18.433-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">javascript</category><category domain="http://www.blogger.com/atom/ns#">validators</category><category domain="http://www.blogger.com/atom/ns#">asp.net</category><title>Disabling an ASP.Net Validators through Javascript</title><description>If you want disable the asp.net validator through javascript then use below code.&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;function doSomething()&lt;br /&gt;{&lt;br /&gt;  var myVal = document.getElementById('myValidatorClientID');&lt;br /&gt;  ValidatorEnable(myVal, false);  &lt;br /&gt;}&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4171517281700622278-7068928476131741905?l=ravipulluri.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://ravipulluri.blogspot.com/2009/06/disabling-aspnet-validators-through.html</link><author>noreply@blogger.com (Ravi Pulluri)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4171517281700622278.post-2125739873205349604</guid><pubDate>Tue, 19 May 2009 19:29:00 +0000</pubDate><atom:updated>2009-05-19T12:31:11.307-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">asp.net</category><category domain="http://www.blogger.com/atom/ns#">master page</category><title>Access MasterPage ScriptManager from a Content Page</title><description>You probably know that each ASP.NET Ajax page MUST have ONLY ONE ScriptManager control.&lt;br /&gt;No more, no less.&lt;br /&gt;&lt;br /&gt;If you try to add more than one ScriptManager to ASP.NET page you will receive error:&lt;br /&gt; "Only one instance of a ScriptManager can be added to the page."&lt;br /&gt;&lt;br /&gt;Because of this, its common (and recommended) practice to use this approach:&lt;br /&gt;Create MasterPage, and place ScriptManager control on it and then use this instance on each of ContentPages.&lt;br /&gt;&lt;br /&gt;here is the code that you can place on your ContentPage to retrieve an instance of ScriptManager from MasterPage:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  &lt;strong&gt;ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page);&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4171517281700622278-2125739873205349604?l=ravipulluri.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://ravipulluri.blogspot.com/2009/05/access-masterpage-scriptmanager-from.html</link><author>noreply@blogger.com (Ravi Pulluri)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4171517281700622278.post-1155958026079607503</guid><pubDate>Tue, 05 May 2009 21:51:00 +0000</pubDate><atom:updated>2009-05-05T15:00:57.650-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">asp.net</category><title>Highlight or BOLD a single item in a drop down list Asp.Net</title><description>&lt;a href="http://1.bp.blogspot.com/_g7Rqye2Sif4/SgC18l94_iI/AAAAAAAAA5w/PVRII_6JUm4/s1600-h/optgroup.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5332462011395145250" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 179px; CURSOR: hand; HEIGHT: 195px" alt="" src="http://1.bp.blogspot.com/_g7Rqye2Sif4/SgC18l94_iI/AAAAAAAAA5w/PVRII_6JUm4/s320/optgroup.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Highlight or BOLD a single item in a drop down list in Html we can do using &lt;strong&gt;optgroup&lt;/strong&gt; tag.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Coming to Asp.Net drop down we don't have any option like this.I found one control which can accomplish our task in Asp.Net.&lt;br /&gt;&lt;br /&gt;You can get this from &lt;a href="http://www.sharppieces.com/free-aspnet-controls/ExtendedDropDownList.aspx"&gt;Click here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4171517281700622278-1155958026079607503?l=ravipulluri.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://ravipulluri.blogspot.com/2009/05/highlight-or-bold-single-item-in-drop.html</link><author>noreply@blogger.com (Ravi Pulluri)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_g7Rqye2Sif4/SgC18l94_iI/AAAAAAAAA5w/PVRII_6JUm4/s72-c/optgroup.png" height="72" width="72" /><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4171517281700622278.post-2410844807182188223</guid><pubDate>Thu, 23 Apr 2009 20:00:00 +0000</pubDate><atom:updated>2009-04-23T13:05:09.605-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">c#</category><title>Captilizing the first letter of  all words in a sentence.</title><description>We need to capitalize the first letters of some word or some text (for example when we want to display users name or city name etc).&lt;br /&gt;Since string class does not have a method to do this we could think that there is no built-in solution in C# for this problem...&lt;br /&gt;&lt;br /&gt;But a little digging trough MSDN would help us find ToTitleCase method of TextInfo class in System.Globalization namespace that does exactly what we need: capitalizes the first letter of each word in the string.&lt;br /&gt;&lt;br /&gt;here is how to use it:&lt;br /&gt;&lt;em&gt;&lt;br /&gt;using System.Globalization;&lt;br /&gt;&lt;br /&gt;TextInfo UsaTextInfo = new CultureInfo("en-US", false).TextInfo;&lt;br /&gt;&lt;br /&gt;string capitalized = UsaTextInfo.ToTitleCase("asp.net simply rocks!!!");&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;After the execution, capitalized string would have this value:&lt;br /&gt; &lt;strong&gt;"Asp.Net Simply Rocks!!!"&lt;/strong&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4171517281700622278-2410844807182188223?l=ravipulluri.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://ravipulluri.blogspot.com/2009/04/captilizing-first-letter-of-all-words.html</link><author>noreply@blogger.com (Ravi Pulluri)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4171517281700622278.post-2890764295121123666</guid><pubDate>Mon, 20 Apr 2009 18:01:00 +0000</pubDate><atom:updated>2009-04-20T11:13:28.383-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">javascript</category><category domain="http://www.blogger.com/atom/ns#">onload</category><category domain="http://www.blogger.com/atom/ns#">master page</category><title>Using body onload with ASP.net MasterPages</title><description>we want to use body onload tag in master pages but it will have effect other content pages.The onload function is for only one content page.for this purpose we have used below code in master page.&lt;br /&gt;&lt;strong&gt;Master Page :&lt;/strong&gt;&lt;br /&gt;&amp;lt;script language="javascript"&amp;gt;&lt;br /&gt;    function masterpage_onload()&lt;br /&gt;    {&lt;br /&gt;      if(window.content_onload != null)&lt;br /&gt;                  window.content_onload();&lt;br /&gt;         //this condition check whether the rendered page has function are not.&lt;br /&gt;&lt;br /&gt;    }&lt;br /&gt;  &amp;lt/script&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Content Page :&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;script language="javascript"&amp;gt;&lt;br /&gt;    function content_onload()&lt;br /&gt;    {&lt;br /&gt;      //do something&lt;br /&gt;    }&lt;br /&gt;  &amp;lt/script&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4171517281700622278-2890764295121123666?l=ravipulluri.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://ravipulluri.blogspot.com/2009/04/using-body-onload-with-aspnet-20.html</link><author>noreply@blogger.com (Ravi Pulluri)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4171517281700622278.post-5645402392820004994</guid><pubDate>Fri, 13 Mar 2009 17:28:00 +0000</pubDate><atom:updated>2009-04-20T11:11:58.601-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">javascript</category><category domain="http://www.blogger.com/atom/ns#">disable button</category><category domain="http://www.blogger.com/atom/ns#">postback</category><title>Disable a button control during postback.</title><description>This example is a non-AJAX solution.&lt;br /&gt;&lt;br /&gt;The trick is to use the OnClientClick and UseSubmitBehavior properties of the button control. There are other methods, involving code on the server side to add attributes, but I think the simplicity of doing it this way is much more attractive:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&amp;lt;asp:Button runat="server" ID="BtnSubmit" &lt;br /&gt;  OnClientClick="this.disabled = true; this.value = 'Submitting...';" &lt;br /&gt;  UseSubmitBehavior="false" &lt;br /&gt;  OnClick="BtnSubmit_Click" &lt;br /&gt;  Text="Submit Me!" /&amp;gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;OnClientClick allows you to add client side OnClick script. In this case, the JavaScript will disable the button element and change its text value to a progress message. When the postback completes, the newly rendered page will revert the button back its initial state without any additional work.&lt;br /&gt;&lt;br /&gt;The one pitfall that comes with disabling a submit button on the client side is that it will cancel the browser’s submit, and thus the postback. Setting the UseSubmitBehavior property to false tells .NET to inject the necessary client script to fire the postback anyway, instead of relying on the browser’s form submission behavior.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4171517281700622278-5645402392820004994?l=ravipulluri.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://ravipulluri.blogspot.com/2009/03/disable-button-control-during-postback.html</link><author>noreply@blogger.com (Ravi Pulluri)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4171517281700622278.post-4170814979476027314</guid><pubDate>Wed, 17 Dec 2008 16:06:00 +0000</pubDate><atom:updated>2009-04-20T11:12:16.730-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">javascript</category><title>Check a value in a string using Javascript</title><description>In .net if we want to check a value whether it is existing in given string&lt;br /&gt;we have contains function which return true or false.&lt;br /&gt;But in javascript we dont have function like this.But we can implement this &lt;br /&gt;by using the function &lt;strong&gt;indexOf()&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;All you need to do is check whether the return value is -1 or not. A return value of -1 implies that the specific letter is not present in the given string.&lt;br /&gt;&lt;br /&gt;function checkString()&lt;br /&gt;{&lt;br /&gt;       if(str.indexOf("http://")==-1)&lt;br /&gt;         {&lt;br /&gt;            alert("Value Not Found");&lt;br /&gt;         }&lt;br /&gt;       else&lt;br /&gt;         {&lt;br /&gt;            alert("Value Found");&lt;br /&gt;&lt;br /&gt;         }&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4171517281700622278-4170814979476027314?l=ravipulluri.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://ravipulluri.blogspot.com/2008/12/check-value-in-string-using-javascript.html</link><author>noreply@blogger.com (Ravi Pulluri)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4171517281700622278.post-8163228845116494469</guid><pubDate>Mon, 08 Dec 2008 20:53:00 +0000</pubDate><atom:updated>2008-12-29T15:46:33.814-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">sqlserver</category><title>Random results</title><description>This is related to sqlserver.&lt;br /&gt;Our team recently completed a project for a  Real estate company, for which we received thank-you letters and e-mails from very happy customers.we have stored this in a table.&lt;br /&gt;we want to show this on page. We chose to display 10 notes, but we didn't want a fixed display because it would be boring and require maintenance. So, we opted to display 10 notes selected at random. &lt;br /&gt; &lt;br /&gt;To do this just we have used a simple query which displays&lt;br /&gt;different result at diffent times.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;select top 3* from table name order by &lt;em&gt;&lt;strong&gt;newid()&lt;/strong&gt;&lt;/em&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4171517281700622278-8163228845116494469?l=ravipulluri.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://ravipulluri.blogspot.com/2008/12/random-results.html</link><author>noreply@blogger.com (Ravi Pulluri)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4171517281700622278.post-7742030276207162535</guid><pubDate>Fri, 05 Dec 2008 18:55:00 +0000</pubDate><atom:updated>2008-12-17T08:15:36.490-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">control</category><category domain="http://www.blogger.com/atom/ns#">master page</category><title>Find control in aspx page which has master page</title><description>Its easy to find the control in apsx page but we need to write &lt;br /&gt;extra code when we have a master page for the aspx page.&lt;br /&gt;&lt;br /&gt;Below is the code which finds control in aspx page which has master page.&lt;br /&gt;&lt;br /&gt;Dim content As ContentPlaceHolder&lt;br /&gt;  content = Page.Master.FindControl("ContentPlaceHolder1")&lt;br /&gt;&lt;br /&gt;  Dim labelcontrol As Label&lt;br /&gt;  labelcontrol = content.FindControl("LabelId")&lt;br /&gt;  labelcontrol .Visible = False&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;using above code we can find the control.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4171517281700622278-7742030276207162535?l=ravipulluri.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://ravipulluri.blogspot.com/2008/12/find-control-in-aspx-page.html</link><author>noreply@blogger.com (Ravi Pulluri)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4171517281700622278.post-825315319673325877</guid><pubDate>Thu, 04 Dec 2008 20:58:00 +0000</pubDate><atom:updated>2008-12-04T13:00:05.059-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">sql server</category><title>Yesterday Date in Sqlserver</title><description>Below is the query to get Yesterday date in sqlserver.&lt;br /&gt;&lt;br /&gt;Select *&lt;br /&gt;from table&lt;br /&gt;where DATEPART(dd,creationdate) = datepart(dd,dateadd(dd,-1,getdate()))&lt;br /&gt;and datepart(mm,creationdate) = datepart(mm,dateadd(dd,-1,getdate()))&lt;br /&gt;and datepart(yyyy,creationdate) = datepart(yyyy,dateadd(dd,-1,getdate()))&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4171517281700622278-825315319673325877?l=ravipulluri.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://ravipulluri.blogspot.com/2008/12/yesterday-date-in-sqlserver.html</link><author>noreply@blogger.com (Ravi Pulluri)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4171517281700622278.post-9146594196541624032</guid><pubDate>Thu, 06 Nov 2008 13:48:00 +0000</pubDate><atom:updated>2009-04-20T11:12:37.340-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">favicon</category><title>favicon to your site</title><description>Would you like to display your own icon on the browser address bar when visitors view or bookmark your web page?&lt;br /&gt;place the below code in the head tag of page to get the icon.&lt;br /&gt;&lt;br /&gt;&amp;lt;link rel="shortcut icon" href="http://path/favicon.ico" &amp;gt;&lt;br /&gt;&amp;lt;link rel="icon" href="http://path/favicon.ico" &amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To Genearate favicon to your site &lt;a href="http://www.html-kit.com/favicon"&gt;click here&lt;/a&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4171517281700622278-9146594196541624032?l=ravipulluri.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://ravipulluri.blogspot.com/2008/11/favicon-to-your-site.html</link><author>noreply@blogger.com (Ravi Pulluri)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4171517281700622278.post-1354058252652049003</guid><pubDate>Tue, 04 Nov 2008 22:14:00 +0000</pubDate><atom:updated>2009-04-20T11:12:52.655-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">javascript</category><title>Fire a button click from any text box when enter key is pressed</title><description>If you have more than one button on a form ASP.Net doesn't know which button should be the default button.&lt;br /&gt;&lt;br /&gt;With this code you may trigger any button click from any text box when the enter key is pressed. &lt;br /&gt;&lt;br /&gt;&lt;em&gt;TextBox.Attributes.Add("onkeydown", "javascript:if((event.which &amp;&amp; event.which == 13) || (event.keyCode &amp;&amp; event.keyCode == 13)){document.getElementById('" &amp; Button.ClientID &amp; "').click();return false;}else return true;")&lt;/em&gt; &lt;br /&gt;&lt;br /&gt;other way is if you are using panels then you can use the property &lt;br /&gt;"Default Button".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4171517281700622278-1354058252652049003?l=ravipulluri.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://ravipulluri.blogspot.com/2008/11/fire-button-click-from-any-text-box.html</link><author>noreply@blogger.com (Ravi Pulluri)</author><thr:total>3</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4171517281700622278.post-1668825467120443591</guid><pubDate>Wed, 29 Oct 2008 17:29:00 +0000</pubDate><atom:updated>2008-10-29T10:33:46.151-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">charts</category><category domain="http://www.blogger.com/atom/ns#">asp.net</category><title>WebControl for creating charts</title><description>Check this Url.&lt;br /&gt;&lt;a href="http://www.carlosag.net/Tools/WebChart/"&gt;http://www.carlosag.net/Tools/WebChart/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;its an excellent free chart control to render charts in our application.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4171517281700622278-1668825467120443591?l=ravipulluri.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://ravipulluri.blogspot.com/2008/10/webcontrol-for-creating-charts.html</link><author>noreply@blogger.com (Ravi Pulluri)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4171517281700622278.post-2108254444520495615</guid><pubDate>Wed, 29 Oct 2008 17:15:00 +0000</pubDate><atom:updated>2008-10-29T10:25:02.475-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">asp.net</category><category domain="http://www.blogger.com/atom/ns#">custom error</category><title>Redirecting to Custom Error Page When 404 Page not Found Occurs.</title><description>&lt;strong&gt;Write the below code in &lt;em&gt;global.asax&lt;/em&gt; file in &lt;em&gt;Application_Error &lt;/em&gt;Method.&lt;/strong&gt;&lt;br /&gt;StringBuilder errMessage = new StringBuilder();&lt;br /&gt;Exception ex = Server.GetLastError();&lt;br /&gt;if (ex is HttpException)&lt;br /&gt;{&lt;br /&gt;HttpException checkException = (HttpException)ex;&lt;br /&gt;&lt;br /&gt;switch (checkException.GetHttpCode())&lt;br /&gt;{&lt;br /&gt;case 403:&lt;br /&gt;{&lt;br /&gt;errMessage.Append("You are not allowed to view that page.");&lt;br /&gt;break;&lt;br /&gt;}&lt;br /&gt;case 404:&lt;br /&gt;{&lt;br /&gt;errMessage.Append("The page you requested cannot be found.");&lt;br /&gt;break;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;we can number of http code here.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4171517281700622278-2108254444520495615?l=ravipulluri.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://ravipulluri.blogspot.com/2008/10/redirecting-to-custom-error-page-when.html</link><author>noreply@blogger.com (Ravi Pulluri)</author><thr:total>0</thr:total></item></channel></rss>

