<?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-179766690664805914</id><updated>2011-11-14T13:10:42.432+05:30</updated><category term='Sorting'/><category term='Double'/><category term='OnRowCommand'/><category term='Export'/><category term='Comma Separated Values'/><category term='Readonly'/><category term='Pdf'/><category term='Print'/><category term='Path'/><category term='Connection'/><category term='Trigger'/><category term='PageIndexChanging'/><category term='AJAX'/><category term='Paging'/><category term='Improve Performance'/><category term='OnRowDeleting'/><category term='DataGrid'/><category term='String'/><category term='Bool'/><category term='Delete'/><category term='DataTable'/><category term='Interview Questions'/><category term='FileStream'/><category term='SelectedIndexChanged'/><category term='WebForm'/><category term='OnRowEditing'/><category term='Validators'/><category term='AJAX.NET'/><category term='ASP.NET'/><category term='Checkbox'/><category term='Text'/><category term='values'/><category term='Flash'/><category term='XmlSerializer'/><category term='Exception'/><category term='OnPageIndexChanging'/><category term='PostBack'/><category term='DataSet'/><category term='Convert'/><category term='Dictionary Objects'/><category term='Float'/><category term='TextBox'/><category term='ConnectionString'/><category term='Error in Program'/><category term='CompareValidator'/><category term='update'/><category term='Lists'/><category term='IsPostBack'/><category term='Literal'/><category term='LINQ'/><category term='Title'/><category term='CSS'/><category term='stored procedure'/><category term='Thread'/><category term='Javascript'/><category term='Hacks'/><category term='GridView'/><category term='Sql Server'/><category term='CustomValidator'/><category term='Windows Services'/><category term='XML'/><category term='code behind'/><category term='Alert'/><category term='PageIndex'/><category term='Objects'/><category term='User Defined Function'/><category term='Master Page'/><category term='C#'/><category term='Edit'/><category term='File Download'/><category term='Array'/><category term='Temporary Tables'/><category term='Database'/><category term='Embed'/><category term='HTML'/><category term='Dynamic'/><category term='server'/><category term='Authentication'/><category term='Row'/><category term='datetime'/><category term='AJAXpro'/><category term='RowIndex'/><category term='RowDeleting'/><category term='Ad Rotator'/><category term='Abbreviations'/><category term='Label'/><category term='Content Page'/><category term='DataTypes'/><category term='Windows Application'/><category term='SelectedRow'/><category term='Excel'/><title type='text'>Blog:DotNet runat="world" creator="Vaijayanta"</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>81</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-7715859404441106263</id><published>2009-04-28T17:05:00.003+05:30</published><updated>2009-04-28T17:09:09.138+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Objects'/><title type='text'>Difference between Mutable &amp; Immutable objects</title><content type='html'>&lt;p&gt;The difference between mutable and immutable objects is that, string buffer is a mutable string object, where as a string is a non-mutable object. Mutable basically means changeable any time.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;In object-oriented computer programming an immutable object basically is an object which cannot be customized after it is formed. This is opposition to a mutable object, which can be customized after is formed. A particular object can either be completely immutable or a certain attributes in that particular object may be acknowledged as immutable, like applying the const element data attribute in the C++ programming language.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;In certain cases, an article is thought to be immutable even while certain internally applied attributes modify but the object's state come into view as unchanging from and peripheral point of view.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="font-family:arial;"&gt;315 unique visitors&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-7715859404441106263?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/7715859404441106263/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=7715859404441106263' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/7715859404441106263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/7715859404441106263'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2009/04/difference-between-mutable-immutable.html' title='Difference between Mutable &amp; Immutable objects'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-7353752461530233704</id><published>2009-04-28T16:39:00.001+05:30</published><updated>2009-04-28T16:44:11.694+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Interview Questions'/><title type='text'>Some Interview Question Answers (Part 002)</title><content type='html'>&lt;p&gt;1. Which is one of the access modifiers in .NET?&lt;/p&gt;&lt;p&gt;Public, Protecte, Private, Internal&lt;/p&gt;&lt;p&gt;&lt;br /&gt;2. What does GAC stand for in .NET?&lt;/p&gt;&lt;p&gt;Global Assembly Cache&lt;/p&gt;&lt;p&gt;&lt;br /&gt;3. Which object contains its items in key/value pairs?&lt;/p&gt;&lt;p&gt;Sorted List and Hash Tables&lt;/p&gt;&lt;p&gt;&lt;br /&gt;4. Structures do not support inheritance, while Classes support it.&lt;/p&gt;&lt;p&gt;true&lt;/p&gt;&lt;p&gt;&lt;br /&gt;5. If AutoGenerateColumns property is set to True and custom column definitions are still provided, GridView will render both of them.&lt;/p&gt;&lt;p&gt;true&lt;/p&gt;&lt;p&gt;&lt;br /&gt;6. What is the property name of a GridView (or a DataGrid) that regulates the sorting?&lt;/p&gt;&lt;p&gt;AllowSorting = true&lt;/p&gt;&lt;p&gt;&lt;br /&gt;7. A single .NET dll can contain 1024 classes at most.&lt;/p&gt;&lt;p&gt;false&lt;/p&gt;&lt;p&gt;&lt;br /&gt;8. ADO.NET is entirely based on XML.&lt;/p&gt;&lt;p&gt;true&lt;/p&gt;&lt;p&gt;&lt;br /&gt;9. Which is one of the authentication types in .NET?&lt;/p&gt;&lt;p&gt;Passport Authentication&lt;/p&gt;&lt;p&gt;&lt;br /&gt;10. What is the extension of a Web User Control?&lt;/p&gt;&lt;p&gt;ascx&lt;/p&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="font-family:arial;"&gt;313 unique visitors&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-7353752461530233704?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/7353752461530233704/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=7353752461530233704' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/7353752461530233704'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/7353752461530233704'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2009/04/some-interview-question-answers-part_28.html' title='Some Interview Question Answers (Part 002)'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-9088464124554780013</id><published>2009-04-28T16:08:00.000+05:30</published><updated>2009-04-28T16:10:28.278+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Interview Questions'/><title type='text'>Some Interview Question Answers (Part 001)</title><content type='html'>&lt;p&gt;&lt;span&gt;1. What is the lifespan for the information stored in a ViewState?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;Exists for the life of the current page&lt;/span&gt;&lt;/p&gt;&lt;span&gt;&lt;p&gt;&lt;br /&gt;2. What section of a Web.Config is used to store a list of authorized users?&lt;/p&gt;&lt;p&gt;Authentication&lt;/p&gt;&lt;p&gt;&lt;br /&gt;3. Which object contains the user name in an ASP.NET form page?&lt;/p&gt;&lt;p&gt;Page.User.Identity&lt;/p&gt;&lt;p&gt;&lt;br /&gt;4. Which one is triggered first in an ASPX page cycle?&lt;/p&gt;&lt;p&gt;Init&lt;/p&gt;&lt;p&gt;&lt;br /&gt;5. What is the top .NET class that everything is derived from?&lt;/p&gt;&lt;p&gt;System.Object&lt;/p&gt;&lt;p&gt;&lt;br /&gt;6. Literal control always encloses its text value with SPAN tags.&lt;/p&gt;&lt;p&gt;false&lt;/p&gt;&lt;p&gt;&lt;br /&gt;7. Which one of the following statements is false?&lt;/p&gt;&lt;p&gt;Arrays can be changed in size at runtime without ReDim.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;8. ASP.NET still recognizes the global.asa file.&lt;/p&gt;&lt;p&gt;false&lt;/p&gt;&lt;p&gt;&lt;br /&gt;9. What is the default Session Timeout?&lt;/p&gt;&lt;p&gt;20 minutes&lt;/p&gt;&lt;p&gt;&lt;br /&gt;10. C# supports multiple inheritance by using classes.&lt;/p&gt;&lt;p&gt;false&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="font-family:arial;"&gt;313 unique visitors&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt; &lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-9088464124554780013?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/9088464124554780013/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=9088464124554780013' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/9088464124554780013'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/9088464124554780013'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2009/04/some-interview-question-answers-part.html' title='Some Interview Question Answers (Part 001)'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-856560478720626139</id><published>2009-04-13T10:21:00.003+05:30</published><updated>2009-04-13T10:38:40.037+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><category scheme='http://www.blogger.com/atom/ns#' term='DataTypes'/><title type='text'>Differences between nvarchar and varchar in SQL Server</title><content type='html'>SQL Server provides both datatypes to store character information. For the most part the two datatypes are identical in how you would work with them within SQL Server or from an application.&lt;br /&gt;&lt;br /&gt;The difference is that &lt;strong&gt;&lt;em&gt;nvarchar&lt;/em&gt;&lt;/strong&gt; is used to store unicode data, which is used to store multilingual data in your database tables. Other languages have an extended set of character codes that need to be saved and this datatype allows for this extension. If your database will not be storing multilingual data you should use the &lt;strong&gt;&lt;em&gt;varchar&lt;/em&gt;&lt;/strong&gt; datatype instead. The reason for this is that nvarchar takes twice as much space as varchar, this is because of the need to store the extended character codes for other languages.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="font-family:arial;"&gt;271 unique visitors&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-856560478720626139?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/856560478720626139/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=856560478720626139' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/856560478720626139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/856560478720626139'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2009/04/differences-between-nvarchar-and.html' title='Differences between nvarchar and varchar in SQL Server'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-498375957731784301</id><published>2009-04-06T12:22:00.001+05:30</published><updated>2009-04-06T12:24:19.245+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hacks'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>Cross-Site Scripting &amp; Remediation Action</title><content type='html'>&lt;strong&gt;&lt;em&gt;Cross-Site Scripting&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;Cross-site scripting is a term used to describe problems which arise when maliciously crafted user data causes a web application to redirect an unsuspecting web browser to an undesired site. It was possible to send strings with special HTML characters ( &lt; &gt; " ' ) to your web application, and see them rendered in the response. Since these characters were not encoded by the web application, it may be possible to inject HTML scripting code into the rendered page. The injections can occur in your HTML body, Title, Scripting, or even commented out portions of the document. Note: Due to the potential negative impact on this web server's resources that could result from attacking a large number of cross-site scripting attack vectors, TrustKeeper abandons this test after it has found at least three instances where user input is not being properly sanitized. Therefore, it is possible that the reported findings associated with this vulnerability are only a subset of all possible attack vectors.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Remediation Action&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;This is a generic warning based on a test that indicates that your web application may not validate user-provided input, such as that provided by a form. Review your web application to ensure that user data is checked on the server side of the application (NOT in the web browser) for proper length and character content. It is recommended that a white-list of acceptable characters be used, with all other characters being HTML encoded prior to being sent in response to the client. Review the "Cross-Site Scripting", "Data Validation", and "Review Code for Cross-site scripting" pages on OWASP.org (see the reference links in this finding).&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;256 unique visitors&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-498375957731784301?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/498375957731784301/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=498375957731784301' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/498375957731784301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/498375957731784301'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2009/04/cross-site-scripting-remediation-action.html' title='Cross-Site Scripting &amp; Remediation Action'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-1073633063932738203</id><published>2009-04-06T11:25:00.004+05:30</published><updated>2009-04-06T11:30:01.564+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dynamic'/><category scheme='http://www.blogger.com/atom/ns#' term='Title'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>C# Code to Dynamically Change Title of a Page</title><content type='html'>&lt;p&gt;C# Code to Dynamically Change Title of a Page: -&lt;/p&gt;&lt;p&gt;&lt;br /&gt;[title]My Website - [%=Request.QueryString["Mode"]%] form[/title]&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;* Replace the [ by &lt;&gt;&lt;/p&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="font-family:arial;font-size:85%;"&gt;256 unique visitors&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-1073633063932738203?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/1073633063932738203/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=1073633063932738203' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/1073633063932738203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/1073633063932738203'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2009/04/c-code-to-dynamically-change-title-of.html' title='C# Code to Dynamically Change Title of a Page'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-6822912920490839676</id><published>2009-03-21T13:05:00.003+05:30</published><updated>2009-03-21T13:06:42.360+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='XmlSerializer'/><category scheme='http://www.blogger.com/atom/ns#' term='XML'/><title type='text'>Website - Great Site for Learning Serialization to XML - XmlSerializer</title><content type='html'>&lt;a href="http://www.switchonthecode.com/tutorials/csharp-tutorial-xml-serialization"&gt;http://www.switchonthecode.com/tutorials/csharp-tutorial-xml-serialization&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="font-family:arial;"&gt;236 unique visitors&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-6822912920490839676?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/6822912920490839676/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=6822912920490839676' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/6822912920490839676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/6822912920490839676'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2009/03/website-great-site-for-learning.html' title='Website - Great Site for Learning Serialization to XML - XmlSerializer'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-8937232328996147800</id><published>2009-03-21T10:17:00.002+05:30</published><updated>2009-03-21T12:25:51.520+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Lists'/><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='Sorting'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='LINQ'/><title type='text'>Website - Sorting of String by Array / LINQ / Lists</title><content type='html'>&lt;a href="http://dotnetperls.com/Content/Sorting-String-Array.aspx"&gt;http://dotnetperls.com/Content/Sorting-String-Array.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="font-family:arial;"&gt;236 unique visitors&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-8937232328996147800?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/8937232328996147800/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=8937232328996147800' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/8937232328996147800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/8937232328996147800'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2009/03/website-sorting-of-string-by-array-linq.html' title='Website - Sorting of String by Array / LINQ / Lists'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-4331670349922085023</id><published>2009-03-21T10:07:00.003+05:30</published><updated>2009-03-21T10:10:50.752+05:30</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'>A different way to insert Data into a Gridview from array</title><content type='html'>strProjListFinal = strAERProjList.Trim() + ";" + strIAProjList.Trim();&lt;br /&gt;string[] strs = strProjListFinal.Split(';');&lt;br /&gt;ddlProjectName.Items.Clear();&lt;br /&gt;foreach (string s in strs)&lt;br /&gt;{&lt;br /&gt;ddlProjectName.Items.Add(s.Trim());&lt;br /&gt;}&lt;br /&gt;ddlProjectName.Items.Insert(0, new ListItem("All Projects", "-1"));&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="font-family:arial;"&gt;236 unique visitors&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-4331670349922085023?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/4331670349922085023/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=4331670349922085023' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4331670349922085023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4331670349922085023'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2009/03/different-way-to-insert-data-into.html' title='A different way to insert Data into a Gridview from array'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-5090649420906365236</id><published>2009-03-20T15:34:00.002+05:30</published><updated>2009-03-20T15:38:37.832+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><category scheme='http://www.blogger.com/atom/ns#' term='datetime'/><title type='text'>Website to get conversion techniques of DATETIME in sqlserver</title><content type='html'>&lt;p&gt;To understand difference between&lt;/p&gt;&lt;p&gt;CONVERT(VARCHAR(20),CONVERT(DATETIME,ExecutionDate),101)  is MMDDYYYY&lt;/p&gt;&lt;p&gt;and&lt;/p&gt;&lt;p&gt;CONVERT(VARCHAR(20),CONVERT(DATETIME,ExecutionDate),103) is DDMMYYYY&lt;/p&gt;&lt;p&gt;The website is: -&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.sql-server-helper.com/tips/date-formats.aspx"&gt;http://www.sql-server-helper.com/tips/date-formats.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="font-family:arial;"&gt;234 unique visitors&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-5090649420906365236?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/5090649420906365236/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=5090649420906365236' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/5090649420906365236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/5090649420906365236'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2009/03/website-to-get-conversion-techniques-of.html' title='Website to get conversion techniques of DATETIME in sqlserver'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-2350338223582602827</id><published>2009-03-20T15:30:00.002+05:30</published><updated>2009-03-20T15:32:36.924+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><category scheme='http://www.blogger.com/atom/ns#' term='Temporary Tables'/><title type='text'>SQL Server - Create Temporary Tables &amp; Insert into Temporary Table</title><content type='html'>&lt;p&gt;DECLARE @tbl table&lt;br /&gt;(&lt;br /&gt;ID int identity,&lt;br /&gt;ProjName varchar(100)&lt;br /&gt;)&lt;br /&gt;INSERT into @tbl(ProjName)&lt;br /&gt;SELECT * from dbo.SemisvToString(@IAAudioEyeProjectNames)&lt;/p&gt;&lt;p&gt;also&lt;/p&gt;&lt;p&gt;&lt;br /&gt;CREATE TABLE #AERTTV2TempReportTable&lt;br /&gt;(&lt;br /&gt;ProjectName varchar(200),&lt;br /&gt;TaskName varchar(400), --'CHANGED THIS 200 to 400 '&lt;br /&gt;HoursSpent decimal(18,2),&lt;br /&gt;ExecutionDate varchar(20),&lt;br /&gt;UserName varchar(200)&lt;br /&gt;)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;TRUNCATE TABLE #AERTTV2TempReportTable&lt;/p&gt;&lt;p&gt;&lt;br /&gt;INSERT INTO #AERTTV2TempReportTable(ProjectName, TaskName, HoursSpent, ExecutionDate, UserName)&lt;br /&gt;SELECT ProjectName, TaskName, HoursSpent, CONVERT(VARCHAR(20),ExecutionDate,101) AS ExecutionDate, UserName&lt;br /&gt;FROM AudioEyeReporting.dbo.TempReportTable&lt;br /&gt;WHERE IsDeleted = 0 AND ExecutionDate BETWEEN @StartDate AND @EndDate&lt;br /&gt;UNION ALL&lt;br /&gt;SELECT ProjectName, TaskName, HoursSpent, CONVERT(VARCHAR(20),CONVERT(DATETIME,ExecutionDate),101) AS ExecutionDate, UserName&lt;br /&gt;FROM TimeTrackerV2.dbo.TempReportTable&lt;br /&gt;WHERE ProjectName IN (SELECT ProjName FROM @tbl) AND ExecutionDate BETWEEN @StartDate AND @EndDate &lt;/p&gt;&lt;p&gt;&lt;br /&gt;SELECT * FROM #AERTTV2TempReportTable &lt;/p&gt;&lt;p&gt;&lt;br /&gt;SELECT SUM(HoursSpent)&lt;br /&gt;FROM #AERTTV2TempReportTable&lt;br /&gt;DROP TABLE #AERTTV2TempReportTable &lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="font-family:arial;"&gt;234 unique visitors&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-2350338223582602827?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/2350338223582602827/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=2350338223582602827' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/2350338223582602827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/2350338223582602827'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2009/03/sql-server-create-temporary-tables.html' title='SQL Server - Create Temporary Tables &amp; Insert into Temporary Table'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-6445514490624968259</id><published>2009-03-20T14:42:00.002+05:30</published><updated>2009-03-20T14:47:33.022+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><category scheme='http://www.blogger.com/atom/ns#' term='Comma Separated Values'/><title type='text'>SQL Server - Function to Get individual values from Comma Separated Values (CSVs)</title><content type='html'>&lt;p&gt;1. CSV - String&lt;/p&gt;&lt;p&gt;CREATE FUNCTION[dbo].[CsvToString] ( @Array VARCHAR(1000))&lt;br /&gt;RETURNS @StrTable TABLE&lt;br /&gt;(StrValue VARCHAR(1000))&lt;br /&gt;AS&lt;br /&gt;BEGIN&lt;br /&gt;DECLARE @separator CHAR(1)&lt;br /&gt;SET @separator = ','&lt;br /&gt;DECLARE @separator_position INT&lt;br /&gt;DECLARE @array_value VARCHAR(1000)&lt;br /&gt;SET @array = @array + ','&lt;br /&gt;WHILE patindex('%,%' , @array) &lt;&gt; 0&lt;br /&gt;BEGIN&lt;br /&gt;SELECT @separator_position = patindex('%,%' , @array)&lt;br /&gt;SELECT @array_value = left(@array, @separator_position - 1)&lt;br /&gt;INSERT @StrTable&lt;br /&gt;VALUES (Cast(@array_value as VARCHAR(1000)))&lt;br /&gt;SELECT @array = stuff(@array, 1, @separator_position, '')&lt;br /&gt;END&lt;br /&gt;RETURN&lt;br /&gt;END&lt;/p&gt;&lt;p&gt;2. CSV - Int&lt;/p&gt;&lt;p&gt;CREATE Function [dbo].[CsvToInt] ( @Array varchar(1000))&lt;br /&gt;returns @IntTable table&lt;br /&gt;(IntValue int)&lt;br /&gt;AS&lt;br /&gt;begin&lt;br /&gt;declare @separator char(1)&lt;br /&gt;set @separator = ','&lt;br /&gt;declare @separator_position int&lt;br /&gt;declare @array_value varchar(1000)&lt;br /&gt;set @array = @array + ','&lt;br /&gt;while patindex('%,%' , @array) &lt;&gt; 0&lt;br /&gt;begin&lt;br /&gt;select @separator_position = patindex('%,%' , @array)&lt;br /&gt;select @array_value = left(@array, @separator_position - 1)&lt;br /&gt;Insert @IntTable&lt;br /&gt;Values (Cast(@array_value as int))&lt;br /&gt;select @array = stuff(@array, 1, @separator_position, '')&lt;br /&gt;end&lt;br /&gt;return&lt;br /&gt;end&lt;/p&gt;3. SSV(Semicolon Separated Values) - Int&lt;br /&gt;&lt;br /&gt;ALTER FUNCTION[dbo].[SemisvToString] ( @Array VARCHAR(1000))&lt;br /&gt;RETURNS @StrTable TABLE&lt;br /&gt;(StrValue VARCHAR(1000))&lt;br /&gt;AS&lt;br /&gt;BEGIN&lt;br /&gt;DECLARE @separator CHAR(1)&lt;br /&gt;SET @separator = ';'&lt;br /&gt;DECLARE @separator_position INT&lt;br /&gt;DECLARE @array_value VARCHAR(1000)&lt;br /&gt;SET @array = @array + ';'&lt;br /&gt;WHILE patindex('%;%' , @array) &lt;&gt; 0&lt;br /&gt;BEGIN&lt;br /&gt;SELECT @separator_position = patindex('%;%' , @array)&lt;br /&gt;SELECT @array_value = left(@array, @separator_position - 1)&lt;br /&gt;INSERT @StrTable&lt;br /&gt;VALUES (Cast(@array_value as VARCHAR(1000)))&lt;br /&gt;SELECT @array = stuff(@array, 1, @separator_position, '')&lt;br /&gt;END&lt;br /&gt;RETURN&lt;br /&gt;END&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;&lt;font face="arial"&gt;234 unique visitors&lt;/font&gt;&lt;/em&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-6445514490624968259?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/6445514490624968259/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=6445514490624968259' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/6445514490624968259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/6445514490624968259'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2009/03/sql-server-function-to-get-individual.html' title='SQL Server - Function to Get individual values from Comma Separated Values (CSVs)'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-5280936690608641530</id><published>2009-02-27T15:48:00.001+05:30</published><updated>2009-02-27T15:53:10.014+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>Data does not show when updated windw is reopened</title><content type='html'>&lt;p&gt;Suppose I am opening a new window with window.open() and saving some changes in the window and closing the window. When I reopen the window it shows the previous values. (It display data which had appeared before the changes) after refreshing only I am getting recent data. I need new data only while opening the window.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;To solve this we do: -&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Response.Cache.SetCacheability(HttpCacheability.NoCache) will have to be put on onload()&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Javascript code to refresh the page called  window.refresh() will not work here.&lt;/p&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="font-size:85%;"&gt;212 unique visitors&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-5280936690608641530?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/5280936690608641530/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=5280936690608641530' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/5280936690608641530'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/5280936690608641530'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2009/02/data-does-not-show-when-updated-windw.html' title='Data does not show when updated windw is reopened'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-8339009510084003470</id><published>2009-02-24T15:50:00.001+05:30</published><updated>2009-02-24T15:51:56.909+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Embed'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Flash'/><title type='text'>Code to embed a flash file in a .NET application</title><content type='html'>&lt;div style="mso-element:para-border-div;border:inset 1.0pt;mso-border-alt:inset windowtext .75pt; padding:5.0pt 5.0pt 5.0pt 5.0pt"&gt;  &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: 14.25pt;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; border:none;mso-border-alt:inset windowtext .75pt;padding:0in;mso-padding-alt: 5.0pt 5.0pt 5.0pt 5.0pt"&gt;&lt;span style="font-family:Courier; mso-fareast-font-family:&amp;quot;Times New Roman&amp;quot;;mso-bidi-Courier New&amp;quot;; font-family:&amp;quot;;color:blue;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;{object width="250" height="400"&lt;br /&gt;&lt;/span&gt;&lt;span style="mso-spacerun:yes"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"&lt;br /&gt;&lt;/span&gt;&lt;span style="mso-spacerun:yes"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;codebase="http://fpdownload.macromedia.com/pub/&lt;br /&gt;&lt;/span&gt;&lt;span style="mso-spacerun:yes"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;shockwave/cabs/flash/swflash.cab#version=8,0,0,0"}&lt;br /&gt;{param name="movie" value="mp3player.swf" /}&lt;br /&gt;{embed src="mp3player.swf" width="250" height="400"&lt;br /&gt;&lt;/span&gt;&lt;span style="mso-spacerun:yes"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;type="application/x-shockwave-flash" pluginspage=&lt;br /&gt;&lt;/span&gt;&lt;span style="mso-spacerun:yes"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;"http://www.macromedia.com/go/getflashplayer" /}&lt;br /&gt;{/object}&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height: 14.25pt;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; border:none;mso-border-alt:inset windowtext .75pt;padding:0in;mso-padding-alt: 5.0pt 5.0pt 5.0pt 5.0pt"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS'; font-size: 13px; font-style: italic; font-weight: bold; line-height: 22px; "&gt;205 unique visitors&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-8339009510084003470?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/8339009510084003470/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=8339009510084003470' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/8339009510084003470'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/8339009510084003470'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2009/02/code-to-embed-flash-file-in-net.html' title='Code to embed a flash file in a .NET application'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-1267277946475700186</id><published>2009-02-24T11:23:00.002+05:30</published><updated>2009-02-24T11:45:21.500+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='code behind'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='Alert'/><title type='text'>Alert Message using Response.Write in Web through C# Code</title><content type='html'>&lt;div&gt;1) &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;Hardcoded Alert&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Response.Write("{script}alert("Hello");{/script}");&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2) &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;Variable Alert&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;string txtName = "Hello " + txtText.Text;&lt;/div&gt;&lt;div&gt;Response.Write("{script}alert('" + txtName + "');{/script}");&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="  font-style: italic; font-weight: bold; line-height: 22px; font-family:'Trebuchet MS';"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;205 unique visitors&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-1267277946475700186?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/1267277946475700186/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=1267277946475700186' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/1267277946475700186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/1267277946475700186'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2009/02/alert-message-using-responsewrite-in.html' title='Alert Message using Response.Write in Web through C# Code'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-7202628952647481459</id><published>2009-02-23T18:50:00.002+05:30</published><updated>2009-02-23T18:53:52.697+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='code behind'/><title type='text'>Required Field Validator does not fire in Firefox - Solution</title><content type='html'>&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Always write code under Page.IsValid scope if Required Field Validator &lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;does not fire in Firefox but fires in IE.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;try&lt;/div&gt;&lt;div&gt; {&lt;/div&gt;&lt;div&gt;       if (Page.IsValid)&lt;/div&gt;&lt;div&gt;     {&lt;/div&gt;&lt;div&gt;            // code&lt;/div&gt;&lt;div&gt;      }&lt;/div&gt;&lt;div&gt; }&lt;/div&gt;&lt;div&gt; catch (Exception ex)&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;       string msg = ex.Message;&lt;/div&gt;&lt;div&gt;}&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS'; font-size: 13px; font-style: italic; font-weight: bold; line-height: 22px; "&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS'; font-size: 13px; font-style: italic; font-weight: bold; line-height: 22px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS'; font-size: 13px; font-style: italic; font-weight: bold; line-height: 22px; "&gt;203 unique visitors&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-7202628952647481459?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/7202628952647481459/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=7202628952647481459' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/7202628952647481459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/7202628952647481459'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2009/02/required-field-validator-does-not-fire.html' title='Required Field Validator does not fire in Firefox - Solution'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-2405138826746021672</id><published>2009-02-17T10:23:00.001+05:30</published><updated>2009-02-17T10:26:01.733+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><category scheme='http://www.blogger.com/atom/ns#' term='Improve Performance'/><category scheme='http://www.blogger.com/atom/ns#' term='stored procedure'/><title type='text'>SET NOCOUNT ON; - Improve performance of stored procedure</title><content type='html'>&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;Benefit: -&lt;/span&gt;&lt;/span&gt; By Setting NOCOUNT as ON we improve the performance of the stored procedure&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;Problem: -&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;One of the biggest things that DBAs try to do on a daily basis is to ensure that their database systems run as fast as possible.  As more and more users access the databases and the databases continue to grow, performance slow downs are almost inevitable. Based on this, DBAs and developers should do everything they possibly can to keep performance related issues in mind early in the database lifecycle.  This is not always easy to do, because of the unknowns and the changes that occur over time, but there are some simple things that can be done and we will touch upon one of these in this tip.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;Solution: -&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Sometimes even the simplest things can make a difference.  One of these simple items that should be part of every stored procedure is SET NOCOUNT ON.  This one line of code, put at the top of a stored procedure turns off the messages that SQL Server sends back to the client after each T-SQL statement is executed.  This is performed for all SELECT, INSERT, UPDATE, and DELETE statements. Having this information is handy when you run a T-SQL statement in a query window, but when stored procedures are run there is no need for this information to be passed back to the client.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;By removing this extra overhead from the network it can greatly improve overall performance for your database and application.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If you still need to get the number of rows affected by the T-SQL statement that is executing you can still use the @@ROWCOUNT option.  By issuing a SET NOCOUNT ON this function (@@ROWCOUNT) still works and can still be used in your stored procedures to identify how many rows were affected by the statement.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Microsoft even realized the issue that this creates and has changed the stored procedure templates from SQL Server 2000 to SQL Server 2005.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here is the old template style available in SQL Server 2000 without the SET NOCOUNT ON.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Source: - &lt;a href="http://www.mssqltips.com/tip.asp?tip=1226"&gt;http://www.mssqltips.com/tip.asp?tip=1226&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="  font-style: italic; font-weight: bold; line-height: 22px; font-family:'Trebuchet MS';font-size:13px;"&gt;192 unique visitors&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-2405138826746021672?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/2405138826746021672/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=2405138826746021672' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/2405138826746021672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/2405138826746021672'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2009/02/set-nocount-on.html' title='SET NOCOUNT ON; - Improve performance of stored procedure'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-8627566571112478374</id><published>2009-02-13T11:11:00.002+05:30</published><updated>2009-02-13T11:16:10.313+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='TextBox'/><category scheme='http://www.blogger.com/atom/ns#' term='Error in Program'/><title type='text'>A potentially dangerous Request.Form value was detected from the client... (Solution - Solved)</title><content type='html'>When you come across an error saying "A potentially dangerous Request.Form value was detected from the client..." you can be very sure that you need to do 2 things to solve it.&lt;br /&gt;&lt;br /&gt;1) Set the aspx page set ValidateRequest="false" so that the page directive looks like this: - {%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddPressRelease.aspx.cs"&lt;br /&gt;   Inherits="AddPressRelease" ValidateRequest="false" %}&lt;br /&gt;&lt;br /&gt;2) While submitting the page inside the submit method html encode all textboxes like below: -&lt;br /&gt;&lt;br /&gt;objPressReleaseBO.Title = Server.HtmlEncode(txtTitle.Value);         &lt;br /&gt;objPressReleaseBO.Description = Server.HtmlEncode(txtDescription.Value);&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Your problem will be solved. :)&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS'; font-size: 13px; font-style: italic; font-weight: bold; line-height: 22px; "&gt;186 unique visitors&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-8627566571112478374?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/8627566571112478374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=8627566571112478374' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/8627566571112478374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/8627566571112478374'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2009/02/potentially-dangerous-requestform-value.html' title='A potentially dangerous Request.Form value was detected from the client... (Solution - Solved)'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-4254562020284856889</id><published>2009-02-04T11:51:00.001+05:30</published><updated>2009-02-04T11:53:16.161+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='TextBox'/><category scheme='http://www.blogger.com/atom/ns#' term='Readonly'/><title type='text'>Readonly Textbox - Error Solve - sans Javascript</title><content type='html'>&lt;div&gt;How to Solve: -&lt;/div&gt;&lt;div&gt;1) Error in getting the value of a read only textbox in asp.net.&lt;/div&gt;&lt;div&gt;2) Create a readonly textbox without using Javascript.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1) When u add a text box as: -&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;{asp:TextBox ID="txtDate" runat="server" ValidationGroup="Submit" ReadOnly="true" Text="" TabIndex="2" /}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2) and try to get the value of the textbox in code behind as: -&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;objPressReleaseBO.Date = Convert.ToDateTime(txtDate.Text);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;then&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Error Occurs: String was not recognized as a valid DateTime.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;as&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;the value Text of the text box cannot be read by the asp.net control&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Solution:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1) take an html textbox {input runat="server" type="text" name="txtDate" id="txtDate" value="txtDate" tabindex="2" readonly /}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2) capture the value of the textbox from code behind as&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;objPressReleaseBO.Date = Convert.ToDateTime(txtDate.Value);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Solved: - &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1) Then the text box becomes read only&lt;/div&gt;&lt;div&gt;2) Also the value of the textbox is possible to capture from code behind.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS'; font-style: italic; font-weight: bold; line-height: 22px; "&gt;179 unique visitors&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-4254562020284856889?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/4254562020284856889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=4254562020284856889' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4254562020284856889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4254562020284856889'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2009/02/readonly-textbox-error-solve-sans.html' title='Readonly Textbox - Error Solve - sans Javascript'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-3709742525468216414</id><published>2009-02-03T13:51:00.001+05:30</published><updated>2009-02-03T13:52:59.882+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Label'/><category scheme='http://www.blogger.com/atom/ns#' term='Literal'/><title type='text'>Difference between a Label and a Literal in ASP.NET</title><content type='html'>&lt;div&gt;1. Label is heavy weight so increases size of page while literal is light weight, so decreases size of page.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2. Label supports cssclass property but literal does not support cssclass property.&lt;/div&gt;&lt;div&gt;3. Label cannot be used to insert html code directly but literal can be used to insert html code directly so dynamically html tags can be created.&lt;/div&gt;&lt;div&gt;4. When AssociatedControl property is set, Label produces an html label as its output but when AssociatedProperty is omittedm then Label text will be wrapped in a span.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For more help refer: http://forums.asp.net/t/710459.aspx&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS'; font-style: italic; font-weight: bold; line-height: 22px; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;177 unique visitors&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-3709742525468216414?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/3709742525468216414/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=3709742525468216414' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/3709742525468216414'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/3709742525468216414'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2009/02/difference-between-label-and-literal-in.html' title='Difference between a Label and a Literal in ASP.NET'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-1697184265194713020</id><published>2009-02-03T12:45:00.003+05:30</published><updated>2009-02-03T12:57:37.972+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ad Rotator'/><title type='text'>Ad Rotator Simplest Example</title><content type='html'>&lt;div&gt;1. Add two images called Microsoft.jpg, Google.jpg in images folder.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2. Create an XML page advt.xml by replacing { with &lt;&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;{?xml version="1.0" encoding="utf-8" ?}&lt;/div&gt;&lt;div&gt;{Advertisements}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;  {Ad}&lt;/div&gt;&lt;div&gt;    {ImageUrl}~/images/Google.jpg{/ImageUrl}&lt;/div&gt;&lt;div&gt;    {NavigateUrl}http://www.google.com{/NavigateUrl}&lt;/div&gt;&lt;div&gt;    {AlternateText}Google{/AlternateText}&lt;/div&gt;&lt;div&gt;    {Impressions}1{/Impressions}&lt;/div&gt;&lt;div&gt;    {Keyword}Google{/Keyword}&lt;/div&gt;&lt;div&gt;  {/Ad}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;  {Ad}&lt;/div&gt;&lt;div&gt;    {ImageUrl}~/images/Microsoft.jpg{/ImageUrl}&lt;/div&gt;&lt;div&gt;    {NavigateUrl}http://www.microsoft.com{/NavigateUrl}&lt;/div&gt;&lt;div&gt;    {AlternateText}Microsoft{/AlternateText}&lt;/div&gt;&lt;div&gt;    {Impressions}2{/Impressions}&lt;/div&gt;&lt;div&gt;    {Keyword}Microsoft{/Keyword}&lt;/div&gt;&lt;div&gt;  {/Ad}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;{/Advertisements}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;3. Create a Page called AdRotatorPage.aspx&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;{%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdRotatorPage.aspx.cs" Inherits="AdRotatorPage" %}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;{!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;{html xmlns="http://www.w3.org/1999/xhtml" }&lt;/div&gt;&lt;div&gt;{head runat="server"}&lt;/div&gt;&lt;div&gt;    {title}Ad Rotator Example{/title}&lt;/div&gt;&lt;div&gt;{/head}&lt;/div&gt;&lt;div&gt;{body}&lt;/div&gt;&lt;div&gt;    {form id="form1" runat="server"}&lt;/div&gt;&lt;div&gt;    {div}&lt;/div&gt;&lt;div&gt;        {asp:AdRotator ID="adrDAL" runat="server" Target="_self" AdvertisementFile="~/advt.xml"&lt;/div&gt;&lt;div&gt;        Height="350px" Width="500px" /}&lt;/div&gt;&lt;div&gt;    {/div}{br /}&lt;/div&gt;&lt;div&gt;    {div}&lt;/div&gt;&lt;div&gt;        {asp:AdRotator ID="adrDAL2" runat="server" Target="_self" AdvertisementFile="~/advt.xml"&lt;/div&gt;&lt;div&gt;        Height="350px" Width="500px" OnAdCreated="adrDAL2_AdCreated" /}&lt;/div&gt;&lt;div&gt;    {/div}&lt;/div&gt;&lt;div&gt;    {/form}&lt;/div&gt;&lt;div&gt;{/body}&lt;/div&gt;&lt;div&gt;{/html}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;4. Create a Page called AdRotatorPage.aspx.cs&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;using System;&lt;/div&gt;&lt;div&gt;using System.Data;&lt;/div&gt;&lt;div&gt;using System.Configuration;&lt;/div&gt;&lt;div&gt;using System.Collections;&lt;/div&gt;&lt;div&gt;using System.Web;&lt;/div&gt;&lt;div&gt;using System.Web.Security;&lt;/div&gt;&lt;div&gt;using System.Web.UI;&lt;/div&gt;&lt;div&gt;using System.Web.UI.WebControls;&lt;/div&gt;&lt;div&gt;using System.Web.UI.WebControls.WebParts;&lt;/div&gt;&lt;div&gt;using System.Web.UI.HtmlControls;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;public partial class AdRotatorPage : System.Web.UI.Page&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;    protected void Page_Load(object sender, EventArgs e)&lt;/div&gt;&lt;div&gt;    {&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    }&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    protected void adrDAL2_AdCreated(object sender, AdCreatedEventArgs e)&lt;/div&gt;&lt;div&gt;    {&lt;/div&gt;&lt;div&gt;        e.NavigateUrl = "http://vaichatt.blogspot.com";&lt;/div&gt;&lt;div&gt;        //e.ImageUrl = "~/images/Yahoo.jpg"; // if this image is present there in images folder&lt;/div&gt;&lt;div&gt;    }&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.wwwcoder.com/Default.aspx?tabid=68&amp;amp;site=5868&amp;amp;parentid=261&amp;amp;type=art"&gt;http://www.wwwcoder.com/Default.aspx?tabid=68&amp;amp;site=5868&amp;amp;parentid=261&amp;amp;type=art&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" font-style: italic; font-weight: bold; line-height: 22px; font-family:'Trebuchet MS';"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;177 unique visitors&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-1697184265194713020?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/1697184265194713020/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=1697184265194713020' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/1697184265194713020'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/1697184265194713020'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2009/02/ad-rotator-simplest-example.html' title='Ad Rotator Simplest Example'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-7437416941423941749</id><published>2008-12-19T12:29:00.000+05:30</published><updated>2008-12-19T12:30:47.803+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Array'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='String'/><title type='text'>Split a string separated by ";" and place in an array</title><content type='html'>&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;How to split a string like this ";1;2;3;4;5;6" and put in on an array?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;string mstrStream = mstrSelectedRowsStream.Remove(0,1); // to remove the semicolon on the extreme left&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;char chSep = ';';&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;string[] arrStr = mstrStream.Split(chSep);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;How to get each number back from that array?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;for (int i = 0; i &lt;&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;     string s = arrStr[i].ToString();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS'; font-style: italic; font-weight: bold; line-height: 22px; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;145 unique visitors&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-7437416941423941749?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/7437416941423941749/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=7437416941423941749' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/7437416941423941749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/7437416941423941749'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/12/split-string-separated-by-and-place-in.html' title='Split a string separated by &quot;;&quot; and place in an array'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-1376308969150755337</id><published>2008-12-12T12:28:00.005+05:30</published><updated>2008-12-17T12:51:36.947+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='Path'/><title type='text'>Fundas on Server Paths</title><content type='html'>&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;1. Server.MapPath(strPath)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;2. (asp:Image ImageUrl=“~/images/pictures.gif runat=“server“/)&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;3. &lt;/span&gt;&lt;span class="Apple-style-span"  style="color: rgb(51, 51, 51);  font-family:arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;TextWriter tw = new StreamWriter(~"\\servername&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;wbr style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;\test.txt"&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;wbr style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color: rgb(51, 51, 51);  font-family:arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;tw.WriteLine("test1");&lt;br /&gt;tw.Close();&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color: rgb(51, 51, 51); font-family:arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color: rgb(51, 51, 51); font-family:arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;4. &lt;/span&gt;&lt;span class="Apple-style-span"  style="color: rgb(0, 0, 0);  white-space: pre-wrap; font-family:Verdana;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;@"C:\test\source\folder3.cs")&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color: rgb(51, 51, 51); font-family:arial;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color: rgb(51, 51, 51); font-family:arial;"&gt;&lt;span class="Apple-style-span"  style="color: rgb(0, 0, 0);   font-style: italic; font-weight: bold; line-height: 22px; font-family:'Trebuchet MS';"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;143 unique visitors&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-1376308969150755337?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/1376308969150755337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=1376308969150755337' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/1376308969150755337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/1376308969150755337'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/12/fundas-on-server-paths.html' title='Fundas on Server Paths'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-8742320650826154490</id><published>2008-12-12T12:18:00.003+05:30</published><updated>2008-12-12T12:22:00.117+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='XML'/><category scheme='http://www.blogger.com/atom/ns#' term='DataSet'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='Path'/><title type='text'>How to get a Path &amp; Xml file values into a Dataset</title><content type='html'>&lt;div&gt;string dtxmlFilePath = "datatypes.xml";&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;FileStream dtFileStream = new FileStream(Server.MapPath(dtxmlFilePath), FileMode.Open, FileAccess.Read);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;StreamReader dtXmlStream = new StreamReader(dtFileStream);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;ds.Tables[0].ReadXml(dtXmlStream);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;dtFileStream.Close();&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS'; font-size: 13px; font-style: italic; font-weight: bold; line-height: 22px; "&gt;143 unique visitors&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-8742320650826154490?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/8742320650826154490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=8742320650826154490' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/8742320650826154490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/8742320650826154490'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/12/how-to-get-path-xml-file-values-into.html' title='How to get a Path &amp; Xml file values into a Dataset'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-2357195360680490156</id><published>2008-12-12T12:11:00.002+05:30</published><updated>2008-12-17T13:08:33.585+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Convert'/><category scheme='http://www.blogger.com/atom/ns#' term='String'/><title type='text'>Convert a string to Proper Case or Sentence Case</title><content type='html'>&lt;span class="Apple-style-span"  style=" ;font-family:Verdana;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;using System.Globalization;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" ;font-family:Verdana;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;CultureInfo cc = new CultureInfo("");&lt;br /&gt;TextInfo ti = cc.TextInfo;&lt;br /&gt;ti.ToTitleCase(mlstSelectedColumn&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;.&lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Column&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;wbr&gt;DataTypeCSharp)&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:Verdana;"&gt;&lt;span class="Apple-style-span"  style="  font-style: italic; font-weight: bold; line-height: 22px; font-family:'Trebuchet MS';"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;143 unique visitors&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-2357195360680490156?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/2357195360680490156/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=2357195360680490156' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/2357195360680490156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/2357195360680490156'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/12/convert-string-to-proper-case-or.html' title='Convert a string to Proper Case or Sentence Case'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-5644163283446008574</id><published>2008-11-26T11:56:00.002+05:30</published><updated>2008-11-26T12:01:33.197+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Error in Program'/><category scheme='http://www.blogger.com/atom/ns#' term='Exception'/><title type='text'>Sys.WebForms.PageRequestManagerServerErrorException:</title><content type='html'>Problem: -&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt; Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Solution: -&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;In the @Page tag set &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;ValidateRequest="false"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;When does it occur?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;This normally occurs when there is &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;1) a multiline textbox in the page&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;2) an update panel in the page inside which the multiline textbox resides&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS'; font-size: 13px; font-style: italic; font-weight: bold; line-height: 22px; "&gt;121 unique visitors&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-5644163283446008574?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/5644163283446008574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=5644163283446008574' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/5644163283446008574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/5644163283446008574'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/11/syswebformspagerequestmanagerservererro.html' title='Sys.WebForms.PageRequestManagerServerErrorException:'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-6903185491620693676</id><published>2008-11-07T20:49:00.002+05:30</published><updated>2009-02-03T12:53:56.842+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dictionary Objects'/><title type='text'>Dictionary Objects Sites</title><content type='html'>&lt;a href="http://dotnetref.blogspot.com/2007/12/iterating-through-dictionary-objects.html"&gt;http://dotnetref.blogspot.com/2007/12/iterating-through-dictionary-objects.html&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.kirupa.com/net/dictionary_hashtable2.htm"&gt;http://www.kirupa.com/net/dictionary_hashtable2.htm&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://en.csharp-online.net/CSharp_Generics_Recipes%E2%80%94Using_foreach_with_Generic_Dictionary_Types"&gt;http://en.csharp-online.net/CSharp_Generics_Recipes—Using_foreach_with_Generic_Dictionary_Types&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="  font-style: italic; font-weight: bold; line-height: 22px; font-family:'Trebuchet MS';font-size:13px;"&gt;111 unique visitors&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-6903185491620693676?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/6903185491620693676/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=6903185491620693676' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/6903185491620693676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/6903185491620693676'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/11/dictionary-objects-sites.html' title='Dictionary Objects Sites'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-3232241383005259509</id><published>2008-11-05T18:39:00.003+05:30</published><updated>2008-11-07T20:51:33.347+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='XML'/><title type='text'>XML Learning</title><content type='html'>&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href="http://www.functionx.com/csharp/xml/Lesson02.htm"&gt;http://www.functionx.com/csharp/xml/Lesson02.htm&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS'; font-size: 13px; font-style: italic; font-weight: bold; line-height: 22px; "&gt;109 unique visitors&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-3232241383005259509?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/3232241383005259509/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=3232241383005259509' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/3232241383005259509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/3232241383005259509'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/11/xml-learning.html' title='XML Learning'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-4888010971201513237</id><published>2008-11-05T18:13:00.002+05:30</published><updated>2009-02-03T12:54:09.480+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='File Download'/><title type='text'>File-download-using-CSharp</title><content type='html'>&lt;a href="http://www.aspfree.com/c/a/Code-Examples/File-download-using-C/"&gt;http://www.aspfree.com/c/a/Code-Examples/File-download-using-C/&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=115"&gt;http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=115&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="  font-style: italic; font-weight: bold; line-height: 22px; font-family:'Trebuchet MS';font-size:13px;"&gt;109 unique visitors&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-4888010971201513237?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/4888010971201513237/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=4888010971201513237' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4888010971201513237'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4888010971201513237'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/11/file-download-using-csharp.html' title='File-download-using-CSharp'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-7617837488552799374</id><published>2008-11-05T17:13:00.001+05:30</published><updated>2008-11-05T17:14:39.873+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='FileStream'/><title type='text'>System.IO.FileStream Class - A good tutorial</title><content type='html'>&lt;div&gt;&lt;span class="Apple-style-span"   style="  font-weight: bold; font-family:'times new roman';font-size:19px;"&gt;System.IO.FileStream Class&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="  font-weight: bold;font-family:'times new roman';font-size:19px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="  font-weight: bold;font-family:'times new roman';font-size:19px;"&gt;A good tutorial on FileStream in C#&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href="http://www.gnu.org/software/dotgnu/pnetlib-doc/System/IO/FileStream.html"&gt;http://www.gnu.org/software/dotgnu/pnetlib-doc/System/IO/FileStream.html&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS'; font-size: 13px; font-style: italic; font-weight: bold; line-height: 22px; "&gt;106 unique visitors&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-7617837488552799374?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/7617837488552799374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=7617837488552799374' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/7617837488552799374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/7617837488552799374'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/11/systemiofilestream-class-good-tutorial.html' title='System.IO.FileStream Class - A good tutorial'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-7427021056731807430</id><published>2008-10-31T17:10:00.002+05:30</published><updated>2008-10-31T17:13:53.507+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='code behind'/><category scheme='http://www.blogger.com/atom/ns#' term='Paging'/><title type='text'>Paging Code Behind</title><content type='html'>&lt;div&gt;protected void gvColumnList_PageIndexChanging(object sender, GridViewPageEventArgs e)&lt;/div&gt;&lt;div&gt;    {        &lt;/div&gt;&lt;div&gt;        gvColumnList.PageIndex = e.NewPageIndex;&lt;/div&gt;&lt;div&gt;        gvColumnList.DataSource = ViewState["vsGridView"];&lt;/div&gt;&lt;div&gt;        gvColumnList.DataBind();                        &lt;/div&gt;&lt;div&gt;    }&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS'; font-size: 13px; font-style: italic; font-weight: bold; line-height: 22px; "&gt;106 unique visitors&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-7427021056731807430?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/7427021056731807430/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=7427021056731807430' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/7427021056731807430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/7427021056731807430'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/10/paging-code-behind.html' title='Paging Code Behind'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-290277909226213277</id><published>2008-10-27T16:31:00.003+05:30</published><updated>2008-10-27T16:34:04.946+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><category scheme='http://www.blogger.com/atom/ns#' term='stored procedure'/><title type='text'>All Databases and All Tables</title><content type='html'>&lt;div&gt;&lt;ul&gt;&lt;li&gt;Select All Databases from a Server (this is a system stored procedure)&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;sp_databases&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Select All Tables from a Particular Database&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;select name from sysobjects WHERE type = 'U'&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS'; font-size: 13px; font-style: italic; font-weight: bold; line-height: 22px; "&gt;106 unique visitors&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-290277909226213277?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/290277909226213277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=290277909226213277' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/290277909226213277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/290277909226213277'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/10/all-databases-and-all-tables.html' title='All Databases and All Tables'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-7499434011314277349</id><published>2008-09-10T13:44:00.001+05:30</published><updated>2008-09-10T13:47:33.531+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Master Page'/><category scheme='http://www.blogger.com/atom/ns#' term='Content Page'/><title type='text'>A Master Page &amp; A Content Page</title><content type='html'>A Master page defines the layout to be used by all pages based on the Master. It’s the overall parent that&lt;br /&gt;controls your layout, specifying how big your header will be on every page, where your navigation features&lt;br /&gt;will be placed, and the text to display in the footer on every page—a bit like a cookie cutter for&lt;br /&gt;each page. The Master page contains some of the content available to each page on the site, so standard&lt;br /&gt;copyright footer text can be defined here, along with positioning the main site logo at the top of the&lt;br /&gt;page. After the standard features of the Master are defined, you then add some placeholders—named&lt;br /&gt;regions on a page that define where content that varies from page to page will be positioned.&lt;br /&gt;&lt;br /&gt;A Content page is a page based on a Master, and is where you add the content for each page on a site that &lt;br /&gt;varies from page to page. The Content page contains text, HTML, and controls within &lt;asp:content&gt;&lt;br /&gt;tags. When the Content page is requested, its content is combined with a copy of the Master page, with&lt;br /&gt;the specific content defined in the Content page placed within the specified placeholder on the Master&lt;br /&gt;page. Then the whole package is delivered to the browser, as shown in Figure 2-1.&lt;/asp:content&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS'; font-size: 13px; font-style: italic; font-weight: bold; line-height: 22px; "&gt;86 unique visitors&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-7499434011314277349?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/7499434011314277349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=7499434011314277349' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/7499434011314277349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/7499434011314277349'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/09/master-page-content-page.html' title='A Master Page &amp; A Content Page'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-8245749001472297684</id><published>2008-09-08T19:23:00.000+05:30</published><updated>2008-09-08T19:24:21.930+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='AJAX'/><category scheme='http://www.blogger.com/atom/ns#' term='AJAX.NET'/><title type='text'>Some AJAX Sites</title><content type='html'>&lt;a href="http://en.wikipedia.org/wiki/XMLHttpRequest"&gt;http://en.wikipedia.org/wiki/XMLHttpRequest&lt;/a&gt;&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/AJAX"&gt;http://en.wikipedia.org/wiki/AJAX&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.ajaxpro.info/lesson/1/"&gt;http://www.ajaxpro.info/lesson/1/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://weblogs.asp.net/mschwarz/archive/2007/04/10/jquery-and-ajax-net-professional-ajaxpro.aspx"&gt;http://weblogs.asp.net/mschwarz/archive/2007/04/10/jquery-and-ajax-net-professional-ajaxpro.aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://malakablog.wordpress.com/2008/07/16/using-ajax-pro-step-by-step/"&gt;http://malakablog.wordpress.com/2008/07/16/using-ajax-pro-step-by-step/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://ajaxpro.info/Examples/Special/keypress.aspx"&gt;http://ajaxpro.info/Examples/Special/keypress.aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://weblogs.asp.net/mschwarz/default.aspx"&gt;http://weblogs.asp.net/mschwarz/default.aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2007/04/19/AjaxPro-Rocks_2100_.aspx"&gt;http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2007/04/19/AjaxPro-Rocks_2100_.aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.schwarz-interactive.de/quickguide.aspx"&gt;http://www.schwarz-interactive.de/quickguide.aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.schwarz-interactive.de/quickguide.aspx"&gt;http://www.schwarz-interactive.de/quickguide.aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://munich.schwarz-interactive.de/session.aspx"&gt;http://munich.schwarz-interactive.de/session.aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://munich.schwarz-interactive.de/autocomplete.aspx"&gt;http://munich.schwarz-interactive.de/autocomplete.aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://ajaxpro.info/Examples/Special/keypress.aspx"&gt;http://ajaxpro.info/Examples/Special/keypress.aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.schwarz-interactive.de/quickguide.aspx"&gt;http://www.schwarz-interactive.de/quickguide.aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://free-ebook-download-links-gw.blogspot.com/2008/06/introducing-microsoft-aspnet-ajax-pro.html"&gt;http://free-ebook-download-links-gw.blogspot.com/2008/06/introducing-microsoft-aspnet-ajax-pro.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://ajaxpro.schwarz-interactive.de/"&gt;http://ajaxpro.schwarz-interactive.de/&lt;/a&gt; (good)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://ajax.phpmagazine.net/2006/09/new_ajaxpro_java_edition.html"&gt;http://ajax.phpmagazine.net/2006/09/new_ajaxpro_java_edition.html&lt;/a&gt;&lt;br /&gt;D:\Vaijayanta-BACKUP\Back-Up-For-XP\VAIJAYANTA\IMPORTANT\Study Materials All\Study Materials 2007 August to December\Ajax\CSharpSample&lt;br /&gt;&lt;a href="http://tricks-for-new-bloggers.blogspot.com/"&gt;http://tricks-for-new-bloggers.blogspot.com&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.codeproject.com/KB/aspnet/DynamicControls.aspx"&gt;http://www.codeproject.com/KB/aspnet/DynamicControls.aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://extjs.com/forum/archive/index.php/t-2641.html"&gt;http://extjs.com/forum/archive/index.php/t-2641.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://extjs.com/forum/showthread.php?t=2641"&gt;http://extjs.com/forum/showthread.php?t=2641&lt;/a&gt;&lt;br /&gt;&lt;a href="http://69.10.233.10/KB/cpp/ASPNet_Ajax.aspx"&gt;http://69.10.233.10/KB/cpp/ASPNet_Ajax.aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://69.10.233.10/KB/cpp/ASPNet_Ajax.aspx?fid=421153&amp;amp;df=90&amp;amp;mpp=25&amp;amp;noise=3&amp;amp;sort=Position&amp;amp;view=Quick&amp;amp;select=2483447#xx2483447xx"&gt;http://69.10.233.10/KB/cpp/ASPNet_Ajax.aspx?fid=421153&amp;amp;df=90&amp;amp;mpp=25&amp;amp;noise=3&amp;amp;sort=Position&amp;amp;view=Quick&amp;amp;select=2483447#xx2483447xx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://w3schools.com/html/html_forms.asp"&gt;http://w3schools.com/html/html_forms.asp&lt;/a&gt;&lt;br /&gt;&lt;a href="http://news.hping.org/comp.lang.javascript.archive/17790.html"&gt;http://news.hping.org/comp.lang.javascript.archive/17790.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.ajaxlab.com/index.php?c=AjaxProNET"&gt;http://www.ajaxlab.com/index.php?c=AjaxProNET&lt;/a&gt;&lt;br /&gt;&lt;a href="http://munich.schwarz-interactive.de/default.aspx"&gt;http://munich.schwarz-interactive.de/default.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codeproject.com/KB/ajax/AjaxValidation.aspx"&gt;http://www.codeproject.com/KB/ajax/AjaxValidation.aspx&lt;/a&gt; (good)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.aspcode.net/AjaxNET-part-3.aspx"&gt;http://www.aspcode.net/AjaxNET-part-3.aspx&lt;/a&gt; (good)&lt;br /&gt;&lt;a href="http://www.codeproject.com/KB/ajax/AjaxValidation.aspx"&gt;http://www.codeproject.com/KB/ajax/AjaxValidation.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;81 unique visitors&lt;/em&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-8245749001472297684?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/8245749001472297684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=8245749001472297684' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/8245749001472297684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/8245749001472297684'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/09/some-ajax-sites.html' title='Some AJAX Sites'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-3408487464174819634</id><published>2008-09-08T13:26:00.000+05:30</published><updated>2008-09-08T13:28:11.241+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='AJAX'/><category scheme='http://www.blogger.com/atom/ns#' term='AJAX.NET'/><title type='text'>AJAX .NET Examples and Concepts</title><content type='html'>&lt;p&gt;This webpage has a lot of examples: -&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.asp.net/ajax/documentation/live/overview/UpdatePanelOverview.aspx"&gt;http://www.asp.net/ajax/documentation/live/overview/UpdatePanelOverview.aspx&lt;/a&gt;&lt;/p&gt;&lt;strong&gt;&lt;em&gt;81 unique visitors&lt;/em&gt;&lt;/strong&gt; &lt;a href="http://www.asp.net/ajax/documentation/live/overview/UpdatePanelOverview.aspx"&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-3408487464174819634?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/3408487464174819634/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=3408487464174819634' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/3408487464174819634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/3408487464174819634'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/09/ajax-net-examples-and-concepts.html' title='AJAX .NET Examples and Concepts'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-7902652473673006878</id><published>2008-09-08T13:08:00.004+05:30</published><updated>2008-09-08T13:25:36.750+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='AJAX'/><category scheme='http://www.blogger.com/atom/ns#' term='AJAXpro'/><title type='text'>AJAX PRO Concept and Example</title><content type='html'>AJAX PRO&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. In web.config file add the tag below under (system.web) tag: -&lt;br /&gt;&lt;br /&gt;(httpHandlers)&lt;br /&gt;(add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro.2"/)&lt;br /&gt;(/httpHandlers)&lt;br /&gt;&lt;br /&gt;2. Write the TestAjaxPro.aspx file: -&lt;br /&gt;&lt;br /&gt;(html xmlns="http://www.w3.org/1999/xhtml" )&lt;br /&gt;(head runat="server")&lt;br /&gt;(title)Test Ajax Pro Page(/title)&lt;br /&gt;&lt;br /&gt;(script type="text/javascript")&lt;br /&gt;function getServerTime() // being called from (body)&lt;br /&gt;{&lt;br /&gt;TestAjaxPro.GetServerTimeAjax(getServerTime_callback); // asynchronous call&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function getServerTime_callback(res) // being called from inside GetServerTimeAjax() parameter&lt;br /&gt;{&lt;br /&gt;alert(res.value);&lt;br /&gt;}&lt;br /&gt;(/script)&lt;br /&gt;&lt;br /&gt;(/head)&lt;br /&gt;(body onload="javascript:getServerTime();")&lt;br /&gt;(form id="form1" runat="server" )&lt;br /&gt;(div)&lt;br /&gt;&lt;br /&gt;(/div)&lt;br /&gt;(/form)&lt;br /&gt;(/body)&lt;br /&gt;(/html)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3. Write the TestAjaxPro.aspx.cs file: -&lt;br /&gt;&lt;br /&gt;using AjaxPro;&lt;br /&gt;&lt;br /&gt;public partial class TestAjaxPro : System.Web.UI.Page&lt;br /&gt;{&lt;br /&gt;protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;AjaxPro.Utility.RegisterTypeForAjax(typeof(TestAjaxPro)); //&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;[AjaxPro.AjaxMethod]&lt;br /&gt;public DateTime GetServerTimeAjax() // being called from getServerTime()&lt;br /&gt;{&lt;br /&gt;return DateTime.Now;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;4. Run the code.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;81 unique visitors &lt;/strong&gt;&lt;/em&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-7902652473673006878?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/7902652473673006878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=7902652473673006878' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/7902652473673006878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/7902652473673006878'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/09/ajax-pro-concept-and-example.html' title='AJAX PRO Concept and Example'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-5936094856443331029</id><published>2008-08-14T11:16:00.004+05:30</published><updated>2008-08-14T17:05:18.961+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ConnectionString'/><category scheme='http://www.blogger.com/atom/ns#' term='Connection'/><title type='text'>ConnectionString in Web.Config</title><content type='html'>&lt;p&gt;(configuration)&lt;br /&gt;(appSettings)&lt;br /&gt;(add key="mstrConnectionString" value="user id=abcd; password=1234; server=VAIJAYANTA-PC\SQLEXPRESS; database="VaijayantaTest" /)&lt;br /&gt;(/appSettings)&lt;br /&gt;(/configuration)&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;(configuration)&lt;br /&gt;(connectionStrings)&lt;br /&gt;(add name="mstrConnectionString" connectionString="user id=abcd; password=1234 server=VAIJAYANTA-PC\SQLEXPRESS; database="VaijayantaTest" /)&lt;br /&gt;(/connectionStrings)&lt;br /&gt;(/configuration)&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;string StrCon;&lt;/p&gt;&lt;p&gt;StrCon = ConfigurationSettings.AppSettings.Get("mstrConnectionString");&lt;/p&gt;&lt;p&gt;Sqlconnection conn = new SqlConnection(StrCon );&lt;br /&gt;conn.Open();&lt;br /&gt;SqlCommand cmd = new SqlCommand(select,conn);&lt;/p&gt;&lt;p&gt;rest follows.........&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;72 unique visitors&lt;/em&gt;&lt;/strong&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-5936094856443331029?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/5936094856443331029/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=5936094856443331029' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/5936094856443331029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/5936094856443331029'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/08/connectionstring-in-webconfig_14.html' title='ConnectionString in Web.Config'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-6165658784722275959</id><published>2008-08-08T14:04:00.002+05:30</published><updated>2008-08-08T14:10:29.741+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><category scheme='http://www.blogger.com/atom/ns#' term='stored procedure'/><title type='text'>What is DDL, DML, DCL, TCL in SQL ?</title><content type='html'>&lt;em&gt;The &lt;strong&gt;Data Definition Language (DDL)&lt;/strong&gt; includes: -&lt;br /&gt;CREATE TABLE - creates new database table&lt;br /&gt;ALTER TABLE - alters or changes the database table&lt;br /&gt;DROP TABLE - deletes the database table&lt;br /&gt;CREATE INDEX - creates an index or used as a search key&lt;br /&gt;DROP INDEX - deletes an index&lt;/em&gt; &lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;br /&gt;The &lt;strong&gt;Data Manipulation Language (DML)&lt;/strong&gt; includes: -&lt;br /&gt;SELECT - extracts data from the database&lt;br /&gt;UPDATE - updates data in the database&lt;br /&gt;DELETE - deletes data from the database&lt;br /&gt;INSERT INTO - inserts new data into the database&lt;br /&gt;&lt;br /&gt;The &lt;strong&gt;Data Control Language (DCL)&lt;/strong&gt; includes: -&lt;br /&gt;GRANT – gives access privileges to users for database&lt;br /&gt;REVOKE – withdraws access privileges to users for database&lt;br /&gt;&lt;br /&gt;The &lt;strong&gt;Transaction Control Language (TCL)&lt;/strong&gt; includes: -&lt;br /&gt;COMMIT – saves the work done&lt;br /&gt;ROLLBACK - restore the database to original since the last COMMIT&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;70 unique visitors&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-6165658784722275959?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/6165658784722275959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=6165658784722275959' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/6165658784722275959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/6165658784722275959'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/08/what-is-ddl-dml-dcl-tcl-in-sql.html' title='What is DDL, DML, DCL, TCL in SQL ?'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-5730982957168903032</id><published>2008-08-05T13:19:00.005+05:30</published><updated>2008-08-05T13:54:18.547+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ConnectionString'/><category scheme='http://www.blogger.com/atom/ns#' term='Database'/><category scheme='http://www.blogger.com/atom/ns#' term='Connection'/><title type='text'>How to write a Database Connection in Dot Net</title><content type='html'>&lt;p&gt;---------------------------------------------------------------------------&lt;/p&gt;&lt;p&gt;source = "server=(local); integrated security=SSPI; database=Northwind";&lt;/p&gt;&lt;p&gt;select = "select * from Customers";&lt;br /&gt;Sqlconnection conn = new SqlConnection(source);&lt;/p&gt;&lt;p&gt;conn.Open();&lt;/p&gt;&lt;p&gt;SqlCommand cmd = new SqlCommand(select,conn);&lt;br /&gt;&lt;br /&gt;int rowsReturned = cmd.ExecuteNonQuery(); //returns no of rows affected&lt;/p&gt;&lt;p&gt;---------------------------&lt;br /&gt;SqlDataReader reader = cmd.ExecuteReader();&lt;/p&gt;&lt;p&gt;while(reader.Read())&lt;/p&gt;&lt;p&gt;{ &lt;/p&gt;&lt;p&gt;ConsoleWriteline(reader[0], reader[1]); //returns a set of values &lt;/p&gt;&lt;p&gt;} // by iterating through records&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;-------------------------&lt;/p&gt;&lt;p&gt;&lt;br /&gt;object o = cmd.ExecuteScalar();&lt;/p&gt;&lt;p&gt;Console.WriteLine(o); // returns a column&lt;/p&gt;&lt;p&gt;-----------------&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;XmlReader xr = cmd.ExecuteXmlReader();&lt;/p&gt;&lt;p&gt;xr.Read(); // returns a XmlReaderObject &lt;/p&gt;&lt;p&gt;--------------&lt;/p&gt;&lt;p&gt;SqlDataAdapter da = new SqlDataAdapter(select, conn);&lt;/p&gt;&lt;p&gt;DataSet ds = new DataSet();&lt;/p&gt;&lt;p&gt;da.Fill(ds,"Customers");   //runtime schema generation&lt;br /&gt;---------------------------------------------------------------------------&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;68 unique visitors&lt;/em&gt;&lt;/strong&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-5730982957168903032?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/5730982957168903032/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=5730982957168903032' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/5730982957168903032'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/5730982957168903032'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/08/how-to-write-database-connection-in-dot.html' title='How to write a Database Connection in Dot Net'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-4808318284869223521</id><published>2008-08-05T13:13:00.002+05:30</published><updated>2008-08-05T13:17:41.687+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Trigger'/><category scheme='http://www.blogger.com/atom/ns#' term='stored procedure'/><title type='text'>A Database Trigger</title><content type='html'>&lt;p&gt;A database trigger is procedural code that is automatically executed in response to certain events on a particular table in a database. Triggers can restrict access to specific data, perform logging, or audit data modifications.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Difference between a trigger and a stored procedure&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;1- when you create a trigger you have to identify event and action of your trigger but when you create s.p you don't identify event and action&lt;/p&gt;&lt;p&gt;2-trigger is run automatically if the event is occured but s.p don't run automatically but you have to run it manually&lt;/p&gt;&lt;p&gt;3- within a trigger you can call specific s.p but within a s.p you cann;t call atrigger&lt;/p&gt;&lt;strong&gt;&lt;em&gt;68 unique visitors&lt;/em&gt; &lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-4808318284869223521?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/4808318284869223521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=4808318284869223521' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4808318284869223521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4808318284869223521'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/08/database-trigger.html' title='A Database Trigger'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-6002135122321039423</id><published>2008-07-31T16:23:00.001+05:30</published><updated>2008-07-31T16:29:52.562+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><category scheme='http://www.blogger.com/atom/ns#' term='ConnectionString'/><category scheme='http://www.blogger.com/atom/ns#' term='Connection'/><title type='text'>SQL Server Database ConnectionString</title><content type='html'>string strCon;&lt;br /&gt;SqlConnection objCon = new SqlConnection();&lt;br /&gt;string mstrConnectionstring = String.Empty;&lt;br /&gt;public DataObject()&lt;br /&gt;{&lt;br /&gt;objCon = new SqlConnection();&lt;br /&gt;strCon = ConfigurationSettings.AppSettings.Get("mstrConnectionstring");&lt;br /&gt;objCon = new SqlConnection(strCon);&lt;br /&gt;objCon.Open();&lt;br /&gt;----------------------------------------&lt;br /&gt;Inside WebConfig. Replace the ( and ) by &lt;&gt;.&lt;br /&gt;&lt;br /&gt;(appSettings)(add key="mstrConnectionstring" value="user id= ab;password=**********; server=VAIJAYANTA-PC\SQLEXPRESS; database = Vaijayanta-Test")(/add)(/appSettings)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;65 unique visitors&lt;/em&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-6002135122321039423?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/6002135122321039423/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=6002135122321039423' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/6002135122321039423'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/6002135122321039423'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/07/sql-server-database-connectionstring.html' title='SQL Server Database ConnectionString'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-3929917505811076346</id><published>2008-07-08T15:44:00.001+05:30</published><updated>2008-07-08T15:50:15.772+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Export'/><category scheme='http://www.blogger.com/atom/ns#' term='Pdf'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><title type='text'>Export Gridview to Pdf</title><content type='html'>Error: - The document has no pages.&lt;br /&gt;Soution: -Check the column name of your gridview. Whether they match with the ones you send to the data table or not. If they match. Then this error will not be shown.&lt;br /&gt;Export Gridview to Pdf: -&lt;br /&gt;1) First of all add reference the dll file called itextsharp.dll to your solution under References.&lt;br /&gt;It can be obtained from: -&lt;br /&gt;&lt;br /&gt;2) Then write the code below: -&lt;br /&gt;using iTextSharp;using iTextSharp.text;using iTextSharp.text.pdf;&lt;br /&gt;protected void btnExportToPdf_Click(object sender, EventArgs e)        {            ExportToPDF();        }&lt;br /&gt;        private void ExportToPDF()        {            Document document = new Document(PageSize.A4, 0, 0, 50, 50);            System.IO.MemoryStream msReport = new System.IO.MemoryStream();&lt;br /&gt;            try            {                // creation of the different writers                PdfWriter writer = PdfWriter.GetInstance(document, msReport);&lt;br /&gt;                // we add some meta information to the document                document.AddAuthor("Vaichatt");                document.AddSubject("Export to PDF");&lt;br /&gt;                document.Open();&lt;br /&gt;                iTextSharp.text.Table datatable = new iTextSharp.text.Table(5);&lt;br /&gt;                datatable.Padding = 2;                datatable.Spacing = 0;&lt;br /&gt;                //float[] headerwidths = { 6, 20, 32, 18, 8, 8, 8 };                float[] headerwidths = { 10, 50, 10, 15, 15 };                datatable.Widths = headerwidths;&lt;br /&gt;                // the first cell spans 7 columns                // the first cell spans 5 columns                Cell cell = new Cell(new Phrase("Manage Category Report", FontFactory.GetFont(FontFactory.HELVETICA, 16, Font.BOLD)));                cell.HorizontalAlignment = Element.ALIGN_CENTER;                cell.Leading = 30;                //cell.Colspan = 7;                cell.Colspan = 5;                cell.Border = Rectangle.NO_BORDER;                cell.BackgroundColor = new iTextSharp.text.Color(System.Drawing.Color.Gray);                datatable.AddCell(cell);&lt;br /&gt;                // These cells span 2 rows                datatable.DefaultCellBorderWidth = 1;                datatable.DefaultHorizontalAlignment = 1;                datatable.DefaultRowspan = 2;                datatable.AddCell("Status");                datatable.AddCell(new Phrase("Category Name", FontFactory.GetFont(FontFactory.HELVETICA, 14, Font.NORMAL)));                datatable.AddCell("Edit");                datatable.AddCell("Delete");                datatable.AddCell("Products");&lt;br /&gt;                // This cell spans the remaining 3 columns in 1 row                //datatable.DefaultRowspan = 1;                //datatable.DefaultColspan = 3;                //datatable.AddCell("Just Put Anything");&lt;br /&gt;                // These cells span 1 row and 1 column                //datatable.DefaultColspan = 1;                //datatable.AddCell("Col 1");                //datatable.AddCell("Col 2");                //datatable.AddCell("Col 3");&lt;br /&gt;                datatable.DefaultCellBorderWidth = 1;                datatable.DefaultRowspan = 1;&lt;br /&gt;                for (int i = 1; i &lt; dgdManageCategory.Rows.Count; i++)                {                    datatable.DefaultHorizontalAlignment = Element.ALIGN_LEFT;                    //datatable.AddCell(i.ToString());                    //datatable.AddCell("This is my name.");                    //datatable.AddCell("I have a very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very, very long long address.");                    //datatable.AddCell("0123456789");&lt;br /&gt;                    //datatable.DefaultHorizontalAlignment = Element.ALIGN_CENTER;                    //datatable.AddCell("No");                    //datatable.AddCell("Yes");                    //datatable.AddCell("No");&lt;br /&gt;                    CheckBox cbIsActive = (CheckBox)dgdManageCategory.Rows[i].FindControl("cbIsActive");                    datatable.AddCell(Convert.ToString(cbIsActive.Checked ));&lt;br /&gt;                    Label lblCategoryName = (Label)dgdManageCategory.Rows[i].FindControl("lblCategoryName");                    datatable.AddCell(lblCategoryName.Text);&lt;br /&gt;                    //Label lblCatName = (Label)dgdManageCategory.Rows[i].FindControl("lblCatName");                    //datatable.AddCell(lblCatName.ToString());&lt;br /&gt;                    Button btnEdit = (Button)dgdManageCategory.Rows[i].FindControl("lbnEdit");                    datatable.AddCell(btnEdit.Text);&lt;br /&gt;                    Button btnDelete = (Button)dgdManageCategory.Rows[i].FindControl("lbnDelete");                    datatable.AddCell(btnDelete.Text);&lt;br /&gt;                    Button btnProducts = (Button)dgdManageCategory.Rows[i].FindControl("lbnProducts");                    datatable.AddCell(btnProducts.Text);                                   }&lt;br /&gt;                document.Add(datatable);            }            catch (Exception e)            {                string s = e.Message;                Console.Error.WriteLine(e.Message);            }&lt;br /&gt;            // we close the document                         document.Close();&lt;br /&gt;            Response.Clear();            Response.AddHeader("content-disposition", "attachment;filename=Export.pdf");            Response.ContentType = "application/pdf";            Response.BinaryWrite(msReport.ToArray());            Response.End();&lt;br /&gt;            //http://july-code.blogspot.com/2008/06/export-gridview-to-pdf.html        }&lt;br /&gt;//Get Help From:-// &lt;a href="http://july-code.blogspot.com/2008/06/export-gridview-to-pdf.html//http://www.pdftron.com/net/usermanual.html"&gt;http://july-code.blogspot.com/2008/06/export-gridview-to-pdf.html//http://www.pdftron.com/net/usermanual.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;42 unique visitors&lt;/em&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-3929917505811076346?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/3929917505811076346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=3929917505811076346' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/3929917505811076346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/3929917505811076346'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/07/export-gridview-to-pdf.html' title='Export Gridview to Pdf'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-5990426102467067031</id><published>2008-07-08T15:42:00.001+05:30</published><updated>2008-07-08T15:54:00.202+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><title type='text'>How to take backup of a SQL Server Database Data</title><content type='html'>How to take backup of a SQL Server Database Data: -&lt;br /&gt;&lt;br /&gt;1) Database (right click) -&gt; Tasks -&gt; Backup -&gt; Database -&gt; OK&lt;br /&gt;&lt;br /&gt;(the database backup will be done)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;42 unique users&lt;/em&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-5990426102467067031?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/5990426102467067031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=5990426102467067031' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/5990426102467067031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/5990426102467067031'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/07/how-to-take-backup-of-sql-server.html' title='How to take backup of a SQL Server Database Data'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-68201435443099210</id><published>2008-07-01T16:08:00.003+05:30</published><updated>2008-07-01T16:19:00.308+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Excel'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><title type='text'>Import to Gridview from Excel Sheet (xlsx)</title><content type='html'>To import from an xlsx file to a Gridview, the whole code will be same as the post before, but the connection string should be changed.&lt;br /&gt;It should be made: -&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;" + "Data Source=" +&lt;br /&gt;Server.MapPath("~/App_Data/Running.xlsx") + ";" + "Extended Properties=\"Excel 12.0;HDR=Yes\"");&lt;br /&gt;&lt;br /&gt;Rest is same.&lt;br /&gt;The code will run properly.&lt;br /&gt;&lt;br /&gt;Now the challenge is to select the path of the file at runtime.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;38 visitors&lt;/em&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-68201435443099210?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/68201435443099210/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=68201435443099210' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/68201435443099210'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/68201435443099210'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/07/import-to-gridview-from-excel-sheet.html' title='Import to Gridview from Excel Sheet (xlsx)'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-5671436547838355431</id><published>2008-07-01T12:56:00.005+05:30</published><updated>2008-07-01T13:18:12.980+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Excel'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><title type='text'>Import to Gridview from Excel Sheet (xls)</title><content type='html'>&lt;p&gt;Step 1 – Create Excel worksheet&lt;br /&gt;1) Open Microsoft Excel and create a new Worksheet.&lt;br /&gt;2) The sample data is as follows: - (any sample data)&lt;br /&gt;We will keep the default name for the Worksheet (Sheet1).&lt;br /&gt;3) Let us name and save the excel file as Running.xls.&lt;br /&gt;Note: You can download the Excel file along with the code files from the Downloads section at the end of this article. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;Step 2 –Display Excel Data using GridView Control&lt;br /&gt;1) Start Visual Studio 2005.&lt;br /&gt;2) Select Create Website and choose the Template ASP.NET Web Site. We can choose the language as C#/VB. Set the name for the project as ExcelGV.&lt;br /&gt;3) Add the existing Excel file (Running.xls) that we created to the App_data folder.&lt;br /&gt;4) Add a new .aspx file. Choose language C#/VB and, depending on the language, we will set the appropriate names: ExcelGVCS.aspx for C# or ExcelGVVB for VB.NET.&lt;br /&gt;4) Drag and drop the GridView control on the .aspx page.&lt;br /&gt;5) We will add the following statement in &lt;a name="OLE_LINK2"&gt;&lt;/a&gt;&lt;a name="OLE_LINK1"&gt;code &lt;/a&gt;behind above the namespace section.&lt;/p&gt;-----------------------------------------------------------------------------------&lt;br /&gt;using System.Data.OleDb;&lt;br /&gt;------------------------------&lt;br /&gt;protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;OleDbConnection DBConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + Server.MapPath("~/App_Data/Running.xls") + ";" + "Extended Properties=\"Excel 8.0;HDR=Yes\"");&lt;br /&gt;DBConnection.Open();&lt;br /&gt;string SQLString = "SELECT * FROM [Sheet1$]";&lt;br /&gt;OleDbCommand DBCommand = new OleDbCommand(SQLString, DBConnection);&lt;br /&gt;IDataReader DBReader = DBCommand.ExecuteReader();&lt;br /&gt;GridView1.DataSource = DBReader;&lt;br /&gt;GridView1.DataBind();&lt;br /&gt;DBReader.Close();&lt;br /&gt;DBConnection.Close();&lt;br /&gt;}&lt;br /&gt;-----------------------------------------------------------------------------------&lt;br /&gt;&lt;strong&gt;&lt;em&gt;38 visitors&lt;/em&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-5671436547838355431?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/5671436547838355431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=5671436547838355431' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/5671436547838355431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/5671436547838355431'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/07/import-to-gridview-from-excel-sheet-xls.html' title='Import to Gridview from Excel Sheet (xls)'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-3719851552316853761</id><published>2008-06-30T18:50:00.000+05:30</published><updated>2008-06-30T18:52:33.471+05:30</updated><title type='text'>Code for Export data from GridView to Excel: -</title><content type='html'>Code for Export data from GridView to Excel: -&lt;br /&gt;--------------------------------------------------------------Response.Clear();                       Response.AddHeader("content-disposition", "attachment;filename=FileName.xls");            Response.Charset = "";             Response.ContentType = "application/vnd.xls";&lt;br /&gt;            StringWriter stringWrite = new StringWriter();            HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);                     try            {                dgdManageCategory.RenderControl(htmlWrite);            }            catch (Exception ex)            {                string s = ex.Message;                Response.Write("Cannot Export to Excel");            }&lt;br /&gt;            Response.Write(stringWrite.ToString());            Response.End();        }&lt;br /&gt;--------------------------------------------------------------&lt;br /&gt;As I tried to Export data from GridView to Excel I got this error: -&lt;br /&gt;Control 'dgdManageCategory' of type 'GridView' must be placed inside a form tag with runat=server.&lt;br /&gt;So I searched the net on various sites and saw that I shouild add an overridden method that would solve the problem: -&lt;br /&gt;So I used the method: -&lt;br /&gt;--------------------------------------------------------------&lt;br /&gt;public override void VerifyRenderingInServerForm(Control control)        {            // Confirms that an HtmlForm control is rendered for the specified ASP.NET server control at run time.        }&lt;br /&gt;--------------------------------------------------------------&lt;br /&gt;But I still got an error: -&lt;br /&gt;"RegisterForEventValidation can only be called during Render();"&lt;br /&gt;So I again searched the net and got this solution: -&lt;br /&gt;Under the tag&lt;br /&gt;&lt;%@ Page Language="C#" AutoEventWireup="true"  CodeBehind="ManageCategory.aspx.cs" Inherits="CartTest.ManageCategory" %&gt;&lt;br /&gt;I should add "EnableEventValidation = "false" " to the above tag and thus the problem was solved.&lt;br /&gt;&lt;br /&gt;Sites from where I got the help was: -&lt;br /&gt;1) &lt;a href="http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=118285"&gt;http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=118285&lt;/a&gt;&lt;br /&gt;2) &lt;a href="http://gridviewguy.com/ArticleDetails.aspx?articleID=182"&gt;http://gridviewguy.com/ArticleDetails.aspx?articleID=182&lt;/a&gt;&lt;br /&gt;3) &lt;a href="http://mattberseth.com/blog/2007/04/export_gridview_to_excel_1.html"&gt;http://mattberseth.com/blog/2007/04/export_gridview_to_excel_1.html&lt;/a&gt;&lt;br /&gt;--&lt;br /&gt;4) &lt;a href="http://geekswithblogs.net/azamsharp/archive/2005/12/21/63845.aspx"&gt;http://geekswithblogs.net/azamsharp/archive/2005/12/21/63845.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-3719851552316853761?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/3719851552316853761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=3719851552316853761' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/3719851552316853761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/3719851552316853761'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/06/code-for-export-data-from-gridview-to.html' title='Code for Export data from GridView to Excel: -'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-6216689451060351884</id><published>2008-06-26T13:01:00.002+05:30</published><updated>2009-02-03T12:54:58.658+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Application'/><category scheme='http://www.blogger.com/atom/ns#' term='AJAX'/><title type='text'>Can AJAX be implemented in Windows Application?</title><content type='html'>Well technically you can use it in a windows application....&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;The long way to implement AJAX in a windows application.&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;just not in the way you may of intended. Since ajax is essentially asynchronous javascript and xml, you would need to use some sort of javascript engine (mozilla has a good one called SpiderMonkey which is written in c) and an XML parser, MSDOM or any standard lib would do. Create a class that implements the functionaly similar to a .NET 2.0 HttpRequest ( especially its asynchronous features ) and then export that class as a custom object so that it can be accessed by the javascript engine, being sure to implement the standard exception and errors found in regular XmlHttp calls. Once all of this is written you can write a windows application that loads a javascript file from anywhere, processes it (Either synchronously, or asynchronously) and returns the results so you can handle it appropriately.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;The short way to implement AJAX in a windows application.&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Quite simply, don't. The biggest feature of Ajax is that it simulates many windows applicsations ability to provide data on demand with out any postbacks  or whatever. You can tweak your windows application to go above and beyond what Ajax could do by researching multithreading and the WinForms API and learning how to stream data from its source and automatically propagate that to the UI with out causing a noticeable wait to the main ui thread. But thats more into data visualization &amp;amp; web 2.0 centric than AJAX in itself.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-6216689451060351884?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/6216689451060351884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=6216689451060351884' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/6216689451060351884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/6216689451060351884'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/06/can-ajax-be-implemented-in-windows.html' title='Can AJAX be implemented in Windows Application?'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-452437073977196504</id><published>2008-06-23T17:32:00.003+05:30</published><updated>2008-06-27T13:18:52.899+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Excel'/><title type='text'>GridView to Excel Sheet</title><content type='html'>Excel Sheet to GridView: -&lt;br /&gt;Write this code in button click event: -&lt;br /&gt;-------------------------------------------------------------------------------------&lt;br /&gt;Response.Clear();&lt;br /&gt;Response.AddHeader("content-disposition", "attachment;filename=FileName.xls");&lt;br /&gt;Response.Charset = "";&lt;br /&gt;Response.Cache.SetCacheability(HttpCacheability.NoCache);&lt;br /&gt;Response.ContentType = "application/vnd.xls";&lt;br /&gt;System.IO.StringWriter stringWrite = new System.IO.StringWriter();&lt;br /&gt;System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);&lt;br /&gt;myDataGrid.RenderControl(htmlWrite);&lt;br /&gt;Response.Write(stringWrite.ToString());&lt;br /&gt;Response.End();&lt;br /&gt;-------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-452437073977196504?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/452437073977196504/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=452437073977196504' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/452437073977196504'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/452437073977196504'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/06/gridview-to-excel-sheet.html' title='GridView to Excel Sheet'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-6854315062562325527</id><published>2008-06-13T16:18:00.002+05:30</published><updated>2008-06-13T16:26:28.938+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><title type='text'>Create a Local Version of the SQL Server Database</title><content type='html'>Qs) &lt;strong&gt;&lt;em&gt;How to create a local version of the database if security permissions do not allow to copy a database in a sql server?&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Ans) In this procedure the data will no be copied. Follow the steps: -&lt;br /&gt;1) Right click on the Database name at server&lt;br /&gt;2) Tasks&lt;br /&gt;3) Generate Scripts&lt;br /&gt;4) Follow the "SQL Server Script Wizard" steps, step by step as required.&lt;br /&gt;(A script will be generated)&lt;br /&gt;5) Execute this script generated by copying it on a query window in a local sql server.&lt;br /&gt;(All the tables, stored procedures &amp;amp; scripts will be created without the data inside it)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-6854315062562325527?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/6854315062562325527/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=6854315062562325527' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/6854315062562325527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/6854315062562325527'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/06/create-local-version-of-sql-server.html' title='Create a Local Version of the SQL Server Database'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-4357186988914920632</id><published>2008-06-04T18:33:00.002+05:30</published><updated>2009-02-03T12:54:42.495+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Services'/><title type='text'>Create Windows Services Installer through C# .NET</title><content type='html'>&lt;p&gt;1) &lt;a href="http://www.grinn.net/blog/dev/2008/02/windows-services-in-c-part-2-adding.html"&gt;http://www.grinn.net/blog/dev/2008/02/windows-services-in-c-part-2-adding.html&lt;/a&gt;&lt;/p&gt;&lt;p&gt;2) &lt;a href="http://www.developerfusion.co.uk/show/3441/3/"&gt;http://www.developerfusion.co.uk/show/3441/3/&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-4357186988914920632?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/4357186988914920632/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=4357186988914920632' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4357186988914920632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4357186988914920632'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/06/create-windows-services-installer.html' title='Create Windows Services Installer through C# .NET'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-2066332299744950855</id><published>2008-06-03T12:35:00.000+05:30</published><updated>2008-06-03T12:36:03.860+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Thread'/><title type='text'>Thread Concepts</title><content type='html'>1. &lt;a href="http://www.albahari.com/threading/"&gt;http://www.albahari.com/threading/&lt;/a&gt; (nice website)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-2066332299744950855?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/2066332299744950855/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=2066332299744950855' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/2066332299744950855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/2066332299744950855'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/06/thread-concepts.html' title='Thread Concepts'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-2517042014174248559</id><published>2008-05-22T12:39:00.000+05:30</published><updated>2008-05-22T12:40:40.003+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='DataTable'/><title type='text'>Add Data to the DataTable (in earlier post)</title><content type='html'>public void addDataToDataTable()&lt;br /&gt;{&lt;br /&gt;FreshCart fc = new FreshCart();&lt;br /&gt;DataSet ds = new DataSet();&lt;br /&gt;ViewState["ProdID"] = Request.QueryString["ProductID"];&lt;br /&gt;ds = fc.GetProductDetailsByProductID(Convert.ToInt32(ViewState["ProdID"]));&lt;br /&gt;System.Data.DataTable table = new DataTable("ManageShoppingCartTable");&lt;br /&gt;table = (DataTable)(Session["DataTableHolder"]);&lt;br /&gt;DataRow row;&lt;br /&gt;row = table.NewRow();&lt;br /&gt;row["ProductID"] = Convert.ToInt32(ds.Tables[0].Rows[0][("ProductID")]);&lt;br /&gt;row["ProductName"] = ds.Tables[0].Rows[0][("ProductName")].ToString().Trim();&lt;br /&gt;//if (table.Rows.Count &lt; 1)&lt;br /&gt;//{&lt;br /&gt;row["Quantity"] = 1;&lt;br /&gt;//}&lt;br /&gt;//else if (table.Rows.Count &gt;= 1)&lt;br /&gt;//{&lt;br /&gt;// row["Quantity"] = Convert.ToInt32(gvManageShoppingCart.FindControl("txtQuantity.Text"));&lt;br /&gt;//}&lt;br /&gt;row["Price"] = Convert.ToDouble(ds.Tables[0].Rows[0][("Price")].ToString().Trim());&lt;br /&gt;row["NetPrice"] = Convert.ToInt32(row["Quantity"].ToString()) * Convert.ToDouble(row["Price"]);&lt;br /&gt;//row["NetPrice"] = 2*Convert.ToDouble(row["Price"]);&lt;br /&gt;//int s = 0;&lt;br /&gt;int rowVal = Convert.ToInt32(row["ProductID"]);&lt;br /&gt;bool blnIsProductExist = false;&lt;br /&gt;// if current product id is already present then dont insert the row.&lt;br /&gt;if (Convert.ToInt32(table.Rows.Count) == 0)&lt;br /&gt;{&lt;br /&gt;table.Rows.Add(row);&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;for (int i = 0; i &lt; table.Rows.Count; i++)&lt;br /&gt;{&lt;br /&gt;//int rowVal = Convert.ToInt32(row["ProductID"]);&lt;br /&gt;if (Convert.ToInt32(table.Rows[i][0]) == rowVal)&lt;br /&gt;{&lt;br /&gt;//s = s + 1;&lt;br /&gt;blnIsProductExist = true;&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;//s = 0;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if (!blnIsProductExist)&lt;br /&gt;{&lt;br /&gt;lblMessageUpdate.Visible = false;&lt;br /&gt;table.Rows.Add(row);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;lblMessageUpdate.Visible = true;&lt;br /&gt;lblMessageUpdate.Text = "The data is already present and cannot be updated".ToString();&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;lblFlag.Text = "1"; //set the flag to avoid postback after populating the gridview&lt;br /&gt;Session["DataTableHolder"] = table;&lt;br /&gt;gvManageShoppingCart.DataSource = ((DataTable)table).DefaultView;&lt;br /&gt;gvManageShoppingCart.DataBind();&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-2517042014174248559?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/2517042014174248559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=2517042014174248559' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/2517042014174248559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/2517042014174248559'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/05/add-data-to-datatable-in-earlier-post.html' title='Add Data to the DataTable (in earlier post)'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-2955086918443308300</id><published>2008-05-22T12:36:00.001+05:30</published><updated>2008-05-22T12:39:35.526+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='DataTable'/><title type='text'>Create a DataTable</title><content type='html'>&lt;p&gt;&lt;br /&gt;public void createSecondDataTable()&lt;br /&gt;{&lt;br /&gt;// Create a new DataTable.&lt;br /&gt;System.Data.DataTable table = new DataTable("UpdatedManageShoppingCartTable");&lt;br /&gt;// Declare variables for DataColumn and DataRow objects.&lt;br /&gt;DataColumn column;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;//Add 1st Column&lt;br /&gt;column = new DataColumn();&lt;br /&gt;column.DataType = System.Type.GetType("System.Int32");&lt;br /&gt;column.ColumnName = "ProductID";&lt;br /&gt;//column.ReadOnly = true;&lt;br /&gt;column.Unique = true;&lt;br /&gt;//Add Column to table&lt;br /&gt;table.Columns.Add(column);&lt;/p&gt;&lt;p&gt;&lt;br /&gt;//Add 2nd Column&lt;br /&gt;column = new DataColumn();&lt;br /&gt;column.DataType = System.Type.GetType("System.String");&lt;br /&gt;column.ColumnName = "ProductName";&lt;br /&gt;//column.ReadOnly = true;&lt;br /&gt;column.Unique = false;&lt;br /&gt;//Add Column to table&lt;br /&gt;table.Columns.Add(column);&lt;/p&gt;&lt;p&gt;&lt;br /&gt;//Add 3rd Column&lt;br /&gt;column = new DataColumn();&lt;br /&gt;column.DataType = System.Type.GetType("System.Int32");&lt;br /&gt;column.ColumnName = "Quantity";&lt;br /&gt;//column.ReadOnly = true;&lt;br /&gt;column.Unique = false;&lt;br /&gt;//Add Column to table&lt;br /&gt;table.Columns.Add(column);&lt;/p&gt;&lt;p&gt;&lt;br /&gt;//Add 4th Column&lt;br /&gt;column = new DataColumn();&lt;br /&gt;column.DataType = System.Type.GetType("System.Double");&lt;br /&gt;column.ColumnName = "Price";&lt;br /&gt;//column.ReadOnly = true;&lt;br /&gt;column.Unique = false;&lt;br /&gt;//Add Column to table&lt;br /&gt;table.Columns.Add(column);&lt;/p&gt;&lt;p&gt;&lt;br /&gt;//Add 5th Column&lt;br /&gt;column = new DataColumn();&lt;br /&gt;column.DataType = System.Type.GetType("System.Double");&lt;br /&gt;column.ColumnName = "NetPrice";&lt;br /&gt;//column.ReadOnly = true;&lt;br /&gt;column.Unique = false;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;//Add Column to table&lt;br /&gt;table.Columns.Add(column);&lt;/p&gt;&lt;p&gt;//Make the ProductID column the primary column&lt;br /&gt;DataColumn[] PrimaryKeyColumns = new DataColumn[1];&lt;br /&gt;PrimaryKeyColumns[0] = table.Columns["ProductID"];&lt;br /&gt;table.PrimaryKey = PrimaryKeyColumns;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;//Instantiate the dataset&lt;br /&gt;//DataSet dataset = new DataSet();&lt;br /&gt;//Add datatable to the dataset&lt;br /&gt;//dataset.Tables.Add(table);&lt;br /&gt;Session["UpdatedManageShoppingCartTableHolder"] = table;&lt;br /&gt;}&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-2955086918443308300?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/2955086918443308300/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=2955086918443308300' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/2955086918443308300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/2955086918443308300'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/05/create-datatable.html' title='Create a DataTable'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-4251183252552750066</id><published>2008-05-19T19:09:00.002+05:30</published><updated>2009-02-03T12:54:23.413+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Interview Questions'/><title type='text'>Interview questions of .NET</title><content type='html'>1) &lt;a href="http://www.dotnetuncle.com/"&gt;http://www.dotnetuncle.com/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-4251183252552750066?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/4251183252552750066/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=4251183252552750066' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4251183252552750066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4251183252552750066'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/05/interview-questions-of-net.html' title='Interview questions of .NET'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-7321799661121184827</id><published>2008-05-08T12:55:00.001+05:30</published><updated>2008-05-08T12:58:17.955+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Error in Program'/><category scheme='http://www.blogger.com/atom/ns#' term='code behind'/><category scheme='http://www.blogger.com/atom/ns#' term='PageIndexChanging'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>THIS DATASOURCE DOES NOT SUPPORT SERVER-SIDE DATA PAGING</title><content type='html'>To solve this problem (THIS DATASOURCE DOES NOT SUPPORT SERVER-SIDE DATA PAGING ), you must set GridView DataSource Property as DataSet not DataReader .&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-7321799661121184827?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/7321799661121184827/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=7321799661121184827' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/7321799661121184827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/7321799661121184827'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/05/this-datasource-does-not-support-server.html' title='THIS DATASOURCE DOES NOT SUPPORT SERVER-SIDE DATA PAGING'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-3454018387994979371</id><published>2008-05-07T17:11:00.000+05:30</published><updated>2008-05-07T17:12:32.217+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sorting'/><title type='text'>An Example of Column Sorting</title><content type='html'>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 System.Data.SqlClient;&lt;br /&gt;namespace CartTest&lt;br /&gt;{&lt;br /&gt;public partial class RevenueReport : System.Web.UI.Page&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;lblGrandTotal.Visible = false;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;public void populateGridView()&lt;br /&gt;{&lt;br /&gt;FreshCart fc = new FreshCart();&lt;br /&gt;fc.RevenueReportFromDate = Convert.ToDateTime(txtFromDate.Text.Trim());&lt;br /&gt;fc.RevenueReportToDate = Convert.ToDateTime(txtToDate.Text.Trim());&lt;br /&gt;DataSet ds = new DataSet();&lt;br /&gt;ds = fc.populategvRevenueReport();&lt;br /&gt;ViewState["SortExpression"] = "OrderDate";&lt;br /&gt;ViewState["SortDirection"] = "DESC";&lt;br /&gt;// check whether the date is present or not&lt;br /&gt;string returnValue;&lt;br /&gt;returnValue = ds.Tables[0].Rows[0][("ReturnValue")].ToString().Trim();&lt;br /&gt;if (returnValue == "0")&lt;br /&gt;{&lt;br /&gt;//no matching date&lt;br /&gt;gvRevenueReport.Visible = false;&lt;br /&gt;lblGrandTotal.Visible = false;&lt;br /&gt;lblQtyTotal.Visible = false;&lt;br /&gt;lblRevenueTotal.Visible = false;&lt;br /&gt;lblMessage.Visible = true;&lt;br /&gt;lblMessage.Text = "No Matching Date";&lt;br /&gt;}&lt;br /&gt;else if (returnValue == "1")&lt;br /&gt;{&lt;br /&gt;lblMessage.Visible = false;&lt;br /&gt;gvRevenueReport.Visible = true;&lt;br /&gt;gvRevenueReport.DataSource = ds.Tables[1].DefaultView;&lt;br /&gt;ViewState["DataSource"] = ds.Tables[1];&lt;br /&gt;lblGrandTotal.Visible = true;&lt;br /&gt;lblQtyTotal.Visible = true;&lt;br /&gt;lblQtyTotal.Text = ds.Tables[2].Rows[0][("Qty_Total")].ToString().Trim();&lt;br /&gt;lblRevenueTotal.Visible = true;&lt;br /&gt;lblRevenueTotal.Text = ds.Tables[3].Rows[0][("Revenue_Total")].ToString().Trim();&lt;br /&gt;gvRevenueReport.DataBind();&lt;br /&gt;PopulateDetails(ViewState["SortExpression"].ToString(), ViewState["SortDirection"].ToString());&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;protected void btnGo_Click(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;populateGridView();&lt;br /&gt;}&lt;br /&gt;public void PopulateDetails(string strSortExp, string strSortDir)&lt;br /&gt;{&lt;br /&gt;DataView dv = ((DataTable)ViewState["DataSource"]).DefaultView;&lt;br /&gt;DataTable NewsTable = dv.ToTable();&lt;br /&gt;DataView NewsView = NewsTable.DefaultView;&lt;br /&gt;if (NewsView != null)&lt;br /&gt;{&lt;br /&gt;NewsView.Sort = strSortExp + " " + strSortDir;&lt;br /&gt;gvRevenueReport.DataSource = NewsView;&lt;br /&gt;gvRevenueReport.DataBind();&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;protected void gvRevenueReport_Sorting(object sender, GridViewSortEventArgs e)&lt;br /&gt;{&lt;br /&gt;string SortExpression = e.SortExpression;&lt;br /&gt;ViewState["SortExpression"] = SortExpression;&lt;br /&gt;if (ViewState["SortDirection"].ToString() == "DESC")&lt;br /&gt;{&lt;br /&gt;ViewState["SortDirection"] = "ASC";&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;ViewState["SortDirection"] = "DESC";&lt;br /&gt;}&lt;br /&gt;PopulateDetails(ViewState["SortExpression"].ToString(), ViewState["SortDirection"].ToString());&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-3454018387994979371?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/3454018387994979371/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=3454018387994979371' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/3454018387994979371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/3454018387994979371'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/05/example-of-column-sorting.html' title='An Example of Column Sorting'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-7641706597618256148</id><published>2008-05-07T15:11:00.001+05:30</published><updated>2008-05-07T15:19:44.038+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Abbreviations'/><title type='text'>Some Tough Abbreviations</title><content type='html'>MIME - Multipurpose Internet Mail Extensions&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-7641706597618256148?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/7641706597618256148/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=7641706597618256148' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/7641706597618256148'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/7641706597618256148'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/05/some-tough-abbreviations.html' title='Some Tough Abbreviations'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-4132940659606706752</id><published>2008-04-28T16:29:00.002+05:30</published><updated>2008-04-28T16:30:05.210+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><category scheme='http://www.blogger.com/atom/ns#' term='User Defined Function'/><title type='text'>User Defined Function in Sql Server</title><content type='html'>&lt;a href="http://msdn2.microsoft.com/en-us/magazine/cc164062.aspx"&gt;http://msdn2.microsoft.com/en-us/magazine/cc164062.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-4132940659606706752?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/4132940659606706752/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=4132940659606706752' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4132940659606706752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4132940659606706752'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/04/user-defined-function-in-sql-server.html' title='User Defined Function in Sql Server'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-4290074167409822380</id><published>2008-04-28T16:29:00.001+05:30</published><updated>2008-04-28T16:29:27.488+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Paging'/><title type='text'>Paging</title><content type='html'>&lt;a href="http://www.geocities.com/Jeff_Louie/net_paging.htm"&gt;http://www.geocities.com/Jeff_Louie/net_paging.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-4290074167409822380?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/4290074167409822380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=4290074167409822380' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4290074167409822380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4290074167409822380'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/04/paging.html' title='Paging'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-6267822271737623553</id><published>2008-04-03T15:08:00.000+05:30</published><updated>2008-04-03T15:18:56.567+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Authentication'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>Authentication in ASP.NET</title><content type='html'>&lt;a href="http://authors.aspalliance.com/aspxtreme/webapps/thewindowsauthenticationprovider.aspx"&gt;http://authors.aspalliance.com/aspxtreme/webapps/thewindowsauthenticationprovider.aspx&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.c-sharpcorner.com/UploadFile/lmoningi/AuthenticationAndAuthorizatio11252005233533PM/AuthenticationAndAuthorizatio.aspx"&gt;http://www.c-sharpcorner.com/UploadFile/lmoningi/AuthenticationAndAuthorizatio11252005233533PM/AuthenticationAndAuthorizatio.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/ms978378.aspx"&gt;http://msdn2.microsoft.com/en-us/library/ms978378.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-6267822271737623553?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/6267822271737623553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=6267822271737623553' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/6267822271737623553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/6267822271737623553'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/04/authentication-in-aspnet.html' title='Authentication in ASP.NET'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-3455000090344831664</id><published>2008-04-02T17:22:00.001+05:30</published><updated>2008-04-02T17:29:55.958+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Validators'/><category scheme='http://www.blogger.com/atom/ns#' term='CompareValidator'/><title type='text'>All Validators / CompareValidator</title><content type='html'>All validators: -&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.devhood.com/Tutorials/tutorial_details.aspx?tutorial_id=46"&gt;http://www.devhood.com/Tutorials/tutorial_details.aspx?tutorial_id=46&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://207.46.248.104/quickstart/aspplus/doc/webvalidation.aspx"&gt;http://207.46.248.104/quickstart/aspplus/doc/webvalidation.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-3455000090344831664?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/3455000090344831664/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=3455000090344831664' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/3455000090344831664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/3455000090344831664'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/04/all-validators-comparevalidator.html' title='All Validators / CompareValidator'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-7900270733824974014</id><published>2008-04-02T16:19:00.002+05:30</published><updated>2008-04-02T17:08:13.818+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='CustomValidator'/><title type='text'>CustomValidator</title><content type='html'>&lt;p&gt;CustomValidator&lt;/p&gt;&lt;p&gt;&lt;a href="http://renditionprotocol.blogspot.com/2007/06/aspnet-custom-validator-for-comma.html"&gt;http://renditionprotocol.blogspot.com/2007/06/aspnet-custom-validator-for-comma.html&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://geekswithblogs.net/urig/archive/2006/07/27/86434.aspx"&gt;http://geekswithblogs.net/urig/archive/2006/07/27/86434.aspx&lt;/a&gt;&lt;/p&gt;&lt;a href="http://www.411asp.net/home/tutorial/specific/web/userinte/webcontr/comparev"&gt;http://www.411asp.net/home/tutorial/specific/web/userinte/webcontr/comparev&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://aspnet.4guysfromrolla.com/articles/073102-1.aspx"&gt;http://aspnet.4guysfromrolla.com/articles/073102-1.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-7900270733824974014?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/7900270733824974014/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=7900270733824974014' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/7900270733824974014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/7900270733824974014'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/04/customvalidator.html' title='CustomValidator'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-3716363522674907114</id><published>2008-03-04T11:55:00.004+05:30</published><updated>2008-03-04T12:00:13.383+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Double'/><category scheme='http://www.blogger.com/atom/ns#' term='Convert'/><category scheme='http://www.blogger.com/atom/ns#' term='Text'/><category scheme='http://www.blogger.com/atom/ns#' term='Float'/><category scheme='http://www.blogger.com/atom/ns#' term='String'/><title type='text'>Convert from String to Float in C#</title><content type='html'>There are 2 ways: -&lt;br /&gt;&lt;br /&gt;1) String to Double to Float (indirectly)&lt;br /&gt;fc.Price = (float)Convert.ToDouble(txtPrice.Text);&lt;br /&gt;&lt;br /&gt;2) String to Float (directly)&lt;br /&gt;fc.Price = float.Parse(txtPrice.Text);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-3716363522674907114?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/3716363522674907114/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=3716363522674907114' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/3716363522674907114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/3716363522674907114'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/03/convert-from-string-to-float-in-c.html' title='Convert from String to Float in C#'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-3681518182160285419</id><published>2008-02-21T18:14:00.001+05:30</published><updated>2008-02-21T18:37:47.341+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='RowDeleting'/><category scheme='http://www.blogger.com/atom/ns#' term='SelectedIndexChanged'/><category scheme='http://www.blogger.com/atom/ns#' term='Exception'/><title type='text'>The GridView 'gvManageProducts' fired event RowDeleting which wasn't handled.</title><content type='html'>To solve this exception do these:-&lt;br /&gt;&lt;br /&gt;protected void gvManageProducts_RowDeleting(object sender, GridViewDeleteEventArgs e)&lt;br /&gt;{&lt;br /&gt;   //required -do not remove&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;and also write this:-&lt;br /&gt;&lt;br /&gt;protected void gvManageProducts_SelectedIndexChanged(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt;   //required -do not remove&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-3681518182160285419?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/3681518182160285419/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=3681518182160285419' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/3681518182160285419'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/3681518182160285419'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/02/gridview-gvmanageproducts-fired-event.html' title='The GridView &apos;gvManageProducts&apos; fired event RowDeleting which wasn&apos;t handled.'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-4595436065061354890</id><published>2008-02-20T16:23:00.003+05:30</published><updated>2008-04-15T18:36:39.927+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='update'/><category scheme='http://www.blogger.com/atom/ns#' term='stored procedure'/><title type='text'>Pass a String (List) to a Stored Procedure and Update</title><content type='html'>ALTER PROCEDURE [dbo].[sprocUpdateStatusInProductMaster]&lt;br /&gt;@List nvarchar(4000) -- value assigned to @List from DataLayer&lt;br /&gt;AS&lt;br /&gt;BEGIN&lt;br /&gt;declare @ProdId2 int;&lt;br /&gt;declare @Status2 nvarchar(100);&lt;br /&gt;declare @CountRows int;&lt;br /&gt;&lt;a href="mailto:declare@val"&gt;mailto:declare@val&lt;/a&gt; int;&lt;br /&gt;declare @i int;&lt;br /&gt;set @i = 1;&lt;br /&gt;-- format of @List is @List = {1,True;2,False;3,True;4,False;5,False;}&lt;br /&gt;-- execute sprocUpdateStatusInProductMaster ';1,True;2,False;3,True;4,False;5,False;'&lt;br /&gt;set @List = ltrim(rtrim(Substring(@List,CharIndex(';',@List)+1,Len(@List)))); -- to eliminate the first semicolon ;&lt;br /&gt;while(len(@List)&gt;0)&lt;br /&gt;BEGIN&lt;br /&gt;set @ProdId2 = ltrim(rtrim(Substring(@List,1,CharIndex(',',@List)-1)));&lt;br /&gt;set @List = ltrim(rtrim(Substring(@List,len(@ProdId2)+2,len(@List))));&lt;br /&gt;set @Status2 = ltrim(rtrim(Substring(@List,1,CharIndex(';',@List)-1)));&lt;br /&gt;set @List = ltrim(rtrim(Substring(@List,len(@Status2)+2,len(@List))));&lt;br /&gt;&lt;br /&gt;update tblProductMaster set IsActive = @Status2&lt;br /&gt;where ProductID = @ProdId2;&lt;br /&gt;END&lt;br /&gt;END&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-4595436065061354890?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/4595436065061354890/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=4595436065061354890' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4595436065061354890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4595436065061354890'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/02/pass-string-list-to-stored-procedure.html' title='Pass a String (List) to a Stored Procedure and Update'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-8623767763349564621</id><published>2008-02-20T16:22:00.000+05:30</published><updated>2008-02-20T16:23:06.689+05:30</updated><title type='text'>Label to Integer</title><content type='html'>Label lbl = (Label)gvManageProducts.Rows[i].FindControl("lblProductId");&lt;br /&gt;int lblint = Int32.Parse(lbl.Text);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-8623767763349564621?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/8623767763349564621/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=8623767763349564621' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/8623767763349564621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/8623767763349564621'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/02/label-to-integer.html' title='Label to Integer'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-1598909266789843059</id><published>2008-01-11T18:25:00.000+05:30</published><updated>2008-01-11T18:27:24.597+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='values'/><title type='text'>To send two values from one page to another</title><content type='html'>Response.Redirect("AddEditQuestion.aspx QuestionId=" + intQuestionId + "&amp;QuizId=" + ViewState["QuizId"]);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-1598909266789843059?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/1598909266789843059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=1598909266789843059' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/1598909266789843059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/1598909266789843059'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/01/to-send-two-values-from-one-page-to.html' title='To send two values from one page to another'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-4300343062182085453</id><published>2008-01-11T16:56:00.005+05:30</published><updated>2008-04-15T18:35:43.006+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bool'/><category scheme='http://www.blogger.com/atom/ns#' term='Checkbox'/><title type='text'>Checkbox in to a boolean variable</title><content type='html'>bool isactive;&lt;br /&gt;if (chkCategoryActive.Checked)&lt;br /&gt;{&lt;br /&gt;fc.IsActive = true;&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;fc.IsActive = false;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;or it can also be written as&lt;br /&gt;&lt;br /&gt;fc.IsActive2 = Convert.ToBoolean(chkActive.Checked);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-4300343062182085453?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/4300343062182085453/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=4300343062182085453' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4300343062182085453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4300343062182085453'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/01/checkbox-in-to-boolean-variable.html' title='Checkbox in to a boolean variable'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-4438073918534902232</id><published>2008-01-10T17:04:00.001+05:30</published><updated>2008-01-10T17:40:27.024+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='OnRowCommand'/><category scheme='http://www.blogger.com/atom/ns#' term='OnPageIndexChanging'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='OnRowDeleting'/><title type='text'>Another Typical GridView</title><content type='html'>Take the code below and replace ( by &lt; and ) by &gt; in MsWord.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(%--(asp:GridView ID="dgdManageCategory" runat="server" AutoGenerateColumns="false" OnRowCommand="dgdManageCategory_RowCommand" OnRowDeleting="dgdManageCategory_RowDeleting" OnRowEditing="dgdManageCategory_RowEditing")         &lt;br /&gt;            (Columns)   &lt;br /&gt;                         &lt;br /&gt;                (asp:TemplateField HeaderText="CategoryID" Visible="false")                    &lt;br /&gt;                    (ItemTemplate)&lt;br /&gt;                        (asp:Label ID="lblCatID" runat="server" Text='(%# Eval("CategoryID")%)' /)&lt;br /&gt;                    (/ItemTemplate)&lt;br /&gt;                (/asp:TemplateField)&lt;br /&gt;                &lt;br /&gt;                (asp:TemplateField HeaderText="Status")&lt;br /&gt;                    (ItemTemplate)&lt;br /&gt;                        (asp:CheckBox ID="cbIsActive" runat="server" Checked='(%# Convert.ToBoolean(Eval("IsActive"))%)' /)&lt;br /&gt;                    (/ItemTemplate)&lt;br /&gt;                (/asp:TemplateField)&lt;br /&gt;                               &lt;br /&gt;                (asp:BoundField DataField="CategoryName" HeaderText="Category Name" ConvertEmptyStringToNull="true" /)&lt;br /&gt;                &lt;br /&gt;                (asp:TemplateField HeaderText="Edit")&lt;br /&gt;                   (ItemTemplate)&lt;br /&gt;                        (asp:Button ID="lbnEdit" runat="server" CommandArgument='(%# Eval("CategoryID")%)' CommandName="Edit" Text="Edit" /)&lt;br /&gt;                   (/ItemTemplate)&lt;br /&gt;               (/asp:TemplateField)&lt;br /&gt;               &lt;br /&gt;                (asp:TemplateField HeaderText="Delete")&lt;br /&gt;                   (ItemTemplate)&lt;br /&gt;                    (asp:Button ID="lbnDelete" runat="server" CommandArgument='(%# Eval("CategoryID")%)' CommandName="Delete" Text="Delete" &lt;br /&gt;                    OnClientClick="JavaScript:return confirm('Are you sure you want to delete ');"/)&lt;br /&gt;                   (/ItemTemplate)&lt;br /&gt;               (/asp:TemplateField)&lt;br /&gt;               &lt;br /&gt;               (asp:TemplateField HeaderText="Products")&lt;br /&gt;                   (ItemTemplate)&lt;br /&gt;                    (asp:Button ID="lbnProducts" runat="server" CommandArgument='(%# Eval("CategoryID")%)' CommandName="Products" Text="Products" /)&lt;br /&gt;                   (/ItemTemplate)&lt;br /&gt;               (/asp:TemplateField)  &lt;br /&gt;               &lt;br /&gt;            (/Columns)                    &lt;br /&gt;        (/asp:GridView)--%)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-4438073918534902232?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/4438073918534902232/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=4438073918534902232' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4438073918534902232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4438073918534902232'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/01/another-typical-gridview.html' title='Another Typical GridView'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-9188274500665686109</id><published>2008-01-10T16:59:00.000+05:30</published><updated>2008-01-10T17:45:16.702+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='OnRowEditing'/><category scheme='http://www.blogger.com/atom/ns#' term='OnRowCommand'/><category scheme='http://www.blogger.com/atom/ns#' term='Row'/><category scheme='http://www.blogger.com/atom/ns#' term='Delete'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='Edit'/><category scheme='http://www.blogger.com/atom/ns#' term='OnRowDeleting'/><title type='text'>A Typical GridView</title><content type='html'>Take the code below and replace ( by &lt; and ) by &gt; in MsWord.&lt;br /&gt;&lt;br /&gt;(asp:GridView ID="dgdManageUsers" runat="server" AutoGenerateColumns="False" &lt;br /&gt;        AllowPaging="true" PagerStyle-HorizontalAlign="Right" PagerSettings-Mode="Numeric" PagerSettings-PageButtonCount="3"&lt;br /&gt;        OnPageIndexChanging="dgdManageUsers_PageIndexChanging" EmptyDataText="No records found" OnRowDeleting="dgdManageUsers_RowDeleting" &lt;br /&gt;        OnRowCommand="dgdManageUsers_RowCommand" ) &lt;br /&gt;                 &lt;br /&gt;            (Columns)&lt;br /&gt;                (asp:TemplateField HeaderText="CategoryID" Visible="False")                    &lt;br /&gt;                    (ItemTemplate)&lt;br /&gt;                        (asp:Label ID="lblUserID" runat="server" Text='(%# Eval("UserId")%)'  /)&lt;br /&gt;                    (/ItemTemplate)&lt;br /&gt;                (/asp:TemplateField)                &lt;br /&gt;                     &lt;br /&gt;                (asp:BoundField HeaderText="Full Name" DataField="FullName" /)                       &lt;br /&gt;                &lt;br /&gt;                (asp:BoundField HeaderText="Email" DataField="Email" /)                &lt;br /&gt;                &lt;br /&gt;                (asp:BoundField HeaderText="Registration Date" DataField="RegistrationDate" /)                &lt;br /&gt;                &lt;br /&gt;                (asp:TemplateField HeaderText="Edit")&lt;br /&gt;                    (ItemTemplate)                    &lt;br /&gt;                        (asp:Button runat="server" ID="btnEdit" CommandName="Edit" CommandArgument='(%# Eval("UserId")%)' Text="Edit"/)&lt;br /&gt;                    (/ItemTemplate)&lt;br /&gt;                (/asp:TemplateField)&lt;br /&gt;                             &lt;br /&gt;                (asp:TemplateField HeaderText="Delete")&lt;br /&gt;                    (ItemTemplate)                    &lt;br /&gt;                        (asp:Button runat="server" ID="btnDelete" CommandName="Delete" CommandArgument='(%# Eval("UserId")%)' Text="Delete" &lt;br /&gt;                       OnClientClick="JavaScript:return confirm('Are you sure you want to delete ');" /)&lt;br /&gt;                    (/ItemTemplate)&lt;br /&gt;                (/asp:TemplateField)&lt;br /&gt;                &lt;br /&gt;                (asp:TemplateField)&lt;br /&gt;                    (ItemTemplate)                    &lt;br /&gt;                        (asp:TextBox runat="server" ID="txtEditBox" Visible="False" Text='(%# DataBinder.Eval(Container.DataItem,"Email") %)' /)&lt;br /&gt;                    (/ItemTemplate)                    &lt;br /&gt;                (/asp:TemplateField)     &lt;br /&gt;            (/Columns)&lt;br /&gt;            (PagerSettings PageButtonCount="3" /)&lt;br /&gt;            (PagerStyle HorizontalAlign="Right" /)&lt;br /&gt;                      &lt;br /&gt;        (/asp:GridView)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-9188274500665686109?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/9188274500665686109/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=9188274500665686109' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/9188274500665686109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/9188274500665686109'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/01/typical-gridview.html' title='A Typical GridView'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-4282642243058053233</id><published>2008-01-08T17:08:00.002+05:30</published><updated>2008-04-15T18:37:03.917+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='server'/><category scheme='http://www.blogger.com/atom/ns#' term='PostBack'/><category scheme='http://www.blogger.com/atom/ns#' term='IsPostBack'/><category scheme='http://www.blogger.com/atom/ns#' term='WebForm'/><title type='text'>if ( ! Page.IsPostBack)</title><content type='html'>if (!Page.IsPostBack)&lt;br /&gt;{&lt;br /&gt;populateUserDetailsGrid();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;-&gt; Working with any kind of WebForm is posting data back to the server to enable data and command processing. The populateUserDetailsGrid() method is fired when this above condition is not true.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-4282642243058053233?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/4282642243058053233/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=4282642243058053233' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4282642243058053233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4282642243058053233'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/01/if-pageispostback.html' title='if ( ! Page.IsPostBack)'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-671642470424421525</id><published>2008-01-07T18:52:00.000+05:30</published><updated>2008-01-07T20:10:01.962+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Paging'/><category scheme='http://www.blogger.com/atom/ns#' term='PageIndexChanging'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='Exception'/><title type='text'>The GridView 'gdABCD' fired event PageIndexChanging which wasn't handled.</title><content type='html'>1) If we change DataGrid to a GridView so inside any Event we change&lt;br /&gt;DataGridPageChangedEventArgs to GridViewPageEventArgs.&lt;br /&gt;&lt;br /&gt;2) If you set AllowPaging="true" or AllowSorting="true" on a GridView control without using a DataSourceControl DataSource (i.e. SqlDataSource, ObjectDataSource), you will run into the following errors: -&lt;br /&gt;&lt;br /&gt;When changing the page on the GridView control: -&lt;br /&gt;&lt;br /&gt;The GridView 'GridViewID' fired event PageIndexChanging which wasn't handled.&lt;br /&gt;When clicking a column name to sort the column on the GridView control:  -&lt;br /&gt;&lt;br /&gt;The GridView 'GridViewID' fired event Sorting which wasn't handled.&lt;br /&gt;&lt;br /&gt;As a result of not setting the DataSourceID property of the GridView to a DataSourceControl DataSource, you have to add event handlers for sorting and paging.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-671642470424421525?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/671642470424421525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=671642470424421525' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/671642470424421525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/671642470424421525'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/01/gridview-gdabcd-fired-event.html' title='The GridView &apos;gdABCD&apos; fired event PageIndexChanging which wasn&apos;t handled.'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-9046051742644516332</id><published>2008-01-07T15:58:00.002+05:30</published><updated>2008-04-15T18:36:09.407+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='PageIndex'/><category scheme='http://www.blogger.com/atom/ns#' term='code behind'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><title type='text'>GridView PageIndex Code Behind</title><content type='html'>protected void gridView_PageIndexChanging(object sender, GridViewPageEventArgs e)&lt;br /&gt;{&lt;br /&gt;gridView.PageIndex = e.NewPageIndex;&lt;br /&gt;gridView.DataBind();&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-9046051742644516332?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/9046051742644516332/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=9046051742644516332' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/9046051742644516332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/9046051742644516332'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/01/gridview-pageindex-code-behind.html' title='GridView PageIndex Code Behind'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-5703286555998362643</id><published>2008-01-07T12:08:00.001+05:30</published><updated>2008-01-07T12:08:55.339+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Paging'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><title type='text'>Paging concepts in GridView</title><content type='html'>&lt;p&gt;The DataGrid control requires additional coding for paging. The GridView control automatically supports paging by setting the &lt;a href="http://authors.aspalliance.com/aspxtreme/sys/web/ui/webcontrols/GridViewClassPagerSettings.aspx"&gt;PagerSettings&lt;/a&gt; property. The PagerSettings property supports four modes: &lt;a href="http://authors.aspalliance.com/aspxtreme/sys/web/ui/webcontrols/PagerButtonsClassNumeric.aspx"&gt;Numeric&lt;/a&gt; ( default ), &lt;a href="http://authors.aspalliance.com/aspxtreme/sys/web/ui/webcontrols/PagerButtonsClassNextPrevious.aspx"&gt;NextPrevious&lt;/a&gt;, &lt;a href="http://authors.aspalliance.com/aspxtreme/sys/web/ui/webcontrols/PagerButtonsClassNumericFirstLast.aspx"&gt;NumericFirstLast&lt;/a&gt;, and &lt;a href="http://authors.aspalliance.com/aspxtreme/sys/web/ui/webcontrols/PagerButtonsClassNextPreviousFirstLast.aspx"&gt;NextPreviousFirstLast&lt;/a&gt;. &lt;/p&gt;&lt;p&gt;The Numeric mode displays numbered page links instead of "next/prev" links, and the NumericFirstLast option adds first and last page links. The GridView control's &lt;a href="http://authors.aspalliance.com/aspxtreme/sys/web/ui/webcontrols/GridViewClassPagerStyle.aspx"&gt;PagerStyle&lt;/a&gt; property can be used to set styles and the position of the pager.&lt;br /&gt;Additionally, you can customize the pager buttons for the GridView control using a PagerTemplate. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;Custom paging support in the GridView is supplied by the bound data source control as opposed to the &lt;a href="http://authors.aspalliance.com/aspxtreme/sys/web/ui/webcontrols/DataGridClassAllowCustomPaging.aspx"&gt;AllowCustomPaging&lt;/a&gt; mechanism supplied by the DataGrid control. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-5703286555998362643?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/5703286555998362643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=5703286555998362643' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/5703286555998362643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/5703286555998362643'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/01/paging-concepts-in-gridview.html' title='Paging concepts in GridView'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-455135226700018596</id><published>2008-01-04T17:53:00.000+05:30</published><updated>2008-01-04T18:01:12.763+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SelectedRow'/><category scheme='http://www.blogger.com/atom/ns#' term='Row'/><category scheme='http://www.blogger.com/atom/ns#' term='RowIndex'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='SelectedIndexChanged'/><title type='text'>Get Row Index with Gridview Select Button</title><content type='html'>When you autoGenerate a Select button with a Gridview, to find the RowIndex for that particular row, you can use the SelectedIndexChanged Event.&lt;br /&gt;&lt;br /&gt;Inside that event, try something like this (with a label called 'Label1':&lt;br /&gt;&lt;br /&gt;Dim row As GridViewRow = MyGridView.SelectedRow&lt;br /&gt;Dim intRow as Integer=Row.RowIndex&lt;br /&gt;label1.text=intRow.ToString&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;GridViewRow gvr = new GridViewRow();&lt;br /&gt;gvr = dgdManageUsers.SelectedIndex;&lt;br /&gt;int introw = gvr.RowIndex;&lt;br /&gt;label1.text=intRow.ToString;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-455135226700018596?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/455135226700018596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=455135226700018596' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/455135226700018596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/455135226700018596'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/01/get-row-index-with-gridview-select.html' title='Get Row Index with Gridview Select Button'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-5920940104590670643</id><published>2008-01-04T12:12:00.000+05:30</published><updated>2008-01-04T12:13:28.527+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><title type='text'>Some CSS Examples</title><content type='html'>body {&lt;br /&gt;background: #FFFFFF;&lt;br /&gt;color: #000000;&lt;br /&gt;margin: 0;&lt;br /&gt;padding: 0;&lt;br /&gt;}&lt;br /&gt;p {&lt;br /&gt;font-family: Arial;&lt;br /&gt;font-size: 12px;&lt;br /&gt;}&lt;br /&gt;h1 {&lt;br /&gt;font-family: Arial;&lt;br /&gt;font-size: 14px;&lt;br /&gt;color: #000000;&lt;br /&gt;}&lt;br /&gt;a:link {&lt;br /&gt;font-family: Arial;&lt;br /&gt;font-size: 12px;&lt;br /&gt;color: #000000;&lt;br /&gt;}&lt;br /&gt;a:hover {&lt;br /&gt;font-family: Arial;&lt;br /&gt;font-size: 12px;&lt;br /&gt;color: #FF0000;&lt;br /&gt;}&lt;br /&gt;.textbox {&lt;br /&gt;font-family: Arial;&lt;br /&gt;font-size: 12px;&lt;br /&gt;border: 1px solid black;&lt;br /&gt;}&lt;br /&gt;.button {&lt;br /&gt;font-family: Arial;&lt;br /&gt;border: 1px solid black;&lt;br /&gt;background-color: #CCCCCC;&lt;br /&gt;}&lt;br /&gt;.dropdownmenu {&lt;br /&gt;font-family: Arial;&lt;br /&gt;font-size: 12px;&lt;br /&gt;background-color: #CCCCCC;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-5920940104590670643?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/5920940104590670643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=5920940104590670643' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/5920940104590670643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/5920940104590670643'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/01/some-css-examples.html' title='Some CSS Examples'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-1028949830216010729</id><published>2008-01-04T12:00:00.000+05:30</published><updated>2008-01-04T12:01:33.551+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='DataGrid'/><title type='text'>ItemStyle/HeaderStyle Properties not working with DataGrid</title><content type='html'>Remember that a DataGrid generates an HTML Table, with TableRows and Cells. If you have ItemStyle/HeaderStyle/SelectedItem/FooterStyle tags with display properties (like forecolor/bold/font properties) and some of them are not displaying like you think they should, be sure to check your page for a StyleSheet.&lt;br /&gt;&lt;br /&gt;If you have a TD tag section in your page's stylesheet - -whatever properties you set there will normally override whatever you add into your DataGrid's Item styles.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-1028949830216010729?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/1028949830216010729/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=1028949830216010729' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/1028949830216010729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/1028949830216010729'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2008/01/itemstyleheaderstyle-properties-not.html' title='ItemStyle/HeaderStyle Properties not working with DataGrid'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-2278709223158562127</id><published>2007-12-05T16:33:00.002+05:30</published><updated>2008-05-07T11:43:05.408+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='DataGrid'/><category scheme='http://www.blogger.com/atom/ns#' term='Print'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>How To Print a Data Grid in C# and .NET</title><content type='html'>To get the solution visit the link below: -&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.c-sharpcorner.com/UploadFile/mgold/HowToPrintaDataGridinCsHARPand.NET11212005060838AM/HowToPrintaDataGridinCsHARPand.NET.aspx"&gt;http://www.c-sharpcorner.com/UploadFile/mgold/HowToPrintaDataGridinCsHARPand.NET11212005060838AM/HowToPrintaDataGridinCsHARPand.NET.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-2278709223158562127?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/2278709223158562127/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=2278709223158562127' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/2278709223158562127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/2278709223158562127'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2007/12/how-to-print-data-grid-in-c-and-net.html' title='How To Print a Data Grid in C# and .NET'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-4213380602234311669</id><published>2007-11-30T12:48:00.000+05:30</published><updated>2007-11-30T12:51:41.542+05:30</updated><title type='text'>Paging does not occur (Why?)</title><content type='html'>&lt;em&gt;&lt;strong&gt;Problem&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;AllowCustomPaging must be true and VirtualItemCount must be set for a DataGrid with ID 'dgdManageUsers' when AllowPaging is set to true and the selected data source does not implement ICollection.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Solution&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;1. Solving AllowCustomPaging must be true and VirtualItemCount must be set for a DataGrid&lt;br /&gt;2. This error usually comes when you are binding a paging enabled grid using DataReader. DataReader is forward only. So paging can't work. To solve this bind the grid with Dataset.&lt;br /&gt;&lt;br /&gt;This works :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-4213380602234311669?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/4213380602234311669/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=4213380602234311669' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4213380602234311669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/4213380602234311669'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2007/11/paging-does-not-occur-why.html' title='Paging does not occur (Why?)'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-3735939774397991145</id><published>2007-11-27T17:51:00.000+05:30</published><updated>2007-11-27T17:52:22.414+05:30</updated><title type='text'>4 Guys from Rolla</title><content type='html'>ASP.NET Help: -&lt;br /&gt;&lt;br /&gt;&lt;a href="http://aspnet.4guysfromrolla.com/articles/040502-1.aspx"&gt;http://aspnet.4guysfromrolla.com/articles/040502-1.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-3735939774397991145?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/3735939774397991145/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=3735939774397991145' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/3735939774397991145'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/3735939774397991145'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2007/11/4-guys-from-rolla.html' title='4 Guys from Rolla'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-179766690664805914.post-36533203966555764</id><published>2007-11-21T11:54:00.000+05:30</published><updated>2007-11-21T12:06:37.249+05:30</updated><title type='text'>Blog of Satheesh Babu</title><content type='html'>&lt;p&gt;Blog of Satheesh Babu on Dot Net Technologies: -&lt;/p&gt;&lt;p&gt;&lt;a href="http://satheeshbabu.blogspot.com/"&gt;http://satheeshbabu.blogspot.com/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Dot Net Tutorial: -&lt;/p&gt;&lt;p&gt;&lt;a href="http://msconline.maconstate.edu/tutorials/ASPNET20/default.htm"&gt;http://msconline.maconstate.edu/tutorials/ASPNET20/default.htm&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/179766690664805914-36533203966555764?l=dotnetvai.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetvai.blogspot.com/feeds/36533203966555764/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=179766690664805914&amp;postID=36533203966555764' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/36533203966555764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/179766690664805914/posts/default/36533203966555764'/><link rel='alternate' type='text/html' href='http://dotnetvai.blogspot.com/2007/11/tribute-to-satheesh-babu-for-his-blog.html' title='Blog of Satheesh Babu'/><author><name>Vaijayanta Chattoraj</name><uri>http://www.blogger.com/profile/13088462847056511662</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_a7_k_3ALqAM/TQfJEVanmqI/AAAAAAAABLw/3H1P4AEbkN0/S220/DSC02915-3.JPG'/></author><thr:total>0</thr:total></entry></feed>
