<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4490387103798985456</id><updated>2011-11-28T01:22:07.307+01:00</updated><category term='Personal'/><category term='xml'/><category term='LINQ'/><category term='Twitter'/><category term='jQuery'/><category term='javascript'/><category term='CSS'/><category term='Captcha'/><category term='ajax'/><category term='Asp.Net'/><category term='GridView'/><category term='Asp'/><category term='SiteMap'/><category term='Blogger'/><category term='API'/><category term='Google'/><category term='Sql'/><category term='c#'/><category term='Master Page'/><category term='datalist'/><category term='Array'/><category term='Seo Technique'/><category term='web 2.0'/><category term='Div'/><category term='Html'/><category term='CDN'/><category term='Tips and Tricks'/><category term='Silverlight'/><category term='tinyurl'/><title type='text'>Coding Stuffs</title><subtitle type='html'>&amp;lt;asp:input&amp;gt;.. &amp;lt;html&amp;gt;.. &amp;lt;!DOCTYPE HTML...
..protected void Page_Load(object... &amp;lt;style type=&amp;quot;text/css ... Select Error from Database...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>80</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-7029322817726576420</id><published>2011-03-28T10:35:00.002+01:00</published><updated>2011-03-28T10:45:17.768+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><title type='text'>Export Gridview to PDF</title><content type='html'>we have seen how to export the data from gridview to Excel file, today this post will helps you to export the gridview data to PDF, if you want protect you data being edit/ cut/ delete then Export to PDF will be a better option for you.there is a open source project for iTextShart. you can download the dll from them and you can use it.&lt;br /&gt;&lt;br /&gt;only you need to add this content on your page&lt;br /&gt;&lt;br /&gt;      &lt;blockquote&gt;Response.ContentType = "application/pdf";&lt;br /&gt;       Response.AddHeader("content-disposition", "attachment; filename= SampleExport.pdf");&lt;br /&gt;       Response.End();&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Even you can format the text also,if you want to set the page with A4 or any other even you can also do the same.you can also specify the font size, style color all the basic things you can do with it.&lt;br /&gt;&lt;br /&gt;you can download the code from the below link. you can try that it will helps you.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetspider.com/attachments/Resources/29759-30458-GridToPDF.zip"&gt;download Source&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-7029322817726576420?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/7029322817726576420/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2011/03/export-gridview-to-pdf.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/7029322817726576420'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/7029322817726576420'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2011/03/export-gridview-to-pdf.html' title='Export Gridview to PDF'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-101094387039071514</id><published>2010-07-18T10:43:00.005+01:00</published><updated>2010-07-18T11:02:42.352+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Blogger'/><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><title type='text'>how to add related posts on Blogger</title><content type='html'>we have seen on most of the blogger site , "Related post" section is there after every post now you want to add this Related post / Similar post on your blog ? follow the below easy steps and configure you blogger accordingly.&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt; Open blogger.com site &lt;/li&gt;&lt;br /&gt;&lt;li&gt; Go to Design section under that you will get Edit Html Tab just click on it.  &lt;/li&gt;&lt;br /&gt;&lt;li&gt; now before making any changes on your xml file just take abackup for safty &lt;/li&gt;&lt;br /&gt;&lt;li&gt; just click on "Expand widget templates "&lt;/li&gt;&lt;br /&gt;&lt;li&gt; Add the below code above the &amp;lt;/head &amp;gt; section or better way is search the keyword &amp;lt;/head&amp;gt;&lt;br /&gt;&lt;!--Related Post code start --&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;script src='https://www.opendrive.com/files/6673148_cnSMd/RelatedPosts_Blogger.js' type='text/javascript'/&amp;gt;&lt;br /&gt;&lt;!--Related Post code end--&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt; now search for code &amp;lt;data:post.body/&amp;gt; &lt;/li&gt;&lt;br /&gt;&lt;li&gt; After this paste the below code line &lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;!-- Related post Code start --&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;b:if cond='data:blog.pageType == "item"'&amp;gt;&lt;br /&gt;&amp;lt;div id='related-posts'&amp;gt;&lt;br /&gt;&amp;lt;font face='Arial' size='3'&amp;gt;&amp;lt;b&amp;gt;Related Posts: &amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color='#000000'&amp;gt;&amp;lt;b:loop values='data:post.labels' var='label'&amp;gt;&amp;lt;data:label.name/&amp;gt;&amp;lt;b:if cond='data:label.isLast != "true"'&amp;gt;,&amp;lt;/b:if&amp;gt;&amp;lt;b:if cond='data:blog.pageType == "item"'&amp;gt;&lt;br /&gt;&amp;lt;script expr:src='"/feeds/posts/default/-/" + data:label.name + "?alt=json-in-script&amp;amp;callback=related_results_labels&amp;amp;&lt;span style="color: rgb(204, 0, 0);"&gt;max-results=5&lt;/span&gt;"' type='text/javascript'/&amp;gt;&amp;lt;/b:if&amp;gt;&amp;lt;/b:loop&amp;gt; &amp;lt;/font&amp;gt;&lt;br /&gt;&amp;lt;script type='text/javascript'&amp;gt; removeRelatedDuplicates(); printRelatedLabels();&lt;br /&gt;&amp;lt;/script&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/b:if&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;!-- Related post Code start --&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt; now on the above code you will see the red section line "max-results=xx" here you can enter no of post you want to see on your page&lt;br /&gt; accordingly you can mention it.&lt;/li&gt;&lt;br /&gt;&lt;li&gt; now save you template and see the magic on your post &lt;/li&gt;&lt;br /&gt;&lt;li&gt; you will see the number of post after each article , before that you need to add label on your post. hope you like it &lt;/li&gt;&lt;br /&gt;&lt;br /&gt;if you face any problem while doing this plz leave a comment.&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-101094387039071514?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/101094387039071514/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2010/07/how-to-add-related-posts-on-blogger.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/101094387039071514'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/101094387039071514'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2010/07/how-to-add-related-posts-on-blogger.html' title='how to add related posts on Blogger'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-6032802572802025258</id><published>2010-06-11T06:49:00.002+01:00</published><updated>2010-06-11T06:54:30.594+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>How strong name assemblies keep you out of  DLL Hell</title><content type='html'>while using Microsoft .NET framework for creating any application we are previously facing same problem with the DLL Hell.  it arises a problem while updating a components so it breaks the other application which are depend on it. to overcome such a issues developer needs to implement the concept of &lt;i&gt;Strong name &lt;/i&gt;.In this article you can through with how and why to use strong name .&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 204, 204); font-weight: bold;"&gt; Strong Name :&lt;/span&gt;&lt;br /&gt;       what is strong name? A Strong name is of information used to identify the assembly which may consist of Text-name , four part of version number , culture information , public key  and the digital signature which may stored in a assembly manifest that get embedded on the file of the assembly.&lt;br /&gt;&lt;br /&gt;By using the Strong name the &lt;span style="font-style: italic;"&gt;CLR&lt;/span&gt; can assured that two assembly can be there with the same name. by the way strong name is basically provided the unique identification of the assembly. there are two scenarios in which the strong name can included in the assembly&lt;br /&gt;  1.Shared Assemblies&lt;br /&gt;  2. Serviced Components.&lt;br /&gt;&lt;br /&gt;on the first case the shared assemblies can be used in the multiple application which may running on the same machine on GAC. and you may get the &lt;span style="color: rgb(102, 255, 153);"&gt;benefit ares&lt;/span&gt;:&lt;br /&gt;1. Single Development&lt;br /&gt;2. Bypass verification&lt;br /&gt;3. Centralized update&lt;br /&gt;&lt;br /&gt;yes as your getting such a good benefits then surely there is also a some issues on it that is&lt;br /&gt;  1.calling a private assemblies : if the shared assemblies can load with the type of private assembly then CRL will throw an Error because it reference only shared assemblies.&lt;br /&gt;  2. Trusting assemblies :&lt;br /&gt;  3. Installation issues :&lt;br /&gt;&lt;br /&gt;How to create "Strong Name".&lt;br /&gt; To create strong name for assembly you need a (al.exe) tool which is a assembly generation tool .now to create a key pair in the file you can use Strong name utility (Sn.exe) like this way.&lt;br /&gt;Sn.exe -k filename.dat&lt;br /&gt;&lt;br /&gt;The key file could be used on Al.exe to generate the strong name.&lt;br /&gt; Al.exe /out:Input.dll  /Keyfile:output.dat&lt;br /&gt;&lt;br /&gt;Like this way you can design your strong name with the key. hope you get something from this&lt;br /&gt;if you have any query on it plz post the reply.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-6032802572802025258?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/6032802572802025258/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2010/06/how-strong-name-assemblies-keep-you-out.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/6032802572802025258'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/6032802572802025258'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2010/06/how-strong-name-assemblies-keep-you-out.html' title='How strong name assemblies keep you out of  DLL Hell'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-2940137148128355099</id><published>2010-04-25T06:08:00.002+01:00</published><updated>2010-04-25T06:11:07.847+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Personal'/><title type='text'>my oracle interview experience</title><content type='html'>hi friends, &lt;br /&gt;&lt;br /&gt;last week i was attended "ORACLE financial services"  interview for the .NET Developer post. Here i am sharing my experience on interview hope so it will help you while going for an Oracle Interview. i was disqualify from 3rd Round (Final Technical Round).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Interview Process:&lt;/span&gt;&lt;br /&gt;There was 4 Round 1 st Online Test ( 47 Question 1 hrs ) but be careful there is also a negative marking as well as there is also a cutoff (if u select more than 1 answer and answer is wrong ) then again some deduction on your marks . Quite tough mostly Question on Assembly , Framework , C# , then hardly question on Datalist,Datagrid, Gridview and all basic. we totally 3  people get selected in first round out of 10.&lt;br /&gt;&lt;br /&gt;Second Round is Technical Round. it was ok only basic question get ask during the interview , but in most of them are in-depth  question just like on DataGrid DataBind() wht happen exactly , which function get executed at first onRowDataBound() or DataBind(). how .net life cycle will work on this process and all . i also got selected on this round . &lt;br /&gt;&lt;br /&gt;now There was a Final Round on again Technical . There was 2 panelist in front of me and asking question on most of the SDLC (Software Development Life Cycle) and Question on backed on Pl-sql / SQL2005 . i thing around 15+ question get ask during the interview process  i have answer most of them . but interview was cool .&lt;br /&gt;&lt;br /&gt;at last there was an only final Round Remaining which is HR Round. but sorry to say friends i was disqualified from this process (2nd Technical Round). hope my this experience will help you to get it in ORACLE or any other software farm .because most of the time same process is there every where .&lt;br /&gt;&lt;br /&gt;hope i will get good company out of this. better luck next time .but one thing is sure i am getting very  good experience from this.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-2940137148128355099?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/2940137148128355099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2010/04/my-oracle-interview-experience.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2940137148128355099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2940137148128355099'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2010/04/my-oracle-interview-experience.html' title='my oracle interview experience'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-38684522095091100</id><published>2010-04-18T05:41:00.004+01:00</published><updated>2010-04-18T05:42:39.820+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ajax'/><category scheme='http://www.blogger.com/atom/ns#' term='Google'/><category scheme='http://www.blogger.com/atom/ns#' term='jQuery'/><title type='text'>Jquery 1.4.1 released</title><content type='html'>very good news to all the Jquery users and jquery lovers. the latest version of Jquery ( which is 1.4.1 has been released).it has lot of improvement on bases of performance , new additonal features and many new functions are added to make &lt;br /&gt;jquery very popular. i really enjoy with the same.  as you can see the execution time of realease version is very  less in time as compare with the previous one.&lt;br /&gt;here are the Minified and Regular version .&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="http://code.jquery.com/jquery-1.4.min.js"&gt;jQuery Minified&lt;/a&gt; (23kb minified version.)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="http://code.jquery.com/jquery-1.4.js"&gt;jQuery Regular&lt;/a&gt; (154kb regular version)&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;You can download the js frem the above link.or you can take a advantage of Google CDN on : &lt;a href="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"&gt;http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js&lt;/a&gt;&lt;br /&gt;while using CDN one is very good idea , because if anything get change on current realease then it will automatically updated on your application ,. if your using Google CDN features , Microsoft is also providing the same kind of feature of CDN  you can also take the help form there also.&lt;br /&gt;&lt;br /&gt;on new release they have added methds like , Setter , Getter and many more ajax features. the Whole API Documentation you&lt;br /&gt;can get it from here. &lt;b&gt;http://api.jquery.com/category/version/1.4/&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;now guys why your waiting , just use latest version of Jquery on your application and make your application very cool and attractive .&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-38684522095091100?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/38684522095091100/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2010/04/very-good-news-to-all-jquery-users-and.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/38684522095091100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/38684522095091100'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2010/04/very-good-news-to-all-jquery-users-and.html' title='Jquery 1.4.1 released'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-8742547463947927596</id><published>2010-03-17T10:41:00.002+01:00</published><updated>2010-03-17T10:45:52.363+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Google'/><title type='text'>Tips on Google Buzz</title><content type='html'>on my previous post i was discuss on what is Google buzz , &lt;a href="http://codingstuffsbykiran.blogspot.com/2010/03/add-google-buzz-button-on-blogger.html"&gt;how you can add Google Buzz button on your Blogger / Wordpress.  &lt;/a&gt;now on this article i am just discussing tips on Google Buzz , hope u enjoy this&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 204); font-weight: bold;"&gt;1.Quick open Google Buzz&lt;/span&gt;&lt;br /&gt;yes there are some keyboards shortkuts on gmail for opening google Buzz quickly, type &lt;i&gt;g b &lt;/i&gt; from gmail view and Google Buzz will get open.&lt;br /&gt;here are few more shortcuts.&lt;br /&gt;m - mute&lt;br /&gt;r- add comments&lt;br /&gt;p/n - Go to new conversation&lt;br /&gt;o -expand conversation&lt;br /&gt;and so on.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 51, 204); font-weight: bold;"&gt;2. Hide buzz Counter.&lt;/span&gt;&lt;br /&gt;Now some time we dont want to view that google buzz counter on mail panal , now in this time you can remove that or hide that. Google has not given any facility to do so , but here is tricks to do this,&lt;br /&gt;simple drag your lable (Buzz(3)) and and put this into More section . look at this image you will come to know&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_ivbMBZX_-HU/S6CkqxvK6YI/AAAAAAAAATg/7ElVKTORPl4/s1600-h/buzz-hide.png"&gt;&lt;img style="cursor: pointer; width: 168px; height: 182px;" src="http://4.bp.blogspot.com/_ivbMBZX_-HU/S6CkqxvK6YI/AAAAAAAAATg/7ElVKTORPl4/s200/buzz-hide.png" alt="" id="BLOGGER_PHOTO_ID_5449536603930945922" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-weight: bold; color: rgb(204, 51, 204);"&gt;3. Subscribe Buzz feed&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;yes google posts each scrap to there user profile page. and you can open that by using orange icon display in your browser to subscribe a feed. it will looks this way&lt;br /&gt;http://buzz.googleapis.com/feeds/&lt;username&gt;/public/posted&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 51, 204);"&gt;4.Add rich text&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;  again this is a cool tricks on adding a rich text on your buzz message.&lt;br /&gt;*bold message*&lt;br /&gt;_italic message_&lt;br /&gt;-deleted message-&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 51, 204); font-weight: bold;"&gt;5.View Photos in SlideShow Effects.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;   when ever you upload the images to the Google buzz , they basically added on Picasa albums, and when ever you clikc on that image it get open from there with the Light box effects , google has give that option that you can organize that  photos according to your view and select the Slideshow option on it , then it get export those pics on picasa.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 51, 204);"&gt;6.View Public Buzz message:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;yes now you can search the public messages also with the help of google buzz. even though you can also restrict the&lt;br /&gt;social connection on the buzz, that means you can protect your buzz while viewing to anyone else.&lt;br /&gt;now how you can search it&lt;br /&gt;&lt;b&gt;author:&lt;enternamehere&gt;@gmail.com   &lt;/enternamehere&gt;&lt;/b&gt; : that means it will return all the buzz result with this email id. like this way&lt;br /&gt;you can search it.&lt;br /&gt;&lt;b&gt;commenter:&lt;insertname&gt;@gmail.com &lt;/insertname&gt;&lt;/b&gt; : this will search all the user that have given a comments .&lt;br /&gt;&lt;b&gt;has:photo, has:video, has:link &lt;/b&gt; : now here you can restrict the search just like if you enter has:photo that means only those result get sort out , those are hainvg photo in this buzz just like the videos and link and other&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 51, 204); font-weight: bold;"&gt;7 .Save searches&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;now not last but main useful feature is saving the search. what ever you have been search till time that get save  automatically so later on also you can search it whtever search result your getting on previous search.&lt;br /&gt;&lt;br /&gt;hope it will help you to make your buzz perfect , enjoy it happy buzzingg..&lt;br /&gt;&lt;br /&gt;&lt;/username&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-8742547463947927596?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/8742547463947927596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2010/03/tips-on-google-buzz.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/8742547463947927596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/8742547463947927596'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2010/03/tips-on-google-buzz.html' title='Tips on Google Buzz'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_ivbMBZX_-HU/S6CkqxvK6YI/AAAAAAAAATg/7ElVKTORPl4/s72-c/buzz-hide.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-1140092958548296349</id><published>2010-03-08T10:02:00.004+01:00</published><updated>2010-03-08T10:10:45.603+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Google'/><title type='text'>Add Google Buzz Button on Blogger</title><content type='html'>now you can use google Buzz buttons to share your ideas , pics, videos, and many more just like the twitter does,here is my post on how to add twitter button on your site or blog.the same you can add it for your google buzz basically if u search on google you get the lots of search on how to add google buzz button on Word-press blog, its very easy to do so you need to download the plugin and install it on your server that's it. but now u can use same on blogger too ,&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Please follow the steps to add the Google buzz button&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1.Sign in on your blogger account&lt;br /&gt;2.Go to Dashboard section - Layout and click on Edit HTML&lt;br /&gt;3.and it will show you HTML code , now try to search the keyword&lt;br /&gt;&amp;lt;div class='post-header-line-1'&amp;gt;&lt;br /&gt;on it,&lt;br /&gt;&lt;br /&gt;4.now below that you can paste this code , google buzz provides you two button one is bigger one&lt;br /&gt;just like this and smaller one too , here is code for large button&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;&amp;lt;a href='javascript:var%20b=document.body;var%20GR________bookmarklet_domain="http://www.google.com";if(b&amp;amp;&amp;amp;!document.xmlVersion){void(z=document.createElement("script"));void(z.src="http://www.google.com/reader/ui/link-bookmarklet.js");void(b.appendChild(z));}else{}'&amp;gt; &amp;lt;img alt='Buzz this' src='http://img2.pict.com/15/da/3e/2809374/0/googlebuzz.png'/&amp;gt; &amp;lt;/a&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;which will looks like&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_ivbMBZX_-HU/S5S9n37SgKI/AAAAAAAAATI/ZNseU3lyLVE/s1600-h/google-buzz.png"&gt;&lt;img style="cursor: pointer; width: 50px; height: 58px;" src="http://4.bp.blogspot.com/_ivbMBZX_-HU/S5S9n37SgKI/AAAAAAAAATI/ZNseU3lyLVE/s200/google-buzz.png" alt="" id="BLOGGER_PHOTO_ID_5446186342122946722" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;5.and here is compact button code&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;&amp;lt;a href='javascript:var%20b=document.body;var%20GR________bookmarklet_domain="http://www.google.com";if(b&amp;amp;&amp;amp;!document.xmlVersion){void(z=document.createElement("script"));void(z.src="http://www.google.com/reader/ui/link-bookmarklet.js");void(b.appendChild(z));}else{}'&amp;gt; &amp;lt;img alt='Buzz this' src='http://img2.pict.com/9c/09/57/2854010/0/buzzthis.gif'/&amp;gt; &amp;lt;/a&amp;gt;&lt;/span&gt;&lt;br /&gt;which will looks like&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_ivbMBZX_-HU/S5S9nkB3nvI/AAAAAAAAATA/5KGwoku6Itc/s1600-h/buzz-this.gif"&gt;&lt;img style="cursor: pointer; width: 79px; height: 21px;" src="http://4.bp.blogspot.com/_ivbMBZX_-HU/S5S9nkB3nvI/AAAAAAAAATA/5KGwoku6Itc/s200/buzz-this.gif" alt="" id="BLOGGER_PHOTO_ID_5446186336781836018" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;6.now save the template and see how exactly it appering on blog.&lt;br /&gt;&lt;br /&gt;hope this article is helpful for you , thank you. if you have any problem while adding plz leave a comment we will help you.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-1140092958548296349?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/1140092958548296349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2010/03/add-google-buzz-button-on-blogger.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/1140092958548296349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/1140092958548296349'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2010/03/add-google-buzz-button-on-blogger.html' title='Add Google Buzz Button on Blogger'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_ivbMBZX_-HU/S5S9n37SgKI/AAAAAAAAATI/ZNseU3lyLVE/s72-c/google-buzz.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-8013946058505312237</id><published>2010-02-28T10:56:00.003+01:00</published><updated>2010-02-28T11:13:03.585+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CDN'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='ajax'/><category scheme='http://www.blogger.com/atom/ns#' term='Google'/><title type='text'>Microsoft AJAX CDN</title><content type='html'>hi guys , on my last blog you have seen how microsoft ajax minifer get work and how its useful while developing a application. fine now one more great feature today i will discuss with you . that is ajax CDN (Content Delivery Network ), yes as the name suggested content get deliver on network, no need of updation of code and all auto m atically it get updated all over the world, &lt;br /&gt;&lt;br /&gt;some time back google get introduce this in terms of Jquery and all , now microsoft is also take a part on same while using ajax cdn. at first is service is free, does not require king of  registration or anything ,and one thing is you can use it in both commercial and non-commercial purposes.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What does a CDN ?&lt;/span&gt;&lt;br /&gt;it get composed of "edge cache" servers which are highly strategically placed in all over the world at Internet network points. These "edge cache" servers can be used to cache and deliver all types of content – which get including images, CSS and JavaScript files ,videos and many more.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How to use&lt;/span&gt;&lt;br /&gt;now for example if you want to use jQuery from the Microsoft AJAX CDN you can simply add a standard script tag to your page, that you can put in you &amp;lt;Head &amp;gt; section &lt;br /&gt;&lt;script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.3.2.min.js" type="text/javascript"&gt;&lt;/script&gt;    &lt;br /&gt;now whenever the script get required the browser get send the request to the microsoft cdn for functiuon and from there automatically updation get happen &lt;br /&gt;one better advantage is it get &lt;span style="font-weight:bold;"&gt;cache automatically &lt;/span&gt; so no need to send request and make http page heavier. so from the SEO (search engine optimization ) point of view also its too good .&lt;br /&gt;&lt;br /&gt;now how you can use that on Visual Studio on your application,&lt;br /&gt;now a days The ASP.NET 4.0 &lt;asp:ScriptManager&gt; control includes a new property named EnableCdn. that means When you assign the value true to this property, your application will use the Microsoft CDN to request JavaScript files automatically:&lt;br /&gt;that means script get generate automatically so no need of write a code for same , this again useful for SEO purpose for &lt;span style="font-weight:bold;"&gt;JS minfication&lt;/span&gt; . this problem get solve ones you check you application in terms of Google page speed issue.&lt;br /&gt;&lt;br /&gt;you need to simply set EnableCDn="true" automatically it get work look at below how exactly it get work&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_ivbMBZX_-HU/S4pBZVi6q6I/AAAAAAAAASA/IuipsY0Jyeo/s1600-h/scriptmanager.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 298px; height: 147px;" src="http://4.bp.blogspot.com/_ivbMBZX_-HU/S4pBZVi6q6I/AAAAAAAAASA/IuipsY0Jyeo/s320/scriptmanager.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5443235003166796706" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;now hope u got the idea clear how exatly it get work and how its useful &lt;br /&gt;thanx , if u want more on same plz add a comment on this post&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-8013946058505312237?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/8013946058505312237/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2010/02/microsoft-ajax-cdn.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/8013946058505312237'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/8013946058505312237'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2010/02/microsoft-ajax-cdn.html' title='Microsoft AJAX CDN'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_ivbMBZX_-HU/S4pBZVi6q6I/AAAAAAAAASA/IuipsY0Jyeo/s72-c/scriptmanager.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-6865766590301018348</id><published>2010-02-14T06:00:00.003+01:00</published><updated>2010-02-14T06:13:06.632+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CDN'/><category scheme='http://www.blogger.com/atom/ns#' term='ajax'/><title type='text'>microsoft ajax minifier</title><content type='html'>hi all , yes long time while posting a article on my blog, now i m back , hei i have seen&lt;br /&gt;most of the people are uses Microsoft ajax control in there web application , its also working fine&lt;br /&gt;and also good looking in projects ,&lt;br /&gt;&lt;br /&gt;but at a time testing of web site  performance then so many issues get arises , they may be all related with speed , performance , ratio and all , now i also face this problem on my applicatin&lt;br /&gt;and while searching i found good article on how to minify  the   ajax control auto generated (runtime) script there are two ways&lt;br /&gt;either u can compress them or u can use ajax CDN facility to handle them , yes ajax introduces the CDN faliclity for ther JQUERY, AJAX tools , yes its really good while use them in out application.&lt;br /&gt;&lt;br /&gt;now u can see how its very important in terms of project implementation.&lt;br /&gt;you can refer this Scott 's blog post ,you wil come to know how its useful . &lt;a href="http://weblogs.asp.net/scottgu/archive/2009/10/15/announcing-microsoft-ajax-library-preview-6-and-the-microsoft-ajax-minifier.aspx" rel="nofollow"&gt;announcing-microsoft-ajax-library &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;hope u like this&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-6865766590301018348?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/6865766590301018348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2010/02/microsoft-ajax-minifier.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/6865766590301018348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/6865766590301018348'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2010/02/microsoft-ajax-minifier.html' title='microsoft ajax minifier'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-698396642723594113</id><published>2009-12-18T07:31:00.003+01:00</published><updated>2009-12-18T07:37:46.494+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Sql'/><title type='text'>SQL Database compare software</title><content type='html'>Here is free databse compare software for Access / MY SQL / Sql Serve , Compare application will allow you to compare the structure of two SQL server databases and display all the differences between them.. The structure viewer is included on same , you can find the comparison and acoording to that you can choose to exclude that comparioson of given fields , constraints .This is a lightweight version compared to version 2.0, it very small and portable.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_ivbMBZX_-HU/Sysh3KzzKyI/AAAAAAAAAQg/odMhdZzXTWQ/s1600-h/1small_curved_brown.png"&gt;&lt;img style="cursor: pointer; width: 253px; height: 223px;" src="http://1.bp.blogspot.com/_ivbMBZX_-HU/Sysh3KzzKyI/AAAAAAAAAQg/odMhdZzXTWQ/s320/1small_curved_brown.png" alt="" id="BLOGGER_PHOTO_ID_5416460208521292578" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://www.starinix.com/index-3.html" target="_blank" rel="nofollow"&gt;  &lt;br /&gt;&lt;img style="cursor: pointer; width: 24px; height: 24px;" src="http://1.bp.blogspot.com/_ivbMBZX_-HU/Sysh3QOG4MI/AAAAAAAAAQo/WEHmnrRRH8s/s320/Download.png" alt="" id="BLOGGER_PHOTO_ID_5416460209973813442" border="0" /&gt;&lt;br /&gt;&gt;&lt;span style="font-weight: bold;font-family:lucida grande;" &gt;Download Here &lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-698396642723594113?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/698396642723594113/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/12/sql-database-compare-software.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/698396642723594113'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/698396642723594113'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/12/sql-database-compare-software.html' title='SQL Database compare software'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_ivbMBZX_-HU/Sysh3KzzKyI/AAAAAAAAAQg/odMhdZzXTWQ/s72-c/1small_curved_brown.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-4522730584552367312</id><published>2009-12-09T12:44:00.001+01:00</published><updated>2009-12-09T12:47:09.472+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Sql'/><title type='text'>Find  Maximum Connections for SQL Server.</title><content type='html'>- If you want to know how many connection get happen with your database then you can easily get those number using this technique.&lt;br /&gt; &lt;code&gt;&lt;br /&gt;   &lt;span style="color: rgb(255, 0, 0);"&gt;Select @@MAX_Connections as MaxConn&lt;/span&gt;&lt;br /&gt; &lt;/code&gt;&lt;br /&gt;Using this you will get the Max number of connection get allowed on an instance of sql server.&lt;br /&gt;&lt;br /&gt;- now if you want to know how many attempted connection are then&lt;br /&gt;  &lt;code&gt;&lt;br /&gt;    &lt;span style="color: rgb(255, 0, 0);"&gt;Select @@Connections as TotalNumberOfLogin&lt;/span&gt;&lt;br /&gt;  &lt;/code&gt;&lt;br /&gt;It will gives you all the number of connection was happen when the sql server get started , that may be a successful or unsuccessful connections also.&lt;br /&gt;&lt;br /&gt;- You can also check this all using this system store procedure call&lt;br /&gt;  &lt;code&gt;&lt;br /&gt;    &lt;span style="color: rgb(255, 0, 0);"&gt;Exec sp_monitor&lt;/span&gt;&lt;br /&gt;  &lt;/code&gt;&lt;br /&gt;   This will gives you result on when server get running , cpu time , usage , amount of data sending receiving , total number of read write operation done plus is there any error on connection like that .&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-4522730584552367312?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/4522730584552367312/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/12/find-maximum-connections-for-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/4522730584552367312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/4522730584552367312'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/12/find-maximum-connections-for-sql-server.html' title='Find  Maximum Connections for SQL Server.'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-188675481303580644</id><published>2009-12-04T10:55:00.005+01:00</published><updated>2009-12-04T11:14:06.583+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Format DateTime in Gridview.</title><content type='html'>Gridview is using mostly , now i have come up with some small but very important task on &lt;b&gt;how to display Proper date time on Gridview &lt;/b&gt; , Basically we are defining standard date time option (date + time) , but some time we only want to display date in this case you can follow the below format.Format Date on Bound Column in Grid View&lt;br /&gt;&lt;br /&gt;Suppose you want DOB in short date format without time , then you can simply use DataFormatString ="{0:d}" for Short Date&lt;br /&gt;like this&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;asp:BoundField DataField="DOB" HeaderText="DOB" DataFormatString = "{0:d}"   /&amp;gt;    &lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;if you are using above this setting then also it will not work ,coz by default the html encode is turned ON to prevent the Cross site Scripting attack , so for that you need to add one more property as &lt;b&gt;HtmlEncode ="false"&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;asp:BoundField DataField="DOB" HtmlEnclode="False" HeaderText="DOB" DataFormatString = "{0:d}"   /&amp;gt;    &lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;b&gt;if You want Logn Date you can use &lt;/b&gt; - DataFormatString = "{0:D}"&lt;br /&gt;&lt;b&gt;if You want Logn Time you can use &lt;/b&gt; - DataFormatString = "{0:T}"&lt;br /&gt;&lt;br /&gt;If you are using Template comlumn and you want to make your date string in short format then also you can use this suppose your item templates is&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;ItemTemplate &amp;gt;&lt;br /&gt;&amp;lt;asp:Label ID="DOB" runat="server" Text='&amp;lt;%# Bind("DOB") % &amp;gt;'&amp;gt; &amp;lt;/asp:Label &amp;gt;&lt;br /&gt;&amp;lt;/ItemTemplate &amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Then also you can use like this way:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;asp:Label ID="DOB" runat="server" Text='&amp;lt;%# Bind("DOB","{0:D}") % &amp;gt;'&amp;gt; &amp;lt;/asp:Label &amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;Following table will show some date formating ways in Gridview column.&lt;br /&gt;&lt;table valign="top" border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;&lt;b&gt;Format Pattern&lt;/b&gt;&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;&lt;b&gt;Name&lt;/b&gt;&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;&lt;b&gt;Example&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;d&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;&lt;br /&gt;Short date&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;11/8/2008&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;D&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;Long date&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;Sunday, August 11, 2008&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;&lt;br /&gt;t&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;Short time&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;3:32 PM&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;T&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;Long time&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;3:32:00 PM&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;f&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;Full date/time&lt;br /&gt;(&lt;i&gt;short time&lt;/i&gt;)&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;Sunday, August 11, 2008 3:32 PM&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;F&lt;/td&gt;&lt;br /&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;Full date/time&lt;br /&gt;(long time)&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;Sunday, August 11, 2008 3:32:00 PM&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;g&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;General date/time&lt;br /&gt;(&lt;i&gt;short time&lt;/i&gt;)&lt;/td&gt;&lt;br /&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;8/11/2008 3:32 PM&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;G&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;General date/time&lt;br /&gt;(&lt;i&gt;long time&lt;/i&gt;)&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;8/11/2008 3:32:00 PM&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;br /&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;m or M&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;Month day&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;August 11&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;r or R&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;RFC 1123&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;&lt;br /&gt;Sun, 11 Aug 2008 8:32:00 GMT&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;s&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;Sortable date/time&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;2008-08-11T15:32:00&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;u&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;&lt;br /&gt;Universable sortable date/time&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;2008-08-11 15:32:00z&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;U&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;Universable sortable date/time&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;Sunday, August 11, 2008 11:32:00 PM&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;&lt;br /&gt;y or Y&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;Year month&lt;/td&gt;&lt;br /&gt;&lt;td style="padding: 2.25pt;"&gt;&lt;br /&gt;August, 2008&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;thanx you,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-188675481303580644?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/188675481303580644/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/12/format-datetime-in-gridview.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/188675481303580644'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/188675481303580644'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/12/format-datetime-in-gridview.html' title='Format DateTime in Gridview.'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-4275845892064819296</id><published>2009-11-25T06:44:00.003+01:00</published><updated>2009-11-25T06:47:08.841+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Sql'/><title type='text'>How to know SQL Server version and Edition</title><content type='html'>some time we just install the sql server , but still we don't know which type of version it is and edition also , basically we need that when we are upgrating current version of new version. Current there is sql server 2008 is there in market,&lt;br /&gt;&lt;br /&gt;now how to determine which version of sql 2008 is running out machine,&lt;br /&gt;- run the following T-SQL statement,&lt;br /&gt;&lt;br /&gt;&lt;code&gt;SELECT SERVERPROPERTY ('productlevel') ,SERVERPROPERTY('productversion'),  SERVERPROPERTY ('edition')&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;you will get the result like :&lt;br /&gt;RTM | 10.0.1600.22 | Enterprise Edition&lt;br /&gt;&lt;br /&gt;&lt;b&gt;RTM&lt;/b&gt; is product level which means - 'Release To Manufacturing'.&lt;br /&gt;but what is means of RTM - is a stage on which the distribution of process begins CD of&lt;br /&gt;that product get created and retial packs and then product will get shipp , this is very&lt;br /&gt;long process and because of that RTM date is mostly ahead of the final release date.&lt;br /&gt;&lt;br /&gt;&lt;b&gt; 10.0.1600.22 &lt;/b&gt; means product version.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Enterprise Edition &lt;/b&gt; means its a Edition there are some other editions are also there like&lt;br /&gt;Developer,standard ,web,Express ,Workgroup , 64- bit Edition .&lt;br /&gt;&lt;br /&gt;The following table lists the Sqlservr.exe version number.&lt;br /&gt;&lt;table style="width: 375px; height: 138px;" border="1" valing="top"&gt;&lt;br /&gt;&lt;tbody&gt;&lt;tr&gt;&lt;br /&gt;&lt;td style="font-style: italic;"&gt;Release &lt;/td&gt;&lt;td style="font-style: italic;"&gt;Sqlservr.exe&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;RTM &lt;/td&gt;&lt;td&gt;       2007.100.1600.0 &lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;SQL Server 2008 Service Pack 1&lt;/td&gt;&lt;td&gt;2007.100.2531.0 &lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-4275845892064819296?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/4275845892064819296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/11/how-to-know-sql-server-version-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/4275845892064819296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/4275845892064819296'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/11/how-to-know-sql-server-version-and.html' title='How to know SQL Server version and Edition'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-5920018327373864534</id><published>2009-11-18T07:53:00.001+01:00</published><updated>2009-11-18T08:19:14.583+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Check for valid Internet Connection using C#</title><content type='html'>on many application we need internet connectio , such as smart client to send receive the data, now in this case below code will help you to make sure that you have proper internet connection or not , the conecpt is like very simple, at first we simply check that if the user has network connection and according to that it will return &lt;b&gt;Success / Fail&lt;/b&gt; message.&lt;br /&gt;&lt;br /&gt;Now i just ping the two website (www.google.com ,www.yahoo.com) which will ping that site and return fail or success message.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;C#&lt;br /&gt;public bool GetIsConnAvail()&lt;br /&gt;{&lt;br /&gt;   var success = false;&lt;br /&gt;   string StatusMsg; &lt;br /&gt;   if (NetworkInterface.GetIsNetworkAvailable() == false)&lt;br /&gt;   {&lt;br /&gt;      return success;&lt;br /&gt;   }&lt;br /&gt;   string[] Mysite = { "www.google.com", "www.yahoo.com"}; &lt;br /&gt;   try&lt;br /&gt;   {&lt;br /&gt;      using (var ping = new Ping())&lt;br /&gt;      {&lt;br /&gt;         foreach (var url in Mysite)&lt;br /&gt;         {&lt;br /&gt;            var replyMsg = ping.Send(url, 300); &lt;br /&gt;            if (replyMsg.Status == IPStatus.Success)&lt;br /&gt;            {&lt;br /&gt;               success = true;&lt;br /&gt;               StatusMsg = "Connection Found..."&lt;br /&gt;               break;&lt;br /&gt;            }&lt;br /&gt;            else&lt;br /&gt;            {&lt;br /&gt;               StatusMsg = "Internet Connection not Found on your machine..." &lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;         }&lt;br /&gt;      }&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   catch (Exception ex)&lt;br /&gt;   {&lt;br /&gt;      Trace.WriteLine(ex.Message);&lt;br /&gt;   }&lt;br /&gt;   return success;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;i thing this code will surely help you to search your connection faster than other ways.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-5920018327373864534?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/5920018327373864534/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/11/check-for-valid-internet-connection.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/5920018327373864534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/5920018327373864534'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/11/check-for-valid-internet-connection.html' title='Check for valid Internet Connection using C#'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-6063490139500036772</id><published>2009-11-10T12:51:00.001+01:00</published><updated>2009-11-10T12:58:28.783+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web 2.0'/><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><title type='text'>video on web2.0</title><content type='html'>hi , i just found very nice vodeo on &lt;b&gt;web2.0  &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;object height="344" width="425"&gt;&lt;param name="movie" value="http://www.youtube.com/v/6gmP4nk0EOE&amp;amp;color1=0xb1b1b1&amp;amp;color2=0xcfcfcf&amp;amp;feature=player_embedded&amp;amp;fs=1"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowScriptAccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/6gmP4nk0EOE&amp;amp;color1=0xb1b1b1&amp;amp;color2=0xcfcfcf&amp;amp;feature=player_embedded&amp;amp;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" height="344" width="425"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;another video on web2.0 , its really very informative&lt;br /&gt;&lt;br /&gt;&lt;object style="height: 344px; width: 425px"&gt;&lt;param name="movie" value="http://www.youtube.com/v/nsa5ZTRJQ5w"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowScriptAccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/nsa5ZTRJQ5w" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-6063490139500036772?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/6063490139500036772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/11/video-on-web20.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/6063490139500036772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/6063490139500036772'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/11/video-on-web20.html' title='video on web2.0'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-2432400511494477625</id><published>2009-11-04T11:26:00.004+01:00</published><updated>2009-11-04T11:35:10.207+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SiteMap'/><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp'/><title type='text'>Generate Sitemap using ASP</title><content type='html'>&lt;b&gt;Sitemap&lt;/b&gt; is very important factor of web site , you can say its a list of pages of web site accessible to user. it Organize in hierarchical fashion. basically it helps the visitors and mostly on search engine bots to find the perticular page on you site. it improve seo of site , it works just like the dynamic access to site. basically sitemap in xml format.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_ivbMBZX_-HU/SvFYB4HU5VI/AAAAAAAAANw/vcGHsZ45p7s/s1600-h/180px-Sitemap_google.jpg"&gt;&lt;img style="cursor: pointer; width: 180px; height: 286px;" src="http://3.bp.blogspot.com/_ivbMBZX_-HU/SvFYB4HU5VI/AAAAAAAAANw/vcGHsZ45p7s/s320/180px-Sitemap_google.jpg" alt="" id="BLOGGER_PHOTO_ID_5400194217460163922" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Here i have created one sample application that can read xsl file and according to that it generate sitemap of your site.&lt;br /&gt;on my Excel file i have place all the links of my sites.&lt;br /&gt;now how to get this ,&lt;br /&gt;1 .open your site say www.google.com&lt;br /&gt;2. now on your &lt;b&gt;web developer toolbar (Mozilla addon)&lt;/b&gt; on Information section &gt; click view link information it will open  open page and in that you can find all the site links &lt;br /&gt;3. copy that on excel file and save it ,&lt;br /&gt;&lt;br /&gt;now write application that read a data from excel and generate sitemap&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt; %&lt;br /&gt;&lt;br /&gt;Const adOpenStatic = 3 &lt;br /&gt;Const adLockPessimistic = 2  &lt;br /&gt;Dim cnnExcel &lt;br /&gt;Dim rstExcel &lt;br /&gt;Dim I &lt;br /&gt;Dim iCols  &lt;br /&gt;&lt;br /&gt;Set cnnExcel = Server.CreateObject("ADODB.Connection") &lt;br /&gt;cnnExcel.Open "Driver={Microsoft Excel Driver  (*.xls)};DriverId=790;Dbq="&amp;amp;Server.MapPath("1.xls")&amp;amp;";DefaultDir="&amp;amp;Server.MapPath(".")&amp;amp;";" Set rstExcel = Server.CreateObject("ADODB.Recordset") &lt;br /&gt;rstExcel.Open "SELECT * FROM [Sheet1$]", cnnExcel  &lt;br /&gt;iCols = rstExcel.Fields.Count     &lt;br /&gt;rstExcel.MoveFirst     &lt;br /&gt;xmlData =  ""&lt;br /&gt;   xmlData =  xmlData&amp;amp;"&lt;urlset xmlns=""&gt;"&lt;br /&gt;   Do While Not rstExcel.EOF&lt;br /&gt;           xmlData =  xmlData&amp;amp; "&lt;url&gt;"&lt;br /&gt;           xmlData =  xmlData&amp;amp; "&lt;loc&gt;"&amp;amp; rstExcel.Fields.Item(0).Value &amp;amp; "&lt;/loc&gt;" &amp;amp; vbCrLf&lt;br /&gt;   xmlData =  xmlData&amp;amp; "&lt;/url&gt;"&lt;br /&gt;       rstExcel.MoveNext&lt;br /&gt;   Loop&lt;br /&gt;xmlData =  xmlData&amp;amp; "&lt;/urlset&gt; "&lt;br /&gt;   Response.Write(xmlData)&lt;br /&gt;rstExcel.Close&lt;br /&gt;Set rstExcel = Nothing&lt;br /&gt;&lt;br /&gt;cnnExcel.Close&lt;br /&gt;Set cnnExcel = Nothing&lt;br /&gt;% &amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Run this file and view source code of this file , save view source file as a "Sitemap.xml"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-2432400511494477625?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/2432400511494477625/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/11/generate-sitemap-using-asp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2432400511494477625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2432400511494477625'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/11/generate-sitemap-using-asp.html' title='Generate Sitemap using ASP'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_ivbMBZX_-HU/SvFYB4HU5VI/AAAAAAAAANw/vcGHsZ45p7s/s72-c/180px-Sitemap_google.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-5505700996573806769</id><published>2009-10-28T11:01:00.008+01:00</published><updated>2010-07-23T13:25:14.733+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jQuery'/><title type='text'>Jquery Shake Effect</title><content type='html'>yesterday i try with the Jquery Shake Effects , it was really nice i was trying this Effect on login page . Ones the user enter wrong information (userid or password ) the box get shake , so its really eye catching and looking also great , there are so many ways , you can integrate the Shake effect on your application, like showing perticular box every time when user get scroll down or scroll up , at a time of loding image, loading page, and so on.&lt;br /&gt;&lt;br /&gt;here i have some collection of that effects , hope u like it&lt;br /&gt;&lt;br /&gt;1.&lt;a href="http://docs.jquery.com/UI/Effects/Shake" target="_blank" rel="nofollow"&gt; Jquery Shake  &lt;/a&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;$("div").click(function () {&lt;br /&gt;     $(this).effect("shake", { times:3 }, 300); //specify the effect with how much time u want to shake Effects&lt;br /&gt;});&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;  &lt;br /&gt;2.&lt;a href="http://davidwalsh.name/dw-content/jquery-shake.php" target="_blank" rel="nofollow"&gt;Right side Shake &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;#shaker  { position:fixed; top:10px; right:10px; width:299px; height:253px; display:none; }&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;define your shake box according to your location.&lt;br /&gt;&lt;br /&gt;3.&lt;a href="http://www.designshack.co.uk/tutorialexamples/buzzinglogin/" target="_blank" rel="nofollow"&gt;Buzzing Login form &lt;/a&gt;&lt;br /&gt; &lt;code&gt;&lt;br /&gt;  &amp;lt;script type="text/javascript" src="jquery-1.3.2.min.js" &amp;gt; &amp;lt;/script&amp;gt;&lt;br /&gt;   &amp;lt;script type="text/javascript" src="vibrate.js" &amp;gt; &amp;lt;/script&amp;gt;&lt;br /&gt; &lt;/code&gt;&lt;br /&gt; &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_ivbMBZX_-HU/SulgTdxTalI/AAAAAAAAALo/KCERnQs5piQ/s1600-h/buzz.jpg"&gt;&lt;img style="cursor: pointer; width: 200px; height: 121px;" src="http://4.bp.blogspot.com/_ivbMBZX_-HU/SulgTdxTalI/AAAAAAAAALo/KCERnQs5piQ/s200/buzz.jpg" alt="" id="BLOGGER_PHOTO_ID_5397951515905452626" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;add this js on your application . &lt;a href="http://designshack.co.uk/articles/creating-a-shaking-login-form" rel="nofollow"&gt; view Source &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4.&lt;a href="http://hungred.com/wp-content/demo//jQuery-menu-effect-plugin/demo.html#" rel="nofollow"&gt; Shaking Menu Options &lt;/a&gt;&lt;br /&gt; with this coole Effects&lt;br /&gt;  1. OthersFade()&lt;br /&gt;  2. OthersJump()&lt;br /&gt;  3. OthersBlink()&lt;br /&gt;  4. OthersRollUp()&lt;br /&gt;  5. OthersRollDown()&lt;br /&gt;  6. OthersVibrate()&lt;br /&gt;&lt;br /&gt;5.&lt;a href="http://www.riacodes.com/flash/shaking-effect/" rel="nofollow"&gt;Flash ShakingEffects &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;6.&lt;a href="http://demo.seaside.st/seaside/tests/jquery-ui/basiceffects%20" rel="nofollow"&gt;basiceffects &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;hope you like it .&lt;br /&gt;if you know more plz add on comments&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-5505700996573806769?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/5505700996573806769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/10/jquery-shake-effect.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/5505700996573806769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/5505700996573806769'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/10/jquery-shake-effect.html' title='Jquery Shake Effect'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_ivbMBZX_-HU/SulgTdxTalI/AAAAAAAAALo/KCERnQs5piQ/s72-c/buzz.jpg' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-2738706127310580346</id><published>2009-10-16T10:18:00.002+01:00</published><updated>2009-10-16T10:27:16.605+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><title type='text'>File comparison tool free download.</title><content type='html'>sometime we need to compare two file ,like comparing coding or some text like that , in that time if the document is too long then Comparing this will be very difficult .&lt;br /&gt; &lt;br /&gt;here i found very nice file comparison tool call &lt;b&gt;Turtoise SVN &lt;/b&gt;.&lt;br /&gt;&lt;a href="http://tortoisesvn.net/downloads" rel="nofollow" target="_blank"&gt;Turtoise SVN is Free&lt;/a&gt; and it can provide file comparison facility same as popular beyond compare tool.&lt;br /&gt;&lt;br /&gt; &lt;b&gt; steps &lt;/b&gt;&lt;br /&gt; 1. Download the  &lt;a href="http://tortoisesvn.net/downloads" rel="nofollow" target="_blank"&gt; SVN &lt;/a&gt;&lt;br /&gt; &lt;br /&gt; 2.select the two file you want to make the comparison. here i have created two files test1  &amp;test2&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_ivbMBZX_-HU/Stg8Rk6JGCI/AAAAAAAAALQ/EagUlGoma-E/s1600-h/1.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 199px; height: 98px;" src="http://2.bp.blogspot.com/_ivbMBZX_-HU/Stg8Rk6JGCI/AAAAAAAAALQ/EagUlGoma-E/s200/1.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5393126826439153698" /&gt;&lt;/a&gt;&lt;br /&gt; 3. now select two file right click on mouse , and select "Diff" option on same , &lt;br /&gt;&lt;br /&gt; 4. It will show you the difference between two files.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_ivbMBZX_-HU/Stg8RxTZ0bI/AAAAAAAAALY/wHxOisR9P_M/s1600-h/3.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 200px; height: 109px;" src="http://3.bp.blogspot.com/_ivbMBZX_-HU/Stg8RxTZ0bI/AAAAAAAAALY/wHxOisR9P_M/s200/3.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5393126829766332850" /&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;that's it falk,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-2738706127310580346?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/2738706127310580346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/10/file-comparison-tool-free-download.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2738706127310580346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2738706127310580346'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/10/file-comparison-tool-free-download.html' title='File comparison tool free download.'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_ivbMBZX_-HU/Stg8Rk6JGCI/AAAAAAAAALQ/EagUlGoma-E/s72-c/1.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-719372086383754090</id><published>2009-10-14T13:22:00.001+01:00</published><updated>2009-10-14T13:22:54.875+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Check Page.IsValid at Client Side using C#</title><content type='html'>when i was designing a registration form i run into this case, what i want is if user press register &lt;br /&gt;button, then that button get disable to avoid multiple click on registration button.&lt;br /&gt;&lt;br /&gt;now if error occurred on the client side never call any server-side function so in this case the disable button will remain disable as it is, now to overcome &lt;br /&gt;&lt;br /&gt;such problem we have to identify whether Page is error free on the client-side.&lt;br /&gt;&lt;br /&gt;To find out this simply check on Disable Submit Button.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;if(Page_IsValid)&lt;br /&gt;{&lt;br /&gt;  //write your code here.&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;function DisableClick() {&lt;br /&gt;var obj = 'btnUpd';&lt;br /&gt;if (Page_IsValid) {&lt;br /&gt;document.getElementById(obj).disabled = true;&lt;br /&gt;txt = txt + 1;&lt;br /&gt;message = 'Please Wait......(' + txt + ')!';&lt;br /&gt;document.getElementById(obj).value = message;&lt;br /&gt;var t = setTimeout('DisableClick()', 600);&lt;br /&gt;}&lt;br /&gt;else &lt;br /&gt;{&lt;br /&gt;document.getElementById(obj).disabled = false;&lt;br /&gt;document.getElementById('PleaseWait').style.display = 'none';&lt;br /&gt;document.getElementById(obj).value = "Register";&lt;br /&gt;}&lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;hope it will work you,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-719372086383754090?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/719372086383754090/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/10/check-pageisvalid-at-client-side-using.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/719372086383754090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/719372086383754090'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/10/check-pageisvalid-at-client-side-using.html' title='Check Page.IsValid at Client Side using C#'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-9056922037675085313</id><published>2009-10-08T06:49:00.001+01:00</published><updated>2009-10-08T06:52:21.792+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='API'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><category scheme='http://www.blogger.com/atom/ns#' term='Twitter'/><title type='text'>Twitter API from C# .Net</title><content type='html'>&lt;b&gt;Twitter &lt;/b&gt; is one of the Great and friendly site ,Twitter has an API implementation that is very simple to understand and use. if you want to friends friends timelie of user you can use that from here &lt;br /&gt;&lt;br /&gt; - http://twitter.com/statuses/friends_timeline.rss&lt;br /&gt;&lt;br /&gt; Ones you find the RSS of friends , you can get the 3 Keywords&lt;br /&gt; 1 . Statuses - what are you working on ?&lt;br /&gt; 2. friends_timeline - what do you need ?&lt;br /&gt; 3. RSS - in which format you need Rss&lt;br /&gt; API supoorting in xml , json, rss, atom you can choose one of that .&lt;br /&gt;&lt;br /&gt; Methods supported: See &lt;a href="http://apiwiki.twitter.com/Twitter-API-Documentation" rel="nofollow"&gt;Twitter API&lt;/a&gt;&lt;br /&gt;&lt;br /&gt; There are many objects supported, but the above format applies for only a few like Statuses, User, Direct Messages. there rest all other are mostly similar.&lt;br /&gt;&lt;br /&gt; right now i am working on complete set of wrappers using this api, so it will be easy ,plz leave a comment if you want any help&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-9056922037675085313?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/9056922037675085313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/10/twitter-apis-from-c-net.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/9056922037675085313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/9056922037675085313'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/10/twitter-apis-from-c-net.html' title='Twitter API from C# .Net'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-3740886610217719551</id><published>2009-10-03T11:07:00.002+01:00</published><updated>2009-10-03T11:10:16.497+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='API'/><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Google'/><title type='text'>Google Maps Api</title><content type='html'>There are lot many service provided by Google , &lt;h2&gt;Google map &lt;/h2&gt; is one of that , which can be used to discover the world through your application , you can used this for many other purpose just like bookmarking you city,state, your Company and many more.&lt;br /&gt;&lt;br /&gt;here is Google api you can integrate with you .net application, below is code how you can do that but The first thing if you wanted a google map Api key for Local server testing you may download here.&lt;br /&gt;&lt;br /&gt;"ABQIAAAA5HHs8lZl18SY-r1Jm1qy-hQpDmmpk8q921mRIPG4qgOvy0T09hTGvwPs_FnHiEq78dTl61JP9JQQtw" this is test key for yout local server and IIS&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_ivbMBZX_-HU/SscivBIvP8I/AAAAAAAAAKQ/cw4qxR6aER0/s1600-h/image.axd.gif"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 200px; height: 142px;" src="http://1.bp.blogspot.com/_ivbMBZX_-HU/SscivBIvP8I/AAAAAAAAAKQ/cw4qxR6aER0/s200/image.axd.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5388313670326370242" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.depositdata.net/BlogEngine.Web/file.axd?file=2008%2f12%2fGoogle.zip" target="_blank" title="Google Maps Local API" rel="nofollow"&gt;Google.zip (701.00 bytes)&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-3740886610217719551?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/3740886610217719551/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/10/google-maps-api.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/3740886610217719551'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/3740886610217719551'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/10/google-maps-api.html' title='Google Maps Api'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_ivbMBZX_-HU/SscivBIvP8I/AAAAAAAAAKQ/cw4qxR6aER0/s72-c/image.axd.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-8296859691021779561</id><published>2009-10-01T07:00:00.003+01:00</published><updated>2009-10-01T07:20:57.647+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='ajax'/><title type='text'>ASP.NET AJAX and the MS Virtual Earth Control</title><content type='html'>i was just refering some site regarding on &lt;h2&gt;Microsoft Virtual Earth Control &lt;/h2&gt;.so i just found very nice and simple article on "Master/Detail with ASP.NET AJAX and the MS Virtual Earth Control" written by matt berseth , its really nice&lt;br /&gt;&lt;br /&gt; This application allows users to browse zip-codes using the Virtual Earth Map Control , on below pics you can see how to accomplish this , The example uses PageMethods to fetch the latitude and longitudes for the zip-codes , if you want more about &lt;b&gt;PageMethods &lt;/b&gt;&lt;br /&gt; just google it out or else refer it &lt;A href="http://www.asp.net/ajax/documentation/live/tutorials/ExposingWebServicesToAJAXTutorial.aspx" rel="nofollow"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_ivbMBZX_-HU/SsRGeeDcW5I/AAAAAAAAAKA/RzTsQ5Imrt8/s1600-h/image%7B0%7D_thumb%5B7%5D.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 200px; height: 116px;" src="http://4.bp.blogspot.com/_ivbMBZX_-HU/SsRGeeDcW5I/AAAAAAAAAKA/RzTsQ5Imrt8/s200/image%7B0%7D_thumb%5B7%5D.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5387508543519480722" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt; &lt;a href="http://mattberseth2.com/ve_zip_code_statistics/" rel="nofollow" target="_blank"&gt;Live Demo&lt;/a&gt; | &lt;a href="http://mattberseth2.com/downloads/ve_zip_code_statistics.zip" rel="nofollow" target="_blank"&gt;Download&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-8296859691021779561?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/8296859691021779561/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/10/aspnet-ajax-and-ms-virtual-earth.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/8296859691021779561'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/8296859691021779561'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/10/aspnet-ajax-and-ms-virtual-earth.html' title='ASP.NET AJAX and the MS Virtual Earth Control'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_ivbMBZX_-HU/SsRGeeDcW5I/AAAAAAAAAKA/RzTsQ5Imrt8/s72-c/image%7B0%7D_thumb%5B7%5D.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-4826064578991509888</id><published>2009-09-28T08:16:00.004+01:00</published><updated>2009-09-29T05:59:57.036+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Captcha'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Captcha ASP.NET 2.0 Server Control</title><content type='html'>Captcha control is used to validate user in terms of avoiding spamming on message or comments or registration or so on . implement Captcha on your application , below are the steps how u can do that &lt;br /&gt;&lt;br /&gt;&lt;b&gt; Installation instruction:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt; 1. Unzip the downloaded file.&lt;br /&gt; 2. Copy MSCaptcha.dll and MSCaptcha.xml files to your /bin application directory.&lt;br /&gt; 3. add reference to mscaptcha.dll file.&lt;br /&gt; 4. Modify your web.config file, by adding this line to &amp;l;httphandlers&amp;gt;  section:&lt;br /&gt; &amp;lt;add verb="GET" path="CaptchaImage.axd" type="MSCaptcha.CaptchaImageHandler, MSCaptcha"/&amp;gt;&lt;br /&gt;&lt;br /&gt; 5.Add MSCaptcha control to your Visual Studio toolbox (optional)&lt;br /&gt;&lt;br /&gt; &lt;br /&gt; &lt;b&gt; how to use on Page &lt;/b&gt;&lt;br /&gt;&lt;br /&gt; 1. Add line to your .aspx file:&lt;br /&gt; &amp;lt;%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc1" % &amp;gt;&lt;br /&gt; &lt;br /&gt; 2. add the control whenever you want:&lt;br /&gt; &lt;code&gt;&lt;br /&gt; &amp;lt;cc1:CaptchaControl ID="ccJoin" runat="server" CaptchaBackgroundNoise="none" CaptchaLength="5" CaptchaHeight="60" CaptchaWidth="200" CaptchaLineNoise="None" CaptchaMinTimeout="5" CaptchaMaxTimeout="240" / &amp;gt;&lt;br /&gt;  &lt;/code&gt;&lt;br /&gt;&lt;br /&gt; 3. Add this on your CS file to check or Validate enter captcha is right or wrong&lt;br /&gt; &lt;code&gt;&lt;br /&gt;  &lt;br /&gt; ccJoin.ValidateCaptcha(txtCap.Text);&lt;br /&gt;if (!ccJoin.UserValidated)&lt;br /&gt;{&lt;br /&gt;  //Inform user that his input was wrong ...&lt;br /&gt;  return;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt; &lt;/code&gt;&lt;br /&gt; &lt;br /&gt; now its look like this way : &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_ivbMBZX_-HU/SsBi-yJzfgI/AAAAAAAAAJw/RfeCeeF5MmE/s1600-h/CaptchaImage.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 150px; height: 35px;" src="http://1.bp.blogspot.com/_ivbMBZX_-HU/SsBi-yJzfgI/AAAAAAAAAJw/RfeCeeF5MmE/s200/CaptchaImage.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5386413985089420802" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.mondor.org/files/mscaptcha.zip" rel="nofollow"&gt;&lt;br /&gt;&lt;img style="cursor:pointer; cursor:hand;width: 64px; height: 64px;" src="http://4.bp.blogspot.com/_ivbMBZX_-HU/SsBjG5Iah7I/AAAAAAAAAJ4/gS6nV04F1mM/s200/dl.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5386414124401592242" /&gt; Download Here..&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Captcha ASP.NET 2.0&lt;/h2&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-4826064578991509888?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/4826064578991509888/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/captcha-aspnet-20-server-control.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/4826064578991509888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/4826064578991509888'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/captcha-aspnet-20-server-control.html' title='Captcha ASP.NET 2.0 Server Control'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_ivbMBZX_-HU/SsBi-yJzfgI/AAAAAAAAAJw/RfeCeeF5MmE/s72-c/CaptchaImage.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-8603411042789448472</id><published>2009-09-25T13:10:00.004+01:00</published><updated>2009-09-29T05:51:17.959+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='Html'/><title type='text'>css techniques</title><content type='html'>on web application CSS is playing very important role . And it is being used more and more often. Cascading Style Sheets has many advantages &lt;br /&gt;like layout, design of the page,presented on the page and so on&lt;br /&gt;&lt;br /&gt;here i have some collections of stuffs on CSS technique .&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. &lt;p&gt;&lt;a href="http://www.mandarindesign.com/troops.html" rel="nofollow"&gt;Drop Cap – Capital Letters with CSS&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;2.&lt;p&gt; &lt;a href="http://www.mandarindesign.com/troops.html#opacitybackgroundhard" rel="nofollow" &gt;Define Image Opacity with CSS&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;3.&lt;p&gt; &lt;a href="http://www.smileycat.com/miaow/archives/000230.php" rel="nofollow"&gt;How to Create a Block Hover Effect for a List of Links&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;4. &lt;p&gt;&lt;a href="http://www.sitepoint.com/test/pullquote.htm" rel="nofollow"&gt;Pullquotes with CSS&lt;/a&gt; &lt;/p&gt;&lt;br /&gt;5.&lt;p&gt; &lt;a href="http://www.surfare.net/%7Etoolman/temp/diagram.html" rel="nofollow"&gt;CSS Diagrams&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;6.&lt;p&gt; &lt;a href="http://www.themaninblue.com/experiment/footerStickAlt/" rel="nofollow"&gt;Footer Stick&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;7. &lt;p&gt;&lt;a href="http://www.frankmanno.com/ideas/css-imagemap/" rel="nofollow"&gt;CSS Image Map&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;8. &lt;p&gt; &lt;a href="http://moneytreesystems.com/css/picpopup.html" rel="nofollow"&gt;CSS Image Pop-Up&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;9. &lt;p&gt; &lt;a href="http://www.ampsoft.net/webdesign-l/image-button.html" rel="nofollow"&gt;CSS Image Replacement for Buttons&lt;/a&gt;&lt;br /&gt;10. &lt;p&gt; &lt;a href="http://lab.arc90.com/2006/07/link_thumbnail.php" rel="nofollow"&gt;Link Thumbnail&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;11. &lt;p&gt; &lt;a href="http://mikecherim.com/experiments/css_map_pop.php" rel="nofollow"&gt;CSS Map Pop&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;12.  &lt;p&gt;&lt;a href="http://mikecherim.com/gbcms_xml/news_page.php?id=12" rel="nofollow"&gt;PHP-based CSS Style Switcher&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;13. &lt;p&gt; &lt;a href="http://mikecherim.com/gbcms_xml/news_page.php?id=0" rel="nofollow"&gt;CSS Unordered List Calender&lt;/a&gt;  &lt;br /&gt;14. &lt;p&gt;&lt;a href="http://www.smashingmagazine.com/2006/12/29/css-based-tables-modern-solutions/" rel="nofollow"&gt;CSS-Based Tables: Techniques&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;15.&lt;p&gt; &lt;a href="http://css-discuss.incutio.com/?page=PrintStylesheets" rel="nofollow"&gt;Printing Web-Documents and CSS&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;look at here &lt;A href="http://www.smashingmagazine.com/2007/01/19/53-css-techniques-you-couldnt-live-without/" target="_blank" rel="nofollow"&gt;more&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-8603411042789448472?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/8603411042789448472/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/css-techniques.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/8603411042789448472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/8603411042789448472'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/css-techniques.html' title='css techniques'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-9095526513869787401</id><published>2009-09-25T11:38:00.001+01:00</published><updated>2009-09-25T11:38:38.563+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Array'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>System.IndexOutOfRangeException was unhandled (Message="Index was outside the bounds of the array.")</title><content type='html'>on C# or vb.net we are using array,Array is one of the best way to mentain collection of data together and proper way , &lt;br /&gt;&lt;br /&gt;here is one Error which get call whenever some problem with size and all &lt;br /&gt;&lt;br /&gt;The exception that is thrown when an attempt is made to access an element of an array with an index that is outside the bounds of the array. This class cannot be&lt;br /&gt;inherited.&lt;br /&gt;&lt;br /&gt;.NET arrays have base 0 and should be kept in mind when coding.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ones you got this error you have to resize your array size, accroding to your requirements&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-9095526513869787401?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/9095526513869787401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/systemindexoutofrangeexception-was.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/9095526513869787401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/9095526513869787401'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/systemindexoutofrangeexception-was.html' title='System.IndexOutOfRangeException was unhandled (Message=&quot;Index was outside the bounds of the array.&quot;)'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-2269502240989955710</id><published>2009-09-23T07:09:00.002+01:00</published><updated>2009-09-23T07:21:48.441+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xml'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><category scheme='http://www.blogger.com/atom/ns#' term='LINQ'/><title type='text'>CSV to XML Conversion using LINQ</title><content type='html'>on C#, if we want to Convert CSV to XML then you can use Language Integrated Query (LINQ) can be used to convert a CSV file to XML. Here is the sample CSV file that needs to be converted &lt;br /&gt;&lt;br /&gt;below example code reads the CSV file to an array. LINQ is used to loop through the array and the contents are written as XML using XElement (System.XML.Linq).&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;public void ConvCSVToXML()&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;String[] FileContent = File.ReadAllLines(@"D:\Proj\jquery.csv");&lt;br /&gt;&lt;br /&gt;String XMLNS = "";&lt;br /&gt;&lt;br /&gt;XElement Inv = new XElement("type", from &lt;br /&gt;&lt;br /&gt;items in FileContent &lt;br /&gt;&lt;br /&gt;let fields = items.Split(',')&lt;br /&gt;&lt;br /&gt;select new XElement("fadein",&lt;br /&gt;&lt;br /&gt;new XElement("Tab", fields[0]),&lt;br /&gt;&lt;br /&gt;new XElement("ProgressBar", fields[1]),&lt;br /&gt;&lt;br /&gt;new XElement("ToolTip", fields[2]),&lt;br /&gt;&lt;br /&gt;new XElement("Menu", fields[3]),&lt;br /&gt;&lt;br /&gt;)&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;File.WriteAllText(@"D:\Proj\jquery.xml", XMLNS + Inv.ToString() );&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;using this you can convert your CSV file xml using C# and C# Convert CSV To XML, .NET CSV To XML&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-2269502240989955710?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/2269502240989955710/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/csv-to-xml-conversion-using-linq.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2269502240989955710'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2269502240989955710'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/csv-to-xml-conversion-using-linq.html' title='CSV to XML Conversion using LINQ'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-2364807891577928445</id><published>2009-09-22T09:19:00.000+01:00</published><updated>2009-09-22T09:20:08.460+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Array'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>How to get the Upper Bound of an Array in C#</title><content type='html'>hi, if you'r using asp, vbscript and all then you have option call &lt;b&gt; UBound&lt;/b&gt;&lt;br /&gt;which will return a UpperBound value of Array. but on C#, you dont have that option call Ubound ,for that you can use  &lt;i&gt;GetUpperBound() &lt;/i&gt; option - Gets the upper bound of the specified dimension in the  Array.&lt;br /&gt;&lt;br /&gt;here is an Example which can show how to use &lt;i&gt;GetUpperBound() &lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt; For i = MyArray.GetLowerBound(0) To MyArray.GetUpperBound(0)&lt;br /&gt;            &lt;br /&gt;  Next i &lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;like this way you can use both option call GetLowerBound &amp; GetUpperBound , &lt;br /&gt;GetLowerBound will return lower bound value.here you have to pass (int value) &lt;br /&gt;0 - 1st arrayvalue, 1- 2ndarrayvalue like that,&lt;br /&gt;&lt;br /&gt;thank you.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-2364807891577928445?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/2364807891577928445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/how-to-get-upper-bound-of-array-in-c.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2364807891577928445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2364807891577928445'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/how-to-get-upper-bound-of-array-in-c.html' title='How to get the Upper Bound of an Array in C#'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-5958016008179887318</id><published>2009-09-19T06:37:00.001+01:00</published><updated>2009-09-19T06:39:39.894+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Download data using FTP or HTTP with C#</title><content type='html'>If you want to download data via FTP or HTTP then you can use this solution. you can Use the System.Net.WebClient to achieve this. The URI determines whether a file (file://) , FTP (FTP://) or HTTP (HTTP:// or HTTPS://) scheme is to be used.&lt;br /&gt;&lt;br /&gt;On .Net2.0 there is an Async Version get added which will allows you download data asynchronously as a background task using its own thread from the thread pool. WebClient object can handle one async download at a time. its not useful for downloading many files concurrently , but if you want to do this then you can use multiple WebClient objects. if you want to Cancel the current download using CancelAsync.&lt;br /&gt;&lt;br /&gt;There are Several Methods:&lt;br /&gt;&lt;br /&gt;1. OpenRead - returns a System.IO.Stream&lt;br /&gt;   OpenReadAsync - async downloading use the handler OpenReadCompleted&lt;br /&gt;&lt;br /&gt;2. DownloadData - returns a ByteArray&lt;br /&gt;   DownloadDataAsync - use handler DownloadDataCompleted&lt;br /&gt;&lt;br /&gt;3. DownloadFile - Saves to a local file&lt;br /&gt;   DownloadFileAsync - use handler DownloadFileCompleted&lt;br /&gt;&lt;br /&gt;4. DownloadString - returns a String ( introduced in .net 2.0)&lt;br /&gt;   DownloadStringAsync - use handler DownloadStringCompleted&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here is Sample code:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;using System.IO;&lt;br /&gt;using System.Net;&lt;br /&gt;using System.Text.RegularExpressions;&lt;br /&gt;&lt;br /&gt;string remoteUri = "http://www.entersitenamehere.com";&lt;br /&gt;WebClient client = new WebClient();&lt;br /&gt;string str = client.DownloadString(remoteUri); &lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="red"&gt;** if you are using  proxy then you need extra code to code around it. &lt;/font&gt;&lt;br /&gt;on my next post i will tell you how you can download data using Proxy.&lt;br /&gt;Downloading data over FTP, Downloading data over HTTP, FTP, HTTP, Net.WebClient&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-5958016008179887318?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/5958016008179887318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/download-data-using-ftp-or-http-with-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/5958016008179887318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/5958016008179887318'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/download-data-using-ftp-or-http-with-c.html' title='Download data using FTP or HTTP with C#'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-2946523808217397765</id><published>2009-09-18T07:22:00.006+01:00</published><updated>2009-09-29T05:58:09.717+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='ajax'/><category scheme='http://www.blogger.com/atom/ns#' term='jQuery'/><title type='text'>JQuery Plugins and Demos for Developers.</title><content type='html'>hello ,i have again come up with some collection of jquery plugins with Demos , hope u like it.&lt;br /&gt;&lt;br /&gt;1. &lt;a href="http://n.efario.us/2008/09/04/jgoogle/" rel="nofollow"&gt;jGoogle&lt;/a&gt;&lt;br /&gt;jGoogle will wrap google AJAX search APIs in a single jQuery plugin to extract usable data. &lt;br /&gt;on the first version they have included GImageSearch option &lt;br /&gt;- &lt;a href="http://assets.bringetto.com/js/jGoogle/demo/" target="_blank" rel="nofollow"&gt;&lt;strong&gt;View demo&lt;/strong&gt;&lt;/a&gt; &lt;br /&gt;- &lt;a href="http://paul.bringetto.com/2008/09/04/jgoogle/" target="_blank" rel="nofollow"&gt;&lt;strong&gt;View Source&lt;/strong&gt;&lt;/a&gt; &lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_ivbMBZX_-HU/SrMqB5nPVmI/AAAAAAAAAIY/_iJKrtUbVO0/s1600-h/1.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 200px; height: 46px;" src="http://4.bp.blogspot.com/_ivbMBZX_-HU/SrMqB5nPVmI/AAAAAAAAAIY/_iJKrtUbVO0/s200/1.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5382692191771514466" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2. &lt;a href="http://designshack.co.uk/tutorials/creating-a-virtual-jquery-keyboard" rel="nofollow"&gt;Virtual jQuery Keyboard&lt;/a&gt;&lt;br /&gt;jquery Virtual Keyboard is one of the good feature for preventing keystrokes , it will very dangerous when you enter some bank account and password like information , virtual keyboard will play very imp role here, you can't get the stoke on your log , &lt;br /&gt; -&lt;a href="http://designshack.co.uk/tutorialexamples/vkeyboard/" target="_blank"&gt;&lt;strong&gt;View Demo&lt;/strong&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;3. &lt;a href="http://www.webresourcesdepot.com/load-content-while-scrolling-with-jquery/" rel="nofollow"&gt;Scrolling with Load Effects.&lt;/a&gt;&lt;br /&gt;when we have lots of content then its not looking good when we are showing them in one and too long panel, instead of that we can show loading effects the it also look beautiful and cool&lt;br /&gt; - &lt;a href="http://www.webresourcesdepot.com/dnspinger/" target="_blank"&gt;&lt;strong&gt;View  demo&lt;/strong&gt;&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;4. &lt;a href="http://tablesorter.com/docs/" rel="nofollow"&gt;Tablesorter 2.0&lt;/a&gt;&lt;br /&gt;When we showing the records on table then sorting is one of the basic option , to show the records like date wise , increasing decrease order and so on like this feature you can add here&lt;br /&gt;- &lt;a href="http://tablesorter.com/docs/" target="_blank" rel="nofollow"&gt;&lt;strong&gt;View demo&lt;/strong&gt;&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;5. &lt;a href="http://abeautifulsite.net/notebook_files/68/demo/"&gt;jQuery Right-click Plugin&lt;/a&gt;&lt;br /&gt;This plugin enable you to detect the event when user get click right button of mouse . so as per the click you can do your operation like disable the right click and so on or adding any information to drop down when clicking right click &lt;br /&gt; -&lt;a href="http://abeautifulsite.net/notebook_files/68/demo/" target="_blank"&gt;&lt;strong&gt;View demo&lt;/strong&gt;&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;6. &lt;a href="http://digitalbush.com/projects/progress-bar-plugin/" rel="nofollow"&gt;Jquery: Progress Bar &lt;/a&gt;&lt;br /&gt; Progress bar is one of the cool feature that use can use anywhere where you are data get retrieve from database and if it will take too much time to load that page , in this case you can show loading like Effects so user can understand that page is being lead &lt;br /&gt; -  &lt;a href="http://digitalbush.com/projects/progress-bar-plugin/" target="_blank" rel="nofollow"&gt;view Demo &lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_ivbMBZX_-HU/SrMoW6moFvI/AAAAAAAAAII/GJBPl-cGmtk/s1600-h/prg.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 200px; height: 71px;" src="http://1.bp.blogspot.com/_ivbMBZX_-HU/SrMoW6moFvI/AAAAAAAAAII/GJBPl-cGmtk/s200/prg.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5382690353791375090" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;7. &lt;a href="http://www.komodomedia.com/blog/2008/10/jquery-feed-menus/" rel="nofollow"&gt; jQuery Feed Menus&lt;/a&gt;&lt;br /&gt; Feed is used for bookmarking and all other purpose , you can show multiple feed under one category , so you can use your space and its also look nice&lt;br /&gt; - &lt;a href="http://www.komodomedia.com/blog/2008/10/jquery-feed-menus/" target="_blank" rel="nofollow"&gt;view Demo &lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_ivbMBZX_-HU/SrMoXbokYtI/AAAAAAAAAIQ/lF6QoP086bY/s1600-h/fee.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 132px; height: 112px;" src="http://3.bp.blogspot.com/_ivbMBZX_-HU/SrMoXbokYtI/AAAAAAAAAIQ/lF6QoP086bY/s200/fee.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5382690362657891026" /&gt;&lt;/a&gt;&lt;br /&gt;8. &lt;a href="http://www.authenticsociety.com/gShuffle-1/"&gt;gShuffle&lt;/a&gt;&lt;br /&gt; The plugin animation is triggered every time the Shuffle button is clicked. Each time, the code will choose two squares to switch positions with one another.&lt;br /&gt; - &lt;a href="http://www.authenticsociety.com/gShuffle-1/" target="_blank" rel="nofollow"&gt;view Demo &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;9 -&lt;a href="http://markitup.jaysalvat.com/examples/" target="_blank" rel="nofollow"&gt;Mark It Up&lt;/a&gt;&lt;br /&gt;MarkItUp, you can convert text areas into powerful HTML, BBCode or Wiki editor. &lt;br /&gt;&lt;br /&gt;----&lt;br /&gt;hope you like it ,&lt;br /&gt;will add more on it, if you found anything could be related with this plz add on comments&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-2946523808217397765?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/2946523808217397765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/jquery-plugins-and-demos-for-developers.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2946523808217397765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2946523808217397765'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/jquery-plugins-and-demos-for-developers.html' title='JQuery Plugins and Demos for Developers.'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_ivbMBZX_-HU/SrMqB5nPVmI/AAAAAAAAAIY/_iJKrtUbVO0/s72-c/1.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-1070217175781958874</id><published>2009-09-11T13:48:00.002+01:00</published><updated>2009-09-29T05:59:00.877+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ajax'/><category scheme='http://www.blogger.com/atom/ns#' term='jQuery'/><title type='text'>Jquery ToolTip</title><content type='html'>Tooltip is one of the Cool &amp; useful feature in Jquery , its mostly used for showing &lt;br /&gt;Additional information for that records , you can use that anywhere like showing Customer information, Suggestion for form fillup , for zoom image  and many more &lt;br /&gt;&lt;br /&gt;here are some collection of tooltips .&lt;br /&gt;&lt;br /&gt; 1. &lt;a title="Bottom slide tooltip" target="_blank" href="http://www.dynamicdrive.com/dynamicindex5/bottomtool.htm" rel="nofollow"&gt;&lt;strong&gt;Bottom slide tooltip&lt;/strong&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt; 2.  &lt;a target="_blank" href="http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/" rel="nofollow"&gt;&lt;strong&gt;jQuery Tooltip Plugin&lt;/strong&gt;&lt;/a&gt; &lt;br /&gt;&lt;br /&gt; 3.&lt;a href="http://www.codylindley.com/blogstuff/js/jtip/" target="_blank" rel="nofollow"&gt;jTip&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_ivbMBZX_-HU/SqpH9f7ZJ5I/AAAAAAAAAH4/t6-BF7LXMdA/s1600-h/3.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 200px; height: 62px;" src="http://3.bp.blogspot.com/_ivbMBZX_-HU/SqpH9f7ZJ5I/AAAAAAAAAH4/t6-BF7LXMdA/s200/3.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5380191826715682706" /&gt;&lt;/a&gt;&lt;br /&gt; 4.&lt;a href="http://craigsworks.com/projects/simpletip/" target="_blank"&gt;SimpleTip&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_ivbMBZX_-HU/SqpIFP7JyMI/AAAAAAAAAIA/dnvjrihT580/s1600-h/4.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 200px; height: 53px;" src="http://2.bp.blogspot.com/_ivbMBZX_-HU/SqpIFP7JyMI/AAAAAAAAAIA/dnvjrihT580/s200/4.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5380191959858661570" /&gt;&lt;/a&gt;&lt;br /&gt; 5.&lt;a href="http://boxover.swazz.org/" target="_blank" rel="nofollow"&gt;BoxOver Tooltip&lt;/a&gt;&lt;br /&gt;&lt;br /&gt; 6.&lt;a href="http://craigsworks.com/projects/qtip/demos/" target="_blank" rel="nofollow"&gt;qTip&lt;/a&gt;&lt;br /&gt;&lt;br /&gt; 7.&lt;a href="http://theezpzway.com/2009/3/17/jquery-plugin-ezpz-tooltip" target="_blank" rel="nofollow"&gt;EZPZ jQuery Tooltip&lt;/a&gt;&lt;br /&gt;&lt;br /&gt; 8. &lt;a href="http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery" target="_blank" rel="nofollow"&gt;CSS Globe jQuery Tooltip plugin&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;hope u like it&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-1070217175781958874?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/1070217175781958874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/jquery-tooltip.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/1070217175781958874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/1070217175781958874'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/jquery-tooltip.html' title='Jquery ToolTip'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_ivbMBZX_-HU/SqpH9f7ZJ5I/AAAAAAAAAH4/t6-BF7LXMdA/s72-c/3.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-8105532579329417870</id><published>2009-09-10T06:35:00.001+01:00</published><updated>2009-09-10T06:36:50.733+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Sql'/><title type='text'>SQL : Count String Occurrence</title><content type='html'>in SQl server, we dont have any function which can return the number of words in a perticular string .but from small tricks we can do that . now Consider here we can separating the character on space basis&lt;br /&gt;&lt;br /&gt;example :&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;  declare @Str VARCHAR(2000)&lt;br /&gt;  SET @Str = 'Hi this is Test line which count no of spaces.'&lt;br /&gt;  select LEN(@Str) - LEN(Replace(@Str,' ', '')) + 1&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Above query will return value 10 , but if the words are separate by more than one space then it will aslo count that space. but its wrong as per the answer. &lt;br /&gt;in that case Create one function which can keep multiple spaces as a single space and return proper result &lt;br /&gt; &lt;br /&gt;Below is a Function which can remove white space and all and retrun peoper result.&lt;br /&gt;&lt;code&gt;&lt;br /&gt; CREATE FUNCTION [dbo].[WordCount] ( @inStr VARCHAR(4000) ) &lt;br /&gt; RETURNS INT&lt;br /&gt; AS&lt;br /&gt; BEGIN&lt;br /&gt;&lt;br /&gt; DECLARE @Index          INT&lt;br /&gt; DECLARE @Char           CHAR(1)&lt;br /&gt; DECLARE @PrevChar       CHAR(1)&lt;br /&gt; DECLARE @WordCount      INT&lt;br /&gt;&lt;br /&gt; SET @Index = 1&lt;br /&gt; SET @WordCount = 0&lt;br /&gt;&lt;br /&gt; WHILE @Index &lt;= LEN(@InStr)&lt;br /&gt; BEGIN&lt;br /&gt;    SET @Char     = SUBSTRING(@InStr, @Index, 1)&lt;br /&gt;    SET @PrevChar = CASE WHEN @Index = 1 THEN ' '&lt;br /&gt;                         ELSE SUBSTRING(@InStr, @Index - 1, 1)&lt;br /&gt;                    END&lt;br /&gt;&lt;br /&gt;    IF @PrevChar = ' ' AND @Char != ' '&lt;br /&gt;        SET @WordCount = @WordCount + 1&lt;br /&gt;&lt;br /&gt;    SET @Index = @Index + 1&lt;br /&gt;END&lt;br /&gt;&lt;br /&gt;RETURN @WordCount&lt;br /&gt;END&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;&lt;/code&gt; &lt;br /&gt;&lt;br /&gt;now you can use that WordCount Function&lt;br /&gt;&lt;code&gt;&lt;br /&gt; DECLARE @String VARCHAR(4000)&lt;br /&gt; SET @String = 'Hi this is Test line which count             no of spaces.'&lt;br /&gt; SELECT [dbo].[WordCount] ( @String )&lt;br /&gt; &lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Above Query will return Result 10 not any other, &lt;br /&gt;hope you like this ,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-8105532579329417870?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/8105532579329417870/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/count-string-occurrence.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/8105532579329417870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/8105532579329417870'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/count-string-occurrence.html' title='SQL : Count String Occurrence'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-8965783896744409247</id><published>2009-09-08T07:05:00.001+01:00</published><updated>2009-09-08T07:07:03.367+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Sql'/><title type='text'>SQL : how to sort ip Address.</title><content type='html'>ip address, is one of the key point to identify the user. now if your storing ip address on your database with the VARCHAR datatype with length of 25. guess you have 1 lakh's of records of different ip address and you want to sort that.&lt;br /&gt;&lt;br /&gt;Then your sorting query will be  &lt;br /&gt; &lt;code&gt;&lt;br /&gt;   select [ipadd] as IpAddress from ip order by [ipadd] &lt;br /&gt; &lt;/code&gt;&lt;br /&gt;&lt;br /&gt; now in this case it will return a result something like this &lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt; ipAddress&lt;br /&gt;------------------------&lt;br /&gt;10.0.0.1&lt;br /&gt;192.165.20.2&lt;br /&gt;255.205.2.3&lt;br /&gt;255.145.53.6&lt;br /&gt;64.35.88.9&lt;br /&gt;68.4.5.99&lt;br /&gt;69.65.236.235&lt;br /&gt;98.125.85.36.0&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;something like that but actually its not your answer , it get sorted on first no. so becasue of that your result get warry.on actual basic the result should come in this format &lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt; ipAddress&lt;br /&gt;------------------------&lt;br /&gt;10.0.0.1&lt;br /&gt;64.35.88.9&lt;br /&gt;68.4.5.99&lt;br /&gt;69.65.236.235&lt;br /&gt;98.125.85.36.0&lt;br /&gt;192.165.20.2&lt;br /&gt;255.205.2.3&lt;br /&gt;255.145.53.6&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;now how to achieve this use some technique here&lt;br /&gt;&lt;code&gt;&lt;br /&gt; select [IPAdd] from ip &lt;br /&gt; order by CAST(PARSENAME([IPAdd], 4) AS INT),&lt;br /&gt;CAST(PARSENAME([IPAdd], 3) AS INT),&lt;br /&gt;CAST(PARSENAME([IPAdd], 2) AS INT),&lt;br /&gt;CAST(PARSENAME([IPAdd], 1) AS INT),&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;now check this you get above result &lt;br /&gt;thank you.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-8965783896744409247?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/8965783896744409247/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/sql-how-to-sort-ip-address.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/8965783896744409247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/8965783896744409247'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/sql-how-to-sort-ip-address.html' title='SQL : how to sort ip Address.'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-5750127440374995959</id><published>2009-09-07T12:07:00.001+01:00</published><updated>2009-09-07T12:15:17.605+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><title type='text'>publish multiple websites using one solution.</title><content type='html'>on Visual Studio you can publish only one website at a time otherwise there is a clash between one website with multiple website.if you want to do that means on startup of one website other website also publish . for that you need to do some setting on Solutional Level.&lt;br /&gt;&lt;br /&gt;follow the steps :&lt;br /&gt; 1- on proejct Solution just right click it &amp; select Product Dependencies.&lt;br /&gt; 2- select Dependencies tab.&lt;br /&gt; 3- select your main website(startup one) from Dropdown.&lt;br /&gt; 4- now check all the web service on "Depends on" section&lt;br /&gt;    that you can decide how many site you want to publish at a time of this main site. &lt;br /&gt; 5- click ok &lt;br /&gt;&lt;br /&gt; now whenever you publish that main site , then it will prompt publish window for all other depended site ,then all other mention site will also get publish , if you dont want to publish that you do the same above procedure to deactivated that , &lt;br /&gt;&lt;br /&gt;that's all...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-5750127440374995959?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/5750127440374995959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/publish-multiple-websites-using-one.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/5750127440374995959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/5750127440374995959'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/publish-multiple-websites-using-one.html' title='publish multiple websites using one solution.'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-5076451460798687490</id><published>2009-09-03T08:23:00.000+01:00</published><updated>2009-09-03T08:24:15.730+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xml'/><category scheme='http://www.blogger.com/atom/ns#' term='Silverlight'/><title type='text'>About XmlPreloadedResolver</title><content type='html'>when using Silverlight then &lt;b&gt;XmlPreloadedResolver&lt;/b&gt; meaning is very useful, its a new type which can be useful when your working with XML . on XmlPreloadedResolver it has the Ability to load the DTD without call to network. This type manually maintain the DTD cache and all other with xml streams. XmlPreloadedResolver includes RSS1.0 and XHTML1.0 Defination of DTD.&lt;br /&gt;&lt;br /&gt;sample code on how to work with XmlPreloadedResolver &lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;String strDtd = "&lt;!ENTITY entity 'Replacement text'&gt;";&lt;br /&gt;XmlPreloadedResolver resolver = new XmlPreloadedResolver();&lt;br /&gt;resolver.Add(resolver.ResolveUri(null, "nameofDTD.dtd"), strDtd);&lt;br /&gt;XmlReaderSettings rs = new XmlReaderSettings();&lt;br /&gt;rs.XmlResolver = resolver;&lt;br /&gt;rs.DtdProcessing = DtdProcessing.Parse;&lt;br /&gt;XmlReader reader = XmlReader.Create("samplexml.xml", rs);&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt; &lt;br /&gt;now you can also set the DTD sets Enable using XmlKnownDtds enumeration.&lt;br /&gt;XmlKnownDtds is used with the XmlPreloadedResolver to identify the well-known DTD&lt;br /&gt;&lt;br /&gt;the following example shos preloading Xhtml1.0 DTd into the XmlReaderSettings object&lt;br /&gt;here there is no need of network call to parse the Xhtml file.it will done automatically.&lt;br /&gt;&lt;br /&gt; &lt;code&gt;&lt;br /&gt;  XmlReaderSettings settings = new XmlReaderSettings();&lt;br /&gt;   //define the Setting object to parsing DTD&lt;br /&gt;  settings.DtdProcessing = DtdProcessing.Parse; &lt;br /&gt;   // Define preloading Xhtml10 DTD&lt;br /&gt;  settings.XmlResolver = new XmlPreloadedResolver(XmlKnownDtds.Xhtml10);&lt;br /&gt;  //suppose read the sample.html file using XmlReader&lt;br /&gt;  XmlReader reader = XmlReader.Create("sample.html", settings);&lt;br /&gt;  // and load using XDocument object&lt;br /&gt;  XDocument document = XDocument.Load(reader); &lt;br /&gt; &lt;/code&gt;&lt;br /&gt; &lt;br /&gt;for more refer to : http://msdn.microsoft.com/en-us/library/cc189059(VS.95).aspx&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-5076451460798687490?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/5076451460798687490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/about-xmlpreloadedresolver.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/5076451460798687490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/5076451460798687490'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/about-xmlpreloadedresolver.html' title='About XmlPreloadedResolver'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-1053307013308137584</id><published>2009-09-02T12:41:00.004+01:00</published><updated>2009-12-08T07:23:55.768+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Highlight Gridview's Row on mouseHover</title><content type='html'>in Gridview we have seen most of the time we one we take move hover to any row , size of that row or background color or any animation get happen you can do that using css, or java script also.&lt;br /&gt;&lt;br /&gt;here i have do that using java script&lt;br /&gt;&lt;code&gt;&lt;br /&gt;function gvHigh(tRow,showAct)&lt;br /&gt;  {&lt;br /&gt;   if (showAct)&lt;br /&gt;     {&lt;br /&gt;       tRow.style.backgroundColor = '#ff32ss';&lt;br /&gt;     }&lt;br /&gt;      else&lt;br /&gt;     {&lt;br /&gt;tRow.style.backgroundColor = '#ffffff';&lt;br /&gt;     }&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;function urlloca(Url)&lt;br /&gt;{&lt;br /&gt; document.location.href = Url;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;and Define onrowCreated function &lt;a href="http://codingstuffsbykiran.blogspot.com/2009/07/open-new-window-in-gridview-using.html" target="_blank"&gt;like this &lt;/a&gt; and put your code behind here&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;protected void gv1_onRowCreated(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;foreach (GridViewRow gvRow in gv1.Rows)&lt;br /&gt;{&lt;br /&gt;  gvRow.Attributes["onmouseover"] = "highlight(this, true);";&lt;br /&gt;  gvRow.Attributes["onmouseout"] = "highlight(this, false);";&lt;br /&gt;  HttpResponse myHttpResponse = Response;&lt;br /&gt;  HtmlTextWriter myHtmlTextWriter = new HtmlTextWriter(myHttpResponse.Output);&lt;br /&gt;  gvRow.Attributes.AddAttributes(myHtmlTextWriter);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;that's it it will help you.&lt;br /&gt;thank you.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-1053307013308137584?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/1053307013308137584/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/highlight-gridviews-row-on-mousehover.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/1053307013308137584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/1053307013308137584'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/09/highlight-gridviews-row-on-mousehover.html' title='Highlight Gridview&apos;s Row on mouseHover'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-2837839485489126841</id><published>2009-08-31T09:55:00.002+01:00</published><updated>2009-10-30T06:30:47.582+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Master Page'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><category scheme='http://www.blogger.com/atom/ns#' term='Html'/><title type='text'>set meta tags to master page from Child Page</title><content type='html'>Meta tag ,title, keywords ,Description and all are very assential on each page , if your using asp.net with Master page then also its possible  some people think that how it can be? master page means one page and it get call on each child page creation.but you can also add the keyword , title and all with each pertucular page if you'r using master page then also.&lt;br /&gt; &lt;br /&gt;Below are the Steps you need to follow&lt;br /&gt;&lt;br /&gt;1- &lt;br /&gt;&lt;br /&gt;Create oen Content place holder on your master page with in HEAD section&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;head id="Head_Demo" runat="server"&amp;gt;&lt;br /&gt;    &amp;lt;asp:ContentPlaceHolder runat="server" id="Contentplace_Demo"&amp;gt; &amp;lt;/asp:ContentPlaceHolder&amp;gt;&lt;br /&gt;&amp;lt;/head &amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;2 - &lt;br /&gt;&lt;br /&gt;on Your Child page put this code :&lt;br /&gt;&lt;br /&gt;&amp;lt;asp:Content runat="server" ContentPlaceHolderID="ContentHeaders" ID="Content_Demo"  &amp;gt;&lt;br /&gt;  &amp;lt;META name="keywords" content="&amp;lt;%=pgKeywords%&amp;gt;"&amp;gt;&lt;br /&gt;  &amp;lt;TITLE&amp;gt;&amp;lt;%=pgTitle%&amp;gt;&amp;lt;/TITLE&amp;gt;  &lt;br /&gt;  &amp;lt;META name="description" content="&amp;lt;%=pgDescription%&amp;gt;"&amp;gt;&lt;br /&gt;&amp;lt;/asp:Content&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3 -&lt;br /&gt;&lt;br /&gt;on content page's(Child page) open CodeBehind and Declare this  :&lt;br /&gt;Declare variables as below in the global declaration section&lt;br /&gt;&lt;br /&gt;Protected pgKeywords As String = ""&lt;br /&gt;Protected pgTitle As String = ""&lt;br /&gt;Protected pgDescription As String = ""&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4- &lt;br /&gt; Now set the New title, Desc and all as per the your req. copy that code on page_load Event&lt;br /&gt;&lt;br /&gt;pgKeywords = "keywords  Content Goes here  "&lt;br /&gt;pgTitle = "title Content Goes here"&lt;br /&gt;pgDescription = "Description Content Goes here" &lt;br /&gt;&lt;br /&gt;or you can also refer this &lt;a href="http://docs.google.com/Doc?docid=0ASgYkmErPYM5ZGRqdnA3dHFfNGRjNXpwZGRt&amp;hl=en&amp;pli=1#" target="_blank" rel="nofollow"&gt; set mata tags&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;that's it &lt;br /&gt;hope it will helps you&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-2837839485489126841?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/2837839485489126841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/08/set-meta-tags-to-master-page-from-child.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2837839485489126841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2837839485489126841'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/08/set-meta-tags-to-master-page-from-child.html' title='set meta tags to master page from Child Page'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-1259194437004619376</id><published>2009-08-28T10:49:00.000+01:00</published><updated>2009-08-28T10:54:01.577+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><title type='text'>How to get Mouse Cursor Position</title><content type='html'>There is no Certain way to find the Cursor position of mouse within the Browser.&lt;br /&gt; W3c standards say that you can get the position when event is triggered by  event.clientX and same for clientY. to find out the Distance between left n Top &lt;br /&gt;&lt;br /&gt;side.&lt;br /&gt;&lt;br /&gt; Its works fine on IE6 , Netsacape , Firefox , Opera 7+ and all othe browser.&lt;br /&gt; in IE uses two Different ways to scroll the position of pages they are using Document.body.ScrollLeft and same for the ScrollTop. this is in Before version &lt;br /&gt;&lt;br /&gt;of 6 &lt;br /&gt; Some of the Browser used PageXOffset &amp; PageYOffset.&lt;br /&gt;&lt;br /&gt; Here is Function call MouseX() and MouseY() which can calculate the X and Y Co-ordinates of same,&lt;br /&gt; &lt;code&gt;&lt;br /&gt;&lt;br /&gt;function mXbar(action) {&lt;br /&gt;if (action.pageX) return action.pageX;&lt;br /&gt;else if (action.clientX)&lt;br /&gt;   return action.clientX + (document.documentElement.scrollLeft ?document.documentElement.scrollLeft :document.body.scrollLeft);&lt;br /&gt;else return null;&lt;br /&gt;}&lt;br /&gt;function mYbar(action) {&lt;br /&gt;if (action.pageY) return action.pageY;&lt;br /&gt;else if (action.clientY)&lt;br /&gt;   return action.clientY + (document.documentElement.scrollTop ?document.documentElement.scrollTop :document.body.scrollTop);&lt;br /&gt;  else return null;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;there are few more ways to calculate the cursor position event.ScrenX or event.screenY &lt;br /&gt;these feature are not thee in Netscape4 and IE old version, but in new version of ie 7 + they have all such feature,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-1259194437004619376?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/1259194437004619376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/08/how-to-get-mouse-cursor-position.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/1259194437004619376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/1259194437004619376'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/08/how-to-get-mouse-cursor-position.html' title='How to get Mouse Cursor Position'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-7359540938821394446</id><published>2009-08-18T08:15:00.005+01:00</published><updated>2009-09-29T06:01:08.821+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ajax'/><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><category scheme='http://www.blogger.com/atom/ns#' term='jQuery'/><title type='text'>Best Ajax , Jquery ,Css Calendar collections</title><content type='html'>Calendar is one of the requirement while taking a input from user in terms of &lt;br /&gt;Data of Birth , Start Journey , Admission Date and so many .its a Essential Control in terms of all the Application Development. &lt;br /&gt;&lt;br /&gt;here are the some cool and nice collections of calendar most of them are in ajax, css , and Jquery . hope you like it .&lt;br /&gt;&lt;br /&gt;1. &lt;a href="http://dev.base86.com/scripts/vista-like_ajax_calendar.html" rel="nofollow"&gt;VLA Calendar&lt;/a&gt;&lt;br /&gt;  &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_ivbMBZX_-HU/SopuogwKkpI/AAAAAAAAAFo/e78MOSUVugw/s1600-h/7thjun0804.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 91px;" src="http://1.bp.blogspot.com/_ivbMBZX_-HU/SopuogwKkpI/AAAAAAAAAFo/e78MOSUVugw/s320/7thjun0804.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5371227147858514578" /&gt;&lt;/a&gt;&lt;br /&gt;  &lt;br /&gt;&lt;br /&gt; 2. &lt;a href="http://michaelsync.net/2006/11/06/aspnet-calendar-control-and-yahoouicalendar/" rel="nofollow"&gt;ASP.Net calendar&lt;/a&gt;&lt;br /&gt;   &lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_ivbMBZX_-HU/Sopu7wPUWNI/AAAAAAAAAFw/kGXeBopiBj0/s1600-h/2.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 98px;" src="http://4.bp.blogspot.com/_ivbMBZX_-HU/Sopu7wPUWNI/AAAAAAAAAFw/kGXeBopiBj0/s320/2.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5371227478433224914" /&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt; 3. &lt;a href="http://www.dynamicdrive.com/dynamicindex7/jasoncalendar.htm" rel="nofollow"&gt;Date Input Calendar&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_ivbMBZX_-HU/SopvBGCuk0I/AAAAAAAAAF4/ppmvkCyynw0/s1600-h/3.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 98px;" src="http://3.bp.blogspot.com/_ivbMBZX_-HU/SopvBGCuk0I/AAAAAAAAAF4/ppmvkCyynw0/s320/3.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5371227570185343810" /&gt;&lt;/a&gt;&lt;br /&gt;   &lt;br /&gt; 4. &lt;a href="http://www.eulerian.com/en/opensource/datepicker-prototype-scriptaculous" rel="nofollow"&gt;using Prototype date picker&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_ivbMBZX_-HU/SopvF5ve6zI/AAAAAAAAAGA/jm56zCwHQuk/s1600-h/4.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 98px;" src="http://2.bp.blogspot.com/_ivbMBZX_-HU/SopvF5ve6zI/AAAAAAAAAGA/jm56zCwHQuk/s320/4.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5371227652782746418" /&gt;&lt;/a&gt;&lt;br /&gt;  &lt;br /&gt; 5. &lt;a href="http://marcgrabanski.com/code/jquery-calendar/" rel="nofollow"&gt;Jquery Calendar&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_ivbMBZX_-HU/SopvKHz2WHI/AAAAAAAAAGI/7nA02X1Ng5Y/s1600-h/5.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 98px;" src="http://3.bp.blogspot.com/_ivbMBZX_-HU/SopvKHz2WHI/AAAAAAAAAGI/7nA02X1Ng5Y/s320/5.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5371227725278632050" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt; 6. &lt;a href="http://code.google.com/p/calendardateselect/" rel="nofollow"&gt;Date and Time Picker&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_ivbMBZX_-HU/SopvPN6uDWI/AAAAAAAAAGQ/tVN-q4sOVKk/s1600-h/6.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 98px;" src="http://3.bp.blogspot.com/_ivbMBZX_-HU/SopvPN6uDWI/AAAAAAAAAGQ/tVN-q4sOVKk/s320/6.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5371227812817407330" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; hope u like this collection , will keep on updating ,&lt;br /&gt; if u know any one in this plz send a comment on it,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-7359540938821394446?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/7359540938821394446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/08/best-ajax-jquery-css-calendar.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/7359540938821394446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/7359540938821394446'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/08/best-ajax-jquery-css-calendar.html' title='Best Ajax , Jquery ,Css Calendar collections'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_ivbMBZX_-HU/SopuogwKkpI/AAAAAAAAAFo/e78MOSUVugw/s72-c/7thjun0804.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-4436337215208584386</id><published>2009-08-13T08:12:00.001+01:00</published><updated>2009-08-13T08:13:49.889+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Master Page'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Handle Master page Click Event on Content Page</title><content type='html'>In ASP.net2.5 there a new concept knowns as Master Page , with the help of that you can &lt;br /&gt;customize you'r repeteative work. Create a one Master page and use that page on all the other pages. Its really very good tech to crear your coding and clear your logic also.&lt;br /&gt;&lt;br /&gt;now sometime we have a LinkButton define on Master page which can be work as a "Link to the Customer information " and this can be change depend on customer role. and that LinkButton action we want in the Contenet page.&lt;br /&gt;&lt;br /&gt;Supoose we have LinkButton call "linkFromMasterPage" on Master Page. Here is small code which can helps you to do same .&lt;br /&gt; &lt;br /&gt;C#--&lt;br /&gt; &lt;code&gt;&lt;br /&gt;  Public LinkButton linkFromMasterPage(){&lt;br /&gt;&lt;br /&gt;        Get {&lt;br /&gt;&lt;br /&gt;            Return linkFromMasterPage;&lt;br /&gt;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;    }&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Now next Process is reference the Master Page as a casted object in the Content page.&lt;br /&gt;here CusMasterPg is a Class of Maste Page.&lt;br /&gt; &lt;br /&gt; &lt;code&gt;&lt;br /&gt;   CusMasterPg cm = ((CusMasterPg) (Master));&lt;br /&gt; &lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Now you can easily access the all the methods, public properties of Master page class.&lt;br /&gt;so next stpe is handle the button Event on your content page &lt;br /&gt; &lt;br /&gt; &lt;code&gt;&lt;br /&gt;    protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;    {&lt;br /&gt;      If (!(IsNothing(cm))) { &lt;br /&gt;&lt;br /&gt;        cm.linkFromMasterPage.Click += New EventHandler(linkFromMasterPage_Click);&lt;br /&gt;&lt;br /&gt;      }&lt;br /&gt;    }&lt;br /&gt; &lt;/code&gt;&lt;br /&gt;  &lt;br /&gt;next thing is define  actual method handle on your page.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;  Protected void linkFromMasterPage_Click(Object sender, System.EventArgs e){&lt;br /&gt;&lt;br /&gt;        // write Perform Business Logic Here&lt;br /&gt;    }&lt;br /&gt; &lt;/code&gt;&lt;br /&gt;&lt;br /&gt;thats all , you can do same thing for User Controls also for Handle Master page Click Event on Content Page.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-4436337215208584386?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/4436337215208584386/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/08/handle-master-page-click-event-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/4436337215208584386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/4436337215208584386'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/08/handle-master-page-click-event-on.html' title='Handle Master page Click Event on Content Page'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-4336278922163229471</id><published>2009-08-12T14:07:00.001+01:00</published><updated>2009-08-12T14:07:44.491+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>ASP.NET Cross Site Scripting Toolkit</title><content type='html'>hi i have found some very much useful related with the Cross site Scripting.&lt;br /&gt;cross site scripting is very common method to hack a site, most of the hacker get hack the site with the some basic scripting techniques. &lt;br /&gt; &lt;br /&gt; now Microsoft get Introduce the Toolkit to Prevent the Cross-site Scripting not exactly preventing but you can say some basic level of Prevention. this toolkit is supposed to be offer some extra good efforts against the type if attack.&lt;br /&gt;&lt;br /&gt;  Cross Site Scripting may be done using -&lt;br /&gt;  1. via QueryString &lt;br /&gt;  2. via Text box entry &lt;br /&gt;  and so many &lt;br /&gt;&lt;br /&gt; download Microsoft Anti-Cross Site Scripting Library toolkit &lt;a href="http://msdn.microsoft.com/en-us/security/aa973814.aspx" target="_blank"&gt;here &lt;br /&gt; &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-4336278922163229471?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/4336278922163229471/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/08/aspnet-cross-site-scripting-toolkit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/4336278922163229471'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/4336278922163229471'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/08/aspnet-cross-site-scripting-toolkit.html' title='ASP.NET Cross Site Scripting Toolkit'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-4036870113826025611</id><published>2009-08-12T06:20:00.000+01:00</published><updated>2009-08-12T06:21:23.586+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Silverlight'/><title type='text'>Silverlight-based Local Impact Map</title><content type='html'>It is one of the Great and very Interestig web application devlope by Microsoft , &lt;br /&gt;there are some reason to devlop this.&lt;br /&gt;&lt;br /&gt;The Local Impact Map are conatin around 400+ Stories about the Program of Microsoft around the world.In that you can see it includes the Photos videos and more and more Visual Effects.&lt;br /&gt;&lt;br /&gt;It is very interesting and easy to use , i like the one of that feature of Deep Zooming of Map, its really cool and very fast , Its not a ' free mouse-wheelin ' where you can zoom the Preticular location , they are taking advantage of Deep Zooming of image along with zoomo for Controlled Transition.&lt;br /&gt;&lt;br /&gt;Microsoft’s Silverlight-based Local Impact Map &lt;br /&gt;&lt;br /&gt;plz have a look at this cool &lt;a href="http://www.microsoft.com/about/corporatecitizenship/map/app/#s83883d" target="_blank"&gt;Local Imapct of Map&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-4036870113826025611?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/4036870113826025611/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/08/silverlight-based-local-impact-map.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/4036870113826025611'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/4036870113826025611'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/08/silverlight-based-local-impact-map.html' title='Silverlight-based Local Impact Map'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-1572022031645813398</id><published>2009-08-05T08:16:00.001+01:00</published><updated>2009-08-05T08:22:51.350+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp'/><title type='text'>ASP Format Date and Time</title><content type='html'>while coding on ASP we required date and time most of the time, how to get this is very basic and well known to the most of the Programmers, but how to get the only specific date , time in required format is a main task , &lt;br /&gt;&lt;br /&gt;for that we have inbuild function call &lt;b&gt;FormatDateTime() &lt;/b&gt;.&lt;br /&gt; &lt;br /&gt;now we very well knows if we want to get current date and time then we can use &lt;i&gt;now() &lt;/i&gt;&lt;br /&gt; &lt;code&gt;&lt;br /&gt;  &amp;lt;%dim TodayDnT&lt;br /&gt;    TodayDnT = now()&lt;br /&gt;  %&amp;gt;&lt;br /&gt; &lt;/code&gt;&lt;br /&gt; if you want the Result of same then use &amp;lt;% Response.write(TodayDnT) %&amp;gt; &lt;br /&gt; so it will return result as : -&lt;b&gt; 8/5/2009 12:11 PM &lt;/b&gt;&lt;br /&gt;&lt;br /&gt; now we have the option to format that &lt;br /&gt; 1. Using 0 &lt;br /&gt;  &lt;code&gt;&lt;br /&gt; &amp;lt;% &lt;br /&gt; Response.write FormatDateTime(TodayDnT,0)  &lt;br /&gt; %&amp;gt;&lt;br /&gt;  &lt;/code&gt;&lt;br /&gt;  Result : - 8/5/2009 12:11:10 PM&lt;br /&gt; &lt;hr&gt;&lt;br /&gt; 2. Using 1 &lt;br /&gt; &lt;code&gt;&lt;br /&gt; &amp;lt;% &lt;br /&gt; Response.write FormatDateTime(TodayDnT,1)  &lt;br /&gt; %&amp;gt;&lt;br /&gt;  &lt;/code&gt;&lt;br /&gt;  Result :- Wednesday, August 12, 2009 (long date )&lt;br /&gt;&lt;hr&gt;&lt;br /&gt; 3. Using 2&lt;br /&gt; &lt;code&gt;&lt;br /&gt; &amp;lt;% &lt;br /&gt; Response.write FormatDateTime(TodayDnT,2)  &lt;br /&gt; %&amp;gt;&lt;br /&gt;  &lt;/code&gt;&lt;br /&gt;  Result: - 8/5/2009 (short date)&lt;br /&gt;&lt;hr&gt;&lt;br /&gt; 4. using 3&lt;br /&gt; &lt;code&gt;&lt;br /&gt; &amp;lt;% &lt;br /&gt; Response.write FormatDateTime(TodayDnT,3)  &lt;br /&gt; %&amp;gt;&lt;br /&gt;  &lt;/code&gt;&lt;br /&gt; Result : - 12:11:10 PM (long time)&lt;br /&gt;&lt;hr&gt;&lt;br /&gt; 5. using 4&lt;br /&gt; &lt;code&gt;&lt;br /&gt; &amp;lt;% &lt;br /&gt; Response.write FormatDateTime(TodayDnT,4)  &lt;br /&gt; %&amp;gt;&lt;br /&gt;  &lt;/code&gt;&lt;br /&gt; Result : - 11:10 (current time in 24 format (hh:mm) &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;If you want to change the Date and Time according to international location then &lt;br /&gt;  use &lt;b&gt; session.lcid property &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;   Ex : - &amp;lt;% session.lcid=1036 %&amp;gt;&lt;br /&gt;  which will set the Date n Time in &lt;i&gt; French Format &lt;/i&gt;&lt;br /&gt;&lt;br /&gt;here is the List of all the &lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/goglobal/bb964664.aspx" target="_blank"&gt;International Location &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-1572022031645813398?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/1572022031645813398/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/08/asp-format-date-and-time.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/1572022031645813398'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/1572022031645813398'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/08/asp-format-date-and-time.html' title='ASP Format Date and Time'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-2856921819521853544</id><published>2009-08-03T07:02:00.002+01:00</published><updated>2009-08-03T07:04:13.713+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><title type='text'>Debugging for ASP.NET Applications</title><content type='html'>If you are using &lt;b&gt;Visual Studio2005&lt;/b&gt; and if you want to  enable debugging in the project properties Then Follow the Stpes &lt;br /&gt;In VS 2005, use the &amp;lt;Project&amp;gt; Property Pages to set project properties :&lt;br /&gt;here is the way to do &lt;br /&gt;    - Right click on Solution Explore of Project,Then Open the Property Pages by and selecting Property Pages.&lt;br /&gt;    - Select Start Option tab&lt;br /&gt;    - Under Debuggers, make sure the ASP.NET box is selected.&lt;br /&gt;&lt;br /&gt;You can also enable the debugging using web.config file&lt;br /&gt;&lt;br /&gt;    - Inside the &amp;lt;compilation&amp;gt; tag, you will create the debug attribute.&lt;br /&gt;    - specify attribute as a "debug", not "Debug" or "DEBUG" because the are very Case-Sensitive so please take care of that.&lt;br /&gt;    - Set debug option as a true.&lt;br /&gt;&lt;br /&gt;Here is a sample Web.config file &lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;configuration&amp;gt;&lt;br /&gt;&amp;lt;system.web&amp;gt;&lt;br /&gt;&amp;lt;compilation defaultLanguage="VB" debug="true" numRecompilesBeforeAppRestart="15"&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;compilers&amp;gt;&lt;br /&gt;&amp;lt;compiler language="C#;Csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,system, Version=1.0.5000.0, Culture=neutral, &lt;br /&gt;&lt;br /&gt;PublicKeyToken=b77a5c561934e089" /&amp;gt;&lt;br /&gt;&amp;lt;compiler language="VB;VBScript" extension=".cls" type="Microsoft.VisualBasic.VBCodeProvider,system, Version=1.0.5000.0, Culture=neutral, &lt;br /&gt;&lt;br /&gt;PublicKeyToken=b77a5c561934e089" /&amp;gt;&lt;br /&gt;&amp;lt;/compilers&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;assemblies&amp;gt;&lt;br /&gt;&amp;lt;add assembly="ADODB" /&amp;gt;&lt;br /&gt;&amp;lt;add assembly="*" /&amp;gt;&lt;br /&gt;&amp;lt;/assemblies&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;namespaces&amp;gt;&lt;br /&gt;&amp;lt;add namespace="System.Web.UI" /&amp;gt;&lt;br /&gt;&amp;lt;add namespace="System.Web" /&amp;gt;&lt;br /&gt;&amp;lt;add namespace="System.Web.UI.WebControls" /&amp;gt;&lt;br /&gt;&amp;lt;add namespace="System.Web.UI.HtmlControls" /&amp;gt;&lt;br /&gt;&amp;lt;/namespaces&amp;gt;&lt;br /&gt;&amp;lt;/compilation&amp;gt;&lt;br /&gt;&amp;lt;/system.web&amp;gt;&lt;br /&gt;&amp;lt;/configuration&amp;gt; &lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt; Like that you can set the Debugging option using web.config file also and using GUI also.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-2856921819521853544?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/2856921819521853544/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/08/debugging-for-aspnet-applications.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2856921819521853544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2856921819521853544'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/08/debugging-for-aspnet-applications.html' title='Debugging for ASP.NET Applications'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-719056033805098309</id><published>2009-08-01T07:29:00.001+01:00</published><updated>2009-08-01T08:29:26.128+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp'/><title type='text'>Loop through Session ,Application ,form Variable</title><content type='html'>In Classic asp sometime we need to retrieve all the Session Application and Request object variable, in this case we can use Loop through technique which will generate all the Session variable , application variable , and Request variable are used in current page do this need to simply put this line on your page &lt;br /&gt; &lt;br /&gt; 1. &lt;br /&gt; &lt;code&gt;&lt;br /&gt; &amp;lt;%&lt;br /&gt; dim i&lt;br /&gt; For Each i in Session.Contents&lt;br /&gt;  Response.Write(i &amp; "&amp;lt;br /&amp;gt;")&lt;br /&gt; Next&lt;br /&gt;&lt;br /&gt; dim i&lt;br /&gt; For Each i in Session.StaticObjects&lt;br /&gt;  Response.Write(i &amp; "&amp;lt;br /&amp;gt;")&lt;br /&gt; Next &lt;br /&gt; %&amp;gt;&lt;br /&gt; &lt;/code&gt;&lt;br /&gt; it will Display all the Session Contents / session staticobjets are used in current page .&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;2. &lt;code&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;%&lt;br /&gt;dim i&lt;br /&gt;For Each i in Application.Contents&lt;br /&gt;  Response.Write(i &amp; "&amp;lt;br /&amp;gt;")&lt;br /&gt;Next&lt;br /&gt;%&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;this will iterate all the Application content are being used in current page.&lt;br /&gt;&lt;br /&gt;3.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;%&lt;br /&gt;for each x in Request.form&lt;br /&gt;Response.Write("&amp;lt;br&amp;gt;" &amp; x &amp; " = " &amp; Request.form(x)) &lt;br /&gt;next&lt;br /&gt;%&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt; this will generate all the Request variable &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4. &lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;%&lt;br /&gt; for each name in Request.ServerVariables &lt;br /&gt;  Response.write ""&amp;name &amp;"-------------"&amp; Request.ServerVariables(name) &amp;"&amp;lt;br&amp;gt;"&lt;br /&gt; Next &lt;br /&gt;%&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;it will loop with the all the Server Variable.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-719056033805098309?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/719056033805098309/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/loop-through-session-application-form.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/719056033805098309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/719056033805098309'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/loop-through-session-application-form.html' title='Loop through Session ,Application ,form Variable'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-916582537548067286</id><published>2009-07-30T10:53:00.000+01:00</published><updated>2009-07-30T10:54:09.475+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xml'/><category scheme='http://www.blogger.com/atom/ns#' term='Sql'/><title type='text'>Export XML from SQL using a Stored Procedure.</title><content type='html'>1) Generate a file with the text-editor like:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;%begindetail%&gt;&lt;br /&gt;&lt;%insert_data_here%&gt;&lt;br /&gt;&lt;%enddetail%&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Save it as c:\temp\template.tpl&lt;br /&gt;&lt;br /&gt;2) Open Query Analyzer and type:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;sp_makewebtask @outputfile = 'c:\temp\myxmlfile.xml',&lt;br /&gt; @query = 'select * from sysobjects for xml auto', &lt;br /&gt; @templatefile = 'c:\temp\template.tpl'&lt;br /&gt;&lt;br /&gt;The result is a XML-File!  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.perfectxml.com/Articles/XML/ExportSQLXML.asp"&gt;More ^&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-916582537548067286?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/916582537548067286/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/export-xml-from-sql-using-stored.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/916582537548067286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/916582537548067286'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/export-xml-from-sql-using-stored.html' title='Export XML from SQL using a Stored Procedure.'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-8454657833051340211</id><published>2009-07-29T07:17:00.000+01:00</published><updated>2009-07-29T07:19:52.688+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><title type='text'>Move Seleted Records using Checkbox in GridView</title><content type='html'>Hi , &lt;br /&gt; &lt;br /&gt;  here is nice tutorial or you can say very simple example on how you can &lt;br /&gt;  delete or move the records from the Gridview &lt;br /&gt;  &lt;br /&gt;  &lt;a href="http://webdevlopementhelp.blogspot.com/2009/07/select-recods-from-checkbox-and-preform.html" target="_blank" &gt; Move/Delete content From GridView &lt;/a&gt;&lt;br /&gt;&lt;br /&gt; hope u like it ,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-8454657833051340211?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/8454657833051340211/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/move-seleted-records-using-checkbox-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/8454657833051340211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/8454657833051340211'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/move-seleted-records-using-checkbox-in.html' title='Move Seleted Records using Checkbox in GridView'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-2352773198943059184</id><published>2009-07-27T12:40:00.000+01:00</published><updated>2009-07-27T12:42:18.877+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Div'/><title type='text'>Hide Show Div</title><content type='html'>hi this is cool and simple javascript stuffs which HIDE and Show Details &lt;br /&gt;using Div&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;script language="javascript"&amp;gt; &lt;br /&gt;function toggle() {&lt;br /&gt; var ele = document.getElementById("togText");&lt;br /&gt; var text = document.getElementById("ShowText");&lt;br /&gt; if(ele.style.display == "block") {&lt;br /&gt;      ele.style.display = "none";&lt;br /&gt;  text.innerHTML = "Click Me";&lt;br /&gt;   }&lt;br /&gt; else {&lt;br /&gt;  ele.style.display = "block";&lt;br /&gt;  text.innerHTML = "Hide It";&lt;br /&gt; }&lt;br /&gt;} &lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt; &lt;br /&gt; Click Here to View Details&lt;br /&gt;&amp;lt;a id="ShowText" href="javascript:toggle();"&amp;gt;&lt;br /&gt; Click Me &amp;lt;/a&amp;gt; &lt;br /&gt;&amp;lt;div id="togText" style="display: none"&amp;gt;&lt;br /&gt;  &amp;lt; h1 &amp;gt; Hi, Kiran hows you? Hope u like this Cool stuff. &amp;lt; /h1 &amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;hope you like it ,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-2352773198943059184?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/2352773198943059184/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/hide-show-div.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2352773198943059184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2352773198943059184'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/hide-show-div.html' title='Hide Show Div'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-1399853374596844503</id><published>2009-07-24T07:45:00.000+01:00</published><updated>2009-07-24T07:50:55.778+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Html'/><title type='text'>Set Favicon in different Browser</title><content type='html'>we have seen most of the site has Fevicon which describe the addtional information&lt;br /&gt;about the site , Addtion in the sence it could be logo,company Profile, company production,web site application, and so many .&lt;br /&gt;&lt;br /&gt; here are the top most &lt;b&gt;Example&lt;/b&gt; of the fevicon sites&lt;br /&gt; &lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_ivbMBZX_-HU/SmlY7u4VcjI/AAAAAAAAAD8/59CiBc2R-CE/s1600-h/icon.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 282px; height: 154px;" src="http://3.bp.blogspot.com/_ivbMBZX_-HU/SmlY7u4VcjI/AAAAAAAAAD8/59CiBc2R-CE/s320/icon.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5361914614581129778" /&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt; &lt;b&gt;now how u can do this &lt;/b&gt;&lt;br /&gt; &lt;br /&gt;  its very simple to do , just u need to add some line's of code and be ready with small icon image, u can also add animated image in fevicon&lt;br /&gt;&lt;br /&gt; add this part in between &amp;lt;head&amp;gt;  &amp;lt;/head&amp;gt; Section&lt;br /&gt;&lt;br /&gt; &lt;code&gt;&lt;br /&gt; &amp;lt;link rel="shortcut icon" href="images/favicon.ico"&amp;gt;&lt;br /&gt; &lt;/code&gt;&lt;br /&gt;&lt;br /&gt; now some time this code will not work on most of the Browser like IE old version &lt;br /&gt; in this case u can add this line &lt;br /&gt; &lt;br /&gt; &lt;code&gt; &lt;br /&gt; &amp;lt;link rel="shortcut icon" href="images/favicon.ico" type="image/vnd.microsoft.icon"  *gt;&lt;br /&gt; &lt;/code&gt;&lt;br /&gt;&lt;br /&gt; any other query plz comment on it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-1399853374596844503?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/1399853374596844503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/set-favicon-in-different-browser.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/1399853374596844503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/1399853374596844503'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/set-favicon-in-different-browser.html' title='Set Favicon in different Browser'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_ivbMBZX_-HU/SmlY7u4VcjI/AAAAAAAAAD8/59CiBc2R-CE/s72-c/icon.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-5296290654409401585</id><published>2009-07-23T10:55:00.001+01:00</published><updated>2009-09-29T06:01:47.058+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tinyurl'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Mini-URL on CodePlex using C#</title><content type='html'>if u want to minimize / Shrink / Shorten URL , then its a very good technique to do this then. its also useful as per the security and many others aspects.&lt;br /&gt; &lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_ivbMBZX_-HU/Sml1DVIt0WI/AAAAAAAAAEE/fU_3sQvPEF0/s1600-h/miniurl_main.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 244px;" src="http://2.bp.blogspot.com/_ivbMBZX_-HU/Sml1DVIt0WI/AAAAAAAAAEE/fU_3sQvPEF0/s320/miniurl_main.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5361945531435045218" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt; its very useful for the developer to create a simple URL for there web application / url redirection services like &lt;a href="http://tinyurl.com" target="_blank" rel="nofollow"&gt; &lt;b&gt; tinyurl&lt;/b&gt;&lt;/a&gt;&lt;br /&gt; ,&lt;a href="http://is.gd"target="_blank"&gt;&lt;b&gt;is.gd&lt;/b&gt;&lt;/a&gt;,&lt;a href="http://sn.url" target="_blank"&gt;&lt;b&gt;sn.url&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt; -  you can download that sample ASP.Net MVC Application &lt;a href="http://miniurl.codeplex.com/Release/ProjectReleases.aspx#ReleaseFiles" target="_blank" rel="nofollow"&gt; from here &lt;/a&gt;&lt;br /&gt;&lt;br /&gt; - &lt;a href="http://miniurl.codeplex.com/" rel="nofollow"&gt;Project Description &lt;/a&gt;&lt;br /&gt;&lt;br /&gt; hope u like that .&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-5296290654409401585?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/5296290654409401585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/mini-url-on-codeplex-using-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/5296290654409401585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/5296290654409401585'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/mini-url-on-codeplex-using-c.html' title='Mini-URL on CodePlex using C#'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_ivbMBZX_-HU/Sml1DVIt0WI/AAAAAAAAAEE/fU_3sQvPEF0/s72-c/miniurl_main.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-7683067994396080896</id><published>2009-07-22T10:46:00.000+01:00</published><updated>2009-07-22T10:47:20.683+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Eliminate Duplicate records from the Grid View</title><content type='html'>Most of the time we need to delete duplicate entries from GridView, in this case we can delete it manually also or using  onRowcreate also we can remove that .&lt;br /&gt;&lt;br /&gt; &lt;b&gt;Example&lt;/b&gt;&lt;br /&gt; suppose Mr.Xyz has has more than 2 Account in Blogspot.com site and we want to show &lt;br /&gt; in GridView Person and RelatedBlogs like this &lt;br /&gt; &lt;br /&gt; &lt;br&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_ivbMBZX_-HU/SmbgACj0kCI/AAAAAAAAAD0/cFPld-YhV6k/s1600-h/duplicate.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 307px; height: 169px;" src="http://1.bp.blogspot.com/_ivbMBZX_-HU/SmbgACj0kCI/AAAAAAAAAD0/cFPld-YhV6k/s320/duplicate.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5361218697722892322" /&gt;&lt;/a&gt;&lt;br /&gt;  &lt;br /&gt; and in this case we dont want to repeat Person name on each row. &lt;br /&gt; - I have a data source &lt;br /&gt;  &lt;code&gt;&lt;br /&gt;  DataTable dtsource = new DataTable();&lt;br /&gt;&lt;br /&gt;  //Adding columns to datatable        &lt;br /&gt;  dtsource.Columns.Add("Person");        &lt;br /&gt;dtsource.Columns.Add("Related Blog");        &lt;br /&gt;&lt;br /&gt; //Adding records to the datatable&lt;br /&gt; dtsource.Rows.Add("kiran", "kirank.blog.com");&lt;br /&gt; dtsource.Rows.Add("kiran", "webdevlopmenthelp");&lt;br /&gt; dtsource.Rows.Add("kiran", "www.kiran.com");&lt;br /&gt; dtsource.Rows.Add("mark", "mark.blog.com");&lt;br /&gt; dtsource.Rows.Add("mark", "asp-net.blogspot.com");&lt;br /&gt;  &lt;/code&gt;&lt;br /&gt;&lt;br /&gt; put the below code in codebehind&lt;br /&gt;&lt;br /&gt; &lt;code&gt;&lt;br /&gt; private void GenerateUniqueData(int cellno)&lt;br /&gt;    {&lt;br /&gt;        //Logic for unique names&lt;br /&gt;&lt;br /&gt;        //Step 1:&lt;br /&gt;&lt;br /&gt;        string initialnamevalue = grdUniqueNames.Rows[0].Cells[cellno].Text;&lt;br /&gt;&lt;br /&gt;        //Step 2:        &lt;br /&gt;&lt;br /&gt;        for (int i = 1; i &lt; grdUniqueNames.Rows.Count; i++)&lt;br /&gt;        {&lt;br /&gt;&lt;br /&gt;            if (grdUniqueNames.Rows[i].Cells[cellno].Text == initialnamevalue)&lt;br /&gt;                grdUniqueNames.Rows[i].Cells[cellno].Text = string.Empty;&lt;br /&gt;            else&lt;br /&gt;                initialnamevalue = grdUniqueNames.Rows[i].Cells[cellno].Text;&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt; &lt;/code&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;  on GridView define property OnRowCreated="GenerateUniqueData" it will search the record via cell and set the Person name as a empty or person name&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-7683067994396080896?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/7683067994396080896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/eliminate-duplicate-records-from-grid.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/7683067994396080896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/7683067994396080896'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/eliminate-duplicate-records-from-grid.html' title='Eliminate Duplicate records from the Grid View'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_ivbMBZX_-HU/SmbgACj0kCI/AAAAAAAAAD0/cFPld-YhV6k/s72-c/duplicate.jpg' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-2632771340366749635</id><published>2009-07-22T07:45:00.000+01:00</published><updated>2009-07-22T07:53:10.237+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Seo Technique'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Caching in ASP.NET</title><content type='html'>&lt;h3&gt;Caching&lt;/h3&gt;is one of the best technique of persisting the data in memory for immediate access to requesting program calls.Caching is about storing data in memory the first time it is requested and then re-using it for the following requests for a specified period of time. &lt;br /&gt;&lt;br /&gt; Why Caching is important ?&lt;br /&gt;  &lt;br /&gt;  Every time we have to querying database for each request is not cost-effective in terms of server resources, hence is lot better to cache or persist the data to avoid this costly loss of resources.so in this case we are imporve the system performance and avoid the consistancy.&lt;br /&gt;&lt;br /&gt; ASP.Net Provides the flexibility in terms of caching at different levels. &lt;br /&gt; &lt;ul&gt;&lt;br /&gt;&lt;li&gt; Fragment Caching&lt;/li&gt;&lt;br /&gt;&lt;br /&gt; in this case caching a user control that can be used in a base web form page.if you have used include files in the traditional ASP model then this caching model is like caching these include files separately. In ASP.NET more often this is done through User Controls. Initially even though one feels a bit misleading, this is a significant technique that can be used especially when implementing "n" instances of the controls in various *.aspx pages. We can use the same syntax that we declared for the page level caching as shown above, but the power of fragment caching comes from the attribute "VaryByControl". Using this attribute one can cache a user control based on the properties exposed.&lt;br /&gt;&lt;br /&gt;Syntax: &amp;lt;%@ OutputCache Duration="60" VaryByControl="DepartmentId" %&amp;gt;&lt;br /&gt;&lt;br /&gt;The above syntax when declared within an *.ascx file ensures that the control is cached for 60 seconds and the number of representations of cached control is dependant on the property "DepartmentId" declared in the control.&lt;br /&gt;&lt;br /&gt;Add the following into an *.ascx file. Please note the use of tag "Control" and the cache declaration.&lt;br /&gt;  &lt;code&gt;&lt;br /&gt;&amp;lt;script runat="server"&amp;gt;&lt;br /&gt;private int _Departmentid=0;&lt;br /&gt;public int DepartMentId&lt;br /&gt;{&lt;br /&gt;get{return _Departmentid;}&lt;br /&gt;set{_Departmentid =value;}&lt;br /&gt;}&lt;br /&gt;//Load event of control&lt;br /&gt;void Page_Load(Object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;lblText.Text = "Time is " + DateTime.Now.ToString() + " for Department id = "&lt;br /&gt;+ _Departmentid + "\n";&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;asp:Label id="lblText" runat="server"&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;Add the following to an *.aspx file. Please note the way "Register" tag is used; &lt;/i&gt;&lt;/b&gt;&lt;br /&gt;the declaration of control using syntax &amp;lt;[TagPrefix]:[TagName]&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;%@ Page Language="C#" Trace="true" %&amp;gt;&lt;br /&gt;&amp;lt;%@ Register TagPrefix="CacheSample" TagName="Text" Src="CachingControl.ascx" %&amp;gt;&lt;br /&gt;&amp;lt;script runat=server&amp;gt;&lt;br /&gt;void Page_Load(Object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;this.lbltime.Text ="Base form time is " + DateTime.Now.ToString() + "\n";&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;asp:Label id="lbltime" runat="server"&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;&amp;lt;CACHESAMPLE:TEXT id="instance1" runat="Server" DepartMentId="0"&amp;gt;&lt;br /&gt;&amp;lt;/CACHESAMPLE:TEXT&amp;gt;&lt;br /&gt;&amp;lt;CACHESAMPLE:TEXT id="instance2" runat="Server" DepartMentId="1"&amp;gt;&lt;br /&gt;&amp;lt;/CACHESAMPLE:TEXT&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Application Level Caching&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;With Page level Output caching one cannot cache objects between pages within an application. Fragment caching is great in that sense but has limitations by using user controls as means to do. We can use the Cache object programmatically to take advantage of caching objects and share the same between pages. Further the availability of different overloaded methods gives a greater flexibility for our Cache policy like Timespan, Absolute expiration etc. But one of the biggest takes is the CacheDependancy. This means that one can create a cache and associate with it a dependency that is either another cache key or a file. &lt;br /&gt;&lt;br /&gt;Find below the snippet that uses CacheDependancy. Here what I have done is to provide a list view of existing employees. You need to create a Database in Sql Server, setup some data before you can continue. The schema scripts are enclosed in the article.&lt;br /&gt;&lt;br /&gt;Add database connection value in Web.Config and change the value as per your setup.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;appSettings&amp;gt;&lt;br /&gt;&amp;lt;add key="conn" value="Data Source=vishnu;trusted_connection=yes;Initial Catalog=Users"/&amp;gt;&lt;br /&gt;&amp;lt;/appSettings&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;First I get the dataset into which I fill the user list. But before this I check for the cache initially if it exists I directly cast it to a dataset, if not create a cache again.&lt;br /&gt;daUsers.Fill(dsUsers,"tblUsers");&lt;br /&gt;&lt;br /&gt;&lt;li&gt; Page Level Output Caching&lt;/li&gt;&lt;br /&gt;This is at the page level and one of the easiest means for caching pages. This requires one to specify Duration of cache and Attribute of caching.&lt;br /&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;Syntax: &amp;lt;%@ OutputCache Duration="60" VaryByParam="none" %&amp;gt;&lt;br /&gt;&lt;br /&gt;The above syntax specifies that the page be cached for duration of 60 seconds and the value "none" for VaryByParam* attribute makes sure that there is a single cached page available for this duration specified.&lt;br /&gt;&lt;br /&gt;so at last Caching is a technique that definitely improves the performance of web applications if one is careful to have a balance in terms of which data needs to be cached and parameter values for expiration policy.&lt;br /&gt;&lt;br /&gt;hope this article helps you to imporve your applicaiton performance and best result ever&lt;br /&gt;&lt;br /&gt;- you can find more information  &lt;a href="http://www.c-sharpcorner.com/UploadFile/vishnuprasad2005/ImplementingCachinginASP.NET11302005072210AM/ImplementingCachinginASP.NET.aspx" target="_blank"&gt;here &lt;/a&gt;&lt;br /&gt;- how to perform &lt;a href="http://www.beansoftware.com/ASP.NET-Tutorials/Caching-Optimization.aspx" target="_blank"&gt;Cache Optimization &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-2632771340366749635?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/2632771340366749635/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/caching-in-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2632771340366749635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2632771340366749635'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/caching-in-aspnet.html' title='Caching in ASP.NET'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-2680202899375407570</id><published>2009-07-21T07:55:00.000+01:00</published><updated>2009-07-21T07:56:46.732+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>IsPostBack property</title><content type='html'>&lt;b&gt;IsPostBack&lt;/b&gt;-Gets a value indicating whether the page is being loaded in response to a client postback, or if it is being loaded and accessed for the first time.&lt;br /&gt;&lt;br /&gt;  when the page is loaded in order to determine whether the page is being rendered for the first time or is responding to a postback. If the page is being rendered for the first time, the code calls the Page..::.Validate method. &lt;br /&gt;&lt;br /&gt; &lt;b&gt;Syntax: &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;  &lt;code&gt;&lt;br /&gt;  private void Page_Load()&lt;br /&gt;{&lt;br /&gt;    if (!IsPostBack)&lt;br /&gt;    {&lt;br /&gt;        // Validate initially to force asterisks&lt;br /&gt;        // to appear before the first roundtrip.&lt;br /&gt;        Validate();&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt; &lt;/code&gt;&lt;br /&gt;&lt;br /&gt; &lt;b&gt; Example &lt;/b&gt;&lt;br /&gt;&lt;br /&gt; &lt;code&gt;&lt;br /&gt; protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt; if (!Page.IsPostBack)&lt;br /&gt; {&lt;br /&gt;   PageDataBind();&lt;br /&gt; }&lt;br /&gt; else&lt;br /&gt; {&lt;br /&gt;    Response.write("2nd Time Visisted..");&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;protected void PageDataBind(string SearchProduct)&lt;br /&gt;{ &lt;br /&gt;  SqlDataAdapter SDA ;&lt;br /&gt;  DataSet ds = new DataSet();&lt;br /&gt;  String sql = "select * from Emp where  ID ='"+ DropDownList.SelectedItem.Text +"'";&lt;br /&gt;  SDA.Fill(ds, "productDetails");&lt;br /&gt;  ShowId.DataSource = ds;&lt;br /&gt;  ShowId.DataBind();&lt;br /&gt;}&lt;br /&gt; &lt;/code&gt;&lt;br /&gt;&lt;br /&gt;when loading of the page, the control doesn't go through the redundant action of re-loading the control. It loads it only once, at the initial page load. Once the page is loaded, the click event from the button (or however you post back) is considered to be a postback. Yes, the page gets reloaded, but, by surrounding your data population with this statement, the page knows that the initial data loading was already done, so it doesn't happen any more, and it gets maintained throughout any subsequent post back. The second, and most rewarding thing that happens is that the selection which was made by the end user is maintained throughout the post back. This is the pay-off - by doing it with the If/Then Page.IsPostBack statement, your selection carries through to your query and the query returns the results you wanted in the first place.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-2680202899375407570?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/2680202899375407570/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/ispostback-property.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2680202899375407570'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2680202899375407570'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/ispostback-property.html' title='IsPostBack property'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-1571581755627147491</id><published>2009-07-20T12:16:00.000+01:00</published><updated>2009-07-20T12:17:06.747+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Filter User via IP</title><content type='html'>its a good technique to Restrict user to view your website , this task can be done with the help of checking of user's IP Address and match with our database and if user get found under &lt;br /&gt; that IP then you can set Denied Access to them .&lt;br /&gt;&lt;br /&gt; But in this case you need a Live IP Address database,&lt;br /&gt; there are so many website are there they are provides free IP Address database range .&lt;br /&gt; &lt;br /&gt; and with the help of that u can Denied user.&lt;br /&gt; &lt;br /&gt; here are the List of &lt;b&gt;free IP address database sites &lt;/b&gt;&lt;br /&gt;&lt;br /&gt; &lt;ul&gt;&lt;br /&gt; &lt;li&gt;&lt;a href="http://www.ipinfodb.com/ip_database.php" target="_blank" &gt;http://www.ipinfodb.com/ip_database.php&lt;/a&gt; &lt;/li&gt;&lt;br /&gt; &lt;li&gt;&lt;a href="http://www.ip-db.com/" target="_blank"&gt;http://www.ip-db.com/&lt;/a&gt;&lt;/li&gt;&lt;br /&gt; &lt;/ul&gt;&lt;br /&gt; Simply download that.&lt;br /&gt;&lt;br /&gt; 1. Create one IP check function &lt;br /&gt; 2. take user Ip address&lt;br /&gt;  &lt;br /&gt;    in ASP : - Ip =Request.Servervariables("REMOTE_HOST")&lt;br /&gt;    in C#  : - String ipAddress = (Request.ServerVariables["REMOTE_ADDR"]);&lt;br /&gt;&lt;br /&gt; 3. then check if user's Ip address is there in you'r database , depend on that &lt;br /&gt;    you can prevent user.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt; hope it will helps you,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-1571581755627147491?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/1571581755627147491/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/filter-user-via-ip.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/1571581755627147491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/1571581755627147491'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/filter-user-via-ip.html' title='Filter User via IP'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-1806910530255748333</id><published>2009-07-20T07:34:00.000+01:00</published><updated>2009-07-20T07:36:29.474+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>open new window in GridView using OnRowCreated</title><content type='html'>In GridView using "OnRowCreated" function we can add onClick function.&lt;br /&gt;&lt;br /&gt;  here is the sample code &lt;br /&gt; &lt;br /&gt;  &lt;b&gt;html code&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;  &lt;code&gt;&lt;br /&gt;    &amp;lt;asp:TemplateField HeaderText="Header 3"&amp;gt;  &lt;br /&gt;         &amp;lt;ItemTemplate&amp;gt;  &lt;br /&gt;             &amp;lt;asp:Label ID="Label1" runat="server" Text="Click Me"&amp;gt;&amp;lt;/asp:Label&amp;gt;  &lt;br /&gt;         &amp;lt;/ItemTemplate&amp;gt;  &lt;br /&gt;     &amp;lt;/asp:TemplateField&amp;gt;  &lt;br /&gt;  &lt;/code&gt;&lt;br /&gt;&lt;br /&gt;  and CodeBehind is &lt;br /&gt;  &lt;code&gt;&lt;br /&gt;&lt;br /&gt;   protected void Gridview1_RowCreated(object sender, GridViewRowEventArgs e)  &lt;br /&gt;   {  &lt;br /&gt;     if (e.Row.RowType == DataControlRowType.DataRow)  &lt;br /&gt;     {  &lt;br /&gt;         Label l = (Label)e.Row.FindControl("Label1");  &lt;br /&gt;         if (l != null)  &lt;br /&gt;         {  &lt;br /&gt;             string script = "window.open('Default.aspx');";  &lt;br /&gt;             l.Attributes.Add("onclick", script);  &lt;br /&gt;         }  &lt;br /&gt;     }  &lt;br /&gt; } &lt;br /&gt; &lt;/code&gt;&lt;br /&gt;&lt;br /&gt;  run the Application and click "Click Me" it will open new window , indirectly we are adding &lt;br /&gt;  &lt;b&gt;OnClick Event&lt;/b&gt; in That Row.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-1806910530255748333?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/1806910530255748333/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/open-new-window-in-gridview-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/1806910530255748333'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/1806910530255748333'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/open-new-window-in-gridview-using.html' title='open new window in GridView using OnRowCreated'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-6691975881285373327</id><published>2009-07-18T10:16:00.001+01:00</published><updated>2009-10-16T12:42:48.670+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='API'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>import contact list from gmail,yahoo,rediffmail</title><content type='html'>yes , use can retrieve the contact list from mail server like Gmail, Rediff , Hotmail , AOL and all others They are providing free API to do this, u simply download the Application at your end and pass the parameter like (ID,Password) .&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Gmail &lt;/b&gt; : &lt;br /&gt;&lt;p&gt;&lt;a href="http://code.google.com/apis/contacts/docs/2.0/developers_guide_dotnet.html" target="_blank" rel="nofollow"&gt;google code API &lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Yahoo / Live / Rediff&lt;/b&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://sourceforge.net/projects/opencontactsnet/" rel="nofollow" target="_blank"&gt;Yahoo / Live / Rediff&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Rediff API &lt;/b&gt;&lt;br /&gt;&lt;a href="http://www.programmableweb.com/api/rediff" rel="nofollow"  target="_blank"&gt;Rediff API &lt;/a&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;b&gt;Zip application&lt;/b&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="https://sourceforge.net/projects/opencontactsnet/files/" target="_blank" rel="nofollow" &gt;opencontactsnet OpenContact.NET 1.0 file released: OpenContactsNet-1.0.zip&lt;/a&gt; &lt;br /&gt;  &lt;/p&gt;&lt;br /&gt;&lt;b&gt; AOL API &lt;/b&gt;&lt;br /&gt; &lt;a href="http://dev.aol.com/article/2007/integrating_openauth_into_aspnet" rel="nofollow" &gt;AOL Guide to Integrating OpenAuth &lt;/a&gt;&lt;br /&gt;happy coding.......&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-6691975881285373327?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/6691975881285373327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/import-contact-list-from.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/6691975881285373327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/6691975881285373327'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/import-contact-list-from.html' title='import contact list from gmail,yahoo,rediffmail'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-4553052456701797870</id><published>2009-07-18T06:43:00.000+01:00</published><updated>2009-07-18T06:47:25.573+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Asp'/><title type='text'>CountDown Timer</title><content type='html'>Hi , here is cool triks of CountDown timer, mostly its useful in website while validating time like online exam, date time , game countdown , and so many&lt;br /&gt;&lt;br /&gt;Below is the code needed to display count down in HTML page using javascript.&lt;br /&gt; &lt;br /&gt;You define container for the count down (either &amp;lt;span&amp;gt; or &amp;lt;div&amp;gt; tag) and the initial value, and the code updates the time automaticlly in the format HH:MM:SS&lt;br /&gt;&lt;br /&gt;You can also control the style of the container using standard CSS, as demonstrated in the below and attached code.&lt;br /&gt;&lt;br /&gt;To activate the count down in one of your existing pages you&lt;br /&gt;have to follow two steps:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1. include the attached CountDown.js file with:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt; &lt;code&gt;&lt;br /&gt;  &amp;lt;script type="text/javascript" src="CountDown.js"&amp;gt; &amp;lt;script&amp;gt;&lt;br /&gt; &lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2. have such javascript in the  section:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt; &lt;code&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;br /&gt;window.onload=WindowLoad;&lt;br /&gt;function WindowLoad(event) {&lt;br /&gt; ActivateCountDown("CountDownPanel", 100);&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;where "CountDownPanel" is the ID of the container &lt;br /&gt;(i.e. you should have &amp;lt;span&amp;gt; or &amp;lt;div&amp;gt; with this ID) and 100 is the time in seconds to be counted.&lt;br /&gt;&lt;br /&gt;here is CountDown.js file -------------------------------&lt;br /&gt;&lt;code&gt;&lt;br /&gt;var _countDowncontainer=0;&lt;br /&gt;var _currentSeconds=0;&lt;br /&gt;&lt;br /&gt;function ActivateCountDown(strContainerID, initialValue) {&lt;br /&gt; _countDowncontainer = document.getElementById(strContainerID);&lt;br /&gt; &lt;br /&gt; if (!_countDowncontainer) {&lt;br /&gt;  alert("count down error: container does not exist: "+strContainerID+&lt;br /&gt;   "\nmake sure html element with this ID exists");&lt;br /&gt;  return;&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; SetCountdownText(initialValue);&lt;br /&gt; window.setTimeout("CountDownTick()", 1000);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function CountDownTick() {&lt;br /&gt; if (_currentSeconds &lt;= 0) {&lt;br /&gt;  alert("your time has expired!");&lt;br /&gt;  return;&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; SetCountdownText(_currentSeconds-1);&lt;br /&gt; window.setTimeout("CountDownTick()", 1000);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function SetCountdownText(seconds) {&lt;br /&gt; //store:&lt;br /&gt; _currentSeconds = seconds;&lt;br /&gt; &lt;br /&gt; //get minutes:&lt;br /&gt; var minutes=parseInt(seconds/60);&lt;br /&gt; &lt;br /&gt; //shrink:&lt;br /&gt; seconds = (seconds%60);&lt;br /&gt; &lt;br /&gt; //get hours:&lt;br /&gt; var hours=parseInt(minutes/60);&lt;br /&gt; &lt;br /&gt; //shrink:&lt;br /&gt; minutes = (minutes%60);&lt;br /&gt; &lt;br /&gt; //build text:&lt;br /&gt; var strText = AddZero(hours) + ":" + AddZero(minutes) + ":" + AddZero(seconds);&lt;br /&gt; &lt;br /&gt; //apply:&lt;br /&gt; _countDowncontainer.innerHTML = strText;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function AddZero(num) {&lt;br /&gt; return ((num &gt;= 0)&amp;&amp;(num &lt; 10))?"0"+num:num+"";&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-4553052456701797870?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/4553052456701797870/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/countdown-timer.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/4553052456701797870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/4553052456701797870'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/countdown-timer.html' title='CountDown Timer'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-879661722016411778</id><published>2009-07-17T06:17:00.002+01:00</published><updated>2009-10-09T06:23:28.312+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='API'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><category scheme='http://www.blogger.com/atom/ns#' term='Twitter'/><title type='text'>Twitter API in C#</title><content type='html'>I used C# and WCF, but I could have just as easily used an ASMX web service.  This code is fairly simple. &lt;br /&gt;&lt;br /&gt;Note: This code will not run as listed.  You have to have a password.  This code has that as a shared variable, but I'm not showing that to you, seriously.  I hope that this is of some help to you.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;        [OperationContract]&lt;br /&gt;        public void SubmitUserStatus(string username, string tweet)&lt;br /&gt;        {&lt;br /&gt;            // encode the username/password&lt;br /&gt;            string user = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(username + ":" + password));&lt;br /&gt;            // determine what we want to upload as a status&lt;br /&gt;            byte[] bytes = System.Text.Encoding.ASCII.GetBytes("status=" + tweet);&lt;br /&gt;            // connect with the update page&lt;br /&gt;            HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://twitter.com/statuses/update.xml");&lt;br /&gt;            // set the method to POST&lt;br /&gt;            request.Method = "POST";&lt;br /&gt;            // thanks to argodev for this recent change!&lt;br /&gt;            request.ServicePoint.Expect100Continue = false;&lt;br /&gt;            // set the authorisation levels&lt;br /&gt;            request.Headers.Add("Authorization", "Basic " + user);&lt;br /&gt;            request.ContentType = "application/x-www-form-urlencoded";&lt;br /&gt;            // set the length of the content&lt;br /&gt;            request.ContentLength = bytes.Length;&lt;br /&gt;            // set up the stream&lt;br /&gt;            Stream reqStream = request.GetRequestStream();&lt;br /&gt;            // write to the stream&lt;br /&gt;            reqStream.Write(bytes, 0, bytes.Length);&lt;br /&gt;            // close the stream&lt;br /&gt;            reqStream.Close();&lt;br /&gt;        } &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;for more information on Twitter API  &lt;br /&gt;Link : &lt;a href="http://twitter.com/twitterapi" target="_blank" rel="nofollow"&gt;http://twitter.com/twitterapi&lt;/a&gt;&lt;br /&gt;Orignally posted from &lt;A href="http://morewally.com/cs/blogs/wallym/archive/2009/03/20/twitter-api-submit-a-post-in-c.aspx" target="_blank" rel="nofollow"&gt;this Article&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-879661722016411778?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/879661722016411778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/twitter-api-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/879661722016411778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/879661722016411778'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/twitter-api-in-c.html' title='Twitter API in C#'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-348842325510163864</id><published>2009-07-15T14:20:00.001+01:00</published><updated>2009-07-15T14:23:32.320+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ajax'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Use XMLHTTP Object in C#</title><content type='html'>The XMLHttpRequest  object can be used by scripts to programmatically connect to their originating server via HTTP. you can use this XMLHTTP object in C#.&lt;br /&gt;  &lt;br /&gt; follow the steps to do thi.&lt;br /&gt;&lt;br /&gt; &lt;b&gt;Steps&lt;/b&gt;&lt;br /&gt; 1. Add New Refrence to the Microsoft,Ver3.0 (Msxml 3/4) in your project.&lt;br /&gt;    &lt;br /&gt;    &lt;a href="http://kirank.blog.com/2009/05/26/automation-client-for-microsoft-excel-by-using-c/" target="blank"&gt;how to add new Refrence &lt;/a&gt;&lt;br /&gt;&lt;br /&gt; 2. import the Namespace  &lt;b&gt;&lt;i&gt; Using MSXML2;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt; 3. now add this code in codebehind &lt;br /&gt;&lt;br /&gt; &lt;code&gt;&lt;br /&gt;&lt;br /&gt;using System;&lt;br /&gt;using System.Data;&lt;br /&gt;using System.Configuration;&lt;br /&gt;using System.Collections;&lt;br /&gt;using System.Web;&lt;br /&gt;using System.Web.Security;&lt;br /&gt;using System.Web.UI;&lt;br /&gt;using System.Web.UI.WebControls;&lt;br /&gt;using System.Web.UI.WebControls.WebParts;&lt;br /&gt;using System.Web.UI.HtmlControls;&lt;br /&gt;using MSXML2;&lt;br /&gt;&lt;br /&gt;public partial class MSXML : System.Web.UI.Page&lt;br /&gt;{&lt;br /&gt;    protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;    {&lt;br /&gt;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    protected void Button1_Click(object sender, EventArgs e)&lt;br /&gt;    {&lt;br /&gt;        // to get page data (using msxml4)&lt;br /&gt;        XMLHTTP40 http = new XMLHTTP40();&lt;br /&gt;        http.open("GET", "http://www.xyz.xom/sendResult.aspx"+TextBox1.Text+"", false, null, null);&lt;br /&gt;        http.send();&lt;br /&gt;        string value = http.responseText;&lt;br /&gt;        Response.Write(value.ToString());&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; 4.Add this code in Html&lt;br /&gt;&lt;br /&gt; &lt;code&gt;&lt;br /&gt;&lt;br /&gt;  &amp;lt;form id="form2" runat="server"&amp;gt;&lt;br /&gt;   &amp;lt;div&amp;gt;&lt;br /&gt;       &amp;lt;asp:TextBox ID="TextBox1" runat="server"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;       &amp;lt;asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" /&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;   &amp;lt;/form&amp;gt;&lt;br /&gt; &lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-348842325510163864?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/348842325510163864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/use-xmlhttp-object-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/348842325510163864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/348842325510163864'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/use-xmlhttp-object-in-c.html' title='Use XMLHTTP Object in C#'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-2937694261991482002</id><published>2009-07-14T11:36:00.000+01:00</published><updated>2009-07-14T11:55:46.004+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Pass multiple parameter using HyperLink field in GridView</title><content type='html'>While using Hyperlink field u can send multiple parameter in Gridview , and then u can retrive it using QueryString Parameter.&lt;br /&gt; &lt;br /&gt; here in this Example when user will click on username then it will redirect to &lt;br /&gt; &lt;b&gt; http://xyz.com/ShowUser.aspx?id={0}&amp;city={1}&lt;/b&gt; this page &lt;br /&gt; and it will pass customer id and city .&lt;br /&gt;&lt;br /&gt; &lt;br /&gt; &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_ivbMBZX_-HU/Slxj-gVo0LI/AAAAAAAAADs/z_Zm0CXWRIo/s1600-h/hyperlink.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 81px;" src="http://1.bp.blogspot.com/_ivbMBZX_-HU/Slxj-gVo0LI/AAAAAAAAADs/z_Zm0CXWRIo/s320/hyperlink.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5358267582147776690" /&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt; &lt;code&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;asp:SqlDataSource id="datasource1" runat="server"  SelectCommand="SELECT CustomerID, CompanyName, City FROM Customers"&lt;br /&gt;/&amp;gt;&lt;br /&gt; &lt;br /&gt;&amp;lt;asp:GridView id="gridview1" DataSourceID="datasource1" runat="server"&lt;br /&gt;              AutoGenerateColumns="False"&amp;gt;&lt;br /&gt;  &amp;lt;Columns&amp;gt;&lt;br /&gt; &lt;br /&gt;    &amp;lt;asp:BoundField DataField="CustomerID" HeaderText="BoundField" /&amp;gt;&lt;br /&gt; &lt;br /&gt;    &amp;lt;asp:HyperLinkField &lt;br /&gt;         DataTextField="CustomerName" &lt;br /&gt;         DataNavigateUrlFields="CustomerID,City"&lt;br /&gt;         DataNavigateUrlFormatString=&lt;br /&gt;           "http://xyz.com/ShowUser.aspx?id={0}&amp;city={1}" /&amp;gt;&lt;br /&gt; &lt;br /&gt;  &amp;lt;/Columns&amp;gt;&lt;br /&gt;&amp;lt;/asp:GridView&amp;gt;&lt;br /&gt;&lt;br /&gt; &lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-2937694261991482002?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/2937694261991482002/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/pass-multiple-parameter-using-hyperlink.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2937694261991482002'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2937694261991482002'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/pass-multiple-parameter-using-hyperlink.html' title='Pass multiple parameter using HyperLink field in GridView'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_ivbMBZX_-HU/Slxj-gVo0LI/AAAAAAAAADs/z_Zm0CXWRIo/s72-c/hyperlink.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-5635907214160125848</id><published>2009-07-14T10:55:00.000+01:00</published><updated>2009-07-14T10:57:31.786+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Detecting Client IP address</title><content type='html'>To keep track of Visitor's Record such as IP address and all &lt;br /&gt; then u can use this way , &lt;br /&gt; it will display the Client proxy ip address , if the client is using Proxy server.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;if (Context.Request.ServerVariables["HTTP_VIA"] != null) &lt;br /&gt;            {&lt;br /&gt;                IP = Context.Request.ServerVariables["HTTP_X_FORWARDED_FOR"].ToString();&lt;br /&gt;            }&lt;br /&gt;            else&lt;br /&gt;            {&lt;br /&gt;               IP = Context.Request.ServerVariables["REMOTE_ADDR"].ToString();&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-5635907214160125848?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/5635907214160125848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/detecting-client-ip-address.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/5635907214160125848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/5635907214160125848'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/detecting-client-ip-address.html' title='Detecting Client IP address'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-2677315934953215426</id><published>2009-07-13T07:50:00.001+01:00</published><updated>2009-07-13T07:53:51.845+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><category scheme='http://www.blogger.com/atom/ns#' term='datalist'/><title type='text'>Paging with DataList Control</title><content type='html'>&lt;b&gt;DataList&lt;/b&gt; is a data bound list control that displays items using certain templates defined at the design time.The content of the DataList control is manipulated by using templates sections such as  FooterTemplate, HeaderTemplate, ItemTemplate, SelectedItemTemplate ,AlternatingItemTemplate, EditItemTemplate and SeparatorTemplate &lt;br /&gt;&lt;br /&gt;PagedDataSource, is a class that encapsulates the paging related properties for data-bound controls such as DataGrid, GridView, DataList, DetailsView.&lt;br /&gt;&lt;br /&gt;Now lets take an Example of Displaying Country on Datalist with Paging&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Steps.&lt;/h3&gt;&lt;br /&gt;&lt;br /&gt;1. Create Datalist for Country &lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;asp:DataList ID="dlCountry" runat="server"&amp;gt; &lt;br /&gt; &amp;lt;ItemTemplate&amp;gt;&lt;br /&gt;   &amp;lt;asp:Label ID="Label1" runat="server" Text='&amp;lt;%# Eval("Country_Code") %&amp;gt;'&amp;gt;&amp;lt;/asp:Label&amp;gt;     &lt;br /&gt;   &amp;lt;asp:Label ID="Label2" runat="server" Text='&amp;lt;%# Eval("Country_Name") %&amp;gt;'&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt; &amp;lt;/ItemTemplate&amp;gt;&lt;br /&gt;&amp;lt;/asp:DataList&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;asp:DataList ID=" dlPaging" runat="server" OnItemCommand="dlPaging _ItemCommand"&amp;gt;&lt;br /&gt;&amp;lt;ItemTemplate&amp;gt;&lt;br /&gt;  &amp;lt;asp:LinkButton ID="lnkbtnPaging" runat="server" CommandArgument='&amp;lt;%# Eval("PageIndex") %&amp;gt;' CommandName="lnkbtnPaging" Text='&amp;lt;%# Eval("PageText") %&amp;gt;'&amp;gt;&amp;lt;/asp:LinkButton&amp;gt;&lt;br /&gt;&amp;lt;/ItemTemplate&amp;gt;&lt;br /&gt;&amp;lt;/asp:DataList&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;2. now on Code Behind write a method to fetch data from the Country’s table.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;private void BindGrid()&lt;br /&gt;{ &lt;br /&gt;  string sql = "Select * from Country Order By Country_Name"; &lt;br /&gt;  SqlDataAdapter da = new SqlDataAdapter(sql, “Yourconnectionstring”); &lt;br /&gt;  DataTable dt = new DataTable(); &lt;br /&gt;  da.Fill(dt); &lt;br /&gt;&lt;br /&gt;  pds.DataSource = dt.DefaultView;&lt;br /&gt;  pds.AllowPaging = true;&lt;br /&gt;  pds.PageSize = Convert.ToInt16(ddlPageSize.SelectedValue);&lt;br /&gt;  pds.CurrentPageIndex = CurrentPage;&lt;br /&gt;  lnkbtnNext.Enabled = !pds.IsLastPage;&lt;br /&gt;  lnkbtnPrevious.Enabled = !pds.IsFirstPage; &lt;br /&gt;&lt;br /&gt;  dlCountry.DataSource = pds;&lt;br /&gt;  dlCountry.DataBind();&lt;br /&gt;&lt;br /&gt;  doPaging();&lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;3.Call this BindGrid method in the Page load event. &lt;br /&gt;&lt;code&gt;&lt;br /&gt;protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;  if (!IsPostBack)&lt;br /&gt;  {&lt;br /&gt;    BindGrid();&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;4.Declare a PagedDataSource object at page scope.&lt;br /&gt; PagedDataSource pds = new PagedDataSource();&lt;br /&gt;&lt;br /&gt;5. create new property call CurrentPage to maintain the latest selected page index.&lt;br /&gt;and pu this code on it.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;public int CurrentPage&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;  get &lt;br /&gt;  { &lt;br /&gt;    if (this.ViewState["CurrentPage"] == null) &lt;br /&gt;      return 0; &lt;br /&gt;    else &lt;br /&gt;      return Convert.ToInt16(this.ViewState["CurrentPage"].ToString()); &lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt; set&lt;br /&gt; { &lt;br /&gt;  this.ViewState["CurrentPage"] = value;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;6.write a method ‘doPaging’ to create a list of page numbers.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;private void doPaging()&lt;br /&gt;{&lt;br /&gt; DataTable dt = new DataTable();&lt;br /&gt; dt.Columns.Add("PageIndex");&lt;br /&gt; dt.Columns.Add("PageText");&lt;br /&gt; for (int i = 0; i &lt; pds.PageCount; i++)&lt;br /&gt; {&lt;br /&gt;  DataRow dr = dt.NewRow(); &lt;br /&gt;  dr[0] = i; &lt;br /&gt;  dr[1] = i + 1; &lt;br /&gt;  dt.Rows.Add(dr);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; dlPaging.DataSource = dt;&lt;br /&gt; dlPaging.DataBind();&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;7. create new paging event &lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;protected void dlPaging_ItemCommand(object source, DataListCommandEventArgs e)&lt;br /&gt;{&lt;br /&gt; if (e.CommandName.Equals("lnkbtnPaging"))&lt;br /&gt; {&lt;br /&gt;   CurrentPage = Convert.ToInt16(e.CommandArgument.ToString());&lt;br /&gt;   BindGrid();&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;8. Previous And Next Button Events&lt;br /&gt; &lt;code&gt;&lt;br /&gt;&lt;br /&gt;protected void lnkbtnPrevious_Click(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;  CurrentPage -= 1;&lt;br /&gt;  BindGrid();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;protected void lnkbtnNext_Click(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;  CurrentPage += 1;&lt;br /&gt;  BindGrid();&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;9.Change PageSize Dynamically&lt;br /&gt;&lt;code&gt;&lt;br /&gt;protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;  CurrentPage = 0;&lt;br /&gt;  BindGrid();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;10.HighLight Selected Page Number&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;protected void dlPaging_ItemDataBound(object sender, DataListItemEventArgs e)&lt;br /&gt;{&lt;br /&gt;  LinkButton lnkbtnPage = (LinkButton)e.Item.FindControl("lnkbtnPaging"); &lt;br /&gt;  if (lnkbtnPage.CommandArgument.ToString() == CurrentPage.ToString()) &lt;br /&gt;  { &lt;br /&gt;    lnkbtnPage.Enabled = false; &lt;br /&gt;    lnkbtnPage.Font.Bold = true; &lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.aspdotnetcodes.com/Dynamic_Paging_DataList_Sample.aspx"&gt;view Demo here&lt;br /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-2677315934953215426?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/2677315934953215426/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/paging-with-datalist-control.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2677315934953215426'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2677315934953215426'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/paging-with-datalist-control.html' title='Paging with DataList Control'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-5779598156324716515</id><published>2009-07-13T06:37:00.003+01:00</published><updated>2009-08-18T12:35:42.345+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><title type='text'>Javascript Calendar.</title><content type='html'>&lt;h2&gt;Calendar &lt;/h2&gt;is a one of Gread fucntion while retriveing date from user end , there are lot many  use of calendar ex- date of Brith , Order date , Shipping Date  and lot many..&lt;br /&gt; &lt;br /&gt; in this case selecting proepr date is very imp , in term's of DD/MM/YYYY, some where using YYYY/MM/DD or MM/DD/YYYY , so in this case its its not undustable for the End user to Write Proper date in Text Box , but if you use Drop down in term of (DD/MM/YY  or MM/DD/YY ) then its useful for the user ,&lt;br /&gt;&lt;br /&gt; here i found some great Javascript code to do same , &lt;br /&gt; &lt;br /&gt;1.Ajax enabled  &lt;a target="_blank" href="http://www.frequency-decoder.com/2009/02/03/unobtrusive-date-picker-widget-v4"&gt;DatePicker v4&lt;/a&gt; :&lt;/p&gt;  &lt;br /&gt;&lt;br /&gt;2.  &lt;a target="_blank" href="http://dev.base86.com/scripts/vista-like_ajax_calendar_version_2.html"&gt;VLA Calendar version 2&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;3.&lt;a target="_blank" href="http://nogray.com/calendar.php"&gt;Customizable calendar component&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;4.&lt;a target="_blank" href="http://labs.perifer.se/timedatepicker/"&gt;jQuery:time/datePicker&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;5. &lt;a target="_blank" href="http://www.styledisplay.com/mootoolsdatepicker/"&gt;Fancy moo tools date picker&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;6. &lt;a target="_blank" href="http://marcgrabanski.com/code/clean-calendar/"&gt;Clean Calendar&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;7. &lt;a target="_blank" href="http://www.frequency-decoder.com/2006/10/02/unobtrusive-date-picker-widgit-update/"&gt;Date picker Widget&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;8. &lt;a target="_blank" href="http://marcgrabanski.com/code/jquery-calendar/"&gt;Yet another JQuery Calendar&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;9.&lt;a href="http://www.roseindia.net/javascript/javascript-calendar.shtml" target="_blank"&gt;Simple one &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;hope this collection likes you.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-5779598156324716515?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/5779598156324716515/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/javascript-calendar_12.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/5779598156324716515'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/5779598156324716515'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/javascript-calendar_12.html' title='Javascript Calendar.'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-7820138292059495204</id><published>2009-07-10T08:06:00.000+01:00</published><updated>2009-07-10T09:40:34.223+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Simple File Uploads in ASP.NET</title><content type='html'>uploading a single file from the client machine to your server.&lt;br /&gt;&lt;br /&gt;  watch live video here &lt;a href="http://download.microsoft.com/download/6/d/7/6d787e07-7da3-426c-82e6-dc7ad3cf19de/WinVideo-ASP-SimpleFileUpload.wmv"&gt;How to Upload &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-7820138292059495204?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/7820138292059495204/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/simple-file-uploads-in-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/7820138292059495204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/7820138292059495204'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/simple-file-uploads-in-aspnet.html' title='Simple File Uploads in ASP.NET'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-2365236205908990879</id><published>2009-07-09T12:20:00.000+01:00</published><updated>2009-07-09T12:25:01.682+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>automation for microsoft application using C#</title><content type='html'>Automation client for Microsoft Excel by using C#.&lt;br /&gt; its a very basic requirement in Client side automation for Microsoft Application like &lt;br /&gt; Excel / Word / OutLook / Powerpoint and all.&lt;br /&gt; &lt;br /&gt; To Automate Excel application using C# have a look on this &lt;a href="http://kirank.blog.com/2009/05/26/automation-client-for-microsoft-excel-by-using-c/"&gt;Article &lt;/a&gt;&lt;br /&gt;  &lt;br /&gt; &lt;b&gt;Known Issues with Automation &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Because the CLR uses a garbage collector for memory management, and because your RCW is itself a managed object, the lifetime of your Automation object is not guaranteed to end.you can get the actual help from here&lt;br /&gt;&lt;br /&gt;&lt;a href="http://weblogs.asp.net/sbehera/archive/2003/12/12/43034.aspx"&gt;317109 &lt;/a&gt;: Office Application Does Not Quit After Automation from Visual Studio .NET Client&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-2365236205908990879?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/2365236205908990879/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/automation-for-microsoft-application.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2365236205908990879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2365236205908990879'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/automation-for-microsoft-application.html' title='automation for microsoft application using C#'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-4694607386221423107</id><published>2009-07-09T09:51:00.001+01:00</published><updated>2009-07-09T09:51:57.987+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql'/><title type='text'>Use of "IDENT_CURRENT"</title><content type='html'>in sql if we declare column as a Identity columen,as if we want to retrieve the last inserted value then use this&lt;br /&gt;  &lt;b&gt;  "IDENT_CURRENT" &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;All SQL Server functions that retrieve the last inserted value into the Identity column of a table - @@IDENTITY, SCOPE_IDENTITY, IDENT_CURRENT are similar functions in that they return the last value inserted into the IDENTITY column of a table. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt; Use SCOPE_IDENTITY() , if you are not sure, if some triggers are going to be written or not on a table. Or, even better, use IDENT_CURRENT(tablename) to be more specific.&lt;br /&gt;&lt;br /&gt;for more &lt;a href="http://msdn.microsoft.com/en-us/library/ms175098.aspx"&gt; details  &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-4694607386221423107?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/4694607386221423107/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/use-of-identcurrent.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/4694607386221423107'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/4694607386221423107'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/use-of-identcurrent.html' title='Use of &quot;IDENT_CURRENT&quot;'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-7824295905997227798</id><published>2009-07-08T13:38:00.000+01:00</published><updated>2009-07-08T14:05:15.976+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Export Gridview to xls</title><content type='html'>Now you can Export content from GridView to Excel file &lt;br /&gt;&lt;br /&gt; 1. Create one Button "Export"&lt;br /&gt;&lt;br /&gt; &amp;lt;asp:Button id="Export" Text="Export" onClick="Export_Click"&amp;gt; &amp;lt;/asp:Button&amp;gt;&lt;br /&gt;&lt;br /&gt; 2. Add this on Export Event &lt;br /&gt;    &lt;code&gt;&lt;br /&gt;    protected void Export_Click(object sender, EventArgs e)&lt;br /&gt;    {&lt;br /&gt;        Response.AddHeader("content-disposition", "attachment;filename=ExportData.xls");&lt;br /&gt;        Response.Charset = String.Empty;&lt;br /&gt;        Response.ContentType = "application/vnd.xls";&lt;br /&gt;        System.IO.StringWriter SWrite = new System.IO.StringWriter();&lt;br /&gt;        System.Web.UI.HtmlTextWriter htmWr = new HtmlTextWriter(SWrite);&lt;br /&gt;        GridView1.RenderControl(htmWr);&lt;br /&gt;        Response.Write(SWrite.ToString());&lt;br /&gt;        Response.End();&lt;br /&gt;    }&lt;br /&gt;   &lt;/code&gt;&lt;br /&gt; &lt;br /&gt; that's it&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-7824295905997227798?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/7824295905997227798/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/export-gridview-to-xls.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/7824295905997227798'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/7824295905997227798'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/export-gridview-to-xls.html' title='Export Gridview to xls'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-525222879634068138</id><published>2009-07-07T08:05:00.001+01:00</published><updated>2009-12-10T12:30:19.342+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Limiting Data from GridView</title><content type='html'>while Desinging GridView we want some special effets like (coloring , bold, Setting width , height )&lt;br /&gt;and so many , you can do this by handling event like RowCreated and implementing event handler for it OnRowCreated.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;asp:GridView ID="ctlGridView" runat="server" OnRowCreated="OnRowCreated" /&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;And in your code behind you can add&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;protected void OnRowCreated(object sender, GridViewRowEventArgs e)&lt;br /&gt;{&lt;br /&gt;   if (e.Row.RowType == DataControlRowType.DataRow)&lt;br /&gt;   {&lt;br /&gt;     string Comments = (String)DataBinder.Eval(e.Row.DataItem, "Comment");&lt;br /&gt;           if (Comments != null)&lt;br /&gt;           {&lt;br /&gt;               if (Comments.Length &gt; 30)&lt;br /&gt;               {&lt;br /&gt;                   Comments = Comments.Substring(0, 40) + "...";&lt;br /&gt;                   e.Row.ForeColor = System.Drawing.Color.red;&lt;br /&gt;                  &lt;br /&gt;               }&lt;br /&gt;           }&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt; in that on "Comment" filed , i just simply minimize the string uptp 40 character and make it  as a  "RED" color.&lt;br /&gt; like that you can add more feature as u want.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-525222879634068138?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/525222879634068138/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/limiting-data-from-gridview.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/525222879634068138'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/525222879634068138'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/limiting-data-from-gridview.html' title='Limiting Data from GridView'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-3279445549120062558</id><published>2009-07-07T07:15:00.001+01:00</published><updated>2009-07-07T07:15:49.719+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><title type='text'>How To Access Content From MasterPage in ASP.NET</title><content type='html'>hi , some time we required some content from master page.&lt;br /&gt; lets say we have created menu bar in Master page and i want to use that menu bar in some page &lt;br /&gt; consider(Details.aspx) and my master page is ("MasterPanel.master) , now how to access master page content &lt;br /&gt; to display the Menu.&lt;br /&gt;&lt;br /&gt; &lt;b&gt;MasterPanel.master&lt;/b&gt;&lt;br /&gt; &lt;code&gt;&lt;br /&gt; &amp;lt;%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPanel.master.cs" Inherits="MasterPanel" %&amp;gt; &lt;br /&gt; &amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&lt;br /&gt; &amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;&lt;br /&gt; &amp;lt;head id="Head1" runat="server"&amp;gt;&lt;br /&gt;    &amp;lt;title&amp;gt;: Master Demo: &amp;lt;/title&amp;gt;&lt;br /&gt; &amp;lt;/head&amp;gt;&lt;br /&gt; &amp;lt;body&amp;gt;&lt;br /&gt;    &amp;lt;form id="form1" runat="server"&amp;gt;&lt;br /&gt;     &amp;lt;table border="0" style="width: 100%"&amp;gt;&lt;br /&gt;                        &amp;lt;tr&amp;gt;&lt;br /&gt;                            &amp;lt;td style="width: 100%"&amp;gt;&lt;br /&gt;                                &amp;lt;ul&amp;gt;&lt;br /&gt;      &amp;lt;li&amp;gt;File&amp;lt;/li&amp;gt; &lt;br /&gt;      &amp;lt;ul&amp;gt; &lt;br /&gt;      &amp;lt;li&amp;gt;Open &amp;lt;/li&amp;gt; &lt;br /&gt;      &amp;lt;li&amp;gt;Save &amp;lt;/li&amp;gt;&lt;br /&gt;      &amp;lt;/ul&amp;gt;&lt;br /&gt;     &amp;lt;li&amp;gt;Logout&amp;lt;/li&amp;gt;&lt;br /&gt;     &amp;lt;/ul&amp;gt;&lt;br /&gt;        &amp;lt;/td&amp;gt;&lt;br /&gt;    &amp;lt;/tr&amp;gt;&lt;br /&gt; &amp;lt;/table&amp;gt;&lt;br /&gt;    &amp;lt;/form&amp;gt;&lt;br /&gt; &amp;lt;/body&amp;gt;&lt;br /&gt; &amp;lt;/html&amp;gt;&lt;br /&gt; &lt;br /&gt; &lt;/code&gt;&lt;br /&gt;&lt;br /&gt; &lt;b&gt;Details.aspx &lt;/b&gt;&lt;br /&gt; &lt;code&gt;&lt;br /&gt;&amp;lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Details.aspx.cs"&lt;br /&gt;    Inherits="Details" &amp;lt;b&amp;gt;&amp;lt;font color=red&amp;gt;MasterPageFile="~/MasterPanel.master"&amp;lt;/font&amp;gt;&amp;lt;/b&amp;gt; %&amp;gt;&lt;br /&gt;&amp;lt;asp:Content ID="Det"  runat="Server" ContentPlaceHolderID="ContentPlaceHolder1"&amp;gt;&lt;br /&gt;&lt;br /&gt;  //Menu source will come&lt;br /&gt; &lt;br /&gt;&amp;lt;/asp:Content&amp;gt;&lt;br /&gt;&lt;/code&gt; &lt;br /&gt; in Details.aspx we have add MasterPageFile as "~/MasterPanel.master" so it will inclue all the &lt;br /&gt; content from master page . by using &amp;lt;asp:Content&amp;gt; you can place that menu where you want in &lt;br /&gt; Details.aspx page &lt;br /&gt;&lt;br /&gt; That's it &lt;br /&gt; &lt;br /&gt; Happy coding ......&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-3279445549120062558?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/3279445549120062558/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/how-to-access-content-from-masterpage.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/3279445549120062558'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/3279445549120062558'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/how-to-access-content-from-masterpage.html' title='How To Access Content From MasterPage in ASP.NET'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-7675343460990371882</id><published>2009-07-06T13:27:00.001+01:00</published><updated>2009-09-29T06:02:42.440+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>How to Access Outlook Emails with ASP.NET ,C#</title><content type='html'>Hi,&lt;br /&gt;on my first post, i have covered how to &lt;a href="http://kirank.blog.com/2009/05/26/automation-client-for-microsoft-excel-by-using-c/"&gt;add Refrences &lt;/a&gt;&lt;br /&gt; on you'r .net application &lt;br /&gt; now we require same thing to Send / Receive Mail via outlook using ASP.NET.&lt;br /&gt; To acquire these, all you need is Interop.Outlook.dll. &lt;br /&gt;&lt;br /&gt; Stpes :&lt;br /&gt; 1. Create one Project as "OutlookSendReceive" .&lt;br /&gt; 2. include "Bin" folder on same , right click on it , select Add refrence &lt;br /&gt;    then click tab "COM " and select " Microsoft Outlook 11.0 " click ok &lt;br /&gt;&lt;br /&gt; 3. it will add assemblies on you'r web.config page &lt;br /&gt;    like &lt;br /&gt;&lt;br /&gt;     &amp;lt;assemblies&amp;gt;&lt;br /&gt;       &amp;lt;add assembly="Microsoft.Office.Interop.Outlook, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e29c34"/&amp;gt;&lt;br /&gt;     &amp;lt;/assemblies&amp;gt;&lt;br /&gt;&lt;br /&gt; 4. Define &lt;br /&gt; "using Microsoft.Office.Interop.Outlook;&lt;br /&gt;  using System.Text;" &lt;br /&gt;&lt;br /&gt; 5. copy that code on Page_load() event &lt;br /&gt;&lt;br /&gt;  &lt;code&gt;&lt;br /&gt; Microsoft.Office.Interop.Outlook.Application nOutlook;&lt;br /&gt;         Microsoft.Office.Interop.Outlook.NameSpace oNs;&lt;br /&gt;         Microsoft.Office.Interop.Outlook.MAPIFolder oFldr;         &lt;br /&gt;&lt;br /&gt;         try&lt;br /&gt;         {&lt;br /&gt;             nOutlook = new Microsoft.Office.Interop.Outlook.Application();&lt;br /&gt;             oNs = nOutlook.GetNamespace("MAPI");&lt;br /&gt;&lt;br /&gt;             //getting mail folder from inbox&lt;br /&gt;             oFldr = oNs.GetDefaultFolder(OlDefaultFolders.olFolderInbox);&lt;br /&gt;             Response.Write("Total Mail in Inbox :" + oFldr.Items.Count + "&lt;br&gt;");&lt;br /&gt;             Response.Write("Total Unread items = " + oFldr.UnReadItemCount);&lt;br /&gt;             foreach (Microsoft.Office.Interop.Outlook.MailItem oMessage in oFldr.Items)&lt;br /&gt;             {&lt;br /&gt;                 StringBuilder str = new StringBuilder();&lt;br /&gt;                 str.Append("&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Sender :&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;");&lt;br /&gt;                 str.Append(oMessage.SenderEmailAddress.ToString() + "&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;");&lt;br /&gt;                 &lt;br /&gt;                 //Define Additional Information of Message&lt;br /&gt;                 str.Append("&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Date :&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;" + oMessage.SentOn.ToShortDateString() + "&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;");&lt;br /&gt;                 if (oMessage.Subject != null)&lt;br /&gt;                 {&lt;br /&gt;                     str.Append("&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Subject :&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;" + oMessage.Subject.ToString() + "&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;");&lt;br /&gt;                 }&lt;br /&gt;                 &lt;br /&gt;                 str.Append("&amp;lt;/table&amp;gt;&amp;lt;br&amp;gt;");&lt;br /&gt;                 Response.Write(str.ToString());&lt;br /&gt;             }&lt;br /&gt;&lt;br /&gt;         }&lt;br /&gt;         catch (System.Exception ex)&lt;br /&gt;         {&lt;br /&gt;             Response.Write("Execption generated:" + ex.Message);&lt;br /&gt;         }&lt;br /&gt;         finally&lt;br /&gt;         {&lt;br /&gt;             GC.Collect();&lt;br /&gt;             oFldr = null;&lt;br /&gt;             oNs = null;&lt;br /&gt;             nOutlook = null;&lt;br /&gt;         }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt; like this way you can access Outlooks mail , &lt;br /&gt; thank you, &lt;br /&gt; will come up more on how to access gmail /yahoo mail directly&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-7675343460990371882?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/7675343460990371882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/how-to-access-outlook-emails-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/7675343460990371882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/7675343460990371882'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/how-to-access-outlook-emails-with.html' title='How to Access Outlook Emails with ASP.NET ,C#'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-2232873548087112215</id><published>2009-07-06T08:14:00.000+01:00</published><updated>2009-07-06T08:26:41.653+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><title type='text'>Using Parameters with the SqlDataSource Control</title><content type='html'>When using the SqlDataSource control, you can specify SQL queries and statements that use parameters. This helps make your data-binding scenarios more flexible by &lt;br /&gt;reading and writing database information based on values&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;b&gt;how to Specifying Parameters in Commands &lt;/b&gt;&lt;br /&gt;When you use the SqlDataSource control, you can set the control's command properties to parameterized SQL statements or to the name of a stored procedure. &lt;br /&gt;The SqlDataSource control adds the value of the ParameterPrefix property to the beginning of all parameter names. (The default prefix is "@".) &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Using Parameters with the SqlClient Provider:&lt;br /&gt;By default, the SqlDataSource control uses the System.Data.SqlClient data provider to work with SQL Server as the data source. The System.Data.SqlClient provider supports named parameters as placeholders, as shown in the following example: &lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;SELECT * FROM Stud WHERE Rollno = @Rno&lt;br /&gt;  AND Name = @Name&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;The following example shows how to use parameters in an SQL command for a SqlDataSource control that uses the System.Data.SqlClient provider &lt;br /&gt;&lt;br /&gt;[C# code]&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;asp:sqlDataSource ID="StudInfo" &lt;br /&gt;  SelectCommand="SELECT Marks,Rollno,ID  FROM Stud WHERE Rollno = @Rno"&lt;br /&gt;  ConnectionString="&amp;lt;%$ ConnectionStrings:Stud %&amp;gt;" RunAt="server"&amp;gt;&lt;br /&gt;  &amp;lt;SelectParameters&amp;gt;&lt;br /&gt;    &amp;lt;asp:Parameter Name="Rno" Type="Int32" DefaultValue="0" /&amp;gt;&lt;br /&gt;  &amp;lt;/SelectParameters&amp;gt;&lt;br /&gt;&lt;br /&gt;   //Suppose for insert query&lt;br /&gt; &amp;lt;InsertParameters&amp;gt;&lt;br /&gt;         &amp;lt;asp:Parameter Name="abc"  Type="String" /&amp;gt;&lt;br /&gt;         &amp;lt;asp:Parameter Name="xyz"  Type="String" /&amp;gt;&lt;br /&gt; &amp;lt;/InsertParameters&amp;gt;&lt;br /&gt;&lt;br /&gt;  // for update &lt;br /&gt; &amp;lt;UpdateParameters&amp;gt;&lt;br /&gt;   &amp;lt;asp:Parameter Name="abc"  Type="String" /&amp;gt;&lt;br /&gt; &amp;lt;/UpdateParameters&amp;gt;&lt;br /&gt;&lt;br /&gt; //you can also use Seesion Parameter &lt;br /&gt;&lt;br /&gt; &amp;lt;SelectParameters&amp;gt;&lt;br /&gt;              &amp;lt;asp:SessionParameter&lt;br /&gt;                Name="Rollno"&lt;br /&gt;                SessionField="Rno"&lt;br /&gt;                DefaultValue="1" /&amp;gt;&lt;br /&gt;          &amp;lt;/SelectParameters&amp;gt;&lt;br /&gt;&lt;br /&gt; // also pass via querystring  &lt;br /&gt; &amp;lt;SelectParameters&amp;gt;&lt;br /&gt;&lt;br /&gt;  &amp;lt;asp:QueryStringParameter Name="Rollno" QueryStringField="rno" Type="int" /&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/SelectParameters&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;like this u can access Parameters with the SqlDataSource Control&lt;br /&gt;also refer &lt;a href="http://msdn.microsoft.com/en-us/library/z72eefad.aspx"&gt;This Article&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-2232873548087112215?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/2232873548087112215/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/using-parameters-with-sqldatasource.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2232873548087112215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2232873548087112215'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/07/using-parameters-with-sqldatasource.html' title='Using Parameters with the SqlDataSource Control'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-1192366400881201264</id><published>2009-06-30T11:27:00.000+01:00</published><updated>2009-06-30T11:37:54.778+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql'/><title type='text'>SQL Date Functions</title><content type='html'>here are some sql DATE related functions :&lt;br /&gt;&lt;br /&gt; 1. SET DATEFIRST 1 // set first day of the week as Monday&lt;br /&gt;&lt;br /&gt; 2. SELECT (datepart(ww,@tDate)) + 1- datepart(ww,dateadd(dd,-datepart(dd,@tDate),@tDate)) nWeek //Week number in a month for a specific date&lt;br /&gt;&lt;br /&gt; 3. SELECT DATEADD(mm, DATEDIFF(mm,0,@Month), 0)   //First Day of the Month&lt;br /&gt;&lt;br /&gt; 4. SELECT DATEPART(WK, @Month) //Week Number of the Year&lt;br /&gt;&lt;br /&gt; 5. Select Current_Timestamp;  // return current Select Current_Timestamp; &lt;br /&gt;&lt;br /&gt; 6. By using any of the following date functions it is possible to breakdown timestamps &lt;br /&gt;&lt;br /&gt; &lt;code&gt;  &lt;br /&gt;  SELECT MONTH(CURRENT_TIMESTAMP);- Return a Month(6)&lt;br /&gt;&lt;br /&gt;SELECT DAY(CURRENT_TIMESTAMP);-Return a Day:(22)&lt;br /&gt;&lt;br /&gt;SELECT DATE(CURRENT_TIMESTAMP); - returns a date (2004-06-22)&lt;br /&gt;&lt;br /&gt;SELECT TIME(CURRENT_TIMESTAMP); - returns the time (10:33:11.840)&lt;br /&gt;&lt;br /&gt;SELECT DAYOFWEEK(CURRENT_TIMESTAMP); - returns a numeric value (1-7)&lt;br /&gt;&lt;br /&gt;SELECT DAYOFMONTH(CURRENT_TIMESTAMP); - returns a day of month (1-31)&lt;br /&gt;&lt;br /&gt;SELECT DAYOFYEAR(CURRENT_TIMESTAMP); - returns the day of the year (1-365)&lt;br /&gt;&lt;br /&gt;SELECT MONTHNAME(CURRENT_TIMESTAMP); - returns the month name (January - December)&lt;br /&gt;&lt;br /&gt;SELECT DAYNAME(CURRENT_TIMESTAMP); - returns the name of the day (Sunday - Saturday)&lt;br /&gt;&lt;br /&gt;SELECT WEEK(CURRENT_TIMESTAMP); - returns number of the week (1-53)&lt;br /&gt; &lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-1192366400881201264?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/1192366400881201264/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/06/sql-date-functions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/1192366400881201264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/1192366400881201264'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/06/sql-date-functions.html' title='SQL Date Functions'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-5222026194034031482</id><published>2009-06-30T10:07:00.000+01:00</published><updated>2009-06-30T11:09:09.961+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LINQ'/><title type='text'>The LINQ Project</title><content type='html'>The LINQ Project is a codename for a set of extensions to the .NET Framework that encompass language-integrated query, set, and transform operations. &lt;br /&gt;&lt;br&gt;&lt;br /&gt;It extends C# and Visual Basic with native language syntax for queries and provides class libraries to take advantage of these capabilities&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/netframework/aa904594.aspx" target="_blank"&gt;LINQ Project&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-5222026194034031482?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/5222026194034031482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/06/linq-project.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/5222026194034031482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/5222026194034031482'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/06/linq-project.html' title='The LINQ Project'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-5723173008521167170</id><published>2009-06-30T05:37:00.002+01:00</published><updated>2009-06-30T11:10:19.281+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Textbox Validation Summary C#</title><content type='html'>A ValidationSummary control is displayed when the IsValid property of the page is false. It "polls" each of the validation controls on the page and aggregates the text messages exposed by each. The following sample illustrates displaying errors with a ValidationSummary. &lt;br /&gt;  &lt;br /&gt;&lt;br /&gt;  &lt;a href="http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/validation/validationsummary.aspx" target="_blank"&gt; Get Tex box Validation Summery &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-5723173008521167170?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/5723173008521167170/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/06/textbox-validation-summary-c_29.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/5723173008521167170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/5723173008521167170'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/06/textbox-validation-summary-c_29.html' title='Textbox Validation Summary C#'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-2965043243270272164</id><published>2009-06-29T13:54:00.000+01:00</published><updated>2009-06-30T11:12:09.768+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp'/><title type='text'>Delete File in ASP</title><content type='html'>Yes, you can delete a file by using FileSystem Object in ASP&lt;br /&gt; &lt;code&gt;&lt;br /&gt; &lt;br /&gt; &amp;lt;%&lt;br /&gt;// delete file&lt;br /&gt;var FSO = Server.CreateObject("Scripting.FileSystemObject");&lt;br /&gt;// get path to file &lt;br /&gt;PathFile = Server.MapPath("/path/folder/deletefilename);&lt;br /&gt;// if file exists, delete it &lt;br /&gt;if(FSO.FileExists(PathFile)) FSO.DeleteFile(sPathToFile)&lt;br /&gt;// file deleted&lt;br /&gt;&lt;br /&gt;%&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;  like this way we can create , delete folder using FSO (file system object)&lt;br /&gt;  to know more about &lt;a href="http://www.w3schools.com/asp/asp_ref_filesystem.asp" target="_blank"&gt;FSO system&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-2965043243270272164?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/2965043243270272164/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/06/delete-file-in-asp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2965043243270272164'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/2965043243270272164'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/06/delete-file-in-asp.html' title='Delete File in ASP'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-9128508426386856181</id><published>2009-06-23T06:34:00.000+01:00</published><updated>2009-06-30T11:12:42.954+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Printing using C#</title><content type='html'>Hi , printing is very easy case in all the task ,but when using ASP.NET, printing of web form is not that easy.&lt;br /&gt; if we're building a UI we usually do so by painting controls on the screen and allowing whoever developed them to worry about the whys and wherefores about how that control should look. &lt;br /&gt;  &lt;br /&gt; If you want to print on server side, then you can use System.Drawing.Printing classes just like when you work with .Net Windows Forms application.&lt;br /&gt; but if you are using client side then you need to consider more constraints and different possible solutions, depending of your specific needs.&lt;br /&gt;&lt;br /&gt; For printing, you use the System.Drawing.Printing namespace. The main class in this namespace is the PrintDocument  class, which represents an object that sends output to the printer. The role of this class is so central that you can achieve simple and complex printing tasks by using this class alone. However, as we shall see, other classes in this and other namespaces help make coding easier. &lt;br /&gt; o print text or graphics, you call the Print method of the System.Drawing.Printing.PrintDocument class. One of the events the Print method invokes is the PrintPage event. You need to wire an event handler to the PrintPage event and write the code to send output to the printer. The event handler will receive an argument of type&lt;br /&gt; &lt;br /&gt; Here are way to print the Document / Form.&lt;br /&gt; &lt;b&gt;Using PrintDialog&lt;/b&gt; &lt;br /&gt; &lt;code&gt;&lt;br /&gt; private void filePrintMenuItem_Click(Object sender , EventArgs e) &lt;br /&gt;    {&lt;br /&gt;      PrintDialog dlg = new PrintDialog();&lt;br /&gt;      dlg.Document = printDoc;&lt;br /&gt;      if (dlg.ShowDialog() == DialogResult.OK) &lt;br /&gt;      {&lt;br /&gt;        printDoc.Print();&lt;br /&gt;      }&lt;br /&gt;    }&lt;br /&gt; &lt;/code&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt; The filePrintMenuItem_Click event handler sends output to the printer if the user clicks the Print dialog box's OK button.&lt;br /&gt;&lt;br /&gt; &lt;b&gt;Page Setup&lt;/b&gt;&lt;br /&gt; while priting adds the feature to set up the page that is used for printing.&lt;br /&gt;  &lt;br /&gt; &lt;code&gt;&lt;br /&gt; 1. private PageSettings pgSettings = new PageSettings();&lt;br /&gt; 2. Set pgSettings to the DefaultPageSettings property of printDoc before printing.&lt;br /&gt;    &lt;code&gt;&lt;br /&gt; private void filePrintMenuItem_Click(Object sender , EventArgs e) &lt;br /&gt;    {&lt;br /&gt;      printDoc.DefaultPageSettings = pgSettings;&lt;br /&gt;      PrintDialog dlg = new PrintDialog();&lt;br /&gt;      dlg.Document = printDoc;&lt;br /&gt;      if (dlg.ShowDialog() == DialogResult.OK) &lt;br /&gt;      {&lt;br /&gt;        printDoc.Print();&lt;br /&gt;      }&lt;br /&gt;    }&lt;br /&gt; &lt;/code&gt;&lt;br /&gt; 3. Allow the user to change the setting of the page..&lt;br /&gt;  &lt;code&gt;&lt;br /&gt; private void filePageSetupMenuItem_Click(Object sender , EventArgs e) &lt;br /&gt;    {&lt;br /&gt;      PageSetupDialog pageSetupDialog = new PageSetupDialog();&lt;br /&gt;      pageSetupDialog.PageSettings = pgSettings;&lt;br /&gt;      pageSetupDialog.AllowOrientation = true;&lt;br /&gt;      pageSetupDialog.AllowMargins = true;&lt;br /&gt;      pageSetupDialog.ShowDialog();&lt;br /&gt;    }&lt;br /&gt; &lt;/code&gt;&lt;br /&gt;&lt;br /&gt; 4.Set the printDoc_PrintPage event handler to take into account the top and left margins.&lt;br /&gt; private void printDoc_PrintPage(Object sender , PrintPageEventArgs e)&lt;br /&gt;    {&lt;br /&gt;      String textToPrint = ".NET Printing is easy";&lt;br /&gt;      Font printFont = new Font("Courier New", 12);&lt;br /&gt;      int leftMargin = e.MarginBounds.Left;&lt;br /&gt;      int topMargin = e.MarginBounds.Top;&lt;br /&gt;      e.Graphics.DrawString(textToPrint, printFont, Brushes.Black, &lt;br /&gt;        leftMargin, topMargin);&lt;br /&gt;    }&lt;br /&gt;  &lt;/code&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br&gt;&lt;br /&gt; &lt;b&gt;Print Preview&lt;/b&gt;&lt;br /&gt; In a Windows application, before the user prints, they can normally view a preview of how the printout will like on paper. You can also provide this feature by adding the following code to the filePrintPreviewMenuItem_Click event handler. &lt;br /&gt; &lt;code&gt;&lt;br /&gt; private void filePrintPreviewMenuItem_Click(Object sender , EventArgs e) &lt;br /&gt;    {&lt;br /&gt;      PrintPreviewDialog dlg = new PrintPreviewDialog();&lt;br /&gt;      dlg.Document = printDoc;&lt;br /&gt;      dlg.ShowDialog();&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt; &lt;br&gt;&lt;br /&gt; here you can get best printing &lt;br /&gt;&lt;a href=" http://www.codeproject.com/KB/printing/simpleprintingcs.aspx."&gt;example  &lt;/a&gt;&lt;br /&gt; Hope it will helpful for you,plz comment on it.&lt;br /&gt; &lt;br /&gt; Thank You,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-9128508426386856181?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/9128508426386856181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/06/printing-using-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/9128508426386856181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/9128508426386856181'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/06/printing-using-c.html' title='Printing using C#'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-4119799160571766029</id><published>2009-06-20T10:29:00.000+01:00</published><updated>2009-06-30T11:22:02.862+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Open other website content on my asp.net Page</title><content type='html'>here is an Tips for displaying an Otherpage content on you'r own asp.net web page&lt;br /&gt;&lt;br /&gt;follow this steps .&lt;br /&gt;&lt;Ul&gt;&lt;br /&gt;&lt;li&gt;Add new Panel&lt;/li&gt;&lt;br /&gt; &lt;code&gt;&lt;br /&gt;  &amp;lt;asp:panel id="ViewPanel runat="server" Width="100%" &amp;gt; &lt;br /&gt;  &amp;lt;/asp:panel&amp;gt;&lt;br /&gt; &lt;/code&gt;&lt;br /&gt;&lt;br /&gt; &lt;li&gt;Add Namespan &lt;/li&gt;&lt;br /&gt;  &lt;code&gt;&lt;br /&gt;   using System.Text;using System.Net;using System.IO; &lt;br /&gt; &lt;/code&gt;&lt;br /&gt; add this namespace on your page declaration part.&lt;br /&gt;&lt;br /&gt; &lt;li&gt;now on Page_load() paste this code&lt;/li&gt;&lt;br /&gt;&lt;br /&gt; &lt;code&gt;&lt;br /&gt; protected void Page_Load(object sender, EventArgs e)&lt;br /&gt; {&lt;br /&gt;  Uri weburi = new Uri(http://www.gmail.com/);&lt;br /&gt;  StringBuilder str = new StringBuilder();&lt;br /&gt;  string temp = "";&lt;br /&gt;  HttpWebRequest webrequest = (HttpWebRequest)WebRequest.Create(weburi);&lt;br /&gt;  HttpWebResponse webresponse = (HttpWebResponse)webrequest.GetResponse();&lt;br /&gt;  StreamReader webstream = new StreamReader(webresponse.GetResponseStream(), Encoding.ASCII);&lt;br /&gt;  while ((temp = webstream.ReadLine()) != null)&lt;br /&gt;  str.Append(temp + "\r\n");&lt;br /&gt;  webstream.Close();&lt;br /&gt;  mainpanel.Controls.Add(new System.Web.UI.LiteralControl(str.ToString()));&lt;br /&gt; }&lt;br /&gt; &lt;/code&gt;&lt;br /&gt; &lt;br /&gt; &lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;Plz write full path on you'r URI.&lt;br /&gt;that's it&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-4119799160571766029?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/4119799160571766029/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/06/open-other-website-content-on-my-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/4119799160571766029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/4119799160571766029'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/06/open-other-website-content-on-my-aspnet.html' title='Open other website content on my asp.net Page'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-4499364446760285331</id><published>2009-06-20T07:58:00.000+01:00</published><updated>2009-07-13T06:40:48.122+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><title type='text'>ways of using hyperlink control in data controls.</title><content type='html'>Here are some different ways of using hyperlink control in data controls.&lt;br /&gt;&lt;br /&gt;What is a  Hyperlink control:&lt;br /&gt;A hyperlink control is used to navigate from the client to another page.Here is a example for a hyperlink control&lt;br /&gt;&lt;code&gt;&lt;br /&gt; &amp;lt;asp:HyperLink ID="hyp1" runat="server" Text="test" &amp;gt;&amp;lt;/asp:HyperLink&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;In data controls like datagrid and gridview we have hyperlink column and hyperlink field.&lt;br /&gt;We will have a gridview containing hyperlinkfield  as shown below  where DataNavigateUrlFields and  DataNavigateUrlFormatString are used to get&lt;br /&gt;Fields from datasource and construct the url for navigation to next page.In the datagrid hyperlink column we have the same fields and you can follow the same procedure.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;asp:GridView ID="gdview" runat="server" AutoGenerateColumns="False" &amp;gt;&lt;br /&gt;&amp;lt;Columns&amp;gt;&lt;br /&gt;&amp;lt;asp:HyperLinkField HeaderText="Category"  DataTextField="CategoryName" DataNavigateUrlFields="CategoryID"   DataNavigateUrlFormatString="~/page.aspx?id={0}" /&amp;gt;&lt;br /&gt;&amp;lt;/Columns&amp;gt;&lt;br /&gt;&amp;lt;/asp:GridView&amp;gt;&lt;br /&gt;&lt;br /&gt;in code behind:&lt;br /&gt;protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;    {&lt;br /&gt;        if (!Page.IsPostBack)&lt;br /&gt;        {&lt;br /&gt;            BindGrid();&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    public void BindGrid()&lt;br /&gt;    {&lt;br /&gt;        SqlConnection conn = new SqlConnection("Data Source='localhost';Initial Catalog='Northwind';Persist Security Info=False ");&lt;br /&gt;        SqlDataAdapter da = new SqlDataAdapter("", conn);&lt;br /&gt;        da.SelectCommand = new SqlCommand("select * from emp", conn);&lt;br /&gt;        DataSet ds = new DataSet();&lt;br /&gt;        da.Fill(ds, "data");&lt;br /&gt;        gdview.DataSource = ds.Tables[0].DefaultView;&lt;br /&gt;        gdview.DataBind();   &lt;br /&gt;&lt;br /&gt;    }&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Using Mutliple dataitems&lt;br /&gt;If you want to send mutliple items to next page you have to do like this&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;asp:GridView ID="gdview" runat="server" AutoGenerateColumns="False" &amp;gt;&lt;br /&gt;&amp;lt;Columns&amp;gt;&lt;br /&gt;&amp;lt;asp:HyperLinkField HeaderText="Category"  DataTextField="CategoryName" DataNavigateUrlFields="CategoryID,CategoryName"   DataNavigateUrlFormatString="~/page.aspx?id={0}&amp;name={1}" /&amp;gt;&lt;br /&gt;&amp;lt;/Columns&amp;gt;&lt;br /&gt;&amp;lt;/asp:GridView&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;In runtime&lt;br /&gt;Inorder to access the hyperlinkfield in code behind we have to follow the below &lt;br /&gt;Procedure&lt;br /&gt;&lt;br /&gt;In design view:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;asp:GridView ID="gdview" runat="server" AutoGenerateColumns="False"  OnRowDataBound="gdview_RowDataBound" &amp;gt;&lt;br /&gt;&amp;lt;Columns&amp;gt;&lt;br /&gt;&amp;lt;asp:HyperLinkField HeaderText="Category"  DataTextField="CategoryName"  runat="server"  /&amp;gt;&lt;br /&gt;&amp;lt;/Columns&amp;gt;&lt;br /&gt;&amp;lt;/asp:GridView&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In code behind:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;protected void gdview_RowDataBound(object sender, GridViewRowEventArgs e)&lt;br /&gt;    {&lt;br /&gt;        HyperLinkField hyp = (HyperLinkField)gdview.Columns[0];&lt;br /&gt;        string[] items = new string[2];&lt;br /&gt;        items[0] = "CategoryName";&lt;br /&gt;        items[1] = "CategoryID";&lt;br /&gt;        hyp.DataNavigateUrlFields = items;&lt;br /&gt;        hyp.DataNavigateUrlFormatString ="~/page.aspx?id={0}&amp;name={1}";&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Using Hyperlink control&lt;br /&gt;&lt;br /&gt;In the case of repeater and datalist  we don’t have hyperlink column.In that scenario we have to use hyperlink control in itemtemplate.&lt;br /&gt;&lt;br /&gt;.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;In design view:&lt;br /&gt;&amp;lt;asp:Repeater ID="rp1" runat="server"&amp;gt;&lt;br /&gt;&amp;lt;ItemTemplate&amp;gt;&lt;br /&gt;&amp;lt;table&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&lt;br /&gt;&amp;lt;td&amp;gt;&lt;br /&gt;&amp;lt;asp:HyperLink ID="hyp1" runat="server" Text='&amp;lt;%#Eval("CategoryName")%&amp;gt;' NavigateUrl='&amp;lt;%#"page.aspx?id=" + DataBinder.Eval(Container.DataItem," CategoryID") + "&amp;name=" + DataBinder.Eval(Container.DataItem,"CategoryName")%&amp;gt;'  &amp;gt;&amp;lt;/asp:HyperLink&amp;gt;&lt;br /&gt;&amp;lt;/td&amp;gt; &lt;br /&gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;/table&amp;gt;&lt;br /&gt;&amp;lt;/ItemTemplate&amp;gt;&lt;br /&gt;&amp;lt;/asp:Repeater&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;in code behind:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;    {&lt;br /&gt;        if (!Page.IsPostBack)&lt;br /&gt;        {&lt;br /&gt;            BindRep();&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    public void BindRep()&lt;br /&gt;    {&lt;br /&gt;        SqlConnection conn = new SqlConnection("Data Source='localhost';Initial Catalog='Northwind';Integrated Security=SSPI;Persist Security Info=False ");&lt;br /&gt;        SqlDataAdapter da = new SqlDataAdapter("", conn);&lt;br /&gt;        da.SelectCommand = new SqlCommand("select CategoryName,CategoryID from Categories", conn);&lt;br /&gt;        DataSet ds = new DataSet();&lt;br /&gt;        da.Fill(ds, "data");&lt;br /&gt;        rp1.DataSource = ds.Tables[0].DefaultView;&lt;br /&gt;        rp1.DataBind();&lt;br /&gt;    }&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Here in this example we have passed multiple data items to page.aspx.In the same way you can create hyperlink control in datalist.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-4499364446760285331?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/4499364446760285331/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/06/ways-of-using-hyperlink-control-in-data.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/4499364446760285331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/4499364446760285331'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/06/ways-of-using-hyperlink-control-in-data.html' title='ways of using hyperlink control in data controls.'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-6948256392398445023</id><published>2009-06-19T10:31:00.001+01:00</published><updated>2009-06-19T10:33:02.975+01:00</updated><title type='text'>prevent multiple form submit at client side</title><content type='html'>In Html  tag Button one issue is that they can be clicked more than once, and under certain circumstances this can cause issues. because of that may be data may get inserted multiple time, wrong information can be get added and so on. To ensure that the button can only be pressed once you can do the following.&lt;br /&gt;&lt;br /&gt;Actually there may way to do this &lt;br /&gt;1. &lt;b&gt;Disable button&lt;/b&gt;&lt;br /&gt;&lt;br /&gt; javascript:this.disabled=true;this.value='Submitting....';doSubmit('SUBMIT');&lt;br /&gt;&lt;br /&gt;Simply add this in you button onClick method &lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;INPUT TYPE="Button" VALUE="Submit" onClick="if(this.value == 'Submit') this.form.submit(); this.value = 'Please Wait.';this.disabled=true;"&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;2.&lt;b&gt; Count click&lt;/b&gt;&lt;br /&gt;&lt;br /&gt; Second one is count how many times user get click on it &lt;br /&gt;&lt;br /&gt;  &lt;code&gt;&lt;br /&gt;   &amp;lt;script language="javascript"&amp;gt;&lt;br /&gt;   var NoOfClick=0;&lt;br /&gt;   function chksubmit()&lt;br /&gt;   {&lt;br /&gt;       if NoOfClick &amp;gt;0)&lt;br /&gt;       {&lt;br /&gt;  alert("Wait! Request is in Process...");&lt;br /&gt; return false;&lt;br /&gt;       }&lt;br /&gt;     NoOfClick ++;&lt;br /&gt;    document.creditcardinfo.action="xyz.asp";&lt;br /&gt;    document.creditcardinfo.submit(); &lt;br /&gt;   }&lt;br /&gt; &lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;itle&amp;gt; button Ex &amp;lt;title&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt; &amp;lt;form&amp;gt;&lt;br /&gt;&amp;lt;input type="button" value="Submit" onClick="chksubmit();"&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;3. &lt;b&gt; Hide button &lt;/b&gt;&lt;br /&gt; &lt;br /&gt; in this section simply define one Div and in javascript hide or show that div section , so when user click on submit that div(consider loding images) will appear on Submit button and user will not able to view that submit button.like that way also you can stop user to clicking more than ones time.&lt;br /&gt;&lt;br /&gt;hope you like my tricks &lt;br /&gt;any query plz let me know?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-6948256392398445023?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/6948256392398445023/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/06/prevent-multiple-form-submit-at-client_19.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/6948256392398445023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/6948256392398445023'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/06/prevent-multiple-form-submit-at-client_19.html' title='prevent multiple form submit at client side'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-3945000178296809677</id><published>2009-05-16T06:13:00.000+01:00</published><updated>2009-06-30T11:23:01.935+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp'/><title type='text'>how to compress files using asp</title><content type='html'>how to compress files using asp&lt;br /&gt;&lt;br /&gt;most of the time we require to compress file and save it to perticular localtion , or you can&lt;br /&gt;use the for any purpose as u want .&lt;br /&gt;&lt;br /&gt;for this we requires Server supporting WScript.Shell - most hosts won't allow this.&lt;br /&gt;&lt;br /&gt;here u can get the download link , here u can specify either relative path or absolute path&lt;br /&gt;&lt;br /&gt;before that please download this file, &lt;a href="http://www.wright-systems.com/pkzip.exe"&gt;click here&lt;/a&gt; to download&lt;br /&gt;&lt;br /&gt;-zipfile.asp&lt;br /&gt;&lt;pre&gt;&lt; % &lt;/pre&gt;&lt;br /&gt;'---------------------------------------------------------&lt;br /&gt;'CreateZipFile: function to create zip file at perticular location&lt;br /&gt;'ZipPath - full path for the zip file, including the zip file name.&lt;br /&gt;'arrFilesPath - array of the files to be zipped, &lt;br /&gt;  e.g. Array("C:\*.exe", "C:\foldername\*.*")&lt;br /&gt;'NOTE: this code requires ZIP.EXE utility in the same location&lt;br /&gt;' as this file.&lt;br /&gt;'---------------------------------------------------------&lt;br /&gt;Sub CreateZipFile(ZipPath, arrFilesPath)&lt;br /&gt; Const PKZIP_FILE_NAME="zip.exe"&lt;br /&gt; Dim strCommand, objShell, objFSO&lt;br /&gt; Dim x&lt;br /&gt;&lt;br /&gt;'first check zip.exe file is exists:&lt;br /&gt; Set objFSO=Server.CreateObject("Scripting.FileSystemObject")&lt;br /&gt; If Not(objFSO.FileExists(Server.MapPath(ZIP_FILE_NAME) )) Then&lt;br /&gt; Set objFSO=Nothing&lt;br /&gt; Err.Raise 20000, "Zip File Creator", "zip utility not found:  "&amp;Server.MapPath(ZIP_FILE_NAME)&lt;br /&gt; End If&lt;br /&gt;&lt;br /&gt; 'delete current file:&lt;br /&gt; If objFSO.FileExists(ZipPath) Then&lt;br /&gt;  objFSO.DeleteFile(ZipPath)&lt;br /&gt; End If&lt;br /&gt; Set objFSO=Nothing&lt;br /&gt; &lt;br /&gt; 'batch command:&lt;br /&gt;&lt;br /&gt; strCommand=Server.MapPath(ZIP_FILE_NAME)&amp;" -add "&amp;ZipPath&amp;" "&lt;br /&gt; For x=0 To UBound(arrFilesPath)&lt;br /&gt;  strCommand=strCommand&amp;arrFilesPath(x)&lt;br /&gt;  If x &lt; UBound(arrFilesPath) Then strCommand=strCommand&amp;" "&lt;br /&gt; Next&lt;br /&gt;&lt;br /&gt; 'execute:&lt;br /&gt; Set objShell=Server.CreateObject("WScript.Shell")&lt;br /&gt; objShell.Run strCommand, 0, True 'wait!&lt;br /&gt; &lt;br /&gt; 'done.&lt;br /&gt; Set objShell=Nothing&lt;br /&gt; End Sub&lt;br /&gt;%&gt;&lt;br /&gt;&lt;br /&gt;now u can call your CreateZipFile() function &lt;br /&gt;-checkZipFile.asp&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt; % &lt;/pre&gt;&lt;br /&gt;Call checkZipFile()&lt;br /&gt;&lt;br /&gt;Sub checkZipFile()&lt;br /&gt; 'create zip and give link:&lt;br /&gt; Call CreateZipFile(Server.MapPath("Testzip.zip"), Array(Server.MapPath("images")&amp;"\*.*"))&lt;br /&gt; Response.Write("&lt;a href=""Testzip.zip""&gt;click here download zip&lt;/a&gt;")&lt;br /&gt;End Sub&lt;br /&gt;%&gt;&lt;br /&gt;here u can get the download link , here u can specify either relative path or absoutate path&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-3945000178296809677?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/3945000178296809677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/05/how-to-compress-files-using-asp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/3945000178296809677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/3945000178296809677'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/05/how-to-compress-files-using-asp.html' title='how to compress files using asp'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4490387103798985456.post-6117549330971015052</id><published>2009-05-16T06:00:00.000+01:00</published><updated>2009-06-30T11:26:15.797+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Asp'/><title type='text'>how to display records from an excel file</title><content type='html'>hi this is my first blog in this blogspot ,  hope it may help you ..&lt;br /&gt; &lt;br /&gt;i have seen most of the time software people require to display records from an Microsoft Excel in an ASP. We could use  SQL command while retreving data from an excel sheet. for the we know how to connect with sql&lt;br /&gt;&lt;br /&gt;here is the sql connection string :&lt;br /&gt;&lt;br /&gt;strConnection = "DBQ=" &amp;amp; Server.MapPath("nameofexcelfile.xls") &amp;amp; "; DRIVER={Microsoft Excel Driver (*.xls)};"&lt;br /&gt;&lt;br /&gt;We will use a specific driver to connect to Excel files.&lt;br /&gt;so for that we can use ODBC&lt;br /&gt;&lt;br /&gt;An Example :&lt;br /&gt;&lt;br /&gt;strConnection = "DBQ=" &amp;amp; Server.MapPath("nameofexcelfile.xls") &amp;amp; "; DRIVER={Microsoft Excel Driver (*.xls)};"&lt;br /&gt;&lt;br /&gt;Set conn = Server.CreateObject("ADODB.Connection")&lt;br /&gt;Set rss = Server.CreateObject("ADODB.Recordset")&lt;br /&gt;cn.open strConnection&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;sql="select * from tablename;"&lt;br /&gt;&lt;br /&gt;rss.Open sql, conn, adOpenStatic, adLockPessimistic&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;do while not rss.eof&lt;br /&gt;response.write rss("Fieldname")&lt;br /&gt;rss.movenext&lt;br /&gt;loop&lt;br /&gt;&lt;br /&gt;rss.close&lt;br /&gt;Set rss = nothing&lt;br /&gt;conn.close&lt;br /&gt;Set conn = nothing&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;and now u can access you excel content in you are asp coding&lt;br /&gt;&lt;br /&gt;thank you.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4490387103798985456-6117549330971015052?l=codingstuffsbykiran.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codingstuffsbykiran.blogspot.com/feeds/6117549330971015052/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/05/how-to-display-records-from-excel-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/6117549330971015052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4490387103798985456/posts/default/6117549330971015052'/><link rel='alternate' type='text/html' href='http://codingstuffsbykiran.blogspot.com/2009/05/how-to-display-records-from-excel-file.html' title='how to display records from an excel file'/><author><name>kiran</name><uri>http://www.blogger.com/profile/07095652523209578945</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_ivbMBZX_-HU/SyDFWpJt83I/AAAAAAAAAP4/4AJRb_DrUVU/S220/8617368.jpg'/></author><thr:total>0</thr:total></entry></feed>
