<?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-7178235408131847449</id><updated>2012-02-15T22:30:54.094-08:00</updated><category term='articles'/><category term='Visual Studio'/><category term='Create Salt/IV file'/><category term='DotnetSpark'/><category term='Input Box'/><category term='named ranges'/><category term='delete #REF'/><category term='javascript'/><category term='table; Oracle'/><category term='list'/><category term='gridview'/><category term='autocomplete combobox'/><category term='Tools for .Net'/><category term='data between two dates'/><category term='functions'/><category term='shortcut keys'/><category term='Oracle'/><category term='validation'/><category term='Datagrid'/><category term='Shortcut keys for Visual Studio'/><category term='Devexpress; bar chart; xtracharts; webchartcontrol; asp.net'/><category term='job interview questions'/><category term='commands'/><category term='excel'/><category term='delete'/><category term='nested grid'/><category term='remoting'/><category term='Sql server 2008'/><category term='DotNetSpider'/><category term='Group count'/><category term='Autocomplete textbox'/><category term='webmaster; gujaratspider'/><category term='summary field'/><category term='file'/><category term='Winner'/><category term='difference'/><category term='SHA1 algorithm'/><category term='Wintooltipmanager'/><category term='mysql'/><category term='tips and tricks'/><category term='add serial number'/><category term='MVP'/><category term='policy'/><category term='XML'/><category term='dataset'/><category term='provacy'/><category term='pivoting insert'/><category term='autocomplete'/><category term='VB'/><category term='infragistics'/><category term='crystal report'/><category term='themes'/><category term='ultragrid'/><category term='Editor'/><category term='C#'/><category term='print'/><category term='Devexpress; asp.net'/><category term='winlabel'/><category term='Sql plus'/><category term='adsense'/><category term='DotnetFunda'/><category term='MDI'/><category term='asp.net'/><category term='hortcut keys for Windows'/><category term='log; file'/><category term='progress bar'/><category term='Windows Application'/><category term='drag and drop text'/><title type='text'>Sharing my knowledge and experiences - Microsoft MVP ASP.Net</title><subtitle type='html'>- A .Net Programming (Web &amp;amp; Windows) &lt;br&gt;
- Database (SQL Server, MySQL, Oracle 9i, Oracle 10g) &lt;br&gt;
- JavaScript, VB, XML, Ajax &lt;br&gt;
- Reports (Crystal &amp;amp; Jasper)&lt;br&gt;
- Infragistics, Devexpress</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>84</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-6039842178629473615</id><published>2011-06-16T06:19:00.000-07:00</published><updated>2011-06-16T06:19:29.517-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='webmaster; gujaratspider'/><title type='text'>Feels great! Webmaster of GujaratSpider Site</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;It feels great to be a webmaster of a site (&lt;a href="http://www.gujaratspider.com/"&gt;www.GujaratSpider.com&lt;/a&gt;) holding many responsibilities.&lt;br /&gt;&lt;br /&gt;Also my name (1st one from top) is included in About Us page.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.gujaratspider.com/general/AboutUs.aspx"&gt;http://www.gujaratspider.com/general/AboutUs.aspx&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-6039842178629473615?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/6039842178629473615/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2011/06/feels-great-webmaster-of-gujaratspider.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/6039842178629473615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/6039842178629473615'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2011/06/feels-great-webmaster-of-gujaratspider.html' title='Feels great! Webmaster of GujaratSpider Site'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-716814295018507673</id><published>2010-11-02T07:13:00.000-07:00</published><updated>2010-11-02T07:13:20.977-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DotNetSpider'/><title type='text'>In About Us page of DNS</title><content type='html'>Now I am in the &lt;a href="http://www.dotnetspider.com/general/AboutUs.aspx"&gt;About Us&lt;/a&gt; page of DNS (DotNetSpider). Feels great.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-716814295018507673?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/716814295018507673/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/11/in-about-us-page-of-dns.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/716814295018507673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/716814295018507673'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/11/in-about-us-page-of-dns.html' title='In About Us page of DNS'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-6092191271773425729</id><published>2010-11-02T07:02:00.001-07:00</published><updated>2010-11-02T07:02:57.528-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Application'/><category scheme='http://www.blogger.com/atom/ns#' term='infragistics'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>How to sort columns in Infragistics WinGrid</title><content type='html'>&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: #666362; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;span id="ctl00_ContentPlaceHolder1_lblDescription" style="color: darkblue;"&gt;This code demonstrates how WinGrid allows the user to sort on both single and multiple columns by clicking on the column headers. The UltraWinGrid allows user to sort by setting the .HeaderClickAction property to either .SortSingle or .SortMulti.&lt;br /&gt;&lt;br /&gt;Below are the steps to achieve the same&lt;br /&gt;&lt;br /&gt;1. Adding using/imports directives&lt;br /&gt;&lt;b&gt;VB:&lt;/b&gt;&lt;br /&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;br /&gt;Imports Infragistics.Win.UltraWinGrid&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;C#:&lt;/b&gt;&lt;br /&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;using Infragistics.Win.UltraWinGrid;&lt;/pre&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;2. The InitializeLayout event of UltraGrid sets the default HeaderClickAction for all bands and all columns&lt;br /&gt;&lt;br /&gt;&lt;b&gt;VB:&lt;/b&gt;&lt;br /&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;Private Sub UGSort_InitializeLayout(ByVal sender As Object, _&lt;br /&gt;  ByVal e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) _&lt;br /&gt;  Handles UGSort.InitializeLayout&lt;br /&gt;   e.Layout.Override.HeaderClickAction = HeaderClickAction.SortSingle&lt;br /&gt;End Sub&lt;/pre&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;C#:&lt;/b&gt;&lt;br /&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;private void UGSort_InitializeLayout(object sender, &lt;br /&gt;  Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)&lt;br /&gt;{&lt;br /&gt; e.Layout.Override.HeaderClickAction = HeaderClickAction.SortSingle;&lt;br /&gt;}&lt;/pre&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;3. The code in the Button Click event instructs the UltraWinGrid to sort on band 1 column 2 in Descending order&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Visual Basic:&lt;/b&gt;&lt;br /&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;Private Sub btnSortBand1Column2_Click(ByVal sender As System.Object, _&lt;br /&gt;  ByVal e As System.EventArgs) Handles btnSortBand1Column3.Click&lt;br /&gt; Me.UltraGrid1.DisplayLayout.Bands(1).Columns(2).SortIndicator = _&lt;br /&gt;   SortIndicator.Descending&lt;br /&gt;End Sub&lt;/pre&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;C#:&lt;/b&gt;&lt;br /&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;private void btnSortBand1Column2_Click(object sender, EventArgs e)&lt;br /&gt;{&lt;br /&gt; this.ultraGrid1.DisplayLayout.Bands[1].Columns[2].SortIndicator = &lt;br /&gt;   SortIndicator.Descending;&lt;br /&gt;}&lt;/pre&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-6092191271773425729?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/6092191271773425729/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/11/how-to-sort-columns-in-infragistics.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/6092191271773425729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/6092191271773425729'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/11/how-to-sort-columns-in-infragistics.html' title='How to sort columns in Infragistics WinGrid'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-987022038087501478</id><published>2010-11-02T06:55:00.000-07:00</published><updated>2010-11-02T06:55:27.760-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Application'/><category scheme='http://www.blogger.com/atom/ns#' term='infragistics'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>How to choose column chooser feature in Infragistics Wingrid</title><content type='html'>&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;This code demonstrates using the&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;b&gt;Column Chooser&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;functionality to display a dialog similar to Microsoft Outlook's Field Chooser where the user can choose columns to display in the&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;b&gt;WinGrid&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;.&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;Now, lets start with the step by step process of how we can achieve the same&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;1. Add using/imports directives&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;b&gt;VB:&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;br /&gt;Imports Infragistics.Win&lt;br /&gt;Imports Infragistics.Win.UltraWinGrid&lt;/code&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;b&gt;C#:&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;using Infragistics.Win;&lt;br /&gt;using Infragistics.Win.UltraWinGrid;&lt;/pre&gt;&lt;/code&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;2. The&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;b&gt;WinGrid&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;has in-built&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;i&gt;RowSelectorheaderstyle&lt;/i&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;property to choose the column button which will display a button in the row selector area. You can change the appearance of it by&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;i&gt;RowSelectorHeaderAppearance&lt;/i&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;property.&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;b&gt;VB:&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;' Set the RowSelectorHeaderStyle property to ColumnChooserButton.&lt;br /&gt;Me.UltraGrid1.DisplayLayout.Override.RowSelectorHeaderStyle = _&lt;br /&gt;  RowSelectorHeaderStyle.ColumnChooserButton&lt;br /&gt;&lt;br /&gt;' Enable the RowSelectors. &lt;br /&gt;Me.UltraGrid1.DisplayLayout.Override.RowSelectors = DefaultableBoolean.True&lt;br /&gt;&lt;br /&gt;' If you want to change the BackColor of the button then you need to&lt;br /&gt;' set the ThemedElementAlpha property to Transparent otherwise BackColor setting won't be ' honored. &lt;br /&gt;Me.UltraGrid1.DisplayLayout.Override.RowSelectorHeaderAppearance.ThemedElementAlpha = Alpha.Transparent&lt;br /&gt;Me.UltraGrid1.DisplayLayout.Override.RowSelectorHeaderAppearance.BackColor = Color.Blue&lt;/pre&gt;&lt;/code&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;b&gt;C#:&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;// Set the RowSelectorHeaderStyle to ColumnChooserButton.&lt;br /&gt;this.ultraGrid1.DisplayLayout.Override.RowSelectorHeaderStyle = &lt;br /&gt;  RowSelectorHeaderStyle.ColumnChooserButton;&lt;br /&gt;&lt;br /&gt;// Enable the RowSelectors. &lt;br /&gt;this.ultraGrid1.DisplayLayout.Override.RowSelectors = DefaultableBoolean.True;&lt;br /&gt;&lt;br /&gt;// If you want to change the BackColor of the button then you need to&lt;br /&gt;//set the ThemedElementAlpha property to Transparent otherwise BackColor setting won't be //honored. &lt;br /&gt;this.ultraGrid1.DisplayLayout.Override.RowSelectorHeaderAppearance.ThemedElementAlpha = Alpha.Transparent;&lt;br /&gt;this.ultraGrid1.DisplayLayout.Override.RowSelectorHeaderAppearance.BackColor = Color.Blue;&lt;/pre&gt;&lt;/code&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;3. You can also have your own user interface for displaying the column chooser.&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;b&gt;UltraGridColumnChooser&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;is derived from .NET Control class. It displays list of columns &amp;amp; implements drag-n-drop functionality. ColumnChooserDialog derives from .NET Form class. It simply embeds&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;b&gt;UltragridColumnChooser&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;inset it.&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;The following code demonstrates how to display column chooser dialog.&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;b&gt;Visual Basic:&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;' Create an instance of the ColumnChooserDialog.&lt;br /&gt;Dim dlg As ColumnChooserDialog = New ColumnChooserDialog()&lt;br /&gt;&lt;br /&gt;dlg.Owner = Me&lt;br /&gt;&lt;br /&gt;Dim cc As UltraGridColumnChooser = dlg.ColumnChooserControl&lt;br /&gt;&lt;br /&gt;' Associate a WinGrid to the column chooser. &lt;br /&gt;cc.SourceGrid = Me.UltraGrid1&lt;br /&gt;&lt;br /&gt;cc.CurrentBand = Me.UltraGrid1.DisplayLayout.Bands(0)&lt;br /&gt;&lt;br /&gt;cc.Style = ColumnChooserStyle.AllColumnsWithCheckBoxes&lt;br /&gt;cc.MultipleBandSupport = MultipleBandSupport.SingleBandOnly&lt;br /&gt;&lt;br /&gt;' Set location, size etc...&lt;br /&gt;dlg.Size = New Size(150, 300)&lt;br /&gt;&lt;br /&gt;dlg.Show()&lt;/pre&gt;&lt;/code&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;b&gt;C#:&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;// Create an instance of the ColumnChooserDialog.&lt;br /&gt;ColumnChooserDialog dlg = new ColumnChooserDialog( );&lt;br /&gt;&lt;br /&gt;dlg.Owner = this;&lt;br /&gt;&lt;br /&gt;UltraGridColumnChooser cc = dlg.ColumnChooserControl;&lt;br /&gt;&lt;br /&gt;// Associate a WinGrid to the column chooser. &lt;br /&gt;cc.SourceGrid = this.ultraGrid1;&lt;br /&gt;&lt;br /&gt;cc.CurrentBand = this.ultraGrid1.DisplayLayout.Bands[0];&lt;br /&gt;&lt;br /&gt;cc.Style = ColumnChooserStyle.AllColumnsAndChildBandsWithCheckBoxes;&lt;br /&gt;cc.MultipleBandSupport = MultipleBandSupport.SingleBandOnly;&lt;br /&gt;&lt;br /&gt;// Set location, size etc...&lt;br /&gt;dlg.Size = new Size( 150, 300 );&lt;br /&gt;&lt;br /&gt;dlg.Show( );&lt;/pre&gt;&lt;/code&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-987022038087501478?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/987022038087501478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/11/how-to-choose-column-chooser-feature-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/987022038087501478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/987022038087501478'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/11/how-to-choose-column-chooser-feature-in.html' title='How to choose column chooser feature in Infragistics Wingrid'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-5175901523785782442</id><published>2010-11-02T06:48:00.000-07:00</published><updated>2010-11-02T06:48:38.633-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Application'/><category scheme='http://www.blogger.com/atom/ns#' term='infragistics'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>How to bind WinGrid to obtain a card view layout - Infragistics</title><content type='html'>&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;This code shows how to obtain a card view layout with the help of Infragistics WinGrid. WinGrid helps you to easily print and export your data in the form of excel or PDF document.&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;1. Bind grid to a DataSource (Same as we do in usual Gridview)&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;img alt="wingrid1" src="http://www.dotnetspider.com/attachments/Resources/40882-12348-11.bmp" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;2. Now we need to obtain a card view layout which can be achieved by properties of Displaylayout object&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;b&gt;VB:&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;br /&gt;'You must set this property in order to print in card view.&lt;br /&gt;Me.UltraGrid1.DisplayLayout.AllowCardPrinting = _&lt;br /&gt;   Infragistics.Win.UltraWinGrid.AllowCardPrinting.RootBandOnly&lt;br /&gt;&lt;br /&gt;'Display WinGrid in card view.&lt;br /&gt;Me.UltraGrid1.DisplayLayout.Bands(0).CardView = True&lt;br /&gt;&lt;br /&gt;'Set a caption for each card using the CompanyName field.&lt;br /&gt;Me.UltraGrid1.DisplayLayout.Bands(0).CardSettings.CaptionField = "CompanyName"&lt;/code&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;b&gt;C#:&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;//You must set this property in order to print in card view.&lt;br /&gt;this.ultraGrid1.DisplayLayout.AllowCardPrinting = Infragistics.Win.UltraWinGrid.AllowCardPrinting.RootBandOnly;&lt;br /&gt;&lt;br /&gt;//Display WinGrid in card view.&lt;br /&gt;this.ultraGrid1.DisplayLayout.Bands[0].CardView = true;&lt;br /&gt;&lt;br /&gt;//Set a caption for each card using the CompanyName field.&lt;br /&gt;this.ultraGrid1.DisplayLayout.Bands[0].CardSettings.CaptionField = CompanyName";&lt;/pre&gt;&lt;/code&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;3. To print cards (print layout) you need to write code in InitializePrintPreview event&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;b&gt;VB:&lt;/b&gt;&lt;br /&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;'Standard labels makes it easier for each card to stand on its own, allowing you 'to possibly cut out the cards for distribution.&lt;br /&gt;e.PrintLayout.Bands(0).CardSettings.Style = _ Infragistics.Win.UltraWinGrid.CardStyle.StandardLabels&lt;br /&gt;&lt;br /&gt;'Setting the MaxCardAreaCols and MaxCardAreaRows properties allow you to limit 'the amount of cards per page. Setting these properties to 3 will give you nine 'cards per page.&lt;br /&gt;e.PrintLayout.Bands(0).CardSettings.MaxCardAreaCols = 3&lt;br /&gt;e.PrintLayout.Bands(0).CardSettings.MaxCardAreaRows = 3&lt;br /&gt;&lt;br /&gt;'Each card will automatically increase width in order to fit in the available space.&lt;br /&gt;e.PrintLayout.Bands(0).CardSettings.AutoFit = True&lt;/pre&gt;&lt;/code&gt;&lt;b&gt;C#:&lt;/b&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;//Standard labels makes it easier for each card to&lt;br /&gt;//stand on its own, allowing you to possibly cut out the cards for distribution.&lt;br /&gt;e.PrintLayout.Bands[0].CardSettings.Style = Infragistics.Win.UltraWinGrid.CardStyle.StandardLabels;&lt;br /&gt;&lt;br /&gt;//Setting the MaxCardAreaCols and MaxCardAreaRows properties allow you to limit //the amount of cards per page. Setting these properties to 3 will give you nine //cards per page.&lt;br /&gt;e.PrintLayout.Bands[0].CardSettings.MaxCardAreaCols = 3;&lt;br /&gt;e.PrintLayout.Bands[0].CardSettings.MaxCardAreaRows = 3;&lt;br /&gt;&lt;br /&gt;//Each card will automatically increase width in order to fit in the available space.&lt;br /&gt;e.PrintLayout.Bands[0].CardSettings.AutoFit = true;&lt;/pre&gt;&lt;/code&gt;4. For print preview write this code on the button click event of Print Preview&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;b&gt;VB:&lt;/b&gt;&lt;br /&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;'Calling the PrintPreview method displays WinGrid's print preview dialog box.&lt;br /&gt;Me.UltraGrid1.PrintPreview()&lt;/pre&gt;&lt;/code&gt;&lt;b&gt;C#:&lt;/b&gt;&lt;/pre&gt;&lt;/code&gt;//Calling the PrintPreview method displays WinGrid's print preview dialog box.this.ultraGrid1.PrintPreview();&lt;/pre&gt;&lt;/code&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;5. Now Run the application and you'll see the output in the form of card view.&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;img alt="wingrid2" src="http://www.dotnetspider.com/attachments/Resources/40882-12349-12.bmp" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;6. Output on Print Preview&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;img alt="wingrid3" src="http://www.dotnetspider.com/attachments/Resources/40882-12350-13.bmp" /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-5175901523785782442?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/5175901523785782442/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/11/how-to-bind-wingrid-to-obtain-card-view.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/5175901523785782442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/5175901523785782442'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/11/how-to-bind-wingrid-to-obtain-card-view.html' title='How to bind WinGrid to obtain a card view layout - Infragistics'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-1592741938937307951</id><published>2010-10-07T01:39:00.000-07:00</published><updated>2010-10-05T01:42:34.022-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Application'/><title type='text'>Draw line on Windows Form</title><content type='html'>&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;Drawing simple lines on a Windows form is not easier as there is no Line control. Still you can make a line by using a Panel control and setting its width or height to a few pixels. But if you want a real line, the secret is in understanding the correct set of library methods you need.&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;To draw a line with code you need to use GDI +(i.e. the .NET graphics library)&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;b&gt;In VB:&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;/code&gt;&lt;br /&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;/code&gt;&lt;br /&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;Private Sub btnOk_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint &lt;br /&gt;    Dim g As Graphics = e.Graphics &lt;br /&gt;    Dim penLine As Pen = New Pen(Color.CornflowerBlue, 12) &lt;br /&gt;    g.DrawLine(penLine, 15, 0, 15, Me.Height) &lt;br /&gt;    penLine.Dispose() &lt;br /&gt;End Sub&lt;/pre&gt;&lt;/code&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;b&gt;In C#:&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;private void btnOk_Paint(object sender,System.Windows.Forms.PaintEventArgs e) &lt;br /&gt;{ &lt;br /&gt;  Graphics g = e.Graphics; &lt;br /&gt;  Pen penLine = new Pen(Color.CornflowerBlue, 12); &lt;br /&gt;  g.DrawLine(penLine, 15, 0, 15, this.Height); &lt;br /&gt;  penLine.Dispose(); &lt;br /&gt;} &lt;/pre&gt;&lt;/code&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-1592741938937307951?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/1592741938937307951/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/10/draw-line-on-windows-form.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/1592741938937307951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/1592741938937307951'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/10/draw-line-on-windows-form.html' title='Draw line on Windows Form'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-2336883897885673963</id><published>2010-10-06T02:00:00.000-07:00</published><updated>2010-10-06T02:00:00.357-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='SHA1 algorithm'/><title type='text'>Using SHA1 algorithm</title><content type='html'>&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;The following code demonstrates using SHA1 algorithm to hash a password:&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;b&gt;In VB:&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;Imports System.Security.Cryptography &lt;br /&gt;Public Function ComputeSHA1(ByVal textToHash As String) As String &lt;br /&gt;    Dim SHA1 As SHA1CryptoServiceProvider = New SHA1CryptoServiceProvider &lt;br /&gt;    Dim byteV As Byte() = System.Text.Encoding.UTF8.GetBytes(textToHash) &lt;br /&gt;    Dim byteH As Byte() = SHA1.ComputeHash(byteV) &lt;br /&gt;    SHA1.Clear() &lt;br /&gt;    Return Convert.ToBase64String(byteH) &lt;br /&gt;End Function &lt;/pre&gt;&lt;/code&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;b&gt;In C#:&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;using System.Security.Cryptography; &lt;br /&gt;public static String ComputeSHA1(string textToHash) &lt;br /&gt;{ &lt;br /&gt;    SHA1CryptoServiceProvider SHA1 = new SHA1CryptoServiceProvider(); &lt;br /&gt;    byte[] byteV = System.Text.Encoding.UTF8.GetBytes(textToHash); &lt;br /&gt;    byte[] byteH = SHA1.ComputeHash(byteV); &lt;br /&gt;    SHA1.Clear(); &lt;br /&gt;    return Convert.ToBase64String(byteH); &lt;br /&gt;} &lt;/pre&gt;&lt;/code&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-2336883897885673963?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/2336883897885673963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/10/using-sha1-algorithm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/2336883897885673963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/2336883897885673963'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/10/using-sha1-algorithm.html' title='Using SHA1 algorithm'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-5655462260486705577</id><published>2010-10-05T01:37:00.000-07:00</published><updated>2010-10-05T01:37:04.443-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB'/><category scheme='http://www.blogger.com/atom/ns#' term='tips and tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio'/><title type='text'>DirectCast better than CType</title><content type='html'>&lt;h2 style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: #3366aa; font-family: Helvetica, Arial, 'Times New Roman'; font-size: 18px; line-height: 20px; margin-bottom: 2px; margin-left: 1px; margin-right: 2px; margin-top: 2px;"&gt;DirectCast&lt;/h2&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;performs better than using CType when casting from an object to a more specific type because it does not use runtime helper functions.&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;The below example shows way to cast from type Object to another type with VB:&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;Private Sub txt_Submit(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtUId.Submit &lt;br /&gt;    DirectCast(sender, TextBox).BackColor = Color.Yellow&lt;br /&gt;End Sub &lt;/pre&gt;&lt;/code&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;The&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;b&gt;DirectCast&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;statement in this example casts the sender variable that is of type Object to a TextBox control in order to access the TextBox properties.&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;You can use DirectCast only when casting from a type to a related but more specific type, called a derived type.&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;u&gt;For example&lt;/u&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;, you can use DirectCast to cast from type Control to type TextBox because TextBox is derived from Control. You cannot use DirectCast to convert from an Integer to a String type because String is not derived from Integer. DirectCast can always be used to cast from type Object to any other type because all other types derive from type Object.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-5655462260486705577?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/5655462260486705577/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/10/directcast-better-than-ctype.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/5655462260486705577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/5655462260486705577'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/10/directcast-better-than-ctype.html' title='DirectCast better than CType'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-4835851429635015809</id><published>2010-09-22T22:32:00.001-07:00</published><updated>2010-09-22T22:32:35.655-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='log; file'/><title type='text'>Create a Log File</title><content type='html'>&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;This code snippet demonstrates the use to create a log file to store either your error or informational thing like storing executed queries etc.&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;Here you need to pass the message when you call this function. You can also specify drive in which you want your log files to be stored or else by default it will store in your project's bin folder.&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;"&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;code style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: medium; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;public void writeToLogFile(String s)&lt;br /&gt;{&lt;br /&gt;    String Filename;&lt;br /&gt;    FileStream file;&lt;br /&gt;    file = new FileStream("BackupLog" +DateTime.Today.ToString("yyyyMMdd") + ".txt", FileMode.Append );&lt;br /&gt;    TextWriter tw = new StreamWriter(file);&lt;br /&gt;    tw.WriteLine("Log:" + DateTime.Now + ":- " + s);&lt;br /&gt;    tw.Close();&lt;br /&gt;}&lt;/pre&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-4835851429635015809?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/4835851429635015809/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/09/create-log-file.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/4835851429635015809'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/4835851429635015809'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/09/create-log-file.html' title='Create a Log File'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-2862215394198071706</id><published>2010-08-05T05:42:00.000-07:00</published><updated>2010-08-05T05:43:40.675-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql plus'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><category scheme='http://www.blogger.com/atom/ns#' term='functions'/><title type='text'>SQL Functions - Oracle</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_UeWJDdIKSOo/TFqssRse_uI/AAAAAAAAATM/wgC560GmJT4/s1600/1.bmp" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;a href="http://4.bp.blogspot.com/_UeWJDdIKSOo/TFqssRse_uI/AAAAAAAAATM/wgC560GmJT4/s1600/1.bmp" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_UeWJDdIKSOo/TFqssRse_uI/AAAAAAAAATM/wgC560GmJT4/s320/1.bmp" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;SQL Functions&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Types of Functions&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_UeWJDdIKSOo/TFqs8UqDeDI/AAAAAAAAATU/GurDDuCjKKI/s1600/2.bmp" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_UeWJDdIKSOo/TFqs8UqDeDI/AAAAAAAAATU/GurDDuCjKKI/s320/2.bmp" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Single Row Functions -&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;div class="O" style="tab-interval: .3784in; tab-stops: .625in;" v:shape="_x0000_s1026"&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;1. Single row functions: &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ff3300; left: -5.06%; position: absolute; top: -0.18em;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;•&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;2. Manipulate data items &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ff3300; left: -5.06%; position: absolute; top: -0.18em;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;•&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;3. Accept arguments and return one value &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ff3300; left: -5.06%; position: absolute; top: -0.18em;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;•&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;4. Act on each row returned &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ff3300; left: -5.06%; position: absolute; top: -0.18em;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;•&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;5. Return one result per row &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ff3300; left: -5.06%; position: absolute; top: -0.18em;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;•&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;6. May modify the data type &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ff3300; left: -5.06%; position: absolute; top: -0.18em;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;•&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;7. Can be nested &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ff3300; left: -4.34%; position: absolute; top: -0.18em;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;•&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;8. Accept arguments which can be a column or an expression&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_UeWJDdIKSOo/TFqt_YIZbQI/AAAAAAAAATc/FCToXGlJSUg/s1600/3.bmp" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_UeWJDdIKSOo/TFqt_YIZbQI/AAAAAAAAATc/FCToXGlJSUg/s320/3.bmp" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Case manipulation functions -&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;1. LOWER&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;(e.g. LOWER('SQL') -&amp;gt; sql)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;2. UPPER&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;(e.g. UPPER('sql Course') &amp;nbsp;-&amp;gt; SQL COURSE)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;3. INITCAP&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;(e.g. INITCAP('sql') -&amp;gt; Sql)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Character manipulation functions -&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;1. CONCAT&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;(e.g.&amp;nbsp;&lt;/span&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;div style="display: inline !important;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;CONCAT('Hello', 'World') -&amp;gt; HelloWorld)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;div style="mso-line-spacing: &amp;quot;100 50 0&amp;quot;;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;2. SUBSTR&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;(e.g.&amp;nbsp;&lt;/span&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;SUBSTR('HelloWorld&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;'&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;,1,5) -&amp;gt; Hello)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;3. LENGTH&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;(e.g.&amp;nbsp;&lt;/span&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;LENGTH('HelloWorld') -&amp;gt; 10)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;4. INSTR&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;(e.g.&amp;nbsp;&lt;/span&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;div style="display: inline !important;"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;INSTR('HelloWorld', 'W') -&amp;gt; 6)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;div style="mso-line-spacing: &amp;quot;100 50 0&amp;quot;;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;5. LPAD | RPAD&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;(e.g.&amp;nbsp;&lt;/span&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;LPAD(salary,10,&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;'&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;*&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;'&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;) -&amp;gt; *****24000)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;(e.g&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;RPAD(salary, 10, '*') -&amp;gt; 24000*****)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;6. TRIM&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;(e.g.&amp;nbsp;&lt;/span&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;span style="color: black; font-family: 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;TRIM('H' FROM 'HelloWorld') -&amp;gt; elloWorld)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;7. REPLACE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Number Functions -&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;1. ROUND&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;(e.g&amp;nbsp;&lt;/span&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;ROUND(45.926, 2) -&amp;gt;&lt;/span&gt;&lt;span style="width: 28.14%;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;45.93)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;2. TRUNC&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;(e.g.&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&amp;nbsp;&lt;/span&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;TRUNC(45.926, 2)&lt;/span&gt;&lt;span style="width: 22.74%;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&amp;nbsp;-&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&amp;nbsp;45.92)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;3. MOD&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;(e.g.&amp;nbsp;&lt;/span&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;div class="O2" style="display: inline !important;"&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;MOD(1600, 300) -&amp;gt;&lt;/span&gt;&lt;span style="width: 37.2%;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;100)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;div style="tab-interval: .3784in; tab-stops: .625in;" v:shape="_x0000_s1026"&gt;&lt;div class="O" style="mso-line-spacing: &amp;quot;100 50 0&amp;quot;; mso-margin-left-alt: 255;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Dates functions -&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Conversion functions -&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;1. Implicit data type conversion&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;- From varchar2/char to number&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;-&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;div style="display: inline !important;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;From varchar2/char to date&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;div style="display: inline !important;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;- From date to varchar2&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;div style="display: inline !important;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;- From number to varchar2&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;div style="display: inline !important;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;2. explicit data type conversion&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;- From varchar2/char to number using TO_NUMBER&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;-&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;div style="display: inline !important;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;From varchar2/char to date using TO_DATE&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;div style="display: inline !important;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;- From date to varchar2 using TO_CHAR&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;div style="display: inline !important;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;- From number to varchar2 using TO_CHAR&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="mso-line-spacing: &amp;quot;100 50 0&amp;quot;; mso-margin-left-alt: 255;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-2862215394198071706?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/2862215394198071706/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/08/sql-functions-oracle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/2862215394198071706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/2862215394198071706'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/08/sql-functions-oracle.html' title='SQL Functions - Oracle'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_UeWJDdIKSOo/TFqssRse_uI/AAAAAAAAATM/wgC560GmJT4/s72-c/1.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-3223046392438254507</id><published>2010-08-04T04:35:00.000-07:00</published><updated>2010-08-04T04:35:47.758-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='table; Oracle'/><title type='text'>Basics - Table in Oracle</title><content type='html'>&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;  &lt;/span&gt;&lt;/p:colorscheme&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;span style="color: black; mso-color-index: 2;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Table&lt;/span&gt;&lt;/span&gt;&lt;span style="mso-tab-count: 1; width: 9.11%;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;-&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;Basic unit of storage; composed of rows&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="mso-tab-count: 2; width: 11.03%;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;and columns&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;span style="color: black; mso-color-index: 2;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Naming Rules -&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;span style="color: black; mso-color-index: 2;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="O" style="mso-margin-left-alt: 72; mso-text-indent-alt: 72; tab-interval: 1.0052in; tab-stops: 1.8142in;" v:shape="_x0000_s1026"&gt;&lt;span style="color: black; mso-color-index: 2;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;  &lt;/span&gt;&lt;div class="O" style="tab-interval: .3784in; tab-stops: .625in;" v:shape="_x0000_s1026"&gt;  &lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;1. Table names and column names: &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ff3300; left: -5.03%; position: absolute; top: -0.18em;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;b&gt;•&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;2. Must begin with a letter &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ff3300; left: -5.03%; position: absolute; top: -0.18em;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;b&gt;3•&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;3. Must be 1–30 characters long &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ff3300; left: -5.03%; position: absolute; top: -0.18em;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;b&gt;•&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;4. Must contain only A–Z, a–z, 0–9, _, $, and # &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ff3300; left: -4.28%; position: absolute; top: -0.18em;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;b&gt;•&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;5. Must not duplicate the name of another object owned by the &lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;same user &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ff3300; left: -5.03%; position: absolute; top: -0.18em;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;b&gt;•&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;6. Must not be an Oracle server reserved word&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;CREATE TABLE statement -&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;  &lt;/span&gt;&lt;div v:shape="_x0000_s1026"&gt;  &lt;div class="O"&gt;&lt;span style="color: #ff3300; left: -5.3%; position: absolute; top: -0.18em;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;•&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;1. You must have: &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="O1"&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;span style="color: #ff3300; left: -5.7%; mso-color-index: 6; mso-special-format: bullet; position: absolute;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;b&gt;–&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: 'Courier New';"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;CREATE TABLE&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt; privilege &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="O1"&gt;&lt;span style="color: #ff3300; left: -5.7%; mso-color-index: 6; mso-special-format: bullet; position: absolute;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;b&gt;–&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;A storage area &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="O1"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="O"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="O"&gt;&lt;span style="color: #ff3300; left: -5.3%; position: absolute; top: -0.18em;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;b&gt;•&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;2. You specify: &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="O1"&gt;&lt;span style="color: #ff3300; left: -5.7%; mso-color-index: 6; mso-special-format: bullet; position: absolute;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;b&gt;–&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;Table name &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="O1"&gt;&lt;span style="color: #ff3300; left: -5.46%; mso-color-index: 6; mso-special-format: bullet; position: absolute;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;b&gt;–&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/p:colorscheme&gt;&lt;div&gt;&lt;b&gt;&lt;b&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;div style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;div class="O1" style="display: inline !important;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;Column name, column data type, and column size&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;/p:colorscheme&gt;&lt;/div&gt;&lt;/p:colorscheme&gt;&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Refer other user's table -&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;  &lt;/span&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;  &lt;div&gt;&lt;span style="color: #ff3300; left: -4.02%; position: absolute; top: -0.18em;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;•&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;i&gt;Tables belonging to other users are not in the user’s schema. &lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ff3300; left: -4.05%; position: absolute; top: -0.18em;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;b&gt;&lt;i&gt;•&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/p:colorscheme&gt;&lt;div&gt;&lt;b&gt;&lt;b&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;div style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;div class="O1" style="display: inline !important;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;/div&gt;&lt;/p:colorscheme&gt;&lt;/div&gt;&lt;/p:colorscheme&gt;&lt;/b&gt;&lt;b&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;div style="display: inline !important;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;i&gt;You should use the owner’s name as a prefix to those tables.&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;/p:colorscheme&gt;&lt;/div&gt;&lt;/p:colorscheme&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;For example :&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="mso-line-spacing: &amp;quot;95 35 0&amp;quot;; mso-margin-left-alt: 255;"&gt;&lt;span style="font-size: 22pt;"&gt;&lt;b&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;  &lt;/span&gt;&lt;div class="O" style="tab-stops: 1.7517in 1.8784in;" v:shape="_x0000_s1026"&gt;&lt;span style="color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;CREATE TABLE dept&lt;/span&gt; &lt;/b&gt;&lt;/span&gt;&lt;span style="color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;b&gt;&lt;span style="mso-tab-count: 1; width: 23.78%;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;(deptno &lt;/span&gt;&lt;span style="mso-tab-count: 1; width: .73%;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;NUMBER(2), &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;  &lt;/span&gt;&lt;div&gt;&lt;span style="color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;b&gt;&lt;span style="mso-tab-count: 2; width: 25.5%;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;dname &lt;/span&gt;&lt;span style="mso-tab-count: 1; width: 3.06%;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;VARCHAR2(14), &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;b&gt;&lt;span style="mso-tab-count: 2; width: 25.5%;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;loc &lt;/span&gt;&lt;span style="mso-tab-count: 1; width: 7.11%;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;VARCHAR2(13)); &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ff3300; font-family: &amp;quot;Courier New&amp;quot;; text-shadow: auto;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;Table created.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #ff3300; font-family: 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&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: 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;DESCRIBE dept&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #ff3300; font-family: 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #ff3300; font-family: 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;Name &amp;nbsp; &amp;nbsp;Null? &amp;nbsp;type&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #ff3300; font-family: 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;DEPTNO &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NUMBER(2)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #ff3300; font-family: 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;DNAME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;VARCHAR2(14)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #ff3300; font-family: 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;LOC &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;VARCHAR2(13)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="mso-line-spacing: &amp;quot;100 50 0&amp;quot;;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/p:colorscheme&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="mso-line-spacing: &amp;quot;100 50 0&amp;quot;; mso-margin-left-alt: 255;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/p:colorscheme&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-3223046392438254507?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/3223046392438254507/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/08/basics-table-in-oracle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/3223046392438254507'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/3223046392438254507'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/08/basics-table-in-oracle.html' title='Basics - Table in Oracle'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-8726144260958274575</id><published>2010-05-30T07:49:00.000-07:00</published><updated>2010-05-30T07:49:36.338-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Devexpress; asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='validation'/><title type='text'>Validations in Devexpress controls</title><content type='html'>This code shows usage of validations in Devexpress controls.&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;ASPX Page&lt;/b&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="ValidationsDev.aspx.cs" Inherits="ValidationsDev" %&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;lt;%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;lt;%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.2, Version=9.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxg" %&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dxtc" %&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dxp" %&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;lt;%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dxrp" %&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;lt;head runat="server"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;title&amp;gt;Validations&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;script src="Common.js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;form id="form1" runat="server"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;div&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;%--Textbox validation example--%&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:ASPxLabel ID="lblSample" Text="Sample" runat="server" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:ASPxTextBox ID="txtSample" ClientInstanceName="txtValidate" Width="170px" EnableClientSideAPI="true"&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;runat="server" OnValidation="txtSample_Validation"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ValidationSettings SetFocusOnError="True" ErrorText="Name must be at least two characters long"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ErrorImage Height="16px" Width="16px" AlternateText="Error" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;RequiredField IsRequired="True" ErrorText="Name is required" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ErrorFrameStyle ForeColor="Red"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Paddings Padding="3px" PaddingLeft="4px" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Border BorderColor="#FD4D3E" BorderStyle="Solid" BorderWidth="1px" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ErrorTextPaddings PaddingRight="3px" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/ErrorFrameStyle&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/ValidationSettings&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ClientSideEvents Validation="OnNameValidation" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dx:ASPxTextBox&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:ASPxLabel ID="lblAge" Text="Age" runat="server" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:ASPxTextBox ID="txtAge" ClientInstanceName="txtAge" EnableClientSideAPI="true"&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;runat="server" Width="170px" OnValidation="txtAge_Validation"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ValidationSettings SetFocusOnError="True" ErrorText="Age must be greater than or equal to 18"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ErrorImage Height="16px" Width="16px" AlternateText="Error" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;RequiredField IsRequired="True" ErrorText="Age is required" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ErrorFrameStyle ForeColor="Red"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Paddings Padding="3px" PaddingLeft="4px" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Border BorderColor="#FD4D3E" BorderStyle="Solid" BorderWidth="1px" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ErrorTextPaddings PaddingRight="3px" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/ErrorFrameStyle&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/ValidationSettings&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ClientSideEvents Validation="OnAgeValidation" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dx:ASPxTextBox&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;%--Combo box example--%&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:ASPxLabel ID="lblCity" Text="City" runat="server" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:ASPxComboBox ID="cmbxCity" runat="server" ValueType="System.String"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Items&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:ListEditItem Text="1" Value="1" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:ListEditItem Text="2" Value="2" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/Items&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ValidationSettings SetFocusOnError="true"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;RequiredField ErrorText="City reuired" IsRequired="true" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ErrorFrameStyle ForeColor="Red"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Paddings Padding="3px" PaddingLeft="4px" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Border BorderColor="#FD4D3E" BorderStyle="Solid" BorderWidth="1px" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ErrorTextPaddings PaddingRight="3px" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/ErrorFrameStyle&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/ValidationSettings&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dx:ASPxComboBox&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;br /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;%--Get multiple values in combobox--%&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:ASPxComboBox ID="cmbxMultivalue" runat="server" EnableCallbackMode="True" EnableIncrementalFiltering="True"&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CallbackPageSize="10" ValueField="intGlCode" ValueType="System.String" DataSourceID="SqlDataSource1"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Columns&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:ListBoxColumn FieldName="varAreaName" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:ListBoxColumn FieldName="varAreaCode" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:ListBoxColumn FieldName="varAreaHead" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:ListBoxColumn FieldName="varEmail" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/Columns&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dx:ASPxComboBox&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="&amp;lt;%$ ConnectionStrings:BASF_1111ConnectionString %&amp;gt;"&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SelectCommand="SELECT * FROM [Area_Mst]"&amp;gt;&amp;lt;/asp:SqlDataSource&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;%--Get selected values in listbox --%&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:ASPxListBox ID="lstbxItems" runat="server" SelectionMode="CheckColumn" DataSourceID="SqlDataSource1"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Columns&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:ListBoxColumn FieldName="varAreaName" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:ListBoxColumn FieldName="varAreaHead" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:ListBoxColumn FieldName="varAreaCode" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/Columns&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dx:ASPxListBox&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;%--Gridview on dropdown click--%&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:ASPxDropDownEdit ID="drpEditTest" runat="server"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;DropDownWindowTemplate&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dxg:ASPxGridView ID="ZoneGrid" DataSourceID="SqlDataSource1" runat="server"&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;KeyFieldName="ID" Width="100%"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;columns&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dxg:GridViewDataColumn FieldName="intGlCode" VisibleIndex="0"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dxg:GridViewDataColumn&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dxg:GridViewDataColumn FieldName="varAreaCode" VisibleIndex="1"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dxg:GridViewDataColumn&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dxg:GridViewDataColumn FieldName="varAreaName" VisibleIndex="2"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dxg:GridViewDataColumn&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dxg:GridViewDataTextColumn FieldName="varAreaHead" VisibleIndex="3"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dxg:GridViewDataTextColumn&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dxg:GridViewDataColumn FieldName="varEmail" VisibleIndex="4"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dxg:GridViewDataColumn&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/columns&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dxg:ASPxGridView&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/DropDownWindowTemplate&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dx:ASPxDropDownEdit&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dxg:ASPxGridView ID="ZoneGrid" DataSourceID="SqlDataSource1" runat="server"&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;KeyFieldName="ID" Width="100%"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;columns&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dxg:GridViewDataColumn FieldName="intGlCode" VisibleIndex="0"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dxg:GridViewDataColumn&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dxg:GridViewDataColumn FieldName="varAreaCode" VisibleIndex="1"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dxg:GridViewDataColumn&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dxg:GridViewDataColumn FieldName="varAreaName" VisibleIndex="2"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dxg:GridViewDataColumn&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dxg:GridViewDataTextColumn FieldName="varAreaHead" VisibleIndex="3"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dxg:GridViewDataTextColumn&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dxg:GridViewDataProgressBarColumn FieldName="Complete" VisibleIndex="4" PropertiesProgressBar-ShowPosition="true"&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dxg:GridViewDataProgressBarColumn&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dxg:GridViewDataColumn FieldName="varEmail" VisibleIndex="5"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dxg:GridViewDataColumn&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/columns&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/dxg:ASPxGridView&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;dxrp:ASPxRoundPanel ID="rndpnlSample" runat="server" ShowHeader="False"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;PanelCollection&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dxp:PanelContent&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dxtc:ASPxTabControl runat="server" ID="tbSample" DataSourceID="XmlDataSource1"&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dxtc:ASPxTabControl&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/XMLFile.xml"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/asp:XmlDataSource&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dxp:PanelContent&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/PanelCollection&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/dxrp:ASPxRoundP nel&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/form&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Code behind page&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System.Collections.Generic;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System.Linq;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System.Web;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System.Web.UI;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;using System.Web.UI.WebControls;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;public partial class ValidationsDev : System.Web.UI.Page&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;protected void Page_Load(object sender, EventArgs e)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;protected void txtSample_Validation(object sender, DevExpress.Web.ASPxEditors.ValidationEventArgs e)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ((e.Value as string).Length &amp;lt; 2)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;e.IsValid = false;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;protected void txtAge_Validation(object sender, DevExpress.Web.ASPxEditors.ValidationEventArgs e)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{ &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string strAge = ((string)e.Value).TrimStart('0');&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (strAge.Length == 0)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;UInt32 age = 0;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (!UInt32.TryParse(strAge, out age) || age &amp;lt; 18)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;e.IsValid = false;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;}&lt;/span&gt;&lt;br /&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/7178235408131847449-8726144260958274575?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/8726144260958274575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/05/validations-in-devexpress-controls.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/8726144260958274575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/8726144260958274575'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/05/validations-in-devexpress-controls.html' title='Validations in Devexpress controls'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-815280750901221160</id><published>2010-05-10T10:30:00.000-07:00</published><updated>2010-05-10T10:30:10.451-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Devexpress; bar chart; xtracharts; webchartcontrol; asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='gridview'/><title type='text'>Insert/Add, Update, Edit, Delete in ASPXgridview - Devexpress</title><content type='html'>This code demonstrates how to Add/Insert, Update, delete, edit in Devexpress aspxgridview. Sorting and changing position of columns is by default enabled. Only to disable it you need to specify.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Note :&lt;/b&gt; You can download Devexpress controls from &lt;a href="http://www.devexpress.com/"&gt;www.devexpress.com&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.devexpress.com/"&gt;&lt;/a&gt;I have tried this with versions 9.2.3 and 9.3.2. For example purpose I have used connection strings and queries in same file but for you, you need to retrieve it from web.config file and also use stored procedures.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Aspx Page&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="GridviewWithAddUpdateEditDelete.aspx.cs" Inherits="GridviewWithDelete" %&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;lt;%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;lt;%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.2, Version=9.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;lt;%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;lt;head runat="server"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;title&amp;gt;Gridview With Delete&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;form id="form1" runat="server"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;div&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;dxe:ASPxLabel ID="lblMessage" runat="server" Text="" ForeColor="Red" Font-Bold="true" Visible="false" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;dxe:ASPxButton ID="btnDelete" runat="server" Text="Delete" onclick="btnDelete_Click"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/dxe:ASPxButton&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;dx:ASPxGridView ID="devg" runat="server" ClientInstanceName="devg"&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; KeyFieldName="intGLCode" AutoGenerateColumns="False"&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Width="554px" onafterperformcallback="devg_AfterPerformCallback"&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; onrowinserting="devg_RowInserting" onrowupdating="devg_RowUpdating"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Columns&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:GridViewCommandColumn Caption="New" VisibleIndex="1"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;NewButton Visible="true" /&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;EditButton Visible="true" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dx:GridViewCommandColumn&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:GridViewCommandColumn Caption="Delete" ShowSelectCheckbox="True" VisibleIndex="0"&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;HeaderTemplate&amp;gt; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;%--To select/unselect all rows in gridview--%&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Delete&amp;lt;input type="checkbox" id="CheckBoxControl" name="SelectAllCheckbox"&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;onclick="devg.SelectAllRowsOnPage(this.checked);" runat="server" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/HeaderTemplate&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dx:GridViewCommandColumn&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:GridViewDataTextColumn Caption="ID" FieldName="ID" Name="ID" Visible="false"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dx:GridViewDataTextColumn&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:GridViewDataTextColumn Caption="Name" FieldName="varName" Name="varName" Settings-AllowSort="False" VisibleIndex="2"&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dx:GridViewDataTextColumn&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:GridViewDataTextColumn Caption="Contact No" FieldName="varContactNo" Name="varContactNo" Settings-AllowSort="False" VisibleIndex="3"&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dx:GridViewDataTextColumn&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:GridViewDataTextColumn Caption="Email" FieldName="varEmail" Name="varEmail" VisibleIndex="4"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dx:GridViewDataTextColumn&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:GridViewDataTextColumn Caption="Address" FieldName="varAddress" Name="varAddress" VisibleIndex="5"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dx:GridViewDataTextColumn&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/Columns&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Settings ShowStatusBar="Visible" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;SettingsEditing Mode="PopupEditForm" /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dx:ASPxGridView&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dx:ASPxPopupControl ID="popupSample" runat="server" ShowCloseButton="true" ShowHeader="true"&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dx:ASPxPopupControl&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/form&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;b&gt;Code behind page&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;using System;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;using System.Collections.Generic;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;using System.Linq;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;using System.Web;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;using System.Web.UI;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;using System.Web.UI.WebControls;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;using System.Data.SqlClient;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;using System.Data;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;using System.Text;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;using DevExpress.Web.Data;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;using DevExpress.Web.ASPxGridView;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;public partial class GridviewWithDelete : Page&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;protected void Page_Load(object sender, EventArgs e)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;protected void Page_Init(object sender, EventArgs e)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BindGrid();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;private void BindGrid()&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlConnection conn = new SqlConnection("Connection string here");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;conn.Open();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlCommand cmd;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cmd = new SqlCommand("select ID,varName,varContactNo,varEmail,varAddress from ContactDetails");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cmd.Connection = conn;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DataSet dsClaimCat = new DataSet();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlDataAdapter dapt = new SqlDataAdapter(cmd);&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dapt.Fill(dsClaimCat);&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;devg.DataSource = dsClaimCat;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;devg.DataBind();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;conn.Close();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Response.Write("Error");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;protected void btnDelete_Click(object sender, EventArgs e)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string strMultiIds;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;List&amp;lt;object&amp;gt; selectedRowList;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;strMultiIds = string.Empty;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;selectedRowList = (devg.GetSelectedFieldValues(new string[] { "ID" }));&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (selectedRowList.Count == 0)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.Windows.Forms.MessageBox.Show("Please Select Atleast one Record to Delete");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int i = 0; i &amp;lt; selectedRowList.Count; i++)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{ strMultiIds += selectedRowList[i].ToString() + ","; }&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;strMultiIds.TrimEnd(',');&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;delete(strMultiIds.TrimEnd(','));&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch(Exception ex)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lblMessage.Visible = true;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lblMessage.Text = ex.Message;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BindGrid();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;private void delete(string p)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (p.Equals(""))&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;deleteRows(p, "ContactDetails");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch(Exception ex)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lblMessage.Visible = true;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lblMessage.Text = ex.Message;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;private void deleteRows(string selectedid, string tablename)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;StringBuilder sqlQuery = new StringBuilder();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;selectedid = selectedid.TrimEnd(',') + ",0";&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;StringBuilder whereClause = new StringBuilder();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;whereClause.Append(" WHERE ID IN (" + selectedid + ") ");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sqlQuery.Append(" DELETE FROM ");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sqlQuery.Append(tablename + whereClause.ToString());&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlConnection conn = new SqlConnection("Connection string here");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;conn.Open();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlCommand cmd;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cmd = new SqlCommand(sqlQuery.ToString());&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cmd.Connection = conn;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DataSet dsClaimCat = new DataSet();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlDataAdapter dapt = new SqlDataAdapter(cmd);&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dapt.Fill(dsClaimCat);&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;devg.DataSource = dsClaimCat;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;devg.DataBind();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;conn.Close();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lblMessage.Visible = true;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lblMessage.Text = "Record(s) Deleted";&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch (Exception ex)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lblMessage.Visible = true;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lblMessage.Text = ex.Message;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;protected void devg_AfterPerformCallback(object sender, ASPxGridViewAfterPerformCallbackEventArgs e)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BindGrid();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;protected void devg_RowUpdating(object sender, ASPxDataUpdatingEventArgs e)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;StringBuilder sqlQuery = new StringBuilder();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlConnection conn = new SqlConnection("Connection string here");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sqlQuery.Append("UPDATE ContactDetails SET ");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sqlQuery.Append("varName = '" + e.NewValues["varName"].ToString() + "',");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sqlQuery.Append("varContactNo = '" + e.NewValues["varContactNo"].ToString() + "',");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sqlQuery.Append("varEmail = '" + e.NewValues["varEmail"].ToString() + "',");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sqlQuery.Append("varAddress = '" + e.NewValues["varAddress"].ToString() + "'");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sqlQuery.Append(" WHERE ID= "+ e.Keys["ID"]+"");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;conn.Open();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlCommand cmd;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cmd = new SqlCommand(sqlQuery.ToString());&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cmd.Connection = conn;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DataSet dsClaimCat = new DataSet();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlDataAdapter dapt = new SqlDataAdapter(cmd);&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int i = cmd.ExecuteNonQuery();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (i &amp;gt; 0)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;e.Cancel = true;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;devg.CancelEdit();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lblMessage.Visible = true;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lblMessage.Text = "Record(s) Updated";&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BindGrid();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;conn.Close();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;protected void devg_RowInserting(object sender, ASPxDataInsertingEventArgs e)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;StringBuilder sqlQuery = new StringBuilder();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlConnection conn = new SqlConnection("connection string here");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sqlQuery.Append("INSERT INTO ContactDetails(varName,varContactNo,varEmail,varAddress) VALUES ( ");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sqlQuery.Append("'" + e.NewValues["varName"].ToString() + "',");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sqlQuery.Append("'" + e.NewValues["varContactNo"].ToString() + "',");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sqlQuery.Append("'" + e.NewValues["varEmail"].ToString() + "',");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sqlQuery.Append("'" + e.NewValues["varAddress"].ToString() + "')");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;conn.Open();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlCommand cmd;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cmd = new SqlCommand(sqlQuery.ToString());&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cmd.Connection = conn;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DataSet dsClaimCat = new DataSet();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlDataAdapter dapt = new SqlDataAdapter(cmd);&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int i = cmd.ExecuteNonQuery();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (i &amp;gt; 0)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;e.Cancel = true;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;devg.CancelEdit();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lblMessage.Visible = true;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lblMessage.Text = "Record(s) Saved";&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BindGrid();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;conn.Close();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-815280750901221160?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/815280750901221160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/05/insertadd-update-edit-delete-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/815280750901221160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/815280750901221160'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/05/insertadd-update-edit-delete-in.html' title='Insert/Add, Update, Edit, Delete in ASPXgridview - Devexpress'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-4077345060451639174</id><published>2010-05-04T08:46:00.000-07:00</published><updated>2010-05-04T09:10:14.979-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Devexpress; bar chart; xtracharts; webchartcontrol; asp.net'/><title type='text'>Create Devexpress Bar chart - Webchartcontrol - Xtracharts</title><content type='html'>This code shows how its easy to use a Bar chart in your Web applications.&lt;br /&gt;&lt;br /&gt;To start with first of all download and install Devexpress controls from &lt;a href="http://www.devexpress.com/"&gt;www.devexpress.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here I am going to make a bar chart with the use of WebchartControl (Xtracharts)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Note :&lt;/b&gt; I have used version 9.2.3&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;b&gt;Code .cs Page&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;using System;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;using System.Collections;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;using System.Collections.Generic;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;using System.Linq;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;using System.Web;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;using System.Web.UI;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;using System.Web.UI.WebControls;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;using System.Data.SqlClient;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;using System.Data;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;using DevExpress.XtraCharts;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;using System.Drawing;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;public partial class _Default : System.Web.UI.Page&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;protected void Page_Load(object sender, EventArgs e)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BindChart();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;private void BindChart()&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlConnection conn = new SqlConnection("Connection string here");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;conn.Open();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlCommand cmd;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cmd = new SqlCommand("select * from Transactions"); // my sample query&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cmd.Connection = conn;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DataSet dsClaimCat = new DataSet();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlDataAdapter dapt = new SqlDataAdapter(cmd);&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dapt.Fill(dsClaimCat);&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WebChartControl1.DataSource = dsClaimCat.Tables[0];&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Values for X-axis&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WebChartControl1.SeriesDataMember = dsClaimCat.Tables[0].Columns["percentage"].ToString();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Values for Y-axis&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WebChartControl1.SeriesTemplate.ArgumentDataMember = dsClaimCat.Tables[0].Columns["paymentDays"].ToString();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WebChartControl1.SeriesTemplate.ValueDataMembers.AddRange(new string[] { dsClaimCat.Tables[0].Columns["percentage"].ToString() });&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string paletteName = "MyPalette";&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PaletteEntry entry1 = new PaletteEntry(Color.Green, Color.LightGreen);&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Palette palette = new Palette(paletteName, new PaletteEntry[] { entry1 });&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WebChartControl1.PaletteRepository.Add(paletteName, palette);&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WebChartControl1.PaletteName = paletteName;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SideBySideBarSeriesView v = new SideBySideBarSeriesView();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;v.BarWidth = 0.4;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WebChartControl1.SeriesTemplate.View = v;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WebChartControl1.DataBind();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;conn.Close();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Response.Write("Error");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;b&gt;Design Page&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;&amp;lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&lt;br /&gt;&amp;lt;%@ Register Assembly="DevExpress.XtraCharts.v9.2.Web, Version=9.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Namespace="DevExpress.XtraCharts.Web" TagPrefix="dxchartsui" %&amp;gt;&lt;br /&gt;&amp;lt;%@ Register Assembly="DevExpress.XtraCharts.v9.2, Version=9.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Namespace="DevExpress.XtraCharts.Web" TagPrefix="cci" %&amp;gt;&lt;br /&gt;&amp;lt;%@ Register Assembly="DevExpress.XtraCharts.v9.2, Version=9.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Namespace="DevExpress.XtraCharts" TagPrefix="cc1" %&amp;gt;&lt;br /&gt;&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;&lt;br /&gt;&amp;lt;head runat="server"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;form id="form1" runat="server"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;div&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dxchartsui:WebChartControl ID="WebChartControl1" runat="server" Height="200px" Width="300px"&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PaletteName="The Trees"&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;SeriesTemplate LabelTypeName="SideBySideBarSeriesLabel" PointOptionsTypeName="PointOptions"&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SeriesViewTypeName="SideBySideBarSeriesView"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;View HiddenSerializableString="to be serialized"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/View&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Label HiddenSerializableString="to be serialized" LineVisible="True"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;FillStyle FillOptionsTypeName="SolidFillOptions"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Options HiddenSerializableString="to be serialized"&amp;gt;&amp;lt;/Options&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/FillStyle&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/Label&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;PointOptions HiddenSerializableString="to be serialized"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/PointOptions&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;LegendPointOptions HiddenSerializableString="to be serialized"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/LegendPointOptions&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/SeriesTemplate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;FillStyle FillOptionsTypeName="SolidFillOptions"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Options HiddenSerializableString="to be serialized"&amp;gt;&amp;lt;/Options&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/FillStyle&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dxchartsui:WebChartControl&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/form&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;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/7178235408131847449-4077345060451639174?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/4077345060451639174/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/05/create-devexpress-bar-chart.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/4077345060451639174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/4077345060451639174'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/05/create-devexpress-bar-chart.html' title='Create Devexpress Bar chart - Webchartcontrol - Xtracharts'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-4576767090194483493</id><published>2010-04-26T09:10:00.000-07:00</published><updated>2010-04-26T09:10:33.967-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pivoting insert'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>Pivoting INSERT - Oracle</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;p:colorscheme colors="#ffffff,#000000,#969696,#000000,#00cc99,#3333cc,#ccccff,#b2b2b2"&gt;&lt;/p:colorscheme&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="tab-interval: .4375in; tab-stops: .5434in right .7378in left .8871in right 1.2222in 2.085in;" v:shape="_x0000_s1026"&gt;&lt;div class="O1"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Pivoting is an operation in which you need to build a transformation such that each record from any&amp;nbsp; input stream, &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;such as, a&amp;nbsp; nonrelational database table, must be converted into multiple records for a more relational database &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;table environment.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="O1"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;/span&gt;&lt;br /&gt;&lt;div v:shape="_x0000_s1026"&gt;&lt;div class="O"&gt;&lt;span style="font-size: 122%;"&gt;&lt;span style="color: #ff3300; font-size: 125%; left: -5.08%; position: absolute; top: -0.18em;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;•&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Suppose you receive a set of&amp;nbsp; sales records from a nonrelational database table, &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;SALES_SOURCE_DATA&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt; in the following format: &lt;/span&gt;&lt;/div&gt;&lt;div class="O"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;EMPLOYEE_ID,WEEK_ID,SALES_MON,SALES_TUE,&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;SALES_WED, SALES_THUR,SALES_FRI&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="O"&gt;&lt;span style="color: #ff3300; left: -4.44%; position: absolute; top: -0.18em;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;•&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;You would want to store these records in the &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;SALES_INFO&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt; table&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;in a more typical relational format: &lt;/span&gt;&lt;/div&gt;&lt;div class="O1"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;EMPLOYEE_ID, WEEK, SALES&lt;/span&gt;&lt;span style="font-size: 20pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="O1"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;div&gt;&lt;span style="font-size: 122%;"&gt;&lt;span style="color: #ff3300; font-size: 125%; left: -4.44%; position: absolute; top: -0.18em;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;•&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Using a &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #ff3300;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;pivoting&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;INSERT&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;, convert the set of&amp;nbsp; sales records from the&amp;nbsp; nonrelational database table to relational format. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;p:colorscheme colors="#000000,#ffffff,#000000,#ffffff,#dddddd,#969696,#ff3300,#969696"&gt;&lt;/p:colorscheme&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;div&gt;&lt;span style="color: black;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;INSERT ALL&lt;/span&gt; &lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&amp;nbsp; INTO sales_info VALUES (employee_id,week_id,sales_MON)&lt;/span&gt; &lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&amp;nbsp; INTO sales_info VALUES (employee_id,week_id,sales_TUE)&lt;/span&gt; &lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&amp;nbsp; INTO sales_info VALUES (employee_id,week_id,sales_WED)&lt;/span&gt; &lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&amp;nbsp; INTO sales_info VALUES (employee_id,week_id,sales_THUR)&lt;/span&gt; &lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&amp;nbsp; INTO sales_info VALUES (employee_id,week_id, sales_FRI)&lt;/span&gt; &lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&amp;nbsp; SELECT EMPLOYEE_ID, week_id, sales_MON, sales_TUE,&lt;/span&gt; &lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sales_WED, sales_THUR,sales_FRI &lt;/span&gt; &lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&amp;nbsp; FROM sales_source_data; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ff3300;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;5 rows created.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;  &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="O"&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="O1"&gt;&lt;/div&gt;&lt;div class="O1"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;p:colorscheme colors="#ffffff,#000000,#969696,#000000,#00cc99,#3333cc,#ccccff,#b2b2b2"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;  &lt;/span&gt;&lt;/p:colorscheme&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 11pt;"&gt;&lt;div v:shape="_x0000_s1026"&gt;  &lt;div class="O1"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;In the example in the slide, the sales data is received from the nonrelational database table &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;SALES_SOURCE_DATA&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;, which is the details of the sales performed by a sales representative on each day of a &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;week, for a week with a particular week ID.  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="O"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DESC SALES_SOURCE_DATA&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="O"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="O1" style="mso-line-spacing: &amp;quot;100 30 0&amp;quot;; mso-margin-left-alt: 72; mso-text-indent-alt: 72;"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Null? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Type&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;EMPLOYEE_ID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NUMBER(6)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;WEEK_ID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NUMBER(2)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;SALES_MON &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NUMBER(8,2)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;SALES_TUE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NUMBER(8,2)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;SALES_WED &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;NUMBER(8,2)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-size: 15px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;SALES_THUR &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;NUMBER(8,2)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-size: 15px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;SALES_FRI &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NUMBER(8,2)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-size: 15px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-size: 15px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-size: 15px;"&gt;&lt;p:colorscheme colors="#ffffff,#000000,#969696,#000000,#00cc99,#3333cc,#ccccff,#b2b2b2"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;  &lt;/span&gt;&lt;/p:colorscheme&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;SQL&amp;gt; SELECT * FROM SALES_SOURCE_DATA;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;EMPLOYEE_ID WEEK_ID SALES_MON SALES_TUE SALES_WED SALES_THUR SALES_FRI&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;176 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6 &amp;nbsp; &amp;nbsp; &amp;nbsp;2000 &amp;nbsp; &amp;nbsp; 3000 &amp;nbsp; &amp;nbsp; &amp;nbsp;4000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5000 &amp;nbsp; &amp;nbsp; 6000&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;b&gt;&lt;p:colorscheme colors="#ffffff,#000000,#969696,#000000,#00cc99,#3333cc,#ccccff,#b2b2b2"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;SQL&amp;gt; DESC SALES_INFO&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium; font-weight: normal;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Null? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Type&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;EMPLOYEE_ID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NUMBER(6)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;WEEK &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NUMBER(2)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;SALES &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NUMBER(8,2)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;SQL&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;p:colorscheme colors="#ffffff,#000000,#969696,#000000,#00cc99,#3333cc,#ccccff,#b2b2b2"&gt;&lt;/p:colorscheme&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size: 11pt;"&gt;&lt;b&gt;&lt;div class="O" style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium; font-weight: normal;"&gt;&lt;p:colorscheme colors="#ffffff,#000000,#969696,#000000,#00cc99,#3333cc,#ccccff,#b2b2b2"&gt;&lt;div style="display: inline !important;" v:shape="_x0000_s1026"&gt;&lt;div class="O1" style="display: inline !important;"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;SELECT * FROM sales_info;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/p:colorscheme&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;p:colorscheme colors="#ffffff,#000000,#969696,#000000,#00cc99,#3333cc,#ccccff,#b2b2b2"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;  &lt;/span&gt;&lt;div v:shape="_x0000_s1026"&gt;    &lt;div class="O"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/p:colorscheme&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;EMPLOYEE_ID &amp;nbsp; &amp;nbsp; &amp;nbsp; WEEK &amp;nbsp; &amp;nbsp; &amp;nbsp;SALES&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;176 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2000&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;176 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3000&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;176 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4000&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;176 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5000&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;176 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6000&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;span style="font-size: 11pt;"&gt;&lt;b&gt;&lt;p:colorscheme colors="#ffffff,#000000,#969696,#000000,#00cc99,#3333cc,#ccccff,#b2b2b2"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;  &lt;/span&gt;&lt;div class="O" v:shape="_x0000_s1026"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Observe in the preceding example that using a pivoting &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;INSERT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;, one row from the &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;SALES_SOURCE_DATA&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt; table is converted into five records for the relational table, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;SALES_INFO&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/p:colorscheme&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/p:colorscheme&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="O" style="mso-line-spacing: &amp;quot;100 50 0&amp;quot;;"&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/7178235408131847449-4576767090194483493?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/4576767090194483493/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/04/pivoting-insert-oracle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/4576767090194483493'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/4576767090194483493'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/04/pivoting-insert-oracle.html' title='Pivoting INSERT - Oracle'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-1153851595256110801</id><published>2010-04-19T09:44:00.000-07:00</published><updated>2010-04-19T10:07:29.006-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql plus'/><category scheme='http://www.blogger.com/atom/ns#' term='file'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>SQL * Plus File commands - Oracle</title><content type='html'>&lt;b&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;SQL * Plus File commands - Oracle&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;1. SAVE filename&lt;/b&gt;&lt;br /&gt;&lt;b&gt;2. GET filename&lt;/b&gt;&lt;br /&gt;&lt;b&gt;3. START filename&lt;/b&gt;&lt;br /&gt;&lt;b&gt;4. @ filename&lt;/b&gt;&lt;br /&gt;&lt;b&gt;5. EDIT filename&lt;/b&gt;&lt;br /&gt;&lt;b&gt;6. SPOOL filename&lt;/b&gt;&lt;br /&gt;&lt;b&gt;7. EXIT&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL&amp;gt; L&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;1. Select lastname, manager_id, dept_no&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;2* from emp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL &amp;gt; SAVE my_query&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;File created my_query&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL &amp;gt; START my_query&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;lastname &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;manager_id &amp;nbsp; &amp;nbsp; &amp;nbsp;dept_id&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;-----------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;King &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Kochaar &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 80 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;..........&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;10 rows updated&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-1153851595256110801?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/1153851595256110801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/04/sql-plus-file-commands-oracle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/1153851595256110801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/1153851595256110801'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/04/sql-plus-file-commands-oracle.html' title='SQL * Plus File commands - Oracle'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-6730941781687413692</id><published>2010-04-18T09:15:00.000-07:00</published><updated>2010-04-18T09:16:35.231-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql plus'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><category scheme='http://www.blogger.com/atom/ns#' term='commands'/><title type='text'>Using LIST, n, APPEND commands in SQL * plus - Oracle</title><content type='html'>In earlier post&amp;nbsp;&lt;a href="http://angeldeeps.blogspot.com/2010/04/sql-plus-oracle-editing-commands.html"&gt;http://angeldeeps.blogspot.com/2010/04/sql-plus-oracle-editing-commands.html&lt;/a&gt;&amp;nbsp;I discussed about list of editing commands used in SQL * plus - Oracle.&lt;br /&gt;&lt;br /&gt;Here, I am going to discuss few of the commands from that list. &lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;//Here I have created a table called emp having empno and empname fields.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL&amp;gt; create table emp (empno number, empname varchar(20));&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Table created.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;//Inserting few records into emp table&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL&amp;gt; insert into emp values(1,'Deepika');&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;1 row created.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL&amp;gt; insert into emp values(2, 'Aarti');&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;1 row created.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL&amp;gt; insert into emp values(3, 'Rupal');&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;1 row created.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL&amp;gt; insert into emp values(4, 'Ratna');&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;1 row created.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL&amp;gt; insert into emp values(5, 'Sonal');&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;1 row created.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;//List command will show your last command executed&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL&amp;gt; list&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;1* insert into emp values(5, 'Sonal')&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;//Retrieving&amp;nbsp;values to view&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL&amp;gt; select * from emp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; EMPNO EMPNAME&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;---------- --------------------&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 Deepika&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 Aarti&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3 Rupal&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4 Ratna&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5 Sonal&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;//Retrieving particular field records&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL&amp;gt; select empno&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;2 &amp;nbsp;, empname from emp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; EMPNO EMPNAME&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;---------- --------------------&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 Deepika&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 Aarti&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3 Rupal&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4 Ratna&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5 Sonal&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;//n - here n is 1 means it will show me statement at that line no&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL&amp;gt; 1&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;1* select empno&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;//Added jobcode field to emp table&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL&amp;gt; alter table emp add (jobcode varchar(10));&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Table altered.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL&amp;gt; select * from emp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; EMPNO EMPNAME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;JOBCODE&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;---------- -------------------- ----------&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 Deepika&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 Aarti&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3 Rupal&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4 Ratna&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5 Sonal&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;//Updating jobocde&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL&amp;gt; update emp set jobcode = 'A001' where empno =1;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;1 row updated.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL&amp;gt; update emp set jobcode = 'B001' where empno = 2;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;1 row updated.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL&amp;gt; update emp set jobcode = 'C001' where empno = 3;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;1 row updated.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL&amp;gt; update emp set jobcode = 'D001' where empno = 4;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;1 row updated.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL&amp;gt; update emp set jobcode = 'E001' where empno = 5;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;1 row updated.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;//retrieving particular field records&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL&amp;gt; select empname&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;2 &amp;nbsp;from emp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;EMPNAME&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;--------------------&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Deepika&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Aarti&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Rupal&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Ratna&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Sonal&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;// A - it will append jobcode to my last statement executed&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL&amp;gt; A, jobcode;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;2* from emp, jobcode&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;//L will show last statement&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL&amp;gt; L&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;1 &amp;nbsp;select empname&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;2* from emp, jobcode&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL&amp;gt; select * from emp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; EMPNO EMPNAME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;JOBCODE&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;---------- -------------------- ----------&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 Deepika &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A001&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 Aarti &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;B001&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3 Rupal &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C001&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4 Ratna &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;D001&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5 Sonal &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;E001&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL&amp;gt; L&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;1* select * from emp&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;//C - will change. Here I am changing my last statement's emp table with dept table. So my query will now be select * from dept;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL&amp;gt; c/emp/dept&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;1* select * from dept&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;SQL&amp;gt; L&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;nbsp;&amp;nbsp;1* select * from dept&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-6730941781687413692?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/6730941781687413692/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/04/using-list-n-append-commands-in-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/6730941781687413692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/6730941781687413692'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/04/using-list-n-append-commands-in-sql.html' title='Using LIST, n, APPEND commands in SQL * plus - Oracle'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-4080788895777818068</id><published>2010-04-18T08:40:00.000-07:00</published><updated>2010-04-18T08:40:14.567-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql plus'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><category scheme='http://www.blogger.com/atom/ns#' term='commands'/><title type='text'>SQL * Plus - oracle Editing commands</title><content type='html'>&lt;b&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;SQL * Plus editing commands -&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1. A[PPEND] text&lt;br /&gt;2. C[HANGE] / old / new&lt;br /&gt;3.&amp;nbsp;C[HANGE] / text&lt;br /&gt;4. CL[EAR] BUFF[ER]&lt;br /&gt;5. DEL&lt;br /&gt;6. DEL n&lt;br /&gt;7. DEL m n&lt;br /&gt;8. I[NPUT]&lt;br /&gt;9.&amp;nbsp;I[NPUT] text&lt;br /&gt;10. L[IST]&lt;br /&gt;11.&amp;nbsp;L[IST] n&lt;br /&gt;12.&amp;nbsp;L[IST] m n&lt;br /&gt;13. R[UN]&lt;br /&gt;14. n&lt;br /&gt;15.&amp;nbsp;n text&lt;br /&gt;16. 0 text&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Note :-&lt;/b&gt; Will be discussed in detail in future posts..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-4080788895777818068?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/4080788895777818068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/04/sql-plus-oracle-editing-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/4080788895777818068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/4080788895777818068'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/04/sql-plus-oracle-editing-commands.html' title='SQL * Plus - oracle Editing commands'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-8192539417901069977</id><published>2010-04-18T05:58:00.001-07:00</published><updated>2010-04-18T05:58:15.295-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql plus'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><category scheme='http://www.blogger.com/atom/ns#' term='difference'/><title type='text'>Difference between SQL and SQL * plus commands</title><content type='html'>&lt;b&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;The Differences between SQL and SQL * plus commands are as follows :&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;SQL -&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1. A language&lt;br /&gt;2. ANSI standard&lt;br /&gt;3. Keywords cannot be abbreviated&lt;br /&gt;4. Statements manipulate data and table definitions in the database&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;SQL * Plus -&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1. An&amp;nbsp;environment&lt;br /&gt;2. Oracle&amp;nbsp;proprietary&lt;br /&gt;3.&amp;nbsp;Keywords can be abbreviated&lt;br /&gt;4. Commands do not allow manipulation of values in database&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-8192539417901069977?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/8192539417901069977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/04/difference-between-sql-and-sql-plus.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/8192539417901069977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/8192539417901069977'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/04/difference-between-sql-and-sql-plus.html' title='Difference between SQL and SQL * plus commands'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-5575671559822162087</id><published>2010-03-02T01:45:00.000-08:00</published><updated>2010-03-02T01:45:16.342-08:00</updated><title type='text'>Start, Stop, Pause, Resume a service</title><content type='html'>Read this article to load a service : http://angeldeeps.blogspot.com/2010/03/load-list-of-services.html&lt;br /&gt;&lt;br /&gt;private void cmdStartService_Click(object sender, System.EventArgs e)&lt;br /&gt; {&lt;br /&gt;  try &lt;br /&gt;  {&lt;br /&gt;   msvc.Start();&lt;br /&gt;   fUpdatingUI = true;&lt;br /&gt;   UpdateUIForSelectedService();&lt;br /&gt;   fUpdatingUI = false;&lt;br /&gt;  }&lt;br /&gt;  catch (Exception exp) &lt;br /&gt;  {&lt;br /&gt;   MessageBox.Show(exp.Message, exp.Source, MessageBoxButtons.OK, MessageBoxIcon.Error);&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;private void cmdResumeService_Click(object sender, System.EventArgs e)&lt;br /&gt; {&lt;br /&gt;  try &lt;br /&gt;  {&lt;br /&gt;   msvc.Continue();&lt;br /&gt;   fUpdatingUI = true;&lt;br /&gt;   UpdateUIForSelectedService();&lt;br /&gt;   fUpdatingUI = false;&lt;br /&gt;  }&lt;br /&gt;  catch (Exception exp) &lt;br /&gt;  {&lt;br /&gt;   MessageBox.Show(exp.Message, exp.Source, MessageBoxButtons.OK, MessageBoxIcon.Error);&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;private void cmdPauseService_Click(object sender, System.EventArgs e)&lt;br /&gt; {&lt;br /&gt;  try &lt;br /&gt;  {&lt;br /&gt;   msvc.Pause();&lt;br /&gt;   fUpdatingUI = true;&lt;br /&gt;   UpdateUIForSelectedService();&lt;br /&gt;   fUpdatingUI = false;&lt;br /&gt;  }&lt;br /&gt;  catch (Exception exp) &lt;br /&gt;  {&lt;br /&gt;   MessageBox.Show(exp.Message, exp.Source, MessageBoxButtons.OK, MessageBoxIcon.Error);&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;private void cmdStopService_Click(object sender, System.EventArgs e)&lt;br /&gt; {&lt;br /&gt;  try &lt;br /&gt;  {&lt;br /&gt;   msvc.Stop();&lt;br /&gt;   fUpdatingUI = true;&lt;br /&gt;   UpdateUIForSelectedService();&lt;br /&gt;   fUpdatingUI = false;&lt;br /&gt;  }&lt;br /&gt;  catch (Exception exp) &lt;br /&gt;  {&lt;br /&gt;   MessageBox.Show(exp.Message, exp.Source, MessageBoxButtons.OK, MessageBoxIcon.Error);&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;private void UpdateUIForSelectedService()&lt;br /&gt; {&lt;br /&gt;  // Update the command buttons for the selected service.&lt;br /&gt;  string strName;&lt;br /&gt;  int ItemIndex;&lt;br /&gt;  try &lt;br /&gt;  {&lt;br /&gt;                   if (this.lvServices.SelectedItems.Count == 1) &lt;br /&gt;     {&lt;br /&gt;          strName = this.lvServices.SelectedItems[0].SubItems[0].Text;&lt;br /&gt;   ItemIndex = this.lvServices.FocusedItem.Index;&lt;br /&gt;   msvc = ((ServiceController) (mcolSvcs[strName]) );&lt;br /&gt;   // if it's stopped, we should be able to start it&lt;br /&gt;   this.cmdStart.Enabled = (msvc.Status == ServiceControllerStatus.Stopped);&lt;br /&gt;   // Check if we're allowed to try and stop it and make sure it's not already stopped.&lt;br /&gt;   this.cmdStop.Enabled = (msvc.CanStop &amp;&amp; (!(msvc.Status == ServiceControllerStatus.Stopped)));&lt;br /&gt;   // Check if we're allowed to pause it and see if it is not paused already.&lt;br /&gt;   this.cmdPause.Enabled = (msvc.CanPauseAndContinue &amp;&amp; (!(msvc.Status == ServiceControllerStatus.Paused)));&lt;br /&gt;   // if it's paused, we must be able to resume it.&lt;br /&gt;   this.cmdResume.Enabled = (msvc.Status == ServiceControllerStatus.Paused);&lt;br /&gt;  }    &lt;br /&gt; }&lt;br /&gt; catch (Exception exp) &lt;br /&gt;        {&lt;br /&gt;  MessageBox.Show(exp.Message, exp.Source, MessageBoxButtons.OK, MessageBoxIcon.Error);&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/7178235408131847449-5575671559822162087?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/5575671559822162087/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/03/start-stop-pause-resume-service.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/5575671559822162087'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/5575671559822162087'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/03/start-stop-pause-resume-service.html' title='Start, Stop, Pause, Resume a service'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-3592563158913068190</id><published>2010-03-02T01:40:00.001-08:00</published><updated>2010-03-02T01:40:18.266-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dataset'/><category scheme='http://www.blogger.com/atom/ns#' term='list'/><title type='text'>Populate list from untyped DataSet</title><content type='html'>A table in a dataset is used to populate a list box with employee name from the employee table. With the dataset the name of the table and field must be known at design time. if they are misspelled or mistyped an error will be generated only at runtime. &lt;br /&gt;&lt;br /&gt;Define the dataset. &lt;br /&gt;&lt;br /&gt;private DataSet dsEmp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//Call this on your button click event &lt;br /&gt;PopulateListFromDS();&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;private void PopulateListFromDS()&lt;br /&gt;&lt;br /&gt; {&lt;br /&gt;&lt;br /&gt;        string s;&lt;br /&gt;&lt;br /&gt;        int i;&lt;br /&gt;&lt;br /&gt;        //Clear items in ListBox&lt;br /&gt;&lt;br /&gt;        lstResults.Items.Clear();&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  for(i=0; i &lt;=dsEmp.Tables["EmplyeeDS"].Rows.Count - 1; i++)&lt;br /&gt;&lt;br /&gt;  {&lt;br /&gt;&lt;br /&gt;   // Check to see if row is flagged deleted.&lt;br /&gt;&lt;br /&gt;   if (dsEmp.Tables["EmplyeeDS"].Rows.RowState != DataRowState.Deleted)&lt;br /&gt;&lt;br /&gt;   {&lt;br /&gt;&lt;br /&gt;    // Get the product name for each record.&lt;br /&gt;&lt;br /&gt;    s = dsEmp.Tables["EmplyeeDS"].Rows["EmpName"].ToString();&lt;br /&gt;&lt;br /&gt;    // Add product name to the list box&lt;br /&gt;&lt;br /&gt;    lstResults.Items.Add(s);&lt;br /&gt;&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;    }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-3592563158913068190?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/3592563158913068190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/03/populate-list-from-untyped-dataset.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/3592563158913068190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/3592563158913068190'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/03/populate-list-from-untyped-dataset.html' title='Populate list from untyped DataSet'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-7136046333467825767</id><published>2010-03-02T01:38:00.001-08:00</published><updated>2010-03-02T01:38:24.970-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>Spool Command in Oracle</title><content type='html'>Spool [pathdirectory] &lt;br /&gt;&lt;br /&gt;Spool will record all your statements in a text file which will be created in the path specified by you in pathdirectory. &lt;br /&gt;&lt;br /&gt;Until and unless you swtich off the spool it won't record your statements but a file will be created in that path. &lt;br /&gt;&lt;br /&gt;For example, I write &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL&gt; spool C:\temp.txt (temp file will be created in C drive)&lt;br /&gt;&lt;br /&gt;SQL&gt; select * from tablename1 (Output will be generated)&lt;br /&gt;&lt;br /&gt;SQL&gt; select * from tablename2 (Output will be generated)&lt;br /&gt;&lt;br /&gt;etc...&lt;br /&gt;&lt;br /&gt;SQL&gt; spool off (All records after your file was created will be recorded with errors/messages/outputs/results etc.)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can try doing this using SQL * Plus Prompt&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-7136046333467825767?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/7136046333467825767/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/03/spool-command-in-oracle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/7136046333467825767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/7136046333467825767'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/03/spool-command-in-oracle.html' title='Spool Command in Oracle'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-1034632111664023017</id><published>2010-03-02T01:35:00.000-08:00</published><updated>2010-03-02T01:35:27.497-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='articles'/><title type='text'>Load list of services</title><content type='html'>This code will load a list of all Services&lt;br /&gt;&lt;br /&gt;private ServiceController msvc;&lt;br /&gt;private ListViewItem ViewItem;&lt;br /&gt;private Hashtable mcolSvcs = new Hashtable();&lt;br /&gt;private bool fUpdatingUI ;&lt;br /&gt;&lt;br /&gt;private void frmMain_Load(object sender, System.EventArgs e) &lt;br /&gt;{&lt;br /&gt;  EnumServices();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;private void EnumServices()&lt;br /&gt;{&lt;br /&gt;  // Get the list of available services and load the list view control with the information&lt;br /&gt;  try &lt;br /&gt;  {&lt;br /&gt; fUpdatingUI = true;   &lt;br /&gt; this.lvServices.Items.Clear();&lt;br /&gt;        if (!(mcolSvcs == null)) &lt;br /&gt; {&lt;br /&gt;  mcolSvcs = new Hashtable();&lt;br /&gt; }&lt;br /&gt; ServiceController[] svcs = ServiceController.GetServices();&lt;br /&gt;        foreach(ServiceController svc in svcs)&lt;br /&gt; {&lt;br /&gt;  ViewItem = this.lvServices.Items.Add(svc.DisplayName);&lt;br /&gt;  ViewItem.SubItems.Add(svc.Status.ToString());&lt;br /&gt;  ViewItem.SubItems.Add(svc.ServiceType.ToString());    &lt;br /&gt;  mcolSvcs.Add(svc.DisplayName,svc);&lt;br /&gt; }&lt;br /&gt;   }&lt;br /&gt;   catch (Exception exp) &lt;br /&gt;   {&lt;br /&gt; MessageBox.Show(exp.Message, exp.Source, MessageBoxButtons.OK, MessageBoxIcon.Error);&lt;br /&gt;   }&lt;br /&gt;   finally&lt;br /&gt;   {&lt;br /&gt; fUpdatingUI = false;&lt;br /&gt;   }&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-1034632111664023017?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/1034632111664023017/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/03/load-list-of-services.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/1034632111664023017'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/1034632111664023017'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/03/load-list-of-services.html' title='Load list of services'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-7874420483651775868</id><published>2010-03-02T01:25:00.000-08:00</published><updated>2010-03-02T01:25:37.478-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle'/><title type='text'>Concatenation operator in Oracle</title><content type='html'>The concatenation operator will concatenate columns or character strings to other columns. Represented by two vertical bars (||).&lt;br /&gt;&lt;br /&gt;For example,&lt;br /&gt;SELECT lastname||jobcode  as "Employees" FROM tblEmployee;&lt;br /&gt;&lt;br /&gt;It will result as&lt;br /&gt;&lt;b&gt;Employees&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;xyz_VP&lt;br /&gt;&lt;br /&gt;abc_PRES&lt;br /&gt;&lt;br /&gt;pqr_VP&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-7874420483651775868?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/7874420483651775868/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/03/concatenation-operator-in-oracle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/7874420483651775868'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/7874420483651775868'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/03/concatenation-operator-in-oracle.html' title='Concatenation operator in Oracle'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-7007299790368103975</id><published>2010-02-26T09:30:00.000-08:00</published><updated>2010-02-26T09:40:48.645-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dataset'/><category scheme='http://www.blogger.com/atom/ns#' term='list'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Populate list from typed DataSet</title><content type='html'>private Employee tdsEmp;&lt;br /&gt;&lt;br /&gt;//Call this on your button click event&lt;br /&gt;PopulateListFromTDS();&lt;br /&gt;&lt;br /&gt;A table in a typed dataset is used to populate a list box with employee name from the employee table. A typed dataset provides design time verification of table names and field names before the program is run.&lt;br /&gt;&lt;br /&gt;private void PopulateListFromTDS()&lt;br /&gt;&lt;br /&gt;{        &lt;br /&gt;&lt;br /&gt;string s;&lt;br /&gt;&lt;br /&gt;int i;&lt;br /&gt;&lt;br /&gt;//Clear Items in listBox&lt;br /&gt;&lt;br /&gt;lstResults.Items.Clear();        &lt;br /&gt;&lt;br /&gt;for(i=0;i&amp;lt;=tdsEmp.EmpTDS.Count - 1;i++) //EmpTDS is table &lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;// Check to see if row is flagged deleted.&lt;br /&gt;&lt;br /&gt;if (tdsEmp.EmpTDS.RowState != DataRowState.Deleted)&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;s = tdsEmp.EmpTDS.empName.ToString();&lt;br /&gt;&lt;br /&gt;lstResults.Items.Add(s);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-7007299790368103975?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/7007299790368103975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/02/populate-list-from-typed-dataset.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/7007299790368103975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/7007299790368103975'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/02/populate-list-from-typed-dataset.html' title='Populate list from typed DataSet'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-4321409200517087682</id><published>2010-02-22T23:37:00.000-08:00</published><updated>2010-02-25T00:30:51.639-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tips and tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio'/><title type='text'>Tips and Tricks – Undocking Windows in VS - Visual Studio</title><content type='html'>Double-click the title bar of the window which will undock and you can now easily work with it. When you are finished with the window, simply double-click the title bar of the window again, and it will automatically re-dock where it had been.&lt;br /&gt;&lt;br /&gt;If you mess up your windows layout using this, then simply reset it back to your default windows layout by selecting Window -&amp;gt; reset window layout from the menu. After you confirm the operation, the window layout will be reset to default.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-4321409200517087682?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/4321409200517087682/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/02/tips-and-tricks-undocking-windows-in-vs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/4321409200517087682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/4321409200517087682'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/02/tips-and-tricks-undocking-windows-in-vs.html' title='Tips and Tricks – Undocking Windows in VS - Visual Studio'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-7536106688647238142</id><published>2010-02-09T01:39:00.000-08:00</published><updated>2010-02-09T01:39:59.871-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Winner'/><category scheme='http://www.blogger.com/atom/ns#' term='DotNetSpider'/><title type='text'>Review of the week award - Dotnetspider</title><content type='html'>Won &lt;span class="Apple-style-span" style="color: #38761d;"&gt;&lt;b&gt;Rs.100/-&lt;/b&gt;&lt;/span&gt; for Review of the Week award from DNS (www.dotnetspider.com)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-7536106688647238142?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/7536106688647238142/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/02/review-of-week-award-dotnetspider.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/7536106688647238142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/7536106688647238142'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/02/review-of-week-award-dotnetspider.html' title='Review of the week award - Dotnetspider'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-8741036819771514468</id><published>2010-02-05T07:36:00.000-08:00</published><updated>2010-02-05T07:40:30.850-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='job interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='articles'/><title type='text'>SQL SERVER – 2008 – Interview Questions</title><content type='html'>&lt;h1&gt;SQL SERVER – 2008 – Interview Questions&lt;/h1&gt;&lt;h1&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: Arial, sans-serif; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;1. What is Cursor?&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: Arial, sans-serif; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;span class="Apple-style-span" style="color: darkblue; font-weight: normal;"&gt;Cursor is a database object used by applications to manipulate data in a set on a row-by-row basis, instead of the typical SQL commands that operate on all the rows in the set at one time.In order to work with a cursor we need to perform some steps in the following order:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Arial, sans-serif; font-size: 13px; font-weight: normal;"&gt; • Declare cursor&lt;br /&gt;• Open cursor&lt;br /&gt;• Fetch row from the cursor&lt;br /&gt;• Process fetched row&lt;br /&gt;• Close cursor&lt;br /&gt;• Deallocate cursor&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;2. What is Collation?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Collation refers to a set of rules that determine how data is sorted and compared. Character data is sorted using rules that define the correct character sequence, with options for specifying case sensitivity, accent marks, kana character types and character width&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;b&gt;3. What is Difference between Function and Stored Procedure?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;UDF can be used in the SQL statements anywhere in the WHERE/HAVING/SELECT section where as Stored procedures cannot be. UDFs that return tables can be treated as another rowset. This can be used in JOINs with other tables. Inline UDF’s can be thought of as views that take parameters and can be used in JOINs and other Rowset operations.&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;b&gt;4. What is sub-query? Explain properties of sub-query?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;Sub-queries are often referred to as sub-selects, as they allow a SELECT statement to be executed arbitrarily within the body of another SQL statement. A sub-query is executed by enclosing it in a set of parentheses. Sub-queries are generally used to return a single row as an atomic value, though they may be used to compare values against multiple rows with the IN keyword.&lt;br /&gt;A subquery is a SELECT statement that is nested within another T-SQL statement. A subquery SELECT statement if executed independently of the T-SQL statement, in which it is nested, will return a resultset. Meaning a subquery SELECT statement can standalone and is not depended on the statement in which it is nested. A subquery SELECT statement can return any number of values, and can be found in, the column list of a SELECT statement, a FROM, GROUP BY, HAVING, and/or ORDER BY clauses of a T-SQL statement. A Subquery can also be used as a parameter to a function call. Basically a subquery can be used anywhere an expression can be used.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;5. What are different Types of Join?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt; Cross Join&lt;/b&gt;&lt;br /&gt;A cross join that does not have a WHERE clause produces the Cartesian product of the tables involved in the join. The size of a Cartesian product result set is the number of rows in the first table multiplied by the number of rows in the second table. The common example is when company wants to combine each product with a pricing table to analyze each product at each price.&lt;br /&gt;&lt;br /&gt;&lt;b&gt; Inner Join&lt;/b&gt;&lt;br /&gt;A join that displays only the rows that have a match in both joined tables is known as inner Join. This is the default type of join in the Query and View Designer.&lt;br /&gt;&lt;br /&gt;&lt;b&gt; Outer Join&lt;/b&gt;&lt;br /&gt;A join that includes rows even if they do not have related rows in the joined table is an Outer Join. You can create three different outer join to specify the unmatched rows to be included:&lt;br /&gt;&lt;br /&gt;• Left Outer Join: In Left Outer Join all rows in the first-named table i.e. “left” table, which appears leftmost in the JOIN clause are included. Unmatched rows in the right table do not appear.&lt;br /&gt;• Right Outer Join: In Right Outer Join all rows in the second-named table i.e. “right” table, which appears rightmost in the JOIN clause are included. Unmatched rows in the left table are not included.&lt;br /&gt;• Full Outer Join: In Full Outer Join all rows in all joined tables are included, whether they are matched or not.&lt;br /&gt;&lt;br /&gt;&lt;b&gt; Self Join&lt;/b&gt;&lt;br /&gt;This is a particular case when one table joins to itself, with one or two aliases to avoid confusion. A self join can be of any type, as long as the joined tables are the same. A self join is rather unique in that it involves a relationship with only one table. The common example is when company has a hierarchal reporting structure whereby one member of staff reports to another. Self Join can be Outer Join or Inner Join.&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;b&gt;6. What are primary keys and foreign keys?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;Primary keys are the unique identifiers for each row. They must contain unique values and cannot be null. Due to their importance in relational databases, Primary keys are the most fundamental of all keys and constraints. A table can have only one Primary key.&lt;br /&gt;Foreign keys are both a method of ensuring data integrity and a manifestation of the relationship between tables.&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;b&gt;7. What is User Defined Functions? What kind of User-Defined Functions can be created?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;User-Defined Functions allow defining its own T-SQL functions that can accept 0 or more parameters and return a single scalar data value or a table data type.&lt;br /&gt;Different Kinds of User-Defined Functions created are:&lt;br /&gt;&lt;br /&gt;&lt;b&gt; Scalar User-Defined Function&lt;/b&gt;&lt;br /&gt;A Scalar user-defined function returns one of the scalar data types. Text, ntext, image and timestamp data types are not supported. These are the type of user-defined functions that most developers are used to in other programming languages. You pass in 0 to many parameters and you get a return value.&lt;br /&gt;&lt;br /&gt;&lt;b&gt; Inline Table-Value User-Defined Function&lt;/b&gt;&lt;br /&gt;An Inline Table-Value user-defined function returns a table data type and is an exceptional alternative to a view as the user-defined function can pass parameters into a T-SQL select command and in essence provide us with a parameterized, non-updateable view of the underlying tables.&lt;br /&gt;&lt;br /&gt;&lt;b&gt; Multi-statement Table-Value User-Defined Function&lt;/b&gt;&lt;br /&gt;A Multi-Statement Table-Value user-defined function returns a table and is also an exceptional alternative to a view as the function can support multiple T-SQL statements to build the final result where the view is limited to a single SELECT statement. Also, the ability to pass parameters into a TSQL select command or a group of them gives us the capability to in essence create a parameterized, non-updateable view of the data in the underlying tables. Within the create function command you must define the table structure that is being returned. After creating this type of user-defined function, It can be used in the FROM clause of a T-SQL command unlike the behavior found when using a stored procedure which can also return record sets.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;8. What is Identity?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Identity (or AutoNumber) is a column that automatically generates numeric values. A start and increment value can be set, but most DBA leave these at 1. A GUID column also generates numbers; the value of this cannot be controlled. Identity/GUID columns do not need to be indexed.&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;b&gt;9. What is DataWarehousing?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;• Subject-oriented, meaning that the data in the database is organized so that all the data elements relating to the same real-world event or object are linked together;&lt;br /&gt;• Time-variant, meaning that the changes to the data in the database are tracked and recorded so that reports can be produced showing changes over time;&lt;br /&gt;• Non-volatile, meaning that data in the database is never over-written or deleted, once committed, the data is static, read-only, but retained for future reporting.&lt;br /&gt;• Integrated, meaning that the database contains data from most or all of an organization’s operational applications, and that this data is made consistent.&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-8741036819771514468?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/8741036819771514468/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/02/sql-server-2008-interview-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/8741036819771514468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/8741036819771514468'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/02/sql-server-2008-interview-questions.html' title='SQL SERVER – 2008 – Interview Questions'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-6319930106451994427</id><published>2010-01-29T10:00:00.000-08:00</published><updated>2010-03-14T10:38:43.433-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Winner'/><category scheme='http://www.blogger.com/atom/ns#' term='DotNetSpider'/><title type='text'>Member of the year - Dotnetspider</title><content type='html'>Wow!! Received Member of the year award again from DNS (www.dotnetspider.com)&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;Prize :&lt;/span&gt;&lt;/i&gt; Certificate and&amp;nbsp;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: blue; font-family: Arial; font-size: 12px; line-height: 18px;"&gt;&lt;u&gt;&lt;b&gt;Yes YMP-22 2GB MP3 Player&lt;/b&gt;&lt;/u&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/7178235408131847449-6319930106451994427?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/6319930106451994427/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/01/member-of-year-dotnetspider.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/6319930106451994427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/6319930106451994427'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/01/member-of-year-dotnetspider.html' title='Member of the year - Dotnetspider'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-8318594531594702648</id><published>2010-01-22T03:19:00.001-08:00</published><updated>2010-02-03T03:07:24.136-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='themes'/><title type='text'>Themes in ASP.Net 2.0</title><content type='html'>&lt;h1&gt;Themes in ASP.Net 2.0 :&lt;/h1&gt;&lt;div class="MsoNormal"&gt;A theme is a collection of settings that define the look of controls and web pages. Themes are applied across all the pages in a Web application to maintain a consistent appearance.&lt;/div&gt;&lt;div class="MsoNormal"&gt;A theme is a file with .skin extension that contains property settings for individual controls such as a Button, textbox or a Label control. You can either define skins for each control in different skin files or you can define skins for all the controls in a single file.&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="text-decoration: underline;"&gt;&lt;b&gt;Themes are of two types&lt;/b&gt;&lt;/span&gt;&amp;nbsp;–&lt;/div&gt;&lt;ol start="1" style="margin-top: 0in;" type="1"&gt;&lt;li class="MsoNormal"&gt;&lt;i&gt;&lt;span style="color: darkgreen;"&gt;&lt;b&gt;Page&lt;/b&gt;&lt;/span&gt;&lt;/i&gt;&amp;nbsp;&amp;nbsp;- A theme which can be applied to only a single page of the website is called a Page theme.&lt;/li&gt;&lt;/ol&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in;"&gt;A Page theme contains the control skins, style sheets, graphic files, and other resources inside the subfolders of App_Themes folder. For different themes separate subfolders are created in the App_Themes folder.&lt;/div&gt;&lt;ol start="2" style="margin-top: 0in;" type="1"&gt;&lt;li class="MsoNormal"&gt;&lt;b&gt;&lt;span style="color: darkgreen;"&gt;&lt;i&gt;Global&lt;/i&gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;– A global theme is a theme that is applied to all the webpages of any website. It includes property&amp;nbsp;&amp;nbsp;settings, style sheet settings, and graphics. This theme allows you to maintain all the websites on the same web server and to define the same style for all the pages of all websites.&lt;/li&gt;&lt;/ol&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in;"&gt;Global themes are placed in the Themes folder and can be accessed by an website.&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;o:p&gt;&lt;span style="text-decoration: underline;"&gt;&lt;b&gt;Steps to create themes :&lt;/b&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;ol start="1" style="margin-top: 0in;" type="1"&gt;&lt;li class="MsoNormal"&gt;Right click on Web application’s name in solution explorer and first select Add ASP.Net Folder option -&amp;gt; Themes&lt;/li&gt;&lt;li class="MsoNormal"&gt;This will add folder named App_Themes with one subfolder named Theme1 inside it.&lt;/li&gt;&lt;li class="MsoNormal"&gt;Right click Theme1 folder -&amp;gt; Add New Item -&amp;gt; Skin File (I have named it as Theme.skin). Add following code in it. &amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;span style="font-family: Verdana, Arial, Tahoma; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, Arial, Tahoma; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, Arial, Tahoma; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, Arial, Tahoma; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, Arial, Tahoma; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, Arial, Tahoma; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, Arial, Tahoma; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, Arial, Tahoma; font-size: 13px;"&gt;&lt;pre style="-webkit-background-clip: initial; -webkit-background-origin: initial; background-attachment: initial; background-color: #fcfcfc; background-image: initial; background-position: initial initial; background-repeat: initial; border-bottom-color: rgb(218, 218, 218); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(218, 218, 218); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(218, 218, 218); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(218, 218, 218); border-top-style: solid; border-top-width: 1px; color: black; font: normal normal normal 10pt/normal 'courier new', courier; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; white-space: pre-wrap; width: 730px; word-wrap: break-word;"&gt;&amp;lt;asp:Label runat="server" width="300px" height="25px"&amp;nbsp;&lt;/pre&gt;&lt;pre style="-webkit-background-clip: initial; -webkit-background-origin: initial; background-attachment: initial; background-color: #fcfcfc; background-image: initial; background-position: initial initial; background-repeat: initial; border-bottom-color: rgb(218, 218, 218); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(218, 218, 218); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(218, 218, 218); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(218, 218, 218); border-top-style: solid; border-top-width: 1px; color: black; font: normal normal normal 10pt/normal 'courier new', courier; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; white-space: pre-wrap; width: 730px; word-wrap: break-word;"&gt;font-bold="true" font-size="large" forecolor="white"&amp;nbsp;&lt;/pre&gt;&lt;pre style="-webkit-background-clip: initial; -webkit-background-origin: initial; background-attachment: initial; background-color: #fcfcfc; background-image: initial; background-position: initial initial; background-repeat: initial; border-bottom-color: rgb(218, 218, 218); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(218, 218, 218); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(218, 218, 218); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(218, 218, 218); border-top-style: solid; border-top-width: 1px; color: black; font: normal normal normal 10pt/normal 'courier new', courier; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; white-space: pre-wrap; width: 730px; word-wrap: break-word;"&gt;backcolor="Black" /&amp;gt;&lt;br /&gt;&amp;lt;asp:TextBox runat="server" forecolor="Red"  font-bold=&lt;/pre&gt;&lt;pre style="-webkit-background-clip: initial; -webkit-background-origin: initial; background-attachment: initial; background-color: #fcfcfc; background-image: initial; background-position: initial initial; background-repeat: initial; border-bottom-color: rgb(218, 218, 218); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(218, 218, 218); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(218, 218, 218); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(218, 218, 218); border-top-style: solid; border-top-width: 1px; color: black; font: normal normal normal 10pt/normal 'courier new', courier; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; white-space: pre-wrap; width: 730px; word-wrap: break-word;"&gt;"true"font-size="Medium" font-italic="True"/&amp;gt;&amp;nbsp;&amp;lt;asp:&lt;/pre&gt;&lt;pre style="-webkit-background-clip: initial; -webkit-background-origin: initial; background-attachment: initial; background-color: #fcfcfc; background-image: initial; background-position: initial initial; background-repeat: initial; border-bottom-color: rgb(218, 218, 218); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(218, 218, 218); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(218, 218, 218); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(218, 218, 218); border-top-style: solid; border-top-width: 1px; color: black; font: normal normal normal 10pt/normal 'courier new', courier; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; white-space: pre-wrap; width: 730px; word-wrap: break-word;"&gt;Button runat="server" forecolor="white" backcolor="Black"/&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;&lt;ol start="1" style="margin-top: 0in;" type="1"&gt;&lt;/ol&gt;&lt;ol start="4" style="margin-top: 0in;" type="1"&gt;&lt;li class="MsoNormal"&gt;Now create a Default.aspx page to test out. (Below is the sample screen)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;img src="http://www.dotnetfunda.com/UserFiles/ArticlesFiles/Bubbly_633988705928995391_1.GIF" /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;ol start="5" style="margin-top: 0in;" type="1"&gt;&lt;li class="MsoNormal"&gt;Add reference to Theme1.skin file in the Default.aspx page where you want to&amp;nbsp;&amp;nbsp;&amp;nbsp;apply Theme&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;span style="font-family: Verdana, Arial, Tahoma; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, Arial, Tahoma; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, Arial, Tahoma; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, Arial, Tahoma; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, Arial, Tahoma; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, Arial, Tahoma; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Verdana, Arial, Tahoma; font-size: 13px;"&gt;&lt;pre style="-webkit-background-clip: initial; -webkit-background-origin: initial; background-attachment: initial; background-color: #fcfcfc; background-image: initial; background-position: initial initial; background-repeat: initial; border-bottom-color: rgb(218, 218, 218); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(218, 218, 218); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(218, 218, 218); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(218, 218, 218); border-top-style: solid; border-top-width: 1px; color: black; font: normal normal normal 10pt/normal 'courier new', courier; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; white-space: pre-wrap; width: 730px; word-wrap: break-word;"&gt;&lt;span style="-webkit-background-clip: initial; -webkit-background-origin: initial; background-attachment: initial; background-color: yellow; background-image: initial; background-repeat: initial;"&gt;&amp;lt;%&lt;/span&gt;@&amp;nbsp;Page&amp;nbsp;Language="C#"&amp;nbsp;AutoEventWireup="true"CodeFile=&lt;/pre&gt;&lt;pre style="-webkit-background-clip: initial; -webkit-background-origin: initial; background-attachment: initial; background-color: #fcfcfc; background-image: initial; background-position: initial initial; background-repeat: initial; border-bottom-color: rgb(218, 218, 218); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(218, 218, 218); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(218, 218, 218); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(218, 218, 218); border-top-style: solid; border-top-width: 1px; color: black; font: normal normal normal 10pt/normal 'courier new', courier; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; white-space: pre-wrap; width: 730px; word-wrap: break-word;"&gt;"Default.aspx.cs"&amp;nbsp;Inherits="_Default"&amp;nbsp;Theme="Theme1"&amp;nbsp;&lt;span style="-webkit-background-clip: initial; -webkit-background-origin: initial; background-attachment: initial; background-color: yellow; background-image: initial; background-repeat: initial;"&gt;%&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;The style properties of the skin file will not be visible at design time but only run time. Press F5 and see the output.&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;span style="text-decoration: underline;"&gt;Applying Themes on Controls at Run Time :&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;You can apply theme at control level by setting its EnableTheming property to True and set the reference Theme file in Page directive. You can also create multiple themes and give a choice to the user to apply any theme at runtime.&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;o:p&gt;&lt;span style="color: darkgreen;"&gt;&lt;b&gt;Steps :&lt;/b&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;ol start="1" style="margin-top: 0in;" type="1"&gt;&lt;li class="MsoNormal"&gt;Add two Theme folders in the App_Themes folder (like Theme1 and Theme2)&lt;/li&gt;&lt;li class="MsoNormal"&gt;Now add sking file to each Theme folder (like Simple.skin and Inverse.skin)&lt;/li&gt;&lt;/ol&gt;&lt;div class="MsoNormal"&gt;Simple.skin&lt;br /&gt;&lt;span style="border-collapse: collapse; font-family: Verdana, Arial, Tahoma; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style="-webkit-background-clip: initial; -webkit-background-origin: initial; background-attachment: initial; background-color: #fcfcfc; background-image: initial; background-position: initial initial; background-repeat: initial; border-bottom-color: rgb(218, 218, 218); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(218, 218, 218); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(218, 218, 218); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(218, 218, 218); border-top-style: solid; border-top-width: 1px; color: black; font: normal normal normal 10pt/normal 'courier new', courier; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; white-space: pre-wrap; width: 730px; word-wrap: break-word;"&gt;&amp;lt;asp:Label runat="server" width="300px" height="25px"&amp;nbsp;&lt;/pre&gt;&lt;pre style="-webkit-background-clip: initial; -webkit-background-origin: initial; background-attachment: initial; background-color: #fcfcfc; background-image: initial; background-position: initial initial; background-repeat: initial; border-bottom-color: rgb(218, 218, 218); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(218, 218, 218); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(218, 218, 218); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(218, 218, 218); border-top-style: solid; border-top-width: 1px; color: black; font: normal normal normal 10pt/normal 'courier new', courier; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; white-space: pre-wrap; width: 730px; word-wrap: break-word;"&gt;font-bold="true"font-size="large"&lt;br /&gt;forecolor="green" backcolor="yellow" /&amp;gt;&lt;br /&gt;&amp;lt;asp:TextBox runat="server" forecolor="Blue" backcolor=&lt;/pre&gt;&lt;pre style="-webkit-background-clip: initial; -webkit-background-origin: initial; background-attachment: initial; background-color: #fcfcfc; background-image: initial; background-position: initial initial; background-repeat: initial; border-bottom-color: rgb(218, 218, 218); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(218, 218, 218); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(218, 218, 218); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(218, 218, 218); border-top-style: solid; border-top-width: 1px; color: black; font: normal normal normal 10pt/normal 'courier new', courier; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; white-space: pre-wrap; width: 730px; word-wrap: break-word;"&gt;"silver" font-bold="true"&lt;br /&gt;font-size="Medium" font-italic="True"/&amp;gt;&lt;br /&gt;&amp;lt;asp:Button runat="server" forecolor="green" backcolor=&lt;/pre&gt;&lt;pre style="-webkit-background-clip: initial; -webkit-background-origin: initial; background-attachment: initial; background-color: #fcfcfc; background-image: initial; background-position: initial initial; background-repeat: initial; border-bottom-color: rgb(218, 218, 218); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(218, 218, 218); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(218, 218, 218); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(218, 218, 218); border-top-style: solid; border-top-width: 1px; color: black; font: normal normal normal 10pt/normal 'courier new', courier; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; white-space: pre-wrap; width: 730px; word-wrap: break-word;"&gt;"yellow" /&amp;gt;&lt;/pre&gt;&lt;pre style="-webkit-background-clip: initial; -webkit-background-origin: initial; background-attachment: initial; background-color: #fcfcfc; background-image: initial; background-position: initial initial; background-repeat: initial; border-bottom-color: rgb(218, 218, 218); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(218, 218, 218); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(218, 218, 218); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(218, 218, 218); border-top-style: solid; border-top-width: 1px; color: black; font: normal normal normal 10pt/normal 'courier new', courier; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; white-space: pre-wrap; width: 730px; word-wrap: break-word;"&gt;&lt;b&gt;Inverse.skin&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;asp:Label runat="server" width="300px" height="25px"&amp;nbsp;&lt;/pre&gt;&lt;pre style="-webkit-background-clip: initial; -webkit-background-origin: initial; background-attachment: initial; background-color: #fcfcfc; background-image: initial; background-position: initial initial; background-repeat: initial; border-bottom-color: rgb(218, 218, 218); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(218, 218, 218); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(218, 218, 218); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(218, 218, 218); border-top-style: solid; border-top-width: 1px; color: black; font: normal normal normal 10pt/normal 'courier new', courier; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; white-space: pre-wrap; width: 730px; word-wrap: break-word;"&gt;font-bold="true"font-size="large"&lt;br /&gt;forecolor="yellow" backcolor="green" /&amp;gt;&lt;br /&gt;&amp;lt;asp:TextBox runat="server" forecolor="silver"&amp;nbsp;&lt;/pre&gt;&lt;pre style="-webkit-background-clip: initial; -webkit-background-origin: initial; background-attachment: initial; background-color: #fcfcfc; background-image: initial; background-position: initial initial; background-repeat: initial; border-bottom-color: rgb(218, 218, 218); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(218, 218, 218); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(218, 218, 218); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(218, 218, 218); border-top-style: solid; border-top-width: 1px; color: black; font: normal normal normal 10pt/normal 'courier new', courier; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; white-space: pre-wrap; width: 730px; word-wrap: break-word;"&gt;backcolor="blue" font-bold="true"&lt;br /&gt;font-size="Medium" font-italic="True"/&amp;gt;&lt;br /&gt;&amp;lt;asp:Button runat="server" forecolor="yellow"&amp;nbsp;&lt;/pre&gt;&lt;pre style="-webkit-background-clip: initial; -webkit-background-origin: initial; background-attachment: initial; background-color: #fcfcfc; background-image: initial; background-position: initial initial; background-repeat: initial; border-bottom-color: rgb(218, 218, 218); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(218, 218, 218); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(218, 218, 218); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(218, 218, 218); border-top-style: solid; border-top-width: 1px; color: black; font: normal normal normal 10pt/normal 'courier new', courier; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; white-space: pre-wrap; width: 730px; word-wrap: break-word;"&gt;backcolor="green" /&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="border-collapse: collapse;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;ol start="3" style="margin-top: 0in;" type="1"&gt;&lt;li class="MsoNormal"&gt;Create a Default.aspx page as shown&lt;br /&gt;&amp;nbsp;&lt;img src="http://www.dotnetfunda.com/UserFiles/ArticlesFiles/Bubbly_633988706149473906_2.GIF" /&gt;&amp;nbsp; &amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;o:p&gt;&amp;nbsp;The links are created using the below code&lt;/o:p&gt;&lt;/div&gt;&lt;span style="border-collapse: collapse;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="border-collapse: collapse;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="border-collapse: collapse;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="border-collapse: collapse;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="border-collapse: collapse;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="border-collapse: collapse;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="border-collapse: collapse;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="border-collapse: collapse;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="border-collapse: collapse;"&gt;&lt;pre style="-webkit-background-clip: initial; -webkit-background-origin: initial; background-attachment: initial; background-color: #fcfcfc; background-image: initial; background-position: initial initial; background-repeat: initial; border-bottom-color: rgb(218, 218, 218); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(218, 218, 218); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(218, 218, 218); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(218, 218, 218); border-top-style: solid; border-top-width: 1px; color: black; font: normal normal normal 10pt/normal 'courier new', courier; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; white-space: pre-wrap; width: 730px; word-wrap: break-word;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;a&amp;nbsp;href="Default.aspx?Theme=Theme1"&amp;gt;Simple&amp;lt;/a&amp;gt;&amp;nbsp;|&amp;nbsp;&lt;/pre&gt;&lt;pre style="-webkit-background-clip: initial; -webkit-background-origin: initial; background-attachment: initial; background-color: #fcfcfc; background-image: initial; background-position: initial initial; background-repeat: initial; border-bottom-color: rgb(218, 218, 218); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(218, 218, 218); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(218, 218, 218); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(218, 218, 218); border-top-style: solid; border-top-width: 1px; color: black; font: normal normal normal 10pt/normal 'courier new', courier; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; white-space: pre-wrap; width: 730px; word-wrap: break-word;"&gt;&amp;lt;a href="Default.aspx?Theme=Theme2"&amp;gt;Inverse&amp;lt;/a&amp;gt;&amp;lt;br&amp;nbsp;/&amp;gt;&lt;/pre&gt;&lt;/span&gt;&lt;br /&gt;&lt;ol start="4" style="margin-top: 0in;" type="1"&gt;&lt;li class="MsoNormal"&gt;Add this in Default.aspx.cs&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;span style="border-collapse: collapse;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre style="-webkit-background-clip: initial; -webkit-background-origin: initial; background-attachment: initial; background-color: #fcfcfc; background-image: initial; background-position: initial initial; background-repeat: initial; border-bottom-color: rgb(218, 218, 218); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(218, 218, 218); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(218, 218, 218); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(218, 218, 218); border-top-style: solid; border-top-width: 1px; color: black; font: normal normal normal 10pt/normal 'courier new', courier; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; white-space: pre-wrap; width: 730px; word-wrap: break-word;"&gt;protected void Page_PreInit (object sender, EventArgs e)&lt;br /&gt;    {&lt;br /&gt;        Page.Theme =&amp;nbsp;&lt;/pre&gt;&lt;pre style="-webkit-background-clip: initial; -webkit-background-origin: initial; background-attachment: initial; background-color: #fcfcfc; background-image: initial; background-position: initial initial; background-repeat: initial; border-bottom-color: rgb(218, 218, 218); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(218, 218, 218); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(218, 218, 218); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(218, 218, 218); border-top-style: solid; border-top-width: 1px; color: black; font: normal normal normal 10pt/normal 'courier new', courier; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; white-space: pre-wrap; width: 730px; word-wrap: break-word;"&gt;Server.HtmlEncode(Request.QueryString["Theme"]);&lt;/pre&gt;&lt;pre style="-webkit-background-clip: initial; -webkit-background-origin: initial; background-attachment: initial; background-color: #fcfcfc; background-image: initial; background-position: initial initial; background-repeat: initial; border-bottom-color: rgb(218, 218, 218); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(218, 218, 218); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(218, 218, 218); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(218, 218, 218); border-top-style: solid; border-top-width: 1px; color: black; font: normal normal normal 10pt/normal 'courier new', courier; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; white-space: pre-wrap; width: 730px; word-wrap: break-word;"&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;o:p&gt;&amp;nbsp;Press F5 and see the output by clicking both links&lt;/o:p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-8318594531594702648?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/8318594531594702648/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/01/themes-in-aspnet-20.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/8318594531594702648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/8318594531594702648'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/01/themes-in-aspnet-20.html' title='Themes in ASP.Net 2.0'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-8569878621991438762</id><published>2010-01-03T23:56:00.000-08:00</published><updated>2010-01-30T09:33:40.505-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MVP'/><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><title type='text'>Microsoft MVP Award!!!</title><content type='html'>&lt;h1&gt;Microsoft MVP Award - Deepika Haridas!!!&lt;/h1&gt;&lt;br /&gt;Feels great, on the Top of the world !!&lt;br /&gt;I am awarded &lt;span style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: green; font-family: Arial; font-size: 13px;"&gt;with Prestigious &lt;b style="color: purple;"&gt;Microsoft MVP Award&lt;/b&gt; in &lt;span style="color: red;"&gt;ASP/ASP.NET&lt;/span&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: green; font-family: Arial; font-size: 13px;"&gt; &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: green; font-family: Arial; font-size: 13px;"&gt;I would like to thank each and every person in my life who supported me throughout. &lt;span style="color: #6aa84f;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: green; font-family: Arial; font-size: 13px;"&gt;&lt;span style="color: #6aa84f;"&gt;&lt;span style="color: #0b5394;"&gt;Planning to get this award each year ;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: green; font-family: Arial; font-size: 13px;"&gt;&lt;span style="color: #6aa84f;"&gt;&lt;span style="color: #0b5394;"&gt;&lt;span style="color: purple;"&gt;You can view the annoucement here &lt;/span&gt;: &lt;a href="http://blogs.technet.com/southasiamvp/archive/2010/01/03/new-mvps-announced-january-2010.aspx"&gt;MVP&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: green; font-family: Arial; font-size: 13px;"&gt;&lt;span style="color: #6aa84f;"&gt;&lt;span style="color: #0b5394;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://blogs.technet.com/southasiamvp/archive/2010/01/03/new-mvps-announced-january-2010.aspx" target="_blank"&gt;&lt;/a&gt;&lt;span style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: green; font-family: Arial; font-size: 13px;"&gt;&lt;span style="color: #6aa84f;"&gt;&lt;span style="color: #0b5394;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span style="color: green; font-family: Arial; font-size: 13px;"&gt;&lt;span style="background-color: #674ea7;"&gt;&lt;span style="background-color: black;"&gt;&lt;/span&gt;&lt;span style="background-color: white;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-8569878621991438762?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/8569878621991438762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2010/01/microsoft-mvp-award.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/8569878621991438762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/8569878621991438762'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2010/01/microsoft-mvp-award.html' title='Microsoft MVP Award!!!'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-5453680246742523824</id><published>2009-12-28T23:23:00.000-08:00</published><updated>2010-01-30T09:36:25.857-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Application'/><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='infragistics'/><category scheme='http://www.blogger.com/atom/ns#' term='winlabel'/><title type='text'>Infragistics - WINLABEL</title><content type='html'>&lt;h1&gt;Infragistics - WINLABEL CONTROL&lt;/h1&gt;&lt;br /&gt;The WinLabel™ control is a basic label type control. Much of the included functionality in the intrinsic label (autosize, mnemonics, image and text) is provided as well as some additional functionality, including:&lt;br /&gt;1. Appearance support -- Full Appearance support including alphablending, gradients, etc.&lt;br /&gt;2. HotTracking -- Alter the appearance of the label when the mouse is over the element.&lt;br /&gt;3. BorderStyleInner/BorderStyleOuter -- The two borderstyles can be used to create additional border effects - "bump" border, etc. The InnerBorderPadding controls the space allocated between the inner and outer border.&lt;br /&gt;4. ImageSize -- Control the size of the image displayed in the label.&lt;br /&gt;5. WrapText -- Determines whether text will wrap when the element is not wide enough to display the entire text.&lt;br /&gt;&lt;br /&gt;&lt;img alt="Infragistics - WINLABEL" src="http://www.dotnetspider.com/attachments/Resources/35630-26950-1.bmp" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img alt="Infragistics - WINLABEL" src="http://www.dotnetspider.com/attachments/Resources/35630-26950-2.bmp" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;code style="color: blue; font-family: Courier; font-size: small; height: auto; line-height: 19px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;/code&gt;&lt;br /&gt;&lt;code style="color: blue; font-family: Courier; font-size: small; height: auto; line-height: 19px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;/code&gt;&lt;br /&gt;&lt;code style="color: blue; font-family: Courier; font-size: small; height: auto; line-height: 19px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;/code&gt;&lt;br /&gt;&lt;code style="color: blue; font-family: Courier; font-size: small; height: auto; line-height: 19px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;/code&gt;&lt;br /&gt;&lt;code style="color: blue; font-family: Courier; font-size: small; height: auto; line-height: 19px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;/code&gt;&lt;br /&gt;&lt;code style="color: blue; font-family: Courier; font-size: small; height: auto; line-height: 19px; margin-bottom: 10px; margin-left: 10px; margin-right: 10px; margin-top: 10px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;pre style="border-bottom-style: inset; border-bottom-width: 1px; border-color: initial; border-left-style: inset; border-left-width: 1px; border-right-style: inset; border-right-width: 1px; border-top-style: inset; border-top-width: 1px; color: blue; font-family: Courier; font-size: small; height: auto; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: scroll; overflow-y: scroll; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px;"&gt;&lt;b&gt;EXAMPLE (FONT)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;using Infragistics.Win;&lt;br /&gt;&lt;br /&gt;private void SetGridFont()&lt;br /&gt;{&lt;br /&gt;  FontData fd= this.ultraGrid1.DisplayLayout.Appearance.FontData;&lt;br /&gt;  fd.Bold = DefaultableBoolean.True ;&lt;br /&gt;  fd.Italic = DefaultableBoolean.True;&lt;br /&gt;  fd.Name = "Times New Roman";&lt;br /&gt;  fd.Underline = DefaultableBoolean.True;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;b&gt;EXAMPLE (TEXT)&lt;/b&gt;&lt;br /&gt; &lt;br /&gt;public override string Text {get; set;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;EXAMPLE (AUTO HIDE)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;using Infragistics.Shared;&lt;br /&gt;using Infragistics.Win;&lt;br /&gt;using Infragistics.Win.Misc;&lt;br /&gt;&lt;br /&gt;private void CreateShapeImage(Infragistics.Win.Misc.UltraButton button)&lt;br /&gt;{&lt;br /&gt;    // create a bitmap that will be used to provide the shape&lt;br /&gt;    // of the button.&lt;br /&gt;    Bitmap bitmap = new Bitmap(100,100);&lt;br /&gt;&lt;br /&gt;    // create a temporary graphics object so we can render into it&lt;br /&gt;    using (Graphics g = Graphics.FromImage(bitmap))&lt;br /&gt;    {&lt;br /&gt;       // draw the background in white. whatever color is in the lower left hand pixel will be assumed to be transparent&lt;br /&gt;       g.Clear( Color.White );&lt;br /&gt;       // draw our circle in a different color&lt;br /&gt;       g.DrawEllipse( Pens.Black , 0, 0, 99, 99 );&lt;br /&gt;       // make sure to fill it in or the only displayed part of the button will be the outline of the circle&lt;br /&gt;       g.FillEllipse( Brushes.Black, 0, 0, 99, 99 );&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    // set the shape&lt;br /&gt;    button.ShapeImage = bitmap;&lt;br /&gt;&lt;br /&gt;    // autosize to the shape image&lt;br /&gt;    button.AutoSize = true;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;More resources related to Infragistics:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://angeldeeps.blogspot.com/2009/09/infragistics-nested-tables-in-ultragrid.html" style="color: #0066ff; text-decoration: underline;" target="_blank"&gt;Nested tables in Ultragrid&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://angeldeeps.blogspot.com/2009/12/infragistics-wintooltipmanger.html" style="color: #0066ff; text-decoration: underline;" target="_blank"&gt;WinToolTipManager&lt;/a&gt;&lt;br /&gt;&lt;span style="color: #4c4c4c; font-family: Arial; font-size: small;"&gt;&lt;span style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #4c4c4c; font-family: Arial; font-size: small;"&gt;&lt;span style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-5453680246742523824?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/5453680246742523824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2009/12/infragistics-winlabel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/5453680246742523824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/5453680246742523824'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2009/12/infragistics-winlabel.html' title='Infragistics - WINLABEL'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-4074410824195105461</id><published>2009-12-28T23:15:00.000-08:00</published><updated>2010-01-30T09:41:33.545-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='job interview questions'/><category scheme='http://www.blogger.com/atom/ns#' term='remoting'/><title type='text'>.NET Remoting Interview Questions</title><content type='html'>&lt;h1&gt;.NET Remoting Interview Questions&lt;/h1&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; color: darkblue; font-family: Arial, sans-serif; font-size: 13px;"&gt;1. What’s a &lt;a href="http://www.amazon.com/Microsoft-Windows-Home-Premium-Upgrade/dp/B002DHLUWK?ie=UTF8&amp;amp;tag=thoughrulemi-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" target="_blank"&gt;Windows&lt;/a&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=thoughrulemi-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=B002DHLUWK" style="border: none !important; margin: 0px !important;" width="1" /&gt; process?&lt;br /&gt;sol: It’s an application that’s running and had been allocated memory.&lt;br /&gt;&lt;br /&gt;2. What’s typical about a &lt;a href="http://www.amazon.com/Microsoft-Windows-Home-Premium-Upgrade/dp/B002DHLUWK?ie=UTF8&amp;amp;tag=thoughrulemi-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" target="_blank"&gt;Windows&lt;/a&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=thoughrulemi-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=B002DHLUWK" style="border: none !important; margin: 0px !important;" width="1" /&gt; process in regards to memory allocation?&lt;br /&gt;Sol: Each process is allocated its own block of available &lt;a href="http://www.amazon.com/Crucial-2x1GB-200-Pin-667Mhz-SODIMM/dp/B000FQ2JLW?ie=UTF8&amp;amp;tag=thoughrulemi-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" target="_blank"&gt;RAM&lt;/a&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=thoughrulemi-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=B000FQ2JLW" style="border: none !important; margin: 0px !important;" width="1" /&gt; space, no process can access another process’ code or data. If the process crashes, it dies alone without taking the entire &lt;a href="http://www.amazon.com/Mac-version-10-6-Snow-Leopard/dp/B001AMHWP8?ie=UTF8&amp;amp;tag=thoughrulemi-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" target="_blank"&gt;OS&lt;/a&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=thoughrulemi-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=B001AMHWP8" style="border: none !important; margin: 0px !important;" width="1" /&gt; or a bunch of other applications down.&lt;br /&gt;&lt;br /&gt;3. Why do you call it a process? What’s different between process and application in .NET, not common computer usage, terminology?&lt;br /&gt;sol: A process is an instance of a running application. An application is an executable on the hard drive or network. There can be numerous processes launched of the same application (5 copies of Word running), but 1 process can run just 1 application.&lt;br /&gt;&lt;br /&gt;4. What distributed process frameworks outside .NET do you know?&lt;br /&gt;Sol: Distributed Computing Environment/Remote Procedure Calls (DEC/RPC), &lt;a href="http://www.amazon.com/Learning-DCOM-Thuan-L-Thai/dp/1565925815?ie=UTF8&amp;amp;tag=thoughrulemi-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" target="_blank"&gt;Microsoft Distributed Component Object Model&lt;/a&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=thoughrulemi-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=1565925815" style="border: none !important; margin: 0px !important;" width="1" /&gt; (DCOM), &lt;a href="http://www.amazon.com/CORBA-Reference-Guide-Understanding-Architecture/dp/0201633868?ie=UTF8&amp;amp;tag=thoughrulemi-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" target="_blank"&gt;Common Object Request Broker Architecture&lt;/a&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=thoughrulemi-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=0201633868" style="border: none !important; margin: 0px !important;" width="1" /&gt;(CORBA), and &lt;a href="http://www.amazon.com/Java-Platform-Standard-Connectivity-Architecture/dp/6130256574?ie=UTF8&amp;amp;tag=thoughrulemi-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" target="_blank"&gt;Java Remote Method Invocation&lt;/a&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=thoughrulemi-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=6130256574" style="border: none !important; margin: 0px !important;" width="1" /&gt; (RMI).&lt;br /&gt;&lt;br /&gt;5. What are possible implementations of distributed applications in .NET?&lt;br /&gt;Sol: &lt;a href="http://www.amazon.com/Advanced-NET-Remoting-Second-Rammer/dp/1590594177?ie=UTF8&amp;amp;tag=thoughrulemi-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" target="_blank"&gt;.NET Remoting&lt;/a&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=thoughrulemi-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=1590594177" style="border: none !important; margin: 0px !important;" width="1" /&gt; and &lt;a href="http://www.amazon.com/Professional-ASP-NET-Services-Andreas-Eide/dp/1861005458?ie=UTF8&amp;amp;tag=thoughrulemi-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" target="_blank"&gt;ASP.NET Web Services&lt;/a&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=thoughrulemi-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=1861005458" style="border: none !important; margin: 0px !important;" width="1" /&gt;. If we talk about the Framework Class Library, noteworthy classes are in System.Runtime.Remoting and System.Web.Services.&lt;br /&gt;&lt;br /&gt;6. When would you use .NET Remoting and when Web services?&lt;br /&gt;sol: Use remoting for more efficient exchange of information when you control both ends of the application. Use Web services for open-protocol-based information exchange when you are just a client or a server with the other end belonging to someone else.&lt;br /&gt;&lt;br /&gt;7.  What’s a &lt;a href="http://www.amazon.com/Web-Proxy-Servers-Infrastructure/dp/0136806120?ie=UTF8&amp;amp;tag=thoughrulemi-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" target="_blank"&gt;proxy&lt;/a&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=thoughrulemi-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=0136806120" style="border: none !important; margin: 0px !important;" width="1" /&gt; of the server object in &lt;a href="http://www.amazon.com/Advanced-NET-Remoting-Second-Rammer/dp/1590594177?ie=UTF8&amp;amp;tag=thoughrulemi-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" target="_blank"&gt;.NET Remoting&lt;/a&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=thoughrulemi-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=1590594177" style="border: none !important; margin: 0px !important;" width="1" /&gt;?&lt;br /&gt;sol: It’s a fake copy of the server object that resides on the client side and behaves as if it was the server. It handles the communication between real server object and the client object. This process is also known as marshaling.&lt;br /&gt;&lt;br /&gt;8. What are remotable objects in &lt;a href="http://www.amazon.com/Advanced-NET-Remoting-Second-Rammer/dp/1590594177?ie=UTF8&amp;amp;tag=thoughrulemi-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" target="_blank"&gt;.NET Remoting&lt;/a&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=thoughrulemi-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=1590594177" style="border: none !important; margin: 0px !important;" width="1" /&gt;?&lt;br /&gt;sol: Remotable objects are the objects that can be marshaled across the application domains. You can marshal by value, where a deep copy of the object is created and then passed to the receiver. You can also marshal by reference, where just a reference to an existing object is passed.&lt;br /&gt;&lt;br /&gt;9.  What are channels in &lt;a href="http://www.amazon.com/Advanced-NET-Remoting-Second-Rammer/dp/1590594177?ie=UTF8&amp;amp;tag=thoughrulemi-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" target="_blank"&gt;.NET Remoting&lt;/a&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=thoughrulemi-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=1590594177" style="border: none !important; margin: 0px !important;" width="1" /&gt;?&lt;br /&gt;sol: Channels represent the objects that transfer the other serialized objects from one application domain to another and from one computer to another, as well as one process to another on the same box. A channel must exist before an object can be transferred.&lt;br /&gt;&lt;br /&gt;10. What security measures exist for .NET Remoting in System.Runtime.Remoting?&lt;br /&gt;sol: None. Security should be taken care of at the application level. Cryptography and other security techniques can be applied at application or server level.&lt;br /&gt;&lt;br /&gt;11. What is a formatter?&lt;br /&gt;sol: A formatter is an object that is responsible for encoding and serializing data into messages on one end, and deserializing and decoding messages into data on the other end.&lt;br /&gt;&lt;br /&gt;12. Choosing between &lt;a href="http://www.amazon.com/HTTP-Definitive-Guide-David-Gourley/dp/1565925092?ie=UTF8&amp;amp;tag=thoughrulemi-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" target="_blank"&gt;HTTP&lt;/a&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=thoughrulemi-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=1565925092" style="border: none !important; margin: 0px !important;" width="1" /&gt; and &lt;a href="http://www.amazon.com/TCP-Guide-Comprehensive-Illustrated-Protocols/dp/159327047X?ie=UTF8&amp;amp;tag=thoughrulemi-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" target="_blank"&gt;TCP&lt;/a&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=thoughrulemi-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=159327047X" style="border: none !important; margin: 0px !important;" width="1" /&gt; for protocols and Binary and SOAP for formatters, what are the trade-offs?&lt;br /&gt;sol: Binary over TCP is the most effiecient, SOAP over &lt;a href="http://www.amazon.com/HTTP-Definitive-Guide-David-Gourley/dp/1565925092?ie=UTF8&amp;amp;tag=thoughrulemi-20&amp;amp;link_code=btl&amp;amp;camp=213689&amp;amp;creative=392969" target="_blank"&gt;HTTP&lt;/a&gt;&lt;img alt="" border="0" height="1" src="http://www.assoc-amazon.com/e/ir?t=thoughrulemi-20&amp;amp;l=btl&amp;amp;camp=213689&amp;amp;creative=392969&amp;amp;o=1&amp;amp;a=1565925092" style="border: none !important; margin: 0px !important;" width="1" /&gt; is the most interoperable.&lt;br /&gt;&lt;br /&gt;13. What’s SingleCall activation mode used for?&lt;br /&gt;sol: If the server object is instantiated for responding to just one single request, the request should be made in SingleCall mode.&lt;br /&gt;&lt;br /&gt;14. What’s Singleton activation mode?&lt;br /&gt;sol: A single object is instantiated regardless of the number of clients accessing it. Lifetime of this object is determined by lifetime lease.&lt;br /&gt;&lt;br /&gt;15.  How do you define the lease of the object?&lt;br /&gt;sol: By implementing ILease interface when writing the class code.&lt;br /&gt;&lt;br /&gt;16.  Can you configure a .NET Remoting object via XML file?&lt;br /&gt;sol: Yes, via machine.config and application level .config file (or web.config in ASP.NET). Application-level XML settings take precedence over machine.config.&lt;br /&gt;&lt;br /&gt;17. How can you automatically generate interface for the remotable object in .NET with Microsoft tools?&lt;br /&gt;sol: Use the Soapsuds tool.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-4074410824195105461?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/4074410824195105461/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2009/12/net-remoting-interview-questions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/4074410824195105461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/4074410824195105461'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2009/12/net-remoting-interview-questions.html' title='.NET Remoting Interview Questions'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-9063857404423951362</id><published>2009-12-11T01:38:00.000-08:00</published><updated>2009-12-21T22:05:44.402-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Wintooltipmanager'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows Application'/><category scheme='http://www.blogger.com/atom/ns#' term='infragistics'/><title type='text'>Infragistics - WINTOOLTIPMANGER</title><content type='html'>&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;h2 style="color: #0066cc; font-family: Arial,Helvetica,sans-serif; font-size: 17px; margin: 2px 2px 2px 1px;"&gt;&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 13px;"&gt;Infragistics - WINTOOLTIPMANGER&lt;/span&gt;&lt;/h2&gt;&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 13px;"&gt; &lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 13px;"&gt;&lt;b&gt;WinToolTipManager&lt;/b&gt; adds an extender property called "UltraToolTip" to anycontrol. The UltraToolTip property allows for a control to be managed by the WinToolTipManager. This allows a tooltip to automatically display when the mouse hovers over the control.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 13px;"&gt; &lt;br /&gt;&lt;!-- Begin: AdBrite, Generated: 2009-12-22 1:02:04  --&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;var AdBrite_Title_Color = '0000FF';var AdBrite_Text_Color = '000000';var AdBrite_Background_Color = 'FFFFFF';var AdBrite_Border_Color = 'CCCCCC';var AdBrite_URL_Color = '008000';try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}&lt;/script&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=1461448&amp;zs=3330305f323530&amp;ifr='+AdBrite_Iframe+'&amp;ref='+AdBrite_Referrer+'" type="text/javascript"&gt;');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));&lt;/script&gt;&lt;br /&gt;&lt;div&gt;&lt;a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=1461448&amp;afsid=1" style="font-weight:bold;font-family:Arial;font-size:13px;"&gt;Your Ad Here&lt;/a&gt;&lt;/div&gt;&lt;!-- End: AdBrite --&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1. Namespaces Used :&lt;/b&gt;&lt;br /&gt;&lt;code style="color: blue; font-family: Courier; font-size: small; height: auto; line-height: 19px; margin: 10px; overflow: scroll; padding: 6px;"&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style="border-style: inset; border-width: 1px; color: blue; font-family: Courier; font-size: small; height: auto; margin: 0px; overflow: scroll; padding: 6px;"&gt;&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 13px;"&gt;&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 13px;"&gt;using Infragistics.Win;&lt;br /&gt;using Infragistics.Win.UltraWinToolTip;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 13px;"&gt;&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2. Place an UltraToolTipManager component on the Form&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;img alt="WinToolTip" src="http://www.dotnetspider.com/attachments/Resources/35331-11215-2.bmp" /&gt;&lt;br /&gt;&lt;br /&gt;3. In order to set up WinToolTip properties, you must first get the ToolTipInfo for the control. Do this using the GetUltraToolTip method of the WinToolTipManager. Place the following code in the Form_Load event.&lt;br /&gt;&lt;br /&gt;&lt;code style="color: blue; font-family: Courier; font-size: small; height: auto; line-height: 19px; margin: 10px; overflow: scroll; padding: 6px;"&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style="border-style: inset; border-width: 1px; color: blue; font-family: Courier; font-size: small; height: auto; margin: 0px; overflow: scroll; padding: 6px;"&gt;&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 13px;"&gt;&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 13px;"&gt;// Get the ToolTipInfo for TextBox1&lt;br /&gt;UltraToolTipInfo toolTipInfo =&lt;br /&gt;this.ultraToolTipManager1.GetUltraToolTip(this.textBox1);&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 13px;"&gt;&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;4. Set the ToolTipText&lt;/b&gt;&lt;br /&gt;&lt;code style="color: blue; font-family: Courier; font-size: small; height: auto; line-height: 19px; margin: 10px; overflow: scroll; padding: 6px;"&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style="border-style: inset; border-width: 1px; color: blue; font-family: Courier; font-size: small; height: auto; margin: 0px; overflow: scroll; padding: 6px;"&gt;&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 13px;"&gt;&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 13px;"&gt;// Set the ToolTipText.&lt;br /&gt;toolTipInfo.ToolTipText = "Enter some text here.";&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 13px;"&gt;&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;5. Set optional properties&lt;/b&gt;&lt;br /&gt;&lt;code style="color: blue; font-family: Courier; font-size: small; height: auto; line-height: 19px; margin: 10px; overflow: scroll; padding: 6px;"&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style="border-style: inset; border-width: 1px; color: blue; font-family: Courier; font-size: small; height: auto; margin: 0px; overflow: scroll; padding: 6px;"&gt;&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 13px;"&gt;&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 13px;"&gt;// Set the ToolTipTitle&lt;br /&gt;toolTipInfo.ToolTipTitle = "This is textBox1";&lt;br /&gt;&lt;br /&gt;// Apply an image&lt;br /&gt;toolTipInfo.ToolTipImage = ToolTipImage.Info;&lt;br /&gt;&lt;br /&gt;// Apply an appearance&lt;br /&gt;toolTipInfo.Appearance.BackColor = Color.White;&lt;br /&gt;toolTipInfo.Appearance.BackColor2 = Color.Chartreuse;&lt;br /&gt;toolTipInfo.Appearance.BackGradientStyle = GradientStyle.Circular;&lt;br /&gt;toolTipInfo.Appearance.ForeColor = Color.Black;&lt;br /&gt;&lt;br /&gt;// Apply an appearance to the Title.&lt;br /&gt;toolTipInfo.ToolTipTitleAppearance.ForeColor = Color.Red;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 13px;"&gt;&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;6. Run the application&lt;/b&gt;&lt;br /&gt;Run the application and hover the mouse over the TextBox. The WinToolTip will display after a delay specified by the InitialDelay property of the WinToolTipManager (half a second by default).&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 13px;"&gt;&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 100%;"&gt;&lt;span style="font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 13px;"&gt;&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 100%;"&gt;&lt;span style="font-size: 13px;"&gt;&lt;img alt="WinToolTip" src="http://www.dotnetspider.com/attachments/Resources/35331-11216-1.bmp" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: darkblue; font-family: Arial,Helvetica,sans-serif; font-size: 13px;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-9063857404423951362?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/9063857404423951362/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2009/12/infragistics-wintooltipmanger.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/9063857404423951362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/9063857404423951362'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2009/12/infragistics-wintooltipmanger.html' title='Infragistics - WINTOOLTIPMANGER'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-7449918452280880171</id><published>2009-12-09T07:08:00.000-08:00</published><updated>2010-01-30T09:43:28.661-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Winner'/><category scheme='http://www.blogger.com/atom/ns#' term='DotNetSpider'/><title type='text'>Monthly Winner of Nov 2009 - DNS</title><content type='html'>&lt;h1&gt;Monthly Winner of November 2009 - DNS&lt;/h1&gt;It feels great to share with you all that I won Monthly award again in Dotnetspider for the month of November 2009.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Prize :&lt;/i&gt; &lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family: Arial; font-size: 13px; line-height: 20px;"&gt;&lt;span style="color: blue;"&gt; &lt;u&gt;&lt;b&gt;iBall Black Stereo Speakers-i2 - 460&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: Arial;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-size: -webkit-xxx-large; line-height: 20px; text-decoration: underline;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: Arial;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-size: -webkit-xxx-large; line-height: 20px; text-decoration: underline;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&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/7178235408131847449-7449918452280880171?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/7449918452280880171/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2009/12/monthly-winner-of-nov-2009-dns.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/7449918452280880171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/7449918452280880171'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2009/12/monthly-winner-of-nov-2009-dns.html' title='Monthly Winner of Nov 2009 - DNS'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-8195756710002139988</id><published>2009-11-13T04:20:00.000-08:00</published><updated>2010-01-30T09:47:42.773-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='XML'/><category scheme='http://www.blogger.com/atom/ns#' term='articles'/><title type='text'>Working with XML Files</title><content type='html'>&lt;h1&gt;Working with XML files &lt;/h1&gt;In this tutorial, we will use the XmlDocument class to create and load XML files. You will use the XmlNode and XmlAttribute classes to build nodes. You will search for nodes by using the GetElementByName and SelectNodes methods, the last one using XPath.&lt;br /&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="color: #000099;"&gt;Namespace Used&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;using System.Xml;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="-webkit-text-decorations-in-effect: underline; color: #0000ee;"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5403564489090522546" src="http://1.bp.blogspot.com/_UeWJDdIKSOo/Sv1RRgUn3bI/AAAAAAAAAMc/3l1znYFNC5w/s320/1.jpg" style="cursor: pointer; float: left; height: 281px; margin-bottom: 10px; margin-left: 0px; margin-right: 10px; margin-top: 0px; width: 320px;" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 125.25pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 125.25pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 125.25pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 125.25pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 125.25pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 125.25pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 125.25pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 125.25pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 125.25pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 125.25pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 125.25pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 125.25pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 125.25pt;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid black .5pt; mso-border-thememso-yfti-tbllook: 1184; mso-padding-alt: 0cm 5.4pt 0cm 5.4ptcolor:text1;"&gt;&lt;tbody&gt;&lt;tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"&gt;   &lt;td style="border: solid black 1.0pt; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-themepadding: 0cm 5.4pt 0cm 5.4ptcolor:text1; width: 462.1pt;" valign="top" width="616"&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="color: blue; font-size: 10pt;"&gt;protected&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; btncreatexml_Click(&lt;span style="color: blue;"&gt;object&lt;/span&gt; sender, &lt;span style="color: #2b91af;"&gt;EventArgs&lt;/span&gt;   e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;    {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: #2b91af;"&gt;XmlDocument&lt;/span&gt;   xmlDoc = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;XmlDocument&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: #2b91af;"&gt;XmlNode&lt;/span&gt;   xnDeclaration = xmlDoc.CreateXmlDeclaration(&lt;span style="color: #a31515;"&gt;"1.0"&lt;/span&gt;,   &lt;span style="color: #a31515;"&gt;"UTF-8"&lt;/span&gt;, &lt;span style="color: blue;"&gt;null&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xmlDoc.AppendChild(xnDeclaration);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: #2b91af;"&gt;XmlNode&lt;/span&gt;   xnMenus = xmlDoc.CreateElement(&lt;span style="color: #a31515;"&gt;"Menus"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xmlDoc.AppendChild(xnMenus);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: #2b91af;"&gt;XmlNode&lt;/span&gt;   xnMenuItem = xmlDoc.CreateElement(&lt;span style="color: #a31515;"&gt;"MenuItem"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: #2b91af;"&gt;XmlAttribute&lt;/span&gt;   xaTitle = xmlDoc.CreateAttribute(&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaTitle.Value = &lt;span style="color: #a31515;"&gt;"Home"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;          xnMenuItem.Attributes.Append(xaTitle);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: #2b91af;"&gt;XmlAttribute&lt;/span&gt;   xaLink = xmlDoc.CreateAttribute(&lt;span style="color: #a31515;"&gt;"Link"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaLink.Value = &lt;span style="color: #a31515;"&gt;"Home.htm"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnMenuItem.Attributes.Append(xaLink);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnMenus.AppendChild(xnMenuItem);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: green;"&gt;//Node&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnMenuItem = xmlDoc.CreateElement(&lt;span style="color: #a31515;"&gt;"MenuItem"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaTitle = xmlDoc.CreateAttribute(&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaTitle.Value = &lt;span style="color: #a31515;"&gt;"Members"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;          xnMenuItem.Attributes.Append(xaTitle);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaLink = xmlDoc.CreateAttribute(&lt;span style="color: #a31515;"&gt;"Link"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaLink.Value = &lt;span style="color: #a31515;"&gt;"Members.htm"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnMenuItem.Attributes.Append(xaLink);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnMenus.AppendChild(xnMenuItem);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: green;"&gt;//more   nodes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: #2b91af;"&gt;XmlNode&lt;/span&gt;   xnSubMenu = xmlDoc.CreateElement(&lt;span style="color: #a31515;"&gt;"MenuItem"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaTitle = xmlDoc.CreateAttribute(&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaTitle.Value = &lt;span style="color: #a31515;"&gt;"Add Member"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnSubMenu.Attributes.Append(xaTitle);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaLink = xmlDoc.CreateAttribute(&lt;span style="color: #a31515;"&gt;"Link"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaLink.Value = &lt;span style="color: #a31515;"&gt;"AddMember.htm"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnSubMenu.Attributes.Append(xaLink);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnMenuItem.AppendChild(xnSubMenu);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: green;"&gt;//more   nodes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnSubMenu = xmlDoc.CreateElement(&lt;span style="color: #a31515;"&gt;"MenuItem"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaTitle = xmlDoc.CreateAttribute(&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaTitle.Value = &lt;span style="color: #a31515;"&gt;"Delete Member"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnSubMenu.Attributes.Append(xaTitle);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaLink = xmlDoc.CreateAttribute(&lt;span style="color: #a31515;"&gt;"Link"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaLink.Value = &lt;span style="color: #a31515;"&gt;"deleteMember.htm"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnSubMenu.Attributes.Append(xaLink);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnMenuItem.AppendChild(xnSubMenu);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: green;"&gt;//&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnMenus.AppendChild(xnMenuItem);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: green;"&gt;//&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: green;"&gt;//Adding   another menu&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnMenuItem = xmlDoc.CreateElement(&lt;span style="color: #a31515;"&gt;"MenuItem"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaTitle = xmlDoc.CreateAttribute(&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaTitle.Value = &lt;span style="color: #a31515;"&gt;"Schedule"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnMenuItem.Attributes.Append(xaTitle);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaLink = xmlDoc.CreateAttribute(&lt;span style="color: #a31515;"&gt;"Link"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaLink.Value = &lt;span style="color: #a31515;"&gt;"Schedule.htm"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnMenuItem.Attributes.Append(xaLink);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnMenus.AppendChild(xnMenuItem);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: green;"&gt;//more   nodes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnSubMenu = xmlDoc.CreateElement(&lt;span style="color: #a31515;"&gt;"MenuItem"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaTitle = xmlDoc.CreateAttribute(&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaTitle.Value = &lt;span style="color: #a31515;"&gt;"Add Time"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnSubMenu.Attributes.Append(xaTitle);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaLink = xmlDoc.CreateAttribute(&lt;span style="color: #a31515;"&gt;"Link"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaLink.Value = &lt;span style="color: #a31515;"&gt;"AddTime.htm"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnSubMenu.Attributes.Append(xaLink);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnMenuItem.AppendChild(xnSubMenu);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: green;"&gt;//more   nodes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnSubMenu = xmlDoc.CreateElement(&lt;span style="color: #a31515;"&gt;"MenuItem"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaTitle = xmlDoc.CreateAttribute(&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaTitle.Value = &lt;span style="color: #a31515;"&gt;"Delete Time"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnSubMenu.Attributes.Append(xaTitle);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaLink = xmlDoc.CreateAttribute(&lt;span style="color: #a31515;"&gt;"Link"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xaLink.Value = &lt;span style="color: #a31515;"&gt;"deleteTime.htm"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnSubMenu.Attributes.Append(xaLink);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnMenuItem.AppendChild(xnSubMenu);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: green;"&gt;//&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        xnMenus.AppendChild(xnMenuItem);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: green;"&gt;//&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;          xmlDoc.Save(Request.PhysicalApplicationPath + &lt;span style="color: #a31515;"&gt;"\\XMLMenu.xml"&lt;/span&gt;);   &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 125.25pt;"&gt;&lt;span style="font-size: 10pt;"&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="MsoNormal" style="tab-stops: 125.25pt;"&gt;Next, you will add the code to generate a tree-like menu using the XML file that you created.&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 125.25pt;"&gt;Double-click on the XML Menu button.&lt;/div&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid black .5pt; mso-border-thememso-yfti-tbllook: 1184; mso-padding-alt: 0cm 5.4pt 0cm 5.4ptcolor:text1;"&gt;&lt;tbody&gt;&lt;tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"&gt;   &lt;td style="border: solid black 1.0pt; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-themepadding: 0cm 5.4pt 0cm 5.4ptcolor:text1; width: 462.1pt;" valign="top" width="616"&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="color: blue; font-size: 10pt;"&gt;protected&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; btnxmlmenu_Click(&lt;span style="color: blue;"&gt;object&lt;/span&gt; sender, &lt;span style="color: #2b91af;"&gt;EventArgs&lt;/span&gt;   e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;    {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: #2b91af;"&gt;XmlDocument&lt;/span&gt;   xmlDoc = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;XmlDocument&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;          xmlDoc.Load(Request.PhysicalApplicationPath + &lt;span style="color: #a31515;"&gt;"XMLMenu.xml"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: green;"&gt;//GetElementsByTagName   will return all parent and child nodes matching the tag name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: #2b91af;"&gt;XmlNodeList&lt;/span&gt;   xnl = xmlDoc.GetElementsByTagName(&lt;span style="color: #a31515;"&gt;"MenuItem"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        PlaceHolder1.Controls.Add(&lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;LiteralControl&lt;/span&gt;(&lt;span style="color: #a31515;"&gt;""));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: blue;"&gt;foreach&lt;/span&gt;   (&lt;span style="color: #2b91af;"&gt;XmlNode&lt;/span&gt; menuItem &lt;span style="color: blue;"&gt;in&lt;/span&gt;   xnl)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;            &lt;span style="color: blue;"&gt;if&lt;/span&gt;   (menuItem.ParentNode.Name == &lt;span style="color: #a31515;"&gt;"Menus"&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;            {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;                PlaceHolder1.Controls.Add(&lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;LiteralControl&lt;/span&gt;(&lt;span style="color: #a31515;"&gt;"&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;"));&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;            }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;            &lt;span style="color: blue;"&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;            {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;                PlaceHolder1.Controls.Add(&lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;LiteralControl&lt;/span&gt;(&lt;span style="color: #a31515;"&gt;"&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;"));&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;            }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;            PlaceHolder1.Controls.Add(&lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;LiteralControl&lt;/span&gt;(&lt;span style="color: #a31515;"&gt;"&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;table border="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td colspan="2"&gt;&lt;a href="http://www.blogger.com/%3C/span%3E%20%20%20+%20menuItem.Attributes[%3Cspan%20style="&gt;"Link"].Value   + &lt;span style="color: #a31515;"&gt;"&amp;gt;"&lt;/span&gt; + menuItem.Attributes[&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;].Value + &lt;span style="color: #a31515;"&gt;"&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="10px"&gt;&lt;/td&gt;&lt;td colspan="2"&gt;&lt;a href="http://www.blogger.com/%3C/span%3E%20+%20menuItem.Attributes[%3Cspan%20style="&gt;"Link"].Value + &lt;span style="color: #a31515;"&gt;"&amp;gt;"&lt;/span&gt; + menuItem.Attributes[&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;].Value + &lt;span style="color: #a31515;"&gt;"&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;"));&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 125.25pt;"&gt;&lt;span style="font-size: 10pt;"&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="MsoNormal" style="tab-stops: 125.25pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 125.25pt;"&gt;The last thing is how to search through nodes by using XPath. Using the SelectNodes method of the XmlDocument object, you will pass to the parameter of this method the path to the node through a textbox. &lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 125.25pt;"&gt;It will return all MenuItem nodes at the level: /Menus/MenuItem&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 125.25pt;"&gt;Click on the Search w/ XPath button.&lt;/div&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid black .5pt; mso-border-thememso-yfti-tbllook: 1184; mso-padding-alt: 0cm 5.4pt 0cm 5.4ptcolor:text1;"&gt;&lt;tbody&gt;&lt;tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"&gt;   &lt;td style="border: solid black 1.0pt; mso-border-alt: solid black .5pt; mso-border-themecolor: text1; mso-border-themepadding: 0cm 5.4pt 0cm 5.4ptcolor:text1; width: 462.1pt;" valign="top" width="616"&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="color: blue; font-size: 10pt;"&gt;protected&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; btnsearch_Click(&lt;span style="color: blue;"&gt;object&lt;/span&gt; sender, &lt;span style="color: #2b91af;"&gt;EventArgs&lt;/span&gt;   e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;    {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: #2b91af;"&gt;XmlDocument&lt;/span&gt;   xmlDoc = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;XmlDocument&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;          xmlDoc.Load(Request.PhysicalApplicationPath + &lt;span style="color: #a31515;"&gt;"XMLMenu.xml"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: #2b91af;"&gt;XmlNodeList&lt;/span&gt;   xnl = xmlDoc.SelectNodes(TextBox1.Text);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: blue;"&gt;foreach&lt;/span&gt;   (&lt;span style="color: #2b91af;"&gt;XmlNode&lt;/span&gt; n &lt;span style="color: blue;"&gt;in&lt;/span&gt;   xnl)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;            Response.Write(n.Attributes[&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;].Value + &lt;span style="color: #a31515;"&gt;"&lt;br /&gt;"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; tab-stops: 125.25pt;"&gt;&lt;span style="font-size: 10pt;"&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="MsoNormal" style="tab-stops: 125.25pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 125.25pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 125.25pt;"&gt;&lt;span class="Apple-style-span" style="-webkit-text-decorations-in-effect: underline; color: #0000ee;"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5403565076440313746" src="http://4.bp.blogspot.com/_UeWJDdIKSOo/Sv1RzsXub5I/AAAAAAAAAMk/6e5fJrDj8dE/s320/2.jpg" style="cursor: pointer; float: left; height: 67px; margin-bottom: 10px; margin-left: 0px; margin-right: 10px; margin-top: 0px; width: 320px;" /&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/7178235408131847449-8195756710002139988?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/8195756710002139988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2009/11/working-with-xml-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/8195756710002139988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/8195756710002139988'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2009/11/working-with-xml-files.html' title='Working with XML Files'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_UeWJDdIKSOo/Sv1RRgUn3bI/AAAAAAAAAMc/3l1znYFNC5w/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-1623072991011931098</id><published>2009-10-24T05:55:00.000-07:00</published><updated>2010-01-30T09:45:41.756-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='delete'/><category scheme='http://www.blogger.com/atom/ns#' term='VB'/><category scheme='http://www.blogger.com/atom/ns#' term='delete #REF'/><category scheme='http://www.blogger.com/atom/ns#' term='excel'/><category scheme='http://www.blogger.com/atom/ns#' term='named ranges'/><title type='text'>Delete #REF named ranges</title><content type='html'>&lt;h1&gt;Macro to Delete #REF range names&lt;/h1&gt;&lt;div&gt;This macro will enable you to delete named ranges with #REF error in it.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;Sub DeleteRefErrRanges()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #009900;"&gt;     'Macro Purpose: To delete any named range with a "#REF!" error in it&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #000099;"&gt;    Dim nm As Name&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #000099;"&gt;    For Each nm In ActiveWorkbook.Names&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #000099;"&gt;        If InStr(1, nm.RefersTo, "#REF!") &amp;gt; 0 Then nm.Delete&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #000099;"&gt;    Next nm&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;End Sub&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/7178235408131847449-1623072991011931098?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/1623072991011931098/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2009/10/delete-ref-named-ranges.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/1623072991011931098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/1623072991011931098'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2009/10/delete-ref-named-ranges.html' title='Delete #REF named ranges'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-180817247455677510</id><published>2009-10-21T03:12:00.000-07:00</published><updated>2010-01-30T09:53:40.977-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='XML'/><category scheme='http://www.blogger.com/atom/ns#' term='Datagrid'/><title type='text'>Bind XML to DataGrid</title><content type='html'>&lt;h1&gt;Binding XML to Datagrid :&lt;/h1&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;In this code we’ll create XML and bind it to Datagrid control.&lt;/div&gt;&lt;ol start="1" style="margin-top: 0in;" type="1"&gt;&lt;li class="MsoNormal"&gt;Add      XML file to project (By right click on project &lt;span style="font-family: Wingdings;"&gt;à&lt;/span&gt;      Add &lt;span style="font-family: Wingdings;"&gt;à&lt;/span&gt;      Add New Item &lt;span style="font-family: Wingdings;"&gt;à&lt;/span&gt; XML file)&lt;/li&gt;&lt;/ol&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in;"&gt;2.  Now create a XML file (Here I have created a file called &lt;span style="color: maroon; font-size: 10pt;"&gt;Students.xml&lt;/span&gt;&lt;/div&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: medium none;"&gt;&lt;tbody&gt;&lt;tr&gt;   &lt;td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 6.15in;" valign="top" width="590"&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: maroon;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="color: maroon;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: maroon;"&gt;&amp;lt;students&amp;gt;&lt;br /&gt;&amp;lt;student&amp;gt;&lt;br /&gt;&amp;lt;id&amp;gt;S0001&amp;lt;/id&amp;gt;&lt;br /&gt;&amp;lt;name&amp;gt;Deepika&amp;lt;/name&amp;gt;&lt;br /&gt;&amp;lt;city&amp;gt;Ahmedabad&amp;lt;/city&amp;gt;&lt;br /&gt;&amp;lt;/student&amp;gt;&lt;br /&gt;&amp;lt;student&amp;gt;&lt;br /&gt;&amp;lt;id&amp;gt;S0002&amp;lt;/id&amp;gt;&lt;br /&gt;&amp;lt;name&amp;gt;Swati&amp;lt;/name&amp;gt;&lt;br /&gt;&amp;lt;city&amp;gt;Maninagar&amp;lt;/city&amp;gt;&lt;br /&gt;&amp;lt;/student&amp;gt;&lt;br /&gt;&amp;lt;student&amp;gt;&lt;br /&gt;&amp;lt;id&amp;gt;S0003&amp;lt;/id&amp;gt;&lt;br /&gt;&amp;lt;name&amp;gt;Dhwani&amp;lt;/name&amp;gt;&lt;br /&gt;&amp;lt;city&amp;gt;Gandhinagar&amp;lt;/city&amp;gt;&lt;br /&gt;&amp;lt;/student&amp;gt;&lt;br /&gt;&amp;lt;student&amp;gt;&lt;br /&gt;&amp;lt;id&amp;gt;S0004&amp;lt;/id&amp;gt;&lt;br /&gt;&amp;lt;name&amp;gt;Shweta&amp;lt;/name&amp;gt;&lt;br /&gt;&amp;lt;city&amp;gt;Rajkot&amp;lt;/city&amp;gt;&lt;br /&gt;&amp;lt;/student&amp;gt;&lt;br /&gt;&amp;lt;/students&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: maroon;"&gt;&lt;/span&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in;"&gt;3.  Notice that when you have an XML file opened, the XML menu appears.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 33pt;"&gt;Click on the XML menu. The Create Schema will provide a graphic interface to     draw the schema for the XML file. The Validate XML Schema helps you with determining if the XML content validates against a certain XML schema.&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in;"&gt;4.  VS.NET tries to come up with the schema for the XML file based on its content.  You can open up the schema file and graphically edit or change its definition by code.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.25in;"&gt;Double-click on the Students.xsd file.&lt;/div&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;var AdBrite_Title_Color = '0000FF';var AdBrite_Text_Color = '000000';var AdBrite_Background_Color = 'FFFFFF';var AdBrite_Border_Color = 'CCCCCC';var AdBrite_URL_Color = '008000';try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}&lt;/script&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=1461448&amp;zs=3330305f323530&amp;ifr='+AdBrite_Iframe+'&amp;ref='+AdBrite_Referrer+'" type="text/javascript"&gt;');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: darkblue; font-family: Arial, Helvetica, sans-serif; font-size: 13px;"&gt;&lt;a href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=1461448&amp;amp;afsid=1" style="font-family: Arial; font-size: 13px; font-weight: bold;" target="_top"&gt;Your Ad Here&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;ol start="5" style="margin-top: 0in;" type="1"&gt;&lt;li class="MsoNormal"&gt;By      default, the Create XML Schema option defines all the fields as String.      You can change it in this GUI or directly in the code representing this      schema.&lt;/li&gt;&lt;li class="MsoNormal"&gt;Now      add a button called “Load XML” to a webform which will populate data to      gridview from xml file.&lt;/li&gt;&lt;/ol&gt;&lt;div class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/div&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: medium none;"&gt;&lt;tbody&gt;&lt;tr&gt;   &lt;td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 6.15in;" valign="top" width="590"&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: blue; font-size: 10pt;"&gt;protected&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; btnload_Click(&lt;span style="color: blue;"&gt;object&lt;/span&gt; sender, &lt;span style="color: teal;"&gt;EventArgs&lt;/span&gt;   e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-size: 10pt;"&gt;    {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: teal;"&gt;DataSet&lt;/span&gt;   ds = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: teal;"&gt;DataSet&lt;/span&gt;(&lt;span style="color: maroon;"&gt;"Students"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-size: 10pt;"&gt;        ds.ReadXmlSchema(Server.MapPath(&lt;span style="color: maroon;"&gt;"."&lt;/span&gt;) + &lt;span style="color: maroon;"&gt;"\\Students.xsd"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-size: 10pt;"&gt;        ds.ReadXml(Server.MapPath(&lt;span style="color: maroon;"&gt;"."&lt;/span&gt;) + &lt;span style="color: maroon;"&gt;"\\Students.xml"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-size: 10pt;"&gt;        GridView1.DataSource = ds;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-size: 10pt;"&gt;        GridView1.DataBind();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-size: 10pt;"&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-180817247455677510?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/180817247455677510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2009/10/bind-xml-to-datagrid.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/180817247455677510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/180817247455677510'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2009/10/bind-xml-to-datagrid.html' title='Bind XML to DataGrid'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-8258360599098549804</id><published>2009-10-07T00:53:00.000-07:00</published><updated>2010-01-30T09:54:25.603-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Winner'/><category scheme='http://www.blogger.com/atom/ns#' term='DotnetSpark'/><category scheme='http://www.blogger.com/atom/ns#' term='DotnetFunda'/><title type='text'>Monthly Winner - September 2009</title><content type='html'>&lt;h1&gt;Monthly Winner - September 2009&lt;/h1&gt;&lt;h3&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, serif; font-size: 16px; font-weight: normal; white-space: normal;"&gt;Just feeling great to share this. I just joined a month back on &lt;a href="http://www.blogger.com/www.Dotnetspark.com"&gt;www.Dotnetspark.com&lt;/a&gt; and been chosen as Monthly winner of September. :-)&lt;/span&gt;&lt;/h3&gt;&lt;h3&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, serif; font-size: 16px; font-weight: normal; white-space: normal;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #006600;"&gt;Prize :&lt;/span&gt;&lt;/i&gt; 2GB Pen Drive&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Same with DNF. I just joined a month back on &lt;a href="http://www.blogger.com/www.Dotnetfunda.com"&gt;www.Dotnetfunda.com&lt;/a&gt; and been chosen as Monthly winner of September. :-)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #006600;"&gt;Prize :&lt;/span&gt;&lt;/i&gt; Any gift of my choice (till Rs. 700) from ebay.in&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-8258360599098549804?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/8258360599098549804/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2009/10/monthly-winner-september-2009.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/8258360599098549804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/8258360599098549804'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2009/10/monthly-winner-september-2009.html' title='Monthly Winner - September 2009'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-2626350742968088497</id><published>2009-10-02T04:52:00.001-07:00</published><updated>2010-01-30T09:58:22.918-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Application'/><category scheme='http://www.blogger.com/atom/ns#' term='autocomplete combobox'/><category scheme='http://www.blogger.com/atom/ns#' term='autocomplete'/><title type='text'>Autcomplete combobox in Windows Application</title><content type='html'>&lt;h1&gt;Introduction : Autcomplete combobox in Windows Application&lt;/h1&gt;This code demonstrates the use of AutoComplete combobox in Windows Application&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: #3366ff;"&gt;Pre-requisites :&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #3366ff;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;Combobox properties to be set for achieving this :&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;b&gt;1) AutoComplete Mode - &lt;/b&gt;You can select any from it, either Suggest/Append/SuggestAppend (In my case I have taken Suggest here)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;b&gt;2) AutoCompleteSource - &lt;/b&gt;Set it as CustomSource&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;b&gt;3)&lt;/b&gt; &lt;b&gt;AutoCompleteCustomSource &lt;/b&gt;&lt;b&gt;-&lt;/b&gt; Its a collection&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://3.bp.blogspot.com/_UeWJDdIKSOo/SsXqap11H7I/AAAAAAAAAKE/Pk08U_BasYk/s1600-h/1.bmp" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5387970272847798194" src="http://3.bp.blogspot.com/_UeWJDdIKSOo/SsXqap11H7I/AAAAAAAAAKE/Pk08U_BasYk/s320/1.bmp" style="cursor: pointer; float: left; height: 173px; margin: 0pt 10px 10px 0pt; width: 301px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;As shown in the Figure take a form with a combobox named cmbcity. Here I am fetching city from the database.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: blue;"&gt;&lt;span style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;public&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; &lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;partial&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; &lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;class &lt;/span&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;&lt;span style="color: teal;"&gt;&lt;span style="color: teal;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Form9&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; : &lt;/span&gt;&lt;span style="color: teal;"&gt;&lt;span style="color: teal;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Form&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="color: blue;"&gt;&lt;span style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;public&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; &lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; strConnection = &lt;/span&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="color: teal;"&gt;&lt;span style="color: teal;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;ConfigurationManager&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;.ConnectionStrings[&lt;/span&gt;&lt;span style="color: maroon;"&gt;&lt;span style="color: maroon;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;"test1"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;].ConnectionString;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: teal;"&gt;&lt;span style="color: teal;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;AutoCompleteStringCollection&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; namesCollection = &lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; &lt;/span&gt;&lt;span style="color: teal;"&gt;&lt;span style="color: teal;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;AutoCompleteStringCollection&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;&lt;span style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;public&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; Form9()&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;InitializeComponent();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;&lt;span style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;private&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; &lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;void&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; Form9_Load(&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;object&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; sender, &lt;/span&gt;&lt;span style="color: teal;"&gt;&lt;span style="color: teal;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;EventArgs&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; e)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: teal;"&gt;&lt;span style="color: teal;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;OdbcDataReader&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; dReader;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: teal;"&gt;&lt;span style="color: teal;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;OdbcConnection&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; conn = &lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: teal;"&gt;&lt;span style="color: teal;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;OdbcConnection&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;conn.ConnectionString = strConnection;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: teal;"&gt;&lt;span style="color: teal;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;OdbcCommand&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; cmd = &lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; &lt;/span&gt;&lt;span style="color: teal;"&gt;&lt;span style="color: teal;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;OdbcCommand&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;();&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;cmd.Connection = conn;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;cmd.CommandType = &lt;/span&gt;&lt;span style="color: teal;"&gt;&lt;span style="color: teal;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;CommandType&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;.Text;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;cmd.CommandText = &lt;/span&gt;&lt;span style="color: maroon;"&gt;&lt;span style="color: maroon;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;"Select distinct city sample order by city"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;conn.Open();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;dReader = cmd.ExecuteReader();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;&lt;span style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; (dReader.HasRows == &lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;true&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;&lt;span style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;while&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; (dReader.Read())&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;namesCollection.Add(dReader[&lt;/span&gt;&lt;span style="color: maroon;"&gt;&lt;span style="color: maroon;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;"city"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;].ToString());&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;&lt;span style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: teal;"&gt;&lt;span style="color: teal;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;MessageBox&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;.Show(&lt;/span&gt;&lt;span style="color: maroon;"&gt;&lt;span style="color: maroon;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;"Data not found"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;dReader.Close();&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;cmbcity.AutoCompleteMode = &lt;/span&gt;&lt;span style="color: teal;"&gt;&lt;span style="color: teal;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;AutoCompleteMode&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;.Suggest;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;cmbcity.AutoCompleteSource = &lt;/span&gt;&lt;span style="color: teal;"&gt;&lt;span style="color: teal;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;AutoCompleteSource&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;.CustomSource;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;cmbcity.AutoCompleteCustomSource = namesCollection;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-2626350742968088497?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/2626350742968088497/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2009/10/autcomplete-combobox-in-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/2626350742968088497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/2626350742968088497'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2009/10/autcomplete-combobox-in-windows.html' title='Autcomplete combobox in Windows Application'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_UeWJDdIKSOo/SsXqap11H7I/AAAAAAAAAKE/Pk08U_BasYk/s72-c/1.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-1958743891434267339</id><published>2009-09-29T22:08:00.000-07:00</published><updated>2010-01-30T10:00:56.009-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='articles'/><title type='text'>Article selected - Happy today</title><content type='html'>&lt;h1&gt;Article selected in Microsoft's Official site -&amp;nbsp;&lt;/h1&gt;&lt;h1&gt;&lt;span class="Apple-style-span" style="font-size: medium; font-weight: normal;"&gt;My Article at &lt;span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; color: navy; font-family: Arial; font-size: small;"&gt;&lt;a href="http://www.dotnetfunda.com/articles/article616-multiple-document-interface-mdi-form.aspx" style="color: #0089aa;" target="_blank"&gt;&lt;span style="font-family: 'Times New Roman'; font-size: 100%;"&gt;http://www.dotnetfunda.com/&lt;wbr&gt;&lt;/wbr&gt;articles/article616-multiple-&lt;wbr&gt;&lt;/wbr&gt;document-interface-mdi-form.&lt;wbr&gt;&lt;/wbr&gt;aspx&lt;/span&gt;&lt;/a&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; color: navy; font-family: Arial; font-size: small;"&gt;has &lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: arial;"&gt;been selected as "Article of the Day" on &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; color: navy; font-family: Arial; font-size: small;"&gt;&lt;span style="font-size: 100%;"&gt;Microsoft's official&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; color: navy; font-family: Arial; font-size: small;"&gt;&lt;span style="font-size: 100%;"&gt;&lt;span style="font-family: arial;"&gt;website&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; color: navy; font-family: Arial; font-size: small;"&gt;&lt;a href="http://windowsclient.net/" style="color: #0089aa;" target="_blank"&gt;&lt;span style="font-family: 'Times New Roman'; font-size: 100%;"&gt;http://windowsclient.net/&amp;nbsp;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span class="Apple-style-span" style="border-collapse: collapse; color: navy; font-family: Arial; font-size: small;"&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7178235408131847449-1958743891434267339?l=angeldeeps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://angeldeeps.blogspot.com/feeds/1958743891434267339/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://angeldeeps.blogspot.com/2009/09/article-selected-happy-today.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/1958743891434267339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7178235408131847449/posts/default/1958743891434267339'/><link rel='alternate' type='text/html' href='http://angeldeeps.blogspot.com/2009/09/article-selected-happy-today.html' title='Article selected - Happy today'/><author><name>Deepika</name><uri>http://www.blogger.com/profile/06623265498133848047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_UeWJDdIKSOo/SmjPkv5UXWI/AAAAAAAAADU/DQOz7emICpU/S220/ATgAAACoAo7g2c9ahcGXtTP8iaulSh6HOlsRgMBGM79lq9gE8cBRJTvETloDo9GowHvB0nLxd1ZMqoTc-viGTjGijnVNAJtU9VCue84BCU8sYk6GUs_c9ZYNRumzFA.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7178235408131847449.post-6998488325949636029</id><published>2009-09-26T00:40:00.000-07:00</published><updated>2010-01-30T10:01:36.469-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Application'/><category scheme='http://www.blogger.com/atom/ns#' term='infragistics'/><category scheme='http://www.blogger.com/atom/ns#' term='nested grid'/><category scheme='http://www.blogger.com/atom/ns#' term='ultragrid'/><title type='text'>Infragistics - Nested Tables in UltraGrid</title><content type='html'>&lt;h1&gt;Infragistics - Nested Tables in UltraGrid :&lt;/h1&gt;&lt;div class="MsoNormal"&gt;Note : You can download the trial version of infragistics from &lt;a href="http://infragistics.com/"&gt;http://infragistics.com&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;In this example, UltraGrid will show parent rows containing Company records and for each company record there will be corresponding Employee records.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;First of all you need to create Employee and Company class files&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;Employee.cs&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 480;"&gt;&lt;tbody&gt;&lt;tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"&gt;   &lt;td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.15in;" valign="top" width="590"&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="color: blue; font-size: 10pt;"&gt;using&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt; System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="color: blue; font-size: 10pt;"&gt;using&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt; System.Collections.Generic;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="color: blue; font-size: 10pt;"&gt;using&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt; System.Text;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;o:p&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, serif; font-size: medium;"&gt;&lt;span style="color: blue; font-size: 10pt;"&gt;namespace&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt; NestedTableUltraGrid&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;    &lt;span style="color: blue;"&gt;class&lt;/span&gt; &lt;span style="color: teal;"&gt;Employee&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;    {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: blue;"&gt;string&lt;/span&gt;   strFirstName;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: blue;"&gt;string&lt;/span&gt;   strLastName; &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: blue;"&gt;public&lt;/span&gt;   &lt;span style="color: blue;"&gt;string&lt;/span&gt; StrFirstName&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        {&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;            &lt;span style="color: blue;"&gt;get&lt;/span&gt;   { &lt;span style="color: blue;"&gt;return&lt;/span&gt; strFirstName; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;            &lt;span style="color: blue;"&gt;set&lt;/span&gt;   { strFirstName = &lt;span style="color: blue;"&gt;value&lt;/span&gt;; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        }        &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: blue;"&gt;public&lt;/span&gt;   &lt;span style="color: blue;"&gt;string&lt;/span&gt; StrLastName&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;            &lt;span style="color: blue;"&gt;get&lt;/span&gt;   { &lt;span style="color: blue;"&gt;return&lt;/span&gt; strLastName; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;            &lt;span style="color: blue;"&gt;set&lt;/span&gt;   { strLastName = &lt;span style="color: blue;"&gt;value&lt;/span&gt;; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        } &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: blue;"&gt;public&lt;/span&gt;   Employee(&lt;span style="color: blue;"&gt;string&lt;/span&gt; Fname, &lt;span style="color: blue;"&gt;string&lt;/span&gt; Lname)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;            strFirstName = Fname;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;            strLastName = Lname;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;    }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;o:p&gt; &lt;span class="Apple-style-span" style="color: #990000;"&gt;Company.cs&lt;/span&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 480;"&gt;&lt;tbody&gt;&lt;tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"&gt;   &lt;td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.15in;" valign="top" width="590"&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="color: blue; font-size: 10pt;"&gt;using&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt; System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="color: blue; font-size: 10pt;"&gt;using&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt; System.Collections.Generic;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="color: blue; font-size: 10pt;"&gt;using&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt; System.Text; &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="color: blue; font-size: 10pt;"&gt;namespace&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt; NestedTableUltraGrid&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;    &lt;span style="color: blue;"&gt;class&lt;/span&gt; &lt;span style="color: teal;"&gt;Company&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;    {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: blue;"&gt;string&lt;/span&gt;   strCompanyName;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: teal;"&gt;List&lt;/span&gt;&amp;lt;&lt;span style="color: teal;"&gt;Employee&lt;/span&gt;&amp;gt; employees = &lt;span style="color: blue;"&gt;new&lt;/span&gt;   &lt;span style="color: teal;"&gt;List&lt;/span&gt;&amp;lt;&lt;span style="color: teal;"&gt;Employee&lt;/span&gt;&amp;gt;();              &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: blue;"&gt;public&lt;/span&gt;   &lt;span style="color: blue;"&gt;string&lt;/span&gt; StrCompanyName&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;            &lt;span style="color: blue;"&gt;get&lt;/span&gt;   { &lt;span style="color: blue;"&gt;return&lt;/span&gt; strCompanyName; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;            &lt;span style="color: blue;"&gt;set&lt;/span&gt;   { strCompanyName = &lt;span style="color: blue;"&gt;value&lt;/span&gt;; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: blue;"&gt;public&lt;/span&gt;   &lt;span style="color: teal;"&gt;List&lt;/span&gt;&amp;lt;&lt;span style="color: teal;"&gt;Employee&lt;/span&gt;&amp;gt;   Employees&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;            &lt;span style="color: blue;"&gt;get&lt;/span&gt;   { &lt;span style="color: blue;"&gt;return&lt;/span&gt; employees; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;            &lt;span style="color: blue;"&gt;set&lt;/span&gt;   { employees = &lt;span style="color: blue;"&gt;value&lt;/span&gt;; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        &lt;span style="color: blue;"&gt;public&lt;/span&gt;   Company(&lt;span style="color: blue;"&gt;string&lt;/span&gt; Cname)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;            strCompanyName = Cname;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;        }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;    }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;"&gt;&lt;span style="font-size: 10pt;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;Next you’ll need to add UltraDataSource component in the form&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;Here UltraDataSource Designer is used in order to define DataBounds (tables), their relationship and their DataColumns (fields).&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="Apple-style-span" style="-webkit-text-decorations-in-effect: underline; color: #0000ee;"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5385679190829438178" src="http://2.bp.blogspot.com/_UeWJDdIKSOo/Sr3GsIOaFOI/AAAAAAAAAIs/bSJ1v9vuqV0/s320/1.bmp" style="cursor: pointer; float: left; height: 205px; margin-bottom: 10px; margin-left: 0px; margin-right: 10px; margin-top: 0px; width: 320px;" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b style="mso-bidi-font-weight: normal;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 191.25pt;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 191.25pt;"&gt;Now You’ll define a DataBand called Company with a single DataColumn called CompanyName.&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 191.25pt;"&gt;&lt;a href="http://4.bp.blogspot.com/_UeWJDdIKSOo/Sr3G_kk-5sI/AAAAAAAAAI0/7YQvXBS_iA4/s1600-h/2.bmp" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5385679524857833154" src="http://4.bp.blogspot.com/_UeWJDdIKSOo/Sr3G_kk-5sI/AAAAAAAAAI0/7YQvXBS_iA4/s320/2.bmp" style="cursor: pointer; float: left; height: 255px; margin-bottom: 10px; margin-left: 0px; margin-right: 10px; margin-top: 0px; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_UeWJDdIKSOo/Sr3GsIOaFOI/AAAAAAAAAIs/bSJ1v9vuqV0/s1600-h/1.bmp" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 191.25pt;"&gt;&lt;a href="http://2.bp.blogspot.com/_UeWJDdIKSOo/Sr3GsIOaFOI/AAAAAAAAAIs/bSJ1v9vuqV0/s1600-h/1.bmp" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 191.25pt;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 191.25pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 191.25pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 191.25pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 191.25pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="tab-stops: 191.25pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"
