<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>WebParts</title>
        <link>http://geekswithblogs.net/dotNETvinz/category/11370.aspx</link>
        <description>WebParts</description>
        <language>en-US</language>
        <copyright>Vincent Maverick Durano</copyright>
        <managingEditor>vmsdurano@gmail.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <item>
            <title>Hide WebPart Header and Border on BrowseDisplayMode</title>
            <link>http://geekswithblogs.net/dotNETvinz/archive/2009/08/11/hide-webpart-header-and-border-on-browsedisplaymode.aspx</link>
            <description>&lt;p&gt;&lt;/p&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;&lt;meta content="Word.Document" name="ProgId" /&gt;&lt;meta content="Microsoft Word 11" name="Generator" /&gt;&lt;meta content="Microsoft Word 11" name="Originator" /&gt;&lt;link href="file:///C:\DOCUME~1\vd185022\LOCALS~1\Temp\msohtml1\01\clip_filelist.xml" rel="File-List" /&gt;&lt;style type="text/css"&gt;&lt;!--
 /* Font Definitions */
 @font-face
	{font-family:tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;
	mso-font-charset:0;
	mso-generic-font-family:swiss;
	mso-font-pitch:variable;
	mso-font-signature:1627421319 -2147483648 8 0 66047 0;}
 /* Style Definitions */
 p.msonormal, li.msonormal, div.msonormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
@page section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.section1
	{page:section1;}
--&gt;&lt;/style&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: tahoma"&gt;In order to hide those, we can set the &lt;a href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.webpartzonebase.borderstyle.aspx"&gt;BorderStyle&lt;/a&gt; and the &lt;a href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.partchrometype.aspx"&gt;PartChromeType&lt;/a&gt; attribute of the WebZone to &lt;span style="font-weight: bold"&gt;none&lt;/span&gt; after we set the display mode of WebPartManager to browse just like below:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: tahoma"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;table class="MsoTableGrid" style="background: rgb(217,217,217); border-collapse: collapse; moz-background-inline-policy: continuous" cellspacing="0" cellpadding="0" border="0"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 6.15in; padding-top: 0in" valign="top" width="590"&gt;         &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;    &lt;/span&gt;protected&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt; &lt;span style="color: blue"&gt;void&lt;/span&gt; Page_Load(&lt;span style="color: blue"&gt;object&lt;/span&gt; sender, &lt;span style="color: rgb(43,145,175)"&gt;EventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;&lt;span style="color: blue"&gt;if&lt;/span&gt; (!Page.IsPostBack)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt;    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;WebPartManager1.DisplayMode = &lt;span style="color: rgb(43,145,175)"&gt;WebPartManager&lt;/span&gt;.BrowseDisplayMode;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: blue"&gt;foreach&lt;/span&gt; (&lt;span style="color: rgb(43,145,175)"&gt;WebPartZone&lt;/span&gt; wz &lt;span style="color: blue"&gt;in&lt;/span&gt; WebPartManager1.Zones)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;                &lt;/span&gt;wz.BorderStyle = &lt;span style="color: rgb(43,145,175)"&gt;BorderStyle&lt;/span&gt;.None;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;                &lt;/span&gt;wz.PartChromeType = &lt;span style="color: rgb(43,145,175)"&gt;PartChromeType&lt;/span&gt;.None;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;    &lt;/span&gt;}&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: tahoma"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: tahoma"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: tahoma"&gt;That’s simple!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:6327df1a-b7c8-490b-ae9b-da95562a53f6" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/ASP.NET" rel="tag"&gt;ASP.NET&lt;/a&gt;,&lt;a href="http://technorati.com/tags/WebParts" rel="tag"&gt;WebParts&lt;/a&gt;,&lt;a href="http://technorati.com/tags/TipsTricks" rel="tag"&gt;TipsTricks&lt;/a&gt;&lt;/div&gt; &lt;img src="http://geekswithblogs.net/dotNETvinz/aggbug/134047.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Vincent Maverick Durano</dc:creator>
            <guid>http://geekswithblogs.net/dotNETvinz/archive/2009/08/11/hide-webpart-header-and-border-on-browsedisplaymode.aspx</guid>
            <pubDate>Tue, 11 Aug 2009 12:31:15 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/dotNETvinz/comments/134047.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/dotNETvinz/archive/2009/08/11/hide-webpart-header-and-border-on-browsedisplaymode.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/dotNETvinz/comments/commentRss/134047.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/dotNETvinz/services/trackbacks/134047.aspx</trackback:ping>
        </item>
        <item>
            <title>ASP.NET WebPart FAQ</title>
            <link>http://geekswithblogs.net/dotNETvinz/archive/2009/07/09/asp.net-webpart--faq.aspx</link>
            <description>&lt;p&gt;&lt;/p&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;&lt;meta content="Word.Document" name="ProgId" /&gt;&lt;meta content="Microsoft Word 11" name="Generator" /&gt;&lt;meta content="Microsoft Word 11" name="Originator" /&gt;&lt;link href="file:///C:\DOCUME~1\vd185022\LOCALS~1\Temp\msohtml1\06\clip_filelist.xml" rel="File-List" /&gt;&lt;font size="2"&gt;&lt;o:smarttagtype name="City" namespaceuri="urn:schemas-microsoft-com:office:smarttags"&gt;&lt;/o:smarttagtype&gt;&lt;o:smarttagtype name="place" namespaceuri="urn:schemas-microsoft-com:office:smarttags"&gt;&lt;/o:smarttagtype&gt;&lt;/font&gt;&lt;object id="ieooui" classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D"&gt;&lt;/object&gt;&lt;style&gt;&lt;![CDATA[

st1\:*{behavior:url(#ieooui) }]]&gt;&lt;/style&gt;&lt;style type="text/css"&gt;&lt;!--
 /* Font Definitions */
 @font-face
	{font-family:tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;
	mso-font-charset:0;
	mso-generic-font-family:swiss;
	mso-font-pitch:variable;
	mso-font-signature:1627421319 -2147483648 8 0 66047 0;}
@font-face
	{font-family:calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;
	mso-font-charset:0;
	mso-generic-font-family:swiss;
	mso-font-pitch:variable;
	mso-font-signature:-1610611985 1073750139 0 0 159 0;}
 /* Style Definitions */
 p.msonormal, li.msonormal, div.msonormal
	{mso-style-parent:"";
	margin-top:0in;
	margin-right:0in;
	margin-bottom:10.0pt;
	margin-left:0in;
	line-height:115%;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:calibri;
	mso-fareast-font-family:calibri;
	mso-bidi-font-family:"Times New Roman";}
a:link, span.msohyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.msohyperlinkfollowed
	{color:#606420;
	text-decoration:underline;
	text-underline:single;}
p
	{mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
pre
	{margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
	font-size:10.0pt;
	font-family:"Courier New";
	mso-fareast-font-family:"Times New Roman";}
span.kwd
	{mso-style-name:kwd;}
span.st
	{mso-style-name:st;}
@page section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.section1
	{page:section1;}
--&gt;&lt;/style&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;After a year of answering questions at the &lt;a href="http://forums.asp.net/145.aspx"&gt;WebParts and Personalization&lt;/a&gt; forum section, I consider the following items below as “frequently asked questions”.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;I decided to write this so that I can point them to this post whenever I find a question that can be found here. &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;The following are the list of items that I consider as FAQ:&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;1. How to Get Started with ASP.NET WebParts?&lt;/span&gt;&lt;/strong&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/hhy9ewf1.aspx"&gt;ASP.NET Web Parts Overview&lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/e0s9t4ck.aspx"&gt;ASP.NET WebPart Controls&lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;&lt;a href="../../../../dotNETvinz/archive/2009/02/17/implementing-asp.net-webparts-with-different-authentication-modes.aspx"&gt;Implementing ASP.NET WebParts with Different Authentication modes&lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;Video: &lt;a href="http://www.asp.net/learn/videos/video-43.aspx"&gt;Utilizing WebParts and Personalization&lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;2. How to use WebParts inside UpdatePanel in ASP.NET 2.0?&lt;/span&gt;&lt;/strong&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;a href="../../../../dotNETvinz/archive/2008/02/04/creating-ajaxenable-webpart-application.aspx"&gt;Creating an AJAX Enabled Webparts in Aspnet 2.0&lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;Note: the workaround mentioned in the link above will only be applicable on IE browsers.&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;3. WebParts Drag and Drop not Working on FireFox using ASP.NET 2.0&lt;/span&gt;&lt;/strong&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; font-family: tahoma"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;This is a very known issues on ASPNET WebParts.. Basically WebParts doesn't support the Drag and Drop feature in FF browser.. The drag and drop feature will &lt;strong&gt;only &lt;/strong&gt;work if you are using Visual studio 2008 /VWD 2008 with latest version of the WebPart Futures (AJAX Control Toolkit 3.5)..&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; font-family: tahoma"&gt;You may refer below for more information:&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; font-family: tahoma"&gt;&lt;a href="../../../../dotNETvinz/archive/2008/09/12/ajax-enabled-webparts-and-firefox-drag-and-drop.aspx"&gt;Ajax Enabled WebParts and Fire-Fox Drag-and-Drop &lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; font-family: tahoma"&gt;If you are working with ASPNET 2.0 then I have written a sample snippet at the following link below on how we are going to move the WebParts in fire-fox without the Drag and Drop Feature by using Custom Verbs.&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; font-family: tahoma"&gt;&lt;a href="../../../../dotNETvinz/archive/2009/04/14/enhanced-custom-webpartzone-with-custom-move-option-verbs-in-asp.net.aspx"&gt;Creating a Custom WebPartZones with Custom WebPartVerbs &lt;u1:p&gt;&lt;/u1:p&gt;&lt;/a&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;You can also use Atlas to support the drag and drop feature in firefox in ASP.NET 2.0.&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;&lt;a href="http://weblogs.asp.net/scottgu/archive/2006/01/20/436034.aspx"&gt;ASP.NET 2.0 Web Part Drag/Drop Browser Support in FireFox w/ Atlas&lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;&lt;a href="http://channel9.msdn.com/posts/keydet/AJAX-Enabling-ASPNET-20-Web-Parts-with-quotAtlasquot/"&gt;AJAX Enabling ASP.NET 2.0 Web Parts with "Atlas"&lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;4. How to use WebParts without using Forms or Window Authentication?&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/strong&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;&lt;a href="http://www.codeproject.com/KB/aspnet/anonywebparts.aspx"&gt;WEBPART with Anonymous Users&lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;5. How to Use UserControls as WebParts?&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/strong&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; font-family: tahoma"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/w9b5ett0.aspx"&gt;How to: Treat a User Control as a Web Parts Control  &lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; font-family: tahoma"&gt;&lt;a href="http://rshelton.com/archive/2008/07/08/how-to-video-building-web-parts-with-user-controls-and.aspx"&gt;How to video: Building Web Parts with User Controls and AJAX &lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;6. How to Access Controls from UserControls&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/strong&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;&lt;a href="../../../../dotNETvinz/archive/2009/06/25/aspnet-webpart-faq-accessing-controls-from-usercontrols-in-aspx-page.aspx"&gt;ASPNET WebPart FAQ: Accessing Controls from UserControls in ASPX page&lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;7. How to apply Themes /Skins in WebParts?&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/strong&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;The following example below shows the basic way on how to apply skins to WebParts&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;&lt;a href="../../../../dotNETvinz/archive/2009/04/14/asp.net-webpart-with-skins.aspx"&gt;ASP.NET WebParts with Skins&lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;8. How to Add Dynamic WebParts in the WebPartZone?&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;Here are some useful articles below that you can refer:&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt; &lt;font size="2"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/font&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;&lt;a href="http://blogs.neudesic.com/blogs/david_barkol/archive/2006/02/10/45.aspx"&gt;Programmatically adding a Web Part in ASP.NET 2.0&lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;&lt;a href="http://leedale.wordpress.com/2008/01/10/dynamically-adding-webparts-using-webpartmanagerinternals-class/"&gt;Dynamically adding WebParts using WebPartManagerInternals class&lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;9. How to add WebParts to Catalog Dynamically?&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;Here are some useful articles below that you can refer:&lt;/span&gt;&lt;span style="font-family: tahoma"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; font-family: tahoma"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;a href="http://netcode.ru/dotnet/?lang=&amp;amp;katID=27&amp;amp;skatID=233&amp;amp;artID=6236"&gt;Dynamically Adding Custom User Controls to a Web Part Catalog Zone / User Controls / ASP. NET&lt;/a&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt; &lt;font size="2"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/font&gt;  &lt;p&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; font-family: tahoma"&gt;&lt;a href="http://blogs.msdn.com/rahulso/archive/2006/03/18/Dynamically-adding-webparts-to-the-dynamically-added-Catalog-zone.aspx"&gt;Dynamically adding webparts to the dynamically added Catalog zone&lt;/a&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt; &lt;font size="2"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/font&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;&lt;a href="http://www.carlosag.net/articles/WebParts/catalogPartSample.aspx"&gt;ASP.NET WebParts and CatalogPart Sample&lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;10. How to Communicate Between WebParts?&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/strong&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; font-family: tahoma"&gt;You can use the &lt;a href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.connectionszone.aspx"&gt;ConnectionZone &lt;/a&gt;to communicate between WebParts.. Check these links below for more information:&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; font-family: tahoma"&gt;&lt;a href="http://www.c-sharpcorner.com/UploadFile/mosessaur/webpartscommunication01172006044658AM/webpartscommunication.aspx?ArticleID=aa46c1b8-d50e-42c0-ad7a-8961352116f8"&gt;WebParts Communication: How WebParts on a page communicate with each other &lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;&lt;a href="http://www.codeproject.com/KB/aspnet/Web_parts_communication.aspx"&gt;&lt;span style="font-size: 10pt; font-family: tahoma"&gt;WebPart Communication &lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt; &lt;font size="2"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/font&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;11. How to Hide WebParts Based on Users?&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/strong&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; font-family: tahoma"&gt;You can set roles to users so that you can easily hide the WebParts using the AutorizationFilter attribute as demonstrated below:&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; font-family: tahoma"&gt;&lt;a href="http://fredrik.nsquared2.com/viewpost.aspx?PostID=90"&gt;Show/Hide WebParts based on Roles&lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;12. How to Hide WebParts?&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/strong&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; font-family: tahoma"&gt;If you wan’t to hide it manually then we can use the Hidden property to Hide WebParts in the Zone. See below example:&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;pre&gt;&lt;font size="2"&gt;&lt;span class="kwd"&gt;&lt;span style="font-family: tahoma"&gt;protected void&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: tahoma"&gt; Button1_Click(&lt;span class="kwd"&gt;object&lt;/span&gt; sender, EventArgs e)&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;font size="2"&gt;&lt;span style="font-family: tahoma"&gt;{&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;font size="2"&gt;&lt;span style="font-family: tahoma"&gt;        WebPartZone1.WebParts[&lt;span class="st"&gt;"WebPartID"&lt;/span&gt;].Hidden = &lt;span class="kwd"&gt;true&lt;/span&gt;;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;font size="2"&gt;} &lt;/font&gt;&lt;/pre&gt;
&lt;font size="2"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/font&gt;

&lt;pre&gt;&lt;font size="2"&gt;&lt;br /&gt;&lt;span style="font-family: tahoma"&gt;You may also close the WebParts instead using the &lt;a href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.webpartmanager.closewebpart.aspx"&gt;CloseWebPart&lt;/a&gt; method of WPM and add it back again via PageCatalogPart.&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt; &lt;/pre&gt;

&lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;13. How to Add Custom Verbs to WebParts?&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/strong&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;You can add your own verbs by extending the WebPartZone base class and override the OncreateVerb method for you to add your own verbs for all the WebParts. See the example in the link below for more info.&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;&lt;a href="../../../../dotNETvinz/archive/2008/07/23/creating-custom-webpartzones-with-custom-verbs-move-right-move-left.aspx"&gt;Creating Custom WebPartZones with Custom verbs (Move right/ Move Left)&lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;If you wan’t to add a custom verb to a particular webpart then you can override the WebPartVerbCollection  class as demonstrated in the link below:&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;&lt;a href="http://fredrik.nsquared2.com/viewpost.aspx?PostID=228"&gt;Add Verbs to the WebPart's menu.&lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;14. How to work WebParts with Master Page?&lt;/span&gt;&lt;/strong&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; font-family: tahoma"&gt;Basically, WebParts Personalization are stored on a page by page basis. Web Parts personalization settings for the pages that use the Master Page are stored separately from one another, preventing you from applying a single set of Web Parts to every page on the site.&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; font-family: tahoma"&gt;Here's an interesting article below that demonstrates on how to: &lt;a href="http://www.simple-talk.com/dotnet/asp.net/web-parts-in-asp.net-2.0/"&gt;Sharing WebParts across Multiple Pages &lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;15. How to Create WeParts with Multiple Pages?&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/strong&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;&lt;a href="http://markitup.com/Posts/Post.aspx?postId=b26cb7a6-451b-4398-bbfd-ff31fa50309b"&gt;Dynamic Tabbed Web Part Pages &lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;16. How to Create WebPart like IGOOGLE?&lt;/span&gt;&lt;/strong&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;If you really want to have a great overview of how to create such a web 2.0 &lt;st1:place w:st="on"&gt;&lt;st1:city w:st="on"&gt;ajax&lt;/st1:city&gt;&lt;/st1:place&gt; enabled portal I can highly recommend Omar Al Zabir's book &lt;/span&gt;&lt;span style="font-size: 10pt; line-height: 115%"&gt;&lt;a href="http://www.oreilly.com/catalog/9780596510503/"&gt;&lt;span style="font-family: tahoma"&gt;Building a Web 2.0 Portal with ASP.NET 3.5&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;. He's the founder of pageflakes.com and the open source portal called dropthings.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;
&lt;font size="2"&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/font&gt;

&lt;p&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; font-family: tahoma"&gt;&lt;a href="http://www.dropthings.com/"&gt;Dropthings Demo&lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;&lt;a href="http://www.codeplex.com/dropthings"&gt;Dropthings Source Code&lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;17. How to create Custom WebParts?&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/strong&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;The following link below shows on how to create a custom webparts by extending the WebParts class.&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;&lt;a href="http://www.codeguru.com/csharp/sample_chapter/print.php/c13037__2/"&gt;Web parts: the building blocks of portals&lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;18. How to use WebParts using Own Database?&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/strong&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; font-family: tahoma"&gt;You need to create your own Personalization Providers for storing the webparts personalization data. Check these links below for more information:&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; font-family: tahoma"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/aa479037.aspx"&gt;WebPart Personalization Providers &lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/aa479038.aspx"&gt;Custom Provider Based Service &lt;/a&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;&lt;a href="http://download.oracle.com/docs/html/E10928_01/OraclePersonalizationProviderClass.htm#BABCHDGI"&gt;WEB PARTS ORACLE PERSONALIZATION&lt;/a&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;That's it! Hope you will find this post useful&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: tahoma"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:9cb8f94c-a554-40fd-ab36-604270a3062d" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/ASP.NET" rel="tag"&gt;ASP.NET&lt;/a&gt;,&lt;a href="http://technorati.com/tags/WebParts" rel="tag"&gt;WebParts&lt;/a&gt;&lt;/div&gt; &lt;img src="http://geekswithblogs.net/dotNETvinz/aggbug/133398.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Vincent Maverick Durano</dc:creator>
            <guid>http://geekswithblogs.net/dotNETvinz/archive/2009/07/09/asp.net-webpart--faq.aspx</guid>
            <pubDate>Thu, 09 Jul 2009 10:16:32 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/dotNETvinz/comments/133398.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/dotNETvinz/archive/2009/07/09/asp.net-webpart--faq.aspx#feedback</comments>
            <slash:comments>3</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/dotNETvinz/comments/commentRss/133398.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/dotNETvinz/services/trackbacks/133398.aspx</trackback:ping>
        </item>
        <item>
            <title>ASPNET WebPart FAQ: Accessing Controls from UserControls in ASPX page</title>
            <link>http://geekswithblogs.net/dotNETvinz/archive/2009/06/25/aspnet-webpart-faq-accessing-controls-from-usercontrols-in-aspx-page.aspx</link>
            <description>&lt;p&gt;&lt;/p&gt; &lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type" /&gt;&lt;meta name="ProgId" content="Word.Document" /&gt;&lt;meta name="Generator" content="Microsoft Word 11" /&gt;&lt;meta name="Originator" content="Microsoft Word 11" /&gt;&lt;link rel="File-List" href="file:///C:\DOCUME~1\vd185022\LOCALS~1\Temp\msohtml1\01\clip_filelist.xml" /&gt;&lt;style type="text/css"&gt;&lt;!--
 /* Font Definitions */
 @font-face
	{font-family:calibri;
	mso-font-alt:"Century Gothic";
	mso-font-charset:0;
	mso-generic-font-family:swiss;
	mso-font-pitch:variable;
	mso-font-signature:-1610611985 1073750139 0 0 159 0;}
 /* Style Definitions */
 p.msonormal, li.msonormal, div.msonormal
	{mso-style-parent:"";
	margin-top:0in;
	margin-right:0in;
	margin-bottom:10.0pt;
	margin-left:0in;
	line-height:115%;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:calibri;
	mso-fareast-font-family:calibri;
	mso-bidi-font-family:"Times New Roman";}
@page section1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.section1
	{page:section1;}
--&gt;&lt;/style&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;I decided to write this example because I always encounter this type of questions at the asp.net &lt;a href="http://forums.asp.net/145.aspx"&gt;WebParts and Personalization forums&lt;/a&gt;.&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;Many of us have used UserControls as WebParts so that we can incorporate different server controls in a single WebPart element and there are times we need to retrieve or pass a value to a Control that‘s inside a UserControl.&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;So in this example, I will show different ways on &lt;span&gt; &lt;/span&gt;how to get or pass values to a control that is residing within a UserControl.&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;Suppose that we have this UserControl declaration below:&lt;/font&gt;&lt;/p&gt;  &lt;table style="border-bottom: medium none; border-left: medium none; border-collapse: collapse; background: rgb(230,230,230); border-top: medium none; border-right: medium none; moz-background-inline-policy: -moz-initial; moz-background-size: auto auto; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial" class="MsoTableGrid" border="1" cellspacing="0" cellpadding="0" width="602"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td style="border-bottom: black 1pt solid; border-left: black 1pt solid; padding-bottom: 0in; padding-left: 5.4pt; width: 6.65in; padding-right: 5.4pt; border-top: black 1pt solid; border-right: black 1pt solid; padding-top: 0in" valign="top" width="600"&gt;         &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; background: yellow; font-size: 10pt; moz-background-inline-policy: -moz-initial; moz-background-size: auto auto; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial"&gt;&amp;lt;%&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;@&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt; &lt;span style="color: rgb(163,21,21)"&gt;Control&lt;/span&gt; &lt;span style="color: red"&gt;Language&lt;/span&gt;&lt;span style="color: blue"&gt;="C#"&lt;/span&gt; &lt;span style="color: red"&gt;AutoEventWireup&lt;/span&gt;&lt;span style="color: blue"&gt;="true"&lt;/span&gt; &lt;span style="color: red"&gt;CodeFile&lt;/span&gt;&lt;span style="color: blue"&gt;="WebUserControl1.ascx.cs"&lt;/span&gt; &lt;span style="color: red"&gt;Inherits&lt;/span&gt;&lt;span style="color: blue"&gt;="WebUserControl1"&lt;/span&gt; &lt;span style="background: yellow; moz-background-inline-policy: -moz-initial; moz-background-size: auto auto; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial"&gt;%&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163,21,21); font-size: 10pt"&gt;asp&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;:&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163,21,21); font-size: 10pt"&gt;TextBox&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt; &lt;span style="color: red"&gt;ID&lt;/span&gt;&lt;span style="color: blue"&gt;="TextBox1"&lt;/span&gt; &lt;span style="color: red"&gt;runat&lt;/span&gt;&lt;span style="color: blue"&gt;="server"/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163,21,21); font-size: 10pt"&gt;br&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt; &lt;span style="color: blue"&gt;/&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;br&lt;/span&gt; &lt;span style="color: blue"&gt;/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163,21,21); font-size: 10pt"&gt;asp&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;:&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163,21,21); font-size: 10pt"&gt;DropDownList&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt; &lt;span style="color: red"&gt;ID&lt;/span&gt;&lt;span style="color: blue"&gt;="DropDownList1"&lt;/span&gt; &lt;span style="color: red"&gt;runat&lt;/span&gt;&lt;span style="color: blue"&gt;="server"&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163,21,21); font-size: 10pt"&gt;asp&lt;/span&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;:&lt;/span&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163,21,21); font-size: 10pt"&gt;DropDownList&lt;/span&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;From above, you can see a TextBox and a DropDownList control in the UserControl.&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;Now, lets try to add that UserControl in the WebPartZone by dropping it to the WebPartZone. See the ASPX markup below:&lt;/font&gt;&lt;/p&gt;  &lt;table style="border-bottom: medium none; border-left: medium none; border-collapse: collapse; background: rgb(230,230,230); border-top: medium none; border-right: medium none; moz-background-inline-policy: -moz-initial; moz-background-size: auto auto; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial" class="MsoTableGrid" border="1" cellspacing="0" cellpadding="0" width="602"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td style="border-bottom: black 1pt solid; border-left: black 1pt solid; padding-bottom: 0in; padding-left: 5.4pt; width: 6.65in; padding-right: 5.4pt; border-top: black 1pt solid; border-right: black 1pt solid; padding-top: 0in" valign="top" width="600"&gt;         &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; background: yellow; font-size: 10pt; moz-background-inline-policy: -moz-initial; moz-background-size: auto auto; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial"&gt;&amp;lt;%&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;@&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt; &lt;span style="color: rgb(163,21,21)"&gt;Page&lt;/span&gt; &lt;span style="color: red"&gt;Language&lt;/span&gt;&lt;span style="color: blue"&gt;="C#"&lt;/span&gt; &lt;span style="color: red"&gt;AutoEventWireup&lt;/span&gt;&lt;span style="color: blue"&gt;="true"&lt;/span&gt; &lt;span style="color: red"&gt;CodeFile&lt;/span&gt;&lt;span style="color: blue"&gt;="Default.aspx.cs"&lt;/span&gt; &lt;span style="color: red"&gt;Inherits&lt;/span&gt;&lt;span style="color: blue"&gt;="Default"&lt;/span&gt; &lt;span style="background: yellow; moz-background-inline-policy: -moz-initial; moz-background-size: auto auto; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial"&gt;%&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; background: yellow; font-size: 10pt; moz-background-inline-policy: -moz-initial; moz-background-size: auto auto; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; background: yellow; font-size: 10pt; moz-background-inline-policy: -moz-initial; moz-background-size: auto auto; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial"&gt;&amp;lt;%&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;@&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt; &lt;span style="color: rgb(163,21,21)"&gt;Register&lt;/span&gt; &lt;span style="color: red"&gt;src&lt;/span&gt;&lt;span style="color: blue"&gt;="WebUserControl1.ascx"&lt;/span&gt; &lt;span style="color: red"&gt;tagname&lt;/span&gt;&lt;span style="color: blue"&gt;="WebUserControl1"&lt;/span&gt; &lt;span style="color: red"&gt;tagprefix&lt;/span&gt;&lt;span style="color: blue"&gt;="uc1"&lt;/span&gt; &lt;span style="background: yellow; moz-background-inline-policy: -moz-initial; moz-background-size: auto auto; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial"&gt;%&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; background: yellow; font-size: 10pt; moz-background-inline-policy: -moz-initial; moz-background-size: auto auto; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;&amp;lt;!&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163,21,21); font-size: 10pt"&gt;DOCTYPE&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt; &lt;span style="color: red"&gt;html&lt;/span&gt; &lt;span style="color: red"&gt;PUBLIC&lt;/span&gt; &lt;span style="color: blue"&gt;"-//W3C//DTD XHTML 1.0 Transitional//EN"&lt;/span&gt; &lt;span style="color: blue"&gt;"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163,21,21); font-size: 10pt"&gt;html&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt; &lt;span style="color: red"&gt;xmlns&lt;/span&gt;&lt;span style="color: blue"&gt;="http://www.w3.org/1999/xhtml"&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163,21,21); font-size: 10pt"&gt;head&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt; &lt;span style="color: red"&gt;runat&lt;/span&gt;&lt;span style="color: blue"&gt;="server"&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;    &lt;/span&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;title&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;/span&gt;WebParts and UserControls Demo&lt;span style="color: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;title&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163,21,21); font-size: 10pt"&gt;head&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163,21,21); font-size: 10pt"&gt;body&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;    &lt;/span&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;form&lt;/span&gt; &lt;span style="color: red"&gt;id&lt;/span&gt;&lt;span style="color: blue"&gt;="form1"&lt;/span&gt; &lt;span style="color: red"&gt;runat&lt;/span&gt;&lt;span style="color: blue"&gt;="server"&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;    &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;    &lt;/span&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;asp&lt;/span&gt;&lt;span style="color: blue"&gt;:&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;WebPartManager&lt;/span&gt; &lt;span style="color: red"&gt;ID&lt;/span&gt;&lt;span style="color: blue"&gt;="WebPartManager1"&lt;/span&gt; &lt;span style="color: red"&gt;runat&lt;/span&gt;&lt;span style="color: blue"&gt;="server"&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;    &lt;/span&gt;&lt;span style="color: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;asp&lt;/span&gt;&lt;span style="color: blue"&gt;:&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;WebPartManager&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;    &lt;/span&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;asp&lt;/span&gt;&lt;span style="color: blue"&gt;:&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;WebPartZone&lt;/span&gt; &lt;span style="color: red"&gt;ID&lt;/span&gt;&lt;span style="color: blue"&gt;="WebPartZone1"&lt;/span&gt; &lt;span style="color: red"&gt;runat&lt;/span&gt;&lt;span style="color: blue"&gt;="server"&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;        &lt;/span&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;ZoneTemplate&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;uc1&lt;/span&gt;&lt;span style="color: blue"&gt;:&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;WebUserControl1&lt;/span&gt; &lt;span style="color: red"&gt;ID&lt;/span&gt;&lt;span style="color: blue"&gt;="WebUserControl1"&lt;/span&gt; &lt;span style="color: red"&gt;runat&lt;/span&gt;&lt;span style="color: blue"&gt;="server"&lt;/span&gt; &lt;span style="color: blue"&gt;/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;        &lt;/span&gt;&lt;span style="color: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;ZoneTemplate&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;    &lt;/span&gt;&lt;span style="color: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;asp&lt;/span&gt;&lt;span style="color: blue"&gt;:&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;WebPartZone&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;    &lt;/span&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;asp&lt;/span&gt;&lt;span style="color: blue"&gt;:&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;WebPartZone&lt;/span&gt; &lt;span style="color: red"&gt;ID&lt;/span&gt;&lt;span style="color: blue"&gt;="WebPartZone2"&lt;/span&gt; &lt;span style="color: red"&gt;runat&lt;/span&gt;&lt;span style="color: blue"&gt;="server"&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;    &lt;/span&gt;&lt;span style="color: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;asp&lt;/span&gt;&lt;span style="color: blue"&gt;:&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;WebPartZone&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;    &lt;/span&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;asp&lt;/span&gt;&lt;span style="color: blue"&gt;:&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;Button&lt;/span&gt; &lt;span style="color: red"&gt;ID&lt;/span&gt;&lt;span style="color: blue"&gt;="Button1"&lt;/span&gt; &lt;span style="color: red"&gt;runat&lt;/span&gt;&lt;span style="color: blue"&gt;="server"&lt;/span&gt; &lt;span style="color: red"&gt;onclick&lt;/span&gt;&lt;span style="color: blue"&gt;="Button1_Click"&lt;/span&gt; &lt;span style="color: red"&gt;Text&lt;/span&gt;&lt;span style="color: blue"&gt;="Pass Data"&lt;/span&gt; &lt;span style="color: blue"&gt;/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;    &lt;/span&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;asp&lt;/span&gt;&lt;span style="color: blue"&gt;:&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;Button&lt;/span&gt; &lt;span style="color: red"&gt;ID&lt;/span&gt;&lt;span style="color: blue"&gt;="Button2"&lt;/span&gt; &lt;span style="color: red"&gt;runat&lt;/span&gt;&lt;span style="color: blue"&gt;="server"&lt;/span&gt; &lt;span style="color: red"&gt;Text&lt;/span&gt;&lt;span style="color: blue"&gt;="Get Data"&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;        &lt;/span&gt;&lt;span style="color: red"&gt;onclick&lt;/span&gt;&lt;span style="color: blue"&gt;="Button2_Click"&lt;/span&gt; &lt;span style="color: blue"&gt;/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;    &lt;/span&gt;&lt;span style="color: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163,21,21)"&gt;form&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163,21,21); font-size: 10pt"&gt;body&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163,21,21); font-size: 10pt"&gt;html&lt;/span&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;Now let’s pass a value to a TextBox and DropDownList controls that is residing from a UserControl when the Button is clicked.&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma; font-weight: bold" class="MsoNormal"&gt;&lt;font size="2"&gt;Option 1: Using the FindControl method&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;The first option is using a FindControl method. As you may know, FindControl method is the general way for accessing Controls in the page.&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;Here’s the code block below:&lt;/font&gt;&lt;/p&gt;  &lt;table style="border-bottom: medium none; border-left: medium none; border-collapse: collapse; background: rgb(230,230,230); border-top: medium none; border-right: medium none; moz-background-inline-policy: -moz-initial; moz-background-size: auto auto; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial" class="MsoTableGrid" border="1" cellspacing="0" cellpadding="0" width="602"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td style="border-bottom: black 1pt solid; border-left: black 1pt solid; padding-bottom: 0in; padding-left: 5.4pt; width: 6.65in; padding-right: 5.4pt; border-top: black 1pt solid; border-right: black 1pt solid; padding-top: 0in" valign="top" width="600"&gt;         &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;protected&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt; &lt;span style="color: blue"&gt;void&lt;/span&gt; Button1_Click(&lt;span style="color: blue"&gt;object&lt;/span&gt; sender, &lt;span style="color: rgb(43,145,175)"&gt;EventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;        &lt;/span&gt;&lt;span style="color: blue"&gt;if&lt;/span&gt; (WebPartManager1.WebParts.Count &amp;gt; 0)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: green"&gt;//Extract the WebPart element (UserControl)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: rgb(43,145,175)"&gt;WebPart&lt;/span&gt; wp = (&lt;span style="color: rgb(43,145,175)"&gt;WebPart&lt;/span&gt;)WebPartManager1.WebParts[&lt;span style="color: rgb(163,21,21)"&gt;"WebUserControl1"&lt;/span&gt;];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: green"&gt;//Extract the TextBox Control that is residing from a WebPart&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: rgb(43,145,175)"&gt;TextBox&lt;/span&gt; tb = (&lt;span style="color: rgb(43,145,175)"&gt;TextBox&lt;/span&gt;)wp.Controls[0].FindControl(&lt;span style="color: rgb(163,21,21)"&gt;"TextBox1"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: blue"&gt;if&lt;/span&gt; (tb != &lt;span style="color: blue"&gt;null&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;                &lt;/span&gt;tb.Text = &lt;span style="color: rgb(163,21,21)"&gt;"Hello ASPNET!"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: green"&gt;//Extract the TextBox Control that is residing from a WebPart&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: rgb(43,145,175)"&gt;DropDownList&lt;/span&gt; ddl = (&lt;span style="color: rgb(43,145,175)"&gt;DropDownList&lt;/span&gt;)wp.Controls[0].FindControl(&lt;span style="color: rgb(163,21,21)"&gt;"DropDownList1"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: blue"&gt;if&lt;/span&gt; (ddl != &lt;span style="color: blue"&gt;null&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;                &lt;/span&gt;ddl.Items.Add(&lt;span style="color: rgb(163,21,21)"&gt;"Item 1"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;        &lt;/span&gt;&lt;span&gt;        &lt;/span&gt;ddl.Items.Add(&lt;span style="color: rgb(163,21,21)"&gt;"Item 2"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;                &lt;/span&gt;ddl.Items.Add(&lt;span style="color: rgb(163,21,21)"&gt;"Item 3"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;        &lt;/span&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;}&lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;As you can see, the code above was pretty straight forward.&lt;span&gt;  &lt;/span&gt;You can use the above approach if you wan’t to manipulate the controls that you are accessing, like for instance in the above example we are accessing the DropDownList control and then add some items to it.&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;Running the code above will show something like this below:&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;img alt="" src="/images/geekswithblogs_net/dotNETvinz/WPAndUC1.JPG" width="366" height="183" /&gt;       &lt;br /&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;Now here’s the output below after pressing the button “Pass Data”      &lt;br /&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;img alt="" src="/images/geekswithblogs_net/dotNETvinz/WPAndUC2.JPG" width="376" height="193" /&gt;       &lt;br /&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;Here’s the code block below for getting the data from the UserControl:&lt;/font&gt;&lt;/p&gt;  &lt;table style="border-bottom: medium none; border-left: medium none; border-collapse: collapse; background: rgb(230,230,230); border-top: medium none; border-right: medium none; moz-background-inline-policy: -moz-initial; moz-background-size: auto auto; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial" class="MsoTableGrid" border="1" cellspacing="0" cellpadding="0" width="602"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td style="border-bottom: black 1pt solid; border-left: black 1pt solid; padding-bottom: 0in; padding-left: 5.4pt; width: 6.65in; padding-right: 5.4pt; border-top: black 1pt solid; border-right: black 1pt solid; padding-top: 0in" valign="top" width="600"&gt;         &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;protected&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt; &lt;span style="color: blue"&gt;void&lt;/span&gt; Button2_Click(&lt;span style="color: blue"&gt;object&lt;/span&gt; sender, &lt;span style="color: rgb(43,145,175)"&gt;EventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;        &lt;/span&gt;&lt;span style="color: blue"&gt;if&lt;/span&gt; (WebPartManager1.WebParts.Count &amp;gt; 0)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: green"&gt;//Extract the WebPart element (UserControl)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: rgb(43,145,175)"&gt;WebPart&lt;/span&gt; wp = (&lt;span style="color: rgb(43,145,175)"&gt;WebPart&lt;/span&gt;)WebPartManager1.WebParts[&lt;span style="color: rgb(163,21,21)"&gt;"WebUserControl1"&lt;/span&gt;];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: green"&gt;//Extract the TextBox Control that is residing from a WebPart&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: rgb(43,145,175)"&gt;TextBox&lt;/span&gt; tb = (&lt;span style="color: rgb(43,145,175)"&gt;TextBox&lt;/span&gt;)wp.Controls[0].FindControl(&lt;span style="color: rgb(163,21,21)"&gt;"TextBox1"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: blue"&gt;if&lt;/span&gt; (tb != &lt;span style="color: blue"&gt;null&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;                &lt;/span&gt;Response.Write(tb.Text + &lt;span style="color: rgb(163,21,21)"&gt;"&amp;lt;BR/&amp;gt;"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: green"&gt;//Extract the TextBox Control that is residing from a WebPart&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: rgb(43,145,175)"&gt;DropDownList&lt;/span&gt; ddl = (&lt;span style="color: rgb(43,145,175)"&gt;DropDownList&lt;/span&gt;)wp.Controls[0].FindControl(&lt;span style="color: rgb(163,21,21)"&gt;"DropDownList1"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: blue"&gt;if&lt;/span&gt; (ddl != &lt;span style="color: blue"&gt;null&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;                &lt;/span&gt;Response.Write(ddl.SelectedItem.Text);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;        &lt;/span&gt;} &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;}&lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;The output would look something like this after pressing the “Get Data” button.&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;o:p&gt;&lt;img alt="" src="/images/geekswithblogs_net/dotNETvinz/WPAndUC3.JPG" width="418" height="228" /&gt; &lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma; font-weight: bold" class="MsoNormal"&gt;&lt;font size="2"&gt;Option 2:&lt;span&gt;  &lt;/span&gt;Using Properties &lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;This option is the easiest and efficient way to pass and retrieve values from a Control that is residing from a UserControl. All you need here is to expose a public property to a UserControl .ASCX page.&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;Here’s an example:&lt;/font&gt;&lt;/p&gt;  &lt;table style="border-bottom: medium none; border-left: medium none; border-collapse: collapse; background: rgb(230,230,230); border-top: medium none; border-right: medium none; moz-background-inline-policy: -moz-initial; moz-background-size: auto auto; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial" class="MsoTableGrid" border="1" cellspacing="0" cellpadding="0" width="602"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td style="border-bottom: black 1pt solid; border-left: black 1pt solid; padding-bottom: 0in; padding-left: 5.4pt; width: 6.65in; padding-right: 5.4pt; border-top: black 1pt solid; border-right: black 1pt solid; padding-top: 0in" valign="top" width="600"&gt;         &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;public&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt; &lt;span style="color: blue"&gt;partial&lt;/span&gt; &lt;span style="color: blue"&gt;class&lt;/span&gt; &lt;span style="color: rgb(43,145,175)"&gt;WebUserControl1&lt;/span&gt; : System.Web.UI.&lt;span style="color: rgb(43,145,175)"&gt;UserControl&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: green; font-size: 10pt"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;    &lt;/span&gt;&lt;span style="color: blue"&gt;public&lt;/span&gt; &lt;span style="color: blue"&gt;string&lt;/span&gt; TextValue&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;        &lt;/span&gt;&lt;span style="color: blue"&gt;get&lt;/span&gt; { &lt;span style="color: blue"&gt;return&lt;/span&gt; TextBox1.Text; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;        &lt;/span&gt;&lt;span style="color: blue"&gt;set&lt;/span&gt; { TextBox1.Text = &lt;span style="color: blue"&gt;value&lt;/span&gt;; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;    &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;    &lt;/span&gt;&lt;span style="color: blue"&gt;protected&lt;/span&gt; &lt;span style="color: blue"&gt;void&lt;/span&gt; Page_Load(&lt;span style="color: blue"&gt;object&lt;/span&gt; sender, &lt;span style="color: rgb(43,145,175)"&gt;EventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;    &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;}&lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;Now at Button Click event in the ASPX page, you can pass a value to the TextBox control this way:&lt;/font&gt;&lt;/p&gt;  &lt;table style="border-bottom: medium none; border-left: medium none; border-collapse: collapse; background: rgb(230,230,230); border-top: medium none; border-right: medium none; moz-background-inline-policy: -moz-initial; moz-background-size: auto auto; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial" class="MsoTableGrid" border="1" cellspacing="0" cellpadding="0" width="602"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td style="border-bottom: black 1pt solid; border-left: black 1pt solid; padding-bottom: 0in; padding-left: 5.4pt; width: 6.65in; padding-right: 5.4pt; border-top: black 1pt solid; border-right: black 1pt solid; padding-top: 0in" valign="top" width="600"&gt;         &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;protected&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt; &lt;span style="color: blue"&gt;void&lt;/span&gt; Button1_Click(&lt;span style="color: blue"&gt;object&lt;/span&gt; sender, &lt;span style="color: rgb(43,145,175)"&gt;EventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;        &lt;/span&gt;WebUserControl1.TextValue = &lt;span style="color: rgb(163,21,21)"&gt;"Hello There"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;}&lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;Here’s the page output below after pressing the “Pass Data” button. &lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;o:p&gt;&lt;img alt="" src="/images/geekswithblogs_net/dotNETvinz/WPAndUC4.JPG" width="390" height="181" /&gt; &lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;Here’s the code for getting the value from the TextBox:&lt;/font&gt;&lt;/p&gt;  &lt;table style="border-bottom: medium none; border-left: medium none; border-collapse: collapse; background: rgb(230,230,230); border-top: medium none; border-right: medium none; moz-background-inline-policy: -moz-initial; moz-background-size: auto auto; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial" class="MsoTableGrid" border="1" cellspacing="0" cellpadding="0" width="602"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td style="border-bottom: black 1pt solid; border-left: black 1pt solid; padding-bottom: 0in; padding-left: 5.4pt; width: 6.65in; padding-right: 5.4pt; border-top: black 1pt solid; border-right: black 1pt solid; padding-top: 0in" valign="top" width="600"&gt;         &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; color: blue; font-size: 10pt"&gt;protected&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt; &lt;span style="color: blue"&gt;void&lt;/span&gt; Button2_Click(&lt;span style="color: blue"&gt;object&lt;/span&gt; sender, &lt;span style="color: rgb(43,145,175)"&gt;EventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;        &lt;/span&gt;&lt;span style="color: blue"&gt;string&lt;/span&gt; str = WebUserControl1.TextValue;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p style="line-height: normal; margin-bottom: 0pt" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;&lt;span&gt;        &lt;/span&gt;Response.Write(str);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt"&gt;}&lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;As you can see, the code above was pretty simple!&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma; font-weight: bold" class="MsoNormal"&gt;&lt;font size="2"&gt;Conclusion:&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;Use Option 1, if you are going to manipulate the control’s property that you are accessing. If you are just passing and retrieving controls value from the UserControl then use Option 2 instead.&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;That’s it! I hope you will find this example useful!&lt;/font&gt;&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:3cb3c2b9-3f59-4707-9b2f-7a4b656cc7cc" class="wlWriterSmartContent"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/ASP.NET" rel="tag"&gt;ASP.NET&lt;/a&gt;,&lt;a href="http://technorati.com/tags/WebParts" rel="tag"&gt;WebParts&lt;/a&gt;,&lt;a href="http://technorati.com/tags/C%23" rel="tag"&gt;C#&lt;/a&gt;&lt;/div&gt; &lt;img src="http://geekswithblogs.net/dotNETvinz/aggbug/133040.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Vincent Maverick Durano</dc:creator>
            <guid>http://geekswithblogs.net/dotNETvinz/archive/2009/06/25/aspnet-webpart-faq-accessing-controls-from-usercontrols-in-aspx-page.aspx</guid>
            <pubDate>Wed, 24 Jun 2009 17:17:20 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/dotNETvinz/comments/133040.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/dotNETvinz/archive/2009/06/25/aspnet-webpart-faq-accessing-controls-from-usercontrols-in-aspx-page.aspx#feedback</comments>
            <slash:comments>3</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/dotNETvinz/comments/commentRss/133040.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/dotNETvinz/services/trackbacks/133040.aspx</trackback:ping>
        </item>
        <item>
            <title>Comparison Between Standard WebParts, ASPNET Futures WebParts and Custom WebParts in ASPNET 2.0</title>
            <link>http://geekswithblogs.net/dotNETvinz/archive/2009/06/01/comparison-between-standard-webparts-aspnet-futures-webparts-and-custom-webparts.aspx</link>
            <description>&lt;p&gt;&lt;/p&gt; &lt;link style="font-family: tahoma" href="file:///C:\DOCUME~1\vd185022\LOCALS~1\Temp\msohtml1\01\clip_filelist.xml" rel="File-List" /&gt;&lt;link style="font-family: tahoma" href="file:///C:\DOCUME~1\vd185022\LOCALS~1\Temp\msohtml1\01\clip_editdata.mso" rel="Edit-Time-Data" /&gt;&lt;style&gt;&lt;![CDATA[

v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}]]&gt;&lt;/style&gt;&lt;font size="2"&gt;&lt;o:smarttagtype style="font-family: tahoma" name="City" namespaceuri="urn:schemas-microsoft-com:office:smarttags"&gt;&lt;/o:smarttagtype&gt;&lt;o:smarttagtype style="font-family: tahoma" name="place" namespaceuri="urn:schemas-microsoft-com:office:smarttags"&gt;&lt;/o:smarttagtype&gt;&lt;/font&gt;&lt;object id="ieooui" classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D"&gt;&lt;/object&gt;&lt;style&gt;&lt;![CDATA[

st1\:*{behavior:url(#ieooui) }]]&gt;&lt;/style&gt;&lt;style type="text/css"&gt;&lt;!--
 /* Font Definitions */
 @font-face
	{font-family:wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;
	mso-font-charset:2;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:0 268435456 0 0 -2147483648 0;}
 /* Style Definitions */
 p.msonormal, li.msonormal, div.msonormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
p.msocaption, li.msocaption, div.msocaption
	{mso-style-noshow:yes;
	mso-style-next:normal;
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";
	font-weight:bold;}
@page section1
	{size:8.5in 11.0in;
	margin:.5in 1.25in .25in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.section1
	{page:section1;}
 /* List Definitions */
 @list l0
	{mso-list-id:120152502;
	mso-list-type:hybrid;
	mso-list-template-ids:-470410636 67698689 67698691 67698693 67698701 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
	{mso-level-number-format:bullet;
	mso-level-text:;
	mso-level-tab-stop:.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:symbol;}
@list l0:level2
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:1.0in;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:"Courier New";}
@list l0:level3
	{mso-level-number-format:bullet;
	mso-level-text:;
	mso-level-tab-stop:1.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:wingdings;}
@list l0:level4
	{mso-level-number-format:bullet;
	mso-level-text:;
	mso-level-tab-stop:2.0in;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:wingdings;}
@list l1
	{mso-list-id:255989881;
	mso-list-type:hybrid;
	mso-list-template-ids:334900768 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l1:level1
	{mso-level-number-format:bullet;
	mso-level-text:;
	mso-level-tab-stop:1.5in;
	mso-level-number-position:left;
	margin-left:1.5in;
	text-indent:-.25in;
	font-family:symbol;}
@list l2
	{mso-list-id:1411586510;
	mso-list-type:hybrid;
	mso-list-template-ids:1361720226 -1466032312 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l2:level1
	{mso-level-start-at:4;
	mso-level-number-format:bullet;
	mso-level-text:-;
	mso-level-tab-stop:.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
@list l3
	{mso-list-id:1811247746;
	mso-list-type:hybrid;
	mso-list-template-ids:1769904856 67698689 67698691 67698693 67698703 67698691 67698693 67698689 67698691 67698693;}
@list l3:level1
	{mso-level-number-format:bullet;
	mso-level-text:;
	mso-level-tab-stop:.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:symbol;}
@list l3:level2
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:1.0in;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:"Courier New";}
@list l3:level3
	{mso-level-number-format:bullet;
	mso-level-text:;
	mso-level-tab-stop:1.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:wingdings;}
@list l3:level4
	{mso-level-tab-stop:2.0in;
	mso-level-number-position:left;
	text-indent:-.25in;}
ol
	{margin-bottom:0in;}
ul
	{margin-bottom:0in;}
--&gt;&lt;/style&gt;&lt;font size="2"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;span style="font-family: tahoma"&gt;I decided to post this because I wan't to share this information that I have gathered during my investation about ASPNET WebParts&lt;/span&gt; last 2007&lt;/font&gt;.&lt;font size="2"&gt; Maybe this will be useful for those who are using ASPNET WebParts in ASPNET 2.0.&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt; &lt;/p&gt;  &lt;p&gt;Basically this information shows the difference between the Standard WebParts that shipped in ASP.NET 2.0, ASPNET Futures and My Custom WebPart with Custom Verbs.&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;span style="font-weight: bold"&gt;Main OBJECTIVES:&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;     &lt;br /&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;o:p&gt; * &lt;/o:p&gt;&lt;/font&gt;&lt;font size="2"&gt;Allows cross browser drag and drop capability&lt;/font&gt;&lt;font size="2"&gt;&lt;st1:place w:st="on"&gt;&lt;st1:city w:st="on"&gt; (can be moved between WebZones)     &lt;br /&gt;&lt;/st1:city&gt;&lt;/st1:place&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;st1:place w:st="on"&gt;&lt;st1:city w:st="on"&gt; * Ajax&lt;/st1:city&gt;&lt;/st1:place&gt; enabled&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;o:p&gt;     &lt;br /&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;o:p&gt;                               &lt;span style="font-weight: bold"&gt;         Findings and Comparison&lt;/span&gt;      &lt;br /&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;table class="MsoTableGrid" style="border-right: medium none; border-top: medium none; border-left: medium none; width: 6.15in; border-bottom: medium none; font-family: tahoma; border-collapse: collapse" cellspacing="0" cellpadding="0" width="590" border="1"&gt;&lt;tbody&gt;     &lt;tr style="height: 82.5pt"&gt;       &lt;td style="border-right: windowtext 1pt solid; padding-right: 5.4pt; border-top: windowtext 1pt solid; padding-left: 5.4pt; padding-bottom: 0in; border-left: windowtext 1pt solid; width: 76.7pt; padding-top: 0in; border-bottom: windowtext 1pt solid; font-family: tahoma; height: 82.5pt" valign="top" width="102"&gt;         &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: 1pt solid; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 85pt; padding-top: 0in; border-bottom: 1pt solid; font-family: tahoma; height: 82.5pt" valign="top" width="113"&gt;         &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;Standard Webparts&lt;/font&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: 1pt solid; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 89.2pt; padding-top: 0in; border-bottom: 1pt solid; font-family: tahoma; height: 82.5pt" valign="top" width="119"&gt;         &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;ASPNET Futures Webparts&lt;/font&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: 1pt solid; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 87.6pt; padding-top: 0in; border-bottom: 1pt solid; font-family: tahoma; height: 82.5pt" valign="top" width="117"&gt;         &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;Custom Webparts with added Custom Verbs&lt;/font&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: 1pt solid; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 104.3pt; padding-top: 0in; border-bottom: 1pt solid; font-family: tahoma; height: 82.5pt" valign="top" width="139"&gt;         &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;Main Objectives for both browsers&lt;/font&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr style="height: 82.5pt"&gt;       &lt;td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: 1pt solid; width: 76.7pt; padding-top: 0in; border-bottom: 1pt solid; font-family: tahoma; height: 82.5pt" valign="top" width="102"&gt;         &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;Drag and drop capability in different browsers&lt;/font&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 85pt; padding-top: 0in; border-bottom: 1pt solid; font-family: tahoma; height: 82.5pt" valign="top" width="113"&gt;         &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;NO, IE browser only&lt;/font&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 89.2pt; padding-top: 0in; border-bottom: 1pt solid; font-family: tahoma; height: 82.5pt" valign="top" width="119"&gt;         &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;YES&lt;/font&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 87.6pt; padding-top: 0in; border-bottom: 1pt solid; font-family: tahoma; height: 82.5pt" valign="top" width="117"&gt;         &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;NO, IE browser only&lt;/font&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;But Can move webparts in firefox without drag and drop functionality&lt;/font&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 104.3pt; padding-top: 0in; border-bottom: 1pt solid; font-family: tahoma; height: 82.5pt" valign="top" width="139"&gt;         &lt;p class="MsoNormal" style="margin-right: 31.25pt"&gt;&lt;font size="2"&gt;YES&lt;/font&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr style="height: 82.5pt"&gt;       &lt;td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: 1pt solid; width: 76.7pt; padding-top: 0in; border-bottom: 1pt solid; font-family: tahoma; height: 82.5pt" valign="top" width="102"&gt;         &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;Drag and drop capability in inside updatepanel control&lt;/font&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 85pt; padding-top: 0in; border-bottom: 1pt solid; font-family: tahoma; height: 82.5pt" valign="top" width="113"&gt;         &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;YES but in IE browser only&lt;/font&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 89.2pt; padding-top: 0in; border-bottom: 1pt solid; font-family: tahoma; height: 82.5pt" valign="top" width="119"&gt;         &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;NO&lt;/font&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 87.6pt; padding-top: 0in; border-bottom: 1pt solid; font-family: tahoma; height: 82.5pt" valign="top" width="117"&gt;         &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;YES but in IE browser only&lt;/font&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt; &lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;But Can move webparts without drag and drop functionality&lt;/font&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 104.3pt; padding-top: 0in; border-bottom: 1pt solid; font-family: tahoma; height: 82.5pt" valign="top" width="139"&gt;         &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;YES&lt;/font&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;      &lt;tr style="height: 82.5pt"&gt;       &lt;td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: 1pt solid; width: 76.7pt; padding-top: 0in; border-bottom: 1pt solid; font-family: tahoma; height: 82.5pt" valign="top" width="102"&gt;         &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;Display of Drop down Verb Menu&lt;span&gt;  &lt;/span&gt;in different BROWSERS&lt;/font&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 85pt; padding-top: 0in; border-bottom: 1pt solid; font-family: tahoma; height: 82.5pt" valign="top" width="113"&gt;         &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;NO, IE browser only&lt;/font&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 89.2pt; padding-top: 0in; border-bottom: 1pt solid; font-family: tahoma; height: 82.5pt" valign="top" width="119"&gt;         &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;NO, IE browser only&lt;/font&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 87.6pt; padding-top: 0in; border-bottom: 1pt solid; font-family: tahoma; height: 82.5pt" valign="top" width="117"&gt;         &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;YES, But it does not render properly in Firefox&lt;/font&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td style="border-right: 1pt solid; padding-right: 5.4pt; border-top: medium none; padding-left: 5.4pt; padding-bottom: 0in; border-left: medium none; width: 104.3pt; padding-top: 0in; border-bottom: 1pt solid; font-family: tahoma; height: 82.5pt" valign="top" width="139"&gt;         &lt;p class="MsoNormal"&gt;&lt;font size="2"&gt;YE&lt;/font&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;   &lt;br /&gt;    &lt;br /&gt;&lt;font size="2"&gt;&lt;span style="font-weight: bold; font-family: tahoma"&gt;STANDARD WEBPARTS&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;Standard webparts are those normal webparts in aspnet 2.0. It is design to create personalized and customized page. It also used to create portal frameworks as well, but standard webparts has the following limitations below:&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;*      Standard webparts drag and drop functionality does not work properly in Firefox browser with or without updatepanel. Full functionality of standard webparts will work properly in IE browser only.&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;*      Webparts DropDown Verb Menu will not be displayed in Firefox browser.&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt; Our aim is that our page should be in AJAX enabled,but in order to achieved this, we should use ASPNET AJA UpdatePanel Control in order to eliminate those flickers occurred when the page refreshes. The main problem is that, if we are going to place those webparts inside an updatepanel control, the drag and drop functionality won’t work at all in Firefox browser.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;o:p&gt; &lt;img height="332" alt="" src="/images/geekswithblogs_net/dotNETvinz/f1.JPG" width="576" /&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt; &lt;link href="file:///C:\DOCUME~1\vd185022\LOCALS~1\Temp\msohtml1\01\clip_filelist.xml" rel="File-List" /&gt;&lt;link href="file:///C:\DOCUME~1\vd185022\LOCALS~1\Temp\msohtml1\01\clip_editdata.mso" rel="Edit-Time-Data" /&gt;&lt;style&gt;&lt;![CDATA[

v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}]]&gt;&lt;/style&gt;&lt;style type="text/css"&gt;&lt;!--
 /* Style Definitions */
 p.msonormal, li.msonormal, div.msonormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
@page section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.section1
	{page:section1;}
--&gt;&lt;/style&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;"&gt;&lt;v:shapetype id="_x0000_t75" stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"&gt;&lt;v:stroke joinstyle="miter" /&gt;&lt;v:formulas&gt;&lt;v:f eqn="if lineDrawn pixelLineWidth 0" /&gt;&lt;v:f eqn="sum @0 1 0" /&gt;&lt;v:f eqn="sum 0 0 @1" /&gt;&lt;v:f eqn="prod @2 1 2" /&gt;&lt;v:f eqn="prod @3 21600 pixelWidth" /&gt;&lt;v:f eqn="prod @3 21600 pixelHeight" /&gt;&lt;v:f eqn="sum @0 0 1" /&gt;&lt;v:f eqn="prod @6 1 2" /&gt;&lt;v:f eqn="prod @7 21600 pixelWidth" /&gt;&lt;v:f eqn="sum @8 21600 0" /&gt;&lt;v:f eqn="prod @7 21600 pixelHeight" /&gt;&lt;v:f eqn="sum @10 21600 0" /&gt;&lt;/v:formulas&gt;&lt;v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f" /&gt;&lt;o:lock aspectratio="t" v:ext="edit" /&gt;&lt;/v:shapetype&gt;&lt;v:shape id="_x0000_i1025" style="width: 6in; height: 249.75pt" type="#_x0000_t75"&gt;&lt;v:imagedata o:title="" src="file:///C:\DOCUME~1\vd185022\LOCALS~1\Temp\msohtml1\01\clip_image001.png" /&gt;&lt;/v:shape&gt;&lt;/span&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt; &lt;/p&gt;  &lt;p class="MsoCaption" style="font-family: tahoma"&gt;&lt;font size="2"&gt;Figure &lt;span&gt;1&lt;/span&gt;. Standard Webparts with Update Panel in IE browser&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;-In IE browser, you can drag and drop webparts inside the updatepanel control without flicker.&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt; &lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;     &lt;br /&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;o:p&gt;&lt;img height="411" alt="" src="/images/geekswithblogs_net/dotNETvinz/f2.JPG" width="576" /&gt; &lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;v:shape id="_x0000_i1026" style="width: 6in; height: 324pt" type="#_x0000_t75"&gt;&lt;v:imagedata o:title="" src="file:///C:\DOCUME~1\vd185022\LOCALS~1\Temp\msohtml1\01\clip_image003.png" /&gt;&lt;/v:shape&gt;&lt;/p&gt;  &lt;p class="MsoCaption" style="font-family: tahoma"&gt;&lt;font size="2"&gt;Figure &lt;span&gt;2&lt;/span&gt; - Standard Webparts with Updatepanel in Firefox browser&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;-In Firefox browser, you cannot drag and drop webparts with or without updatepanel. If you try to drag the webparts in a certain zone, it will just highlighted the text as what you have seen in the figure above.&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;strong&gt;ASPNET FUTURES WEBPARTS&lt;o:p&gt;&lt;/o:p&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in; font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/strong&gt;      &lt;br /&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in; font-family: tahoma"&gt;&lt;font size="2"&gt;Aspnet futures webparts are designed so that the drag and drop functionalities in Firefox browser will work properly. The main differences between this and the standard webparts are:&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in; font-family: tahoma"&gt;&lt;font size="2"&gt;     &lt;br /&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/font&gt;&lt;font size="2"&gt;                        * Drag and drop capability are supported in both IE and Firefox browser, where as in Standard Webparts drag and drop capibilty is only supported in IE browser.&lt;/font&gt;&lt;font size="2"&gt;     &lt;br /&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;                         *If I placed aspnet futures webparts inside an updatepanel control ,the drag and drop functionality won’t work properly in both IE and firefox browser.&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;o:p&gt;&lt;img alt="" src="/images/geekswithblogs_net/dotNETvinz/f3.JPG" /&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;o:p&gt;     &lt;br /&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;v:shape id="_x0000_i1027" style="width: 431.25pt; height: 319.5pt" type="#_x0000_t75"&gt;&lt;v:imagedata o:title="" src="file:///C:\DOCUME~1\vd185022\LOCALS~1\Temp\msohtml1\01\clip_image005.png" /&gt;&lt;/v:shape&gt;&lt;/p&gt;  &lt;p class="MsoCaption" style="font-family: tahoma"&gt;&lt;font size="2"&gt;     &lt;br /&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoCaption" style="font-family: tahoma"&gt;&lt;font size="2"&gt;Figure &lt;span&gt;3&lt;/span&gt; - Aspnet Futures Webparts without Update panel control&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;-As what you can see, we can drag and drop webparts in a certain WebZone, but when you do that, it will produce a flicker to the whole page because AFW does not support &lt;st1:city w:st="on"&gt;&lt;st1:place w:st="on"&gt;AJAX&lt;/st1:place&gt;&lt;/st1:city&gt; Update panel control.&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;span&gt;            &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/font&gt;&lt;v:shape id="_x0000_i1028" style="width: 6in; height: 291.75pt" type="#_x0000_t75"&gt;&lt;v:imagedata o:title="" src="file:///C:\DOCUME~1\vd185022\LOCALS~1\Temp\msohtml1\01\clip_image007.png" /&gt;&lt;/v:shape&gt;&lt;/p&gt;  &lt;p class="MsoCaption" style="font-family: tahoma"&gt;&lt;font size="2"&gt;Figure &lt;span&gt;4&lt;/span&gt; - Aspnet Futures without updatepanel in Firefox browser&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;-This time you can drag and drop webparts in firefox but without updatpanel, because If we placed webparts inside updatepanel then the drag and drop functionality will not work.&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;-As well as in IE browser when you drag and drop webparts between WebZone, the page will produce flicker because it does not support the ASPNET AJAX UpdatePanel.&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;o:p&gt;This means that the ASPNET Futures are still not Stable with ASPNET 2.0 version.     &lt;br /&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;According to ASPNET Team that &lt;span style="color: blue"&gt;“The current version of the AJAX Futures has a bug when using WebParts inside an UpdatePanel. We are investigating and this will be fixed in a later release of the AJAX Futures”&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;o:p&gt;Note: &lt;/o:p&gt;&lt;/font&gt;&lt;font size="2"&gt;To get things working in all browsers including the cross browser drag-and-drop feature then you would need to use Visual studio 2008 / VWD 2008 with latest version of the Microsoft ASPNET Futures (AJAX Control Toolkit 3.5).. see this post for more info: &lt;a href="http://geekswithblogs.net/dotNETvinz/archive/2008/09/12/ajax-enabled-webparts-and-firefox-drag-and-drop.aspx"&gt;Ajax Enabled WebParts and FireFox Drag and Drop&lt;/a&gt;      &lt;br /&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: -27pt; font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;strong&gt;CUST CUSTOM WEBPARTS WITH ADDED CUSTOM VERBS&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font size="2"&gt;&lt;o:p&gt;      &lt;/o:p&gt;&lt;/font&gt;&lt;font size="2"&gt;As expected, Standard Webparts can be extended, we can even override the classes that molds webparts. Since we can extend standard webparts, I have created a custom WebpartZone with Added verbs so that we can move webparts in Firefox browser without drag and drop functionality. However Firebox browser does not recognize Webpart Verb Menu.&lt;/font&gt;&lt;font size="2"&gt;&lt;span&gt;&lt;span style="font-weight: normal; font-size: 7pt; line-height: normal; font-style: normal; font-variant: normal; font-size-adjust: none; font-stretch: normal"&gt;   &lt;/span&gt;&lt;/span&gt;Webpart Verb Menu is where the option resides, like the minimize, close and so on. See figure below for a better look:&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; font-family: tahoma"&gt; &lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;img height="340" alt="" src="/images/geekswithblogs_net/dotNETvinz/f6.JPG" width="573" /&gt;      &lt;br /&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; font-family: tahoma"&gt;&lt;font size="2"&gt;     &lt;br /&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; font-family: tahoma"&gt;&lt;font size="2"&gt;For details please see:&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;a href="http://geekswithblogs.net/dotNETvinz/archive/2009/04/14/enhanced-custom-webpartzone-with-custom-move-option-verbs-in-asp.net.aspx"&gt;Enhanced Custom WebPartZone with Custom Move Option Verbs in ASP.NET 2.0&lt;/a&gt;  &lt;/font&gt;&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;strong&gt;CUSTOM WEBPART IN IE BROWSER&lt;o:p&gt;&lt;/o:p&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;o:p&gt;     &lt;br /&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;o:p&gt;&lt;img height="387" alt="" src="/images/geekswithblogs_net/dotNETvinz/f7.JPG" width="576" /&gt; &lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;v:shape id="_x0000_i1031" style="width: 6in; height: 279.75pt" type="#_x0000_t75"&gt;&lt;v:imagedata o:title="" src="file:///C:\DOCUME~1\vd185022\LOCALS~1\Temp\msohtml1\01\clip_image013.png" /&gt;&lt;/v:shape&gt;&lt;font size="2"&gt;&lt;img height="373" alt="" src="file:///C:/DOCUME~1/vd185022/LOCALS~1/Temp/msohtml1/01/clip_image014.jpg" width="576" v:shapes="_x0000_i1031" /&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoCaption" style="font-family: tahoma"&gt;&lt;font size="2"&gt;Figure &lt;span&gt;7&lt;/span&gt;-Custom Webparts in IE&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; font-family: tahoma"&gt;&lt;font size="2"&gt;Those options will allow you to move webparts from left, right, up or down instead of drag and drop.&lt;/font&gt;&lt;font size="2"&gt;We can also use the drag and drop functionality of webparts if you like, means that we can do both functionalities in IE browser&lt;/font&gt;&lt;font size="3"&gt;.&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;strong&gt;CUSTOM WEBPART IN FIREFOX &lt;span&gt; &lt;/span&gt;BROWSER&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt; &lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;img height="289" alt="" src="/images/geekswithblogs_net/dotNETvinz/f8.JPG" width="575" /&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/strong&gt;&lt;/font&gt;&lt;v:shape id="_x0000_i1032" style="width: 431.25pt; height: 218.25pt" type="#_x0000_t75"&gt;&lt;v:imagedata o:title="" src="file:///C:\DOCUME~1\vd185022\LOCALS~1\Temp\msohtml1\01\clip_image015.png" /&gt;&lt;/v:shape&gt;&lt;/p&gt;  &lt;p class="MsoCaption" style="font-family: tahoma"&gt;&lt;font size="2"&gt;Figure &lt;span&gt;8&lt;/span&gt; - Custom Webparts in Firefox&lt;/font&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;     &lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;span&gt;&lt;span style="font-weight: normal; font-size: 7pt; line-height: normal; font-style: normal; font-variant: normal; font-size-adjust: none; font-stretch: normal"&gt; &lt;/span&gt;&lt;/span&gt;As what you have seen, firefox browser does not recognize those Menu Verbs that’s why the verbs are rendered in that horizonal layout. But you can still &lt;strong&gt;move&lt;/strong&gt; webparts in different WebZones without the drag and drop functionality&lt;/font&gt;&lt;/div&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; font-family: tahoma"&gt;&lt;font size="2"&gt;Does not support drag and drop functionalty.&lt;/font&gt;&lt;/div&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt;  &lt;div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:d609ecb7-3328-4d28-80b8-957552966040" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/ASP.NET" rel="tag"&gt;ASP.NET&lt;/a&gt;,&lt;a href="http://technorati.com/tags/WebParts" rel="tag"&gt;WebParts&lt;/a&gt;&lt;/div&gt; &lt;img src="http://geekswithblogs.net/dotNETvinz/aggbug/132560.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Vincent Maverick Durano</dc:creator>
            <guid>http://geekswithblogs.net/dotNETvinz/archive/2009/06/01/comparison-between-standard-webparts-aspnet-futures-webparts-and-custom-webparts.aspx</guid>
            <pubDate>Mon, 01 Jun 2009 10:27:51 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/dotNETvinz/comments/132560.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/dotNETvinz/archive/2009/06/01/comparison-between-standard-webparts-aspnet-futures-webparts-and-custom-webparts.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/dotNETvinz/comments/commentRss/132560.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/dotNETvinz/services/trackbacks/132560.aspx</trackback:ping>
        </item>
        <item>
            <title>Enhanced Custom WebPartZone with Custom Move Option Verbs in ASP.NET 2.0</title>
            <link>http://geekswithblogs.net/dotNETvinz/archive/2009/04/14/enhanced-custom-webpartzone-with-custom-move-option-verbs-in-asp.net.aspx</link>
            <description>&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;img alt="" src="/images/geekswithblogs_net/dotNETvinz/CustomWebZone.JPG" width="606" height="341" /&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;span style="font-size: 10pt"&gt;This example shows the enhanced version of my previous example about &lt;a href="../../../../dotNETvinz/archive/2008/07/23/creating-custom-webpartzones-with-custom-verbs-move-right-move-left.aspx"&gt;Creating Custom WebPartZones with Custom verbs (Move right/ Move Left).&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;span style="font-size: 10pt"&gt;One of the most common issues with ASPNET WebPart in ASPNET 2.0 is the drag-and-drop functionality in firefox. As you may know the drag-and-drop feature of WebParts will not work in firefox once it is placed inside an UpdatePanel control. So in this article, I will show how are we going to move certain WebParts in different zones without the drag and drop functionality of the standard webpart. In order to achieve this, we need to create a custom WebPartZone with custom verb move options by extending the WebPartZone base class.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;span style="font-size: 10pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;span style="font-size: 10pt"&gt;What is added here are the MoveUp and MoveDown verbs with some validation for MoveRight and MoveLeft verbs.&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;span style="font-size: 10pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;span style="font-size: 10pt"&gt;To start, create a class under App_Code folder and write the following code blocks below for the Custom WebPartZone implementation:&lt;/span&gt;&lt;/p&gt;  &lt;div style="width: 600px; overflow: auto"&gt;&lt;!-- code formatted by http://manoli.net/csharpformat/ --&gt;   &lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; System;
&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Data;
&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Configuration;
&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Web;
&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Web.Security;
&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Security.Permissions;
&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Collections.Generic;
&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Web.UI;
&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Web.UI.WebControls;
&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Web.UI.WebControls.WebParts;
&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Web.UI.HtmlControls;
&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Collections;
&lt;span class="kwrd"&gt;using&lt;/span&gt; System.ComponentModel;
&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Drawing;
&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Drawing.Design;
&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Text;
&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Text.RegularExpressions;
&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Collections.Specialized;
&lt;span class="kwrd"&gt;using&lt;/span&gt; System.IO;

 
&lt;span class="rem"&gt;/// &amp;lt;summary&amp;gt;&lt;/span&gt;
&lt;span class="rem"&gt;/// Summary description for CustomWebZone&lt;/span&gt;
&lt;span class="rem"&gt;/// &amp;lt;/summary&amp;gt;&lt;/span&gt;
&lt;span class="rem"&gt;/// &lt;/span&gt;
&lt;span class="kwrd"&gt;namespace&lt;/span&gt; Samples.CustomWebZone.CS.Controls
{

   &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; CustomZone : WebPartZone
   {

      &lt;span class="kwrd"&gt;public&lt;/span&gt; CustomZone(){
            &lt;span class="rem"&gt;//&lt;/span&gt;
            &lt;span class="rem"&gt;// TODO: Add constructor logic here&lt;/span&gt;
            &lt;span class="rem"&gt;//&lt;/span&gt;
      }

    &lt;span class="preproc"&gt;#region&lt;/span&gt; Add Custom Verbs to List

    &lt;span class="kwrd"&gt;protected&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; OnCreateVerbs(WebPartVerbsEventArgs e)
    {
        &lt;span class="kwrd"&gt;string&lt;/span&gt; CustomZone_Id = &lt;span class="kwrd"&gt;this&lt;/span&gt;.ID;
        List&amp;lt;WebPartVerb&amp;gt; newVerbs = &lt;span class="kwrd"&gt;new&lt;/span&gt; List&amp;lt;WebPartVerb&amp;gt;();

        &lt;span class="kwrd"&gt;if&lt;/span&gt; (CustomZone_Id == &lt;span class="str"&gt;"CustomZone3"&lt;/span&gt;)
            { newVerbs.Add(&lt;span class="kwrd"&gt;new&lt;/span&gt; DisableMoveRight(OnMoveRight)); }
            &lt;span class="kwrd"&gt;else&lt;/span&gt;
            { newVerbs.Add(&lt;span class="kwrd"&gt;new&lt;/span&gt; MoveToRight(OnMoveRight)); }
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (CustomZone_Id == &lt;span class="str"&gt;"CustomZone1"&lt;/span&gt;)
            { newVerbs.Add(&lt;span class="kwrd"&gt;new&lt;/span&gt; DisableMoveLeft(OnMoveLeft)); }
            &lt;span class="kwrd"&gt;else&lt;/span&gt;
            { newVerbs.Add(&lt;span class="kwrd"&gt;new&lt;/span&gt; MoveToLeft(OnMoveLeft)); }

        newVerbs.Add(&lt;span class="kwrd"&gt;new&lt;/span&gt; MoveToDown(OnMoveDown));
        newVerbs.Add(&lt;span class="kwrd"&gt;new&lt;/span&gt; MoveToUp(OnMoveUp));
        e.Verbs = &lt;span class="kwrd"&gt;new&lt;/span&gt; WebPartVerbCollection(e.Verbs, newVerbs);
        &lt;span class="kwrd"&gt;base&lt;/span&gt;.OnCreateVerbs(e);
    }

    &lt;span class="preproc"&gt;#endregion&lt;/span&gt;
       
    &lt;span class="preproc"&gt;#region&lt;/span&gt; MoveRight Event Handler
    &lt;span class="kwrd"&gt;void&lt;/span&gt; OnMoveRight(&lt;span class="kwrd"&gt;object&lt;/span&gt; sender, WebPartEventArgs e)
    {
        &lt;span class="kwrd"&gt;int&lt;/span&gt; wpcount = (&lt;span class="kwrd"&gt;int&lt;/span&gt;)e.WebPart.Zone.WebParts.Count;&lt;span class="rem"&gt;//gets the total number of webparts that is present in a particular zone&lt;/span&gt;
        &lt;span class="kwrd"&gt;int&lt;/span&gt; wpindex = (&lt;span class="kwrd"&gt;int&lt;/span&gt;)e.WebPart.ZoneIndex;&lt;span class="rem"&gt;//get the webpart index within the zone&lt;/span&gt;

        &lt;span class="kwrd"&gt;string&lt;/span&gt; zname = (&lt;span class="kwrd"&gt;string&lt;/span&gt;)e.WebPart.Zone.ID; &lt;span class="rem"&gt;//gets the zone name&lt;/span&gt;
        &lt;span class="kwrd"&gt;string&lt;/span&gt; del = &lt;span class="str"&gt;"e"&lt;/span&gt;;
        &lt;span class="kwrd"&gt;string&lt;/span&gt;[] temp = zname.Split(del.ToCharArray());&lt;span class="rem"&gt;//splits the name to get the last numeric value&lt;/span&gt;
        &lt;span class="kwrd"&gt;int&lt;/span&gt; zid = &lt;span class="kwrd"&gt;int&lt;/span&gt;.Parse(temp[1].ToString());&lt;span class="rem"&gt;// get the numeric value of a zone&lt;/span&gt;

        WebPartManager wpm1 = WebPartManager.GetCurrentWebPartManager(Page);&lt;span class="rem"&gt;//gets the available webpartmanager on the page&lt;/span&gt;

        &lt;span class="kwrd"&gt;if&lt;/span&gt; (zid &amp;lt; 3)
        {
            GenericWebPart part = (GenericWebPart)wpm1.Zones[zid - 1].WebParts[wpindex]; &lt;span class="rem"&gt;//get the current control being move within the zone&lt;/span&gt;
            wpm1.MoveWebPart(part, wpm1.Zones[zid], wpindex);&lt;span class="rem"&gt;//move the webpart to another or within a zone * e.WebPart.Zone.WebParts.Count&lt;/span&gt;
        }
    }

    &lt;span class="preproc"&gt;#endregion&lt;/span&gt;

    &lt;span class="preproc"&gt;#region&lt;/span&gt; MoveLeft Event Handler

    &lt;span class="kwrd"&gt;void&lt;/span&gt; OnMoveLeft(&lt;span class="kwrd"&gt;object&lt;/span&gt; sender, WebPartEventArgs e)
    {
        HttpContext.Current.Session[&lt;span class="str"&gt;"CustomZone.Count"&lt;/span&gt;] = 0;&lt;span class="rem"&gt;//reset session to zero&lt;/span&gt;
        &lt;span class="kwrd"&gt;int&lt;/span&gt; wpcount = (&lt;span class="kwrd"&gt;int&lt;/span&gt;)e.WebPart.Zone.WebParts.Count;&lt;span class="rem"&gt;//gets the total number of webparts that is present in a particular zone&lt;/span&gt;
        &lt;span class="kwrd"&gt;int&lt;/span&gt; wpindex = (&lt;span class="kwrd"&gt;int&lt;/span&gt;)e.WebPart.ZoneIndex;&lt;span class="rem"&gt;//get the webpart index location within the zone&lt;/span&gt;
        &lt;span class="kwrd"&gt;string&lt;/span&gt; zname = (&lt;span class="kwrd"&gt;string&lt;/span&gt;)e.WebPart.Zone.ID; &lt;span class="rem"&gt;//gets the zone name&lt;/span&gt;
        &lt;span class="kwrd"&gt;string&lt;/span&gt; del = &lt;span class="str"&gt;"e"&lt;/span&gt;;
        &lt;span class="kwrd"&gt;string&lt;/span&gt;[] temp = zname.Split(del.ToCharArray());&lt;span class="rem"&gt;//splits the name to get the last numeric value&lt;/span&gt;
        &lt;span class="kwrd"&gt;int&lt;/span&gt; zid = &lt;span class="kwrd"&gt;int&lt;/span&gt;.Parse(temp[1].ToString());&lt;span class="rem"&gt;// get the numeric value of a zone&lt;/span&gt;
        HttpContext.Current.Session[&lt;span class="str"&gt;"CustomZone.Count"&lt;/span&gt;] = zid - 1;

        WebPartManager wpm1 = WebPartManager.GetCurrentWebPartManager(Page);&lt;span class="rem"&gt;//gets the available webpartmanager on the page&lt;/span&gt;

        &lt;span class="kwrd"&gt;if&lt;/span&gt; (zid != 1)
        {
            GenericWebPart part = (GenericWebPart)wpm1.Zones[zid - 1].WebParts[wpindex]; &lt;span class="rem"&gt;//get the current control being move within the zone&lt;/span&gt;
            wpm1.MoveWebPart(part, wpm1.Zones[zid - 2], wpindex);&lt;span class="rem"&gt;//move the webpart to another or within a zone&lt;/span&gt;
        }
    }

    &lt;span class="preproc"&gt;#endregion&lt;/span&gt;

    &lt;span class="preproc"&gt;#region&lt;/span&gt; GoDown Event Handler

    &lt;span class="kwrd"&gt;void&lt;/span&gt; OnMoveDown(&lt;span class="kwrd"&gt;object&lt;/span&gt; sender, WebPartEventArgs e)
    {
        &lt;span class="kwrd"&gt;int&lt;/span&gt; wpcount = (&lt;span class="kwrd"&gt;int&lt;/span&gt;)e.WebPart.Zone.WebParts.Count;&lt;span class="rem"&gt;//gets the total number of webparts that is present in a particular zone&lt;/span&gt;
        &lt;span class="kwrd"&gt;int&lt;/span&gt; wpindex = (&lt;span class="kwrd"&gt;int&lt;/span&gt;)e.WebPart.ZoneIndex;&lt;span class="rem"&gt;//get the webpart index location within the zone&lt;/span&gt;
        &lt;span class="kwrd"&gt;string&lt;/span&gt; zname = (&lt;span class="kwrd"&gt;string&lt;/span&gt;)e.WebPart.Zone.ID; &lt;span class="rem"&gt;//gets the zone name&lt;/span&gt;
        &lt;span class="kwrd"&gt;string&lt;/span&gt; del = &lt;span class="str"&gt;"e"&lt;/span&gt;;
        &lt;span class="kwrd"&gt;string&lt;/span&gt;[] temp = zname.Split(del.ToCharArray());&lt;span class="rem"&gt;//splits the name to get the last numeric value&lt;/span&gt;
        &lt;span class="kwrd"&gt;int&lt;/span&gt; zid = &lt;span class="kwrd"&gt;int&lt;/span&gt;.Parse(temp[1].ToString());&lt;span class="rem"&gt;// get the numeric value of a zone&lt;/span&gt;
        WebPartManager wpm1 = WebPartManager.GetCurrentWebPartManager(Page);&lt;span class="rem"&gt;//gets the available webpartmanager on the page&lt;/span&gt;
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (wpindex &amp;lt; wpcount - 1)
        {
            GenericWebPart part = (GenericWebPart)wpm1.Zones[zid - 1].WebParts[wpindex]; &lt;span class="rem"&gt;//get the current control being move within the zone&lt;/span&gt;
            wpm1.MoveWebPart(part, wpm1.Zones[zid - 1], wpindex + 1);&lt;span class="rem"&gt;//move the webpart to another or within a zone&lt;/span&gt;
        }
        &lt;span class="kwrd"&gt;else&lt;/span&gt;
        {
            &lt;span class="rem"&gt;//some code here for vaildation&lt;/span&gt;
        }
    }

    &lt;span class="preproc"&gt;#endregion&lt;/span&gt;

    &lt;span class="preproc"&gt;#region&lt;/span&gt; GoUp Event Handler
    &lt;span class="kwrd"&gt;void&lt;/span&gt; OnMoveUp(&lt;span class="kwrd"&gt;object&lt;/span&gt; sender, WebPartEventArgs e)
    {
        &lt;span class="kwrd"&gt;int&lt;/span&gt; wpcount = (&lt;span class="kwrd"&gt;int&lt;/span&gt;)e.WebPart.Zone.WebParts.Count;&lt;span class="rem"&gt;//gets the total number of webparts that is present in a particular zone&lt;/span&gt;
        &lt;span class="kwrd"&gt;int&lt;/span&gt; wpindex = (&lt;span class="kwrd"&gt;int&lt;/span&gt;)e.WebPart.ZoneIndex;&lt;span class="rem"&gt;//get the webpart index location within the zone&lt;/span&gt;
        &lt;span class="kwrd"&gt;string&lt;/span&gt; zname = (&lt;span class="kwrd"&gt;string&lt;/span&gt;)e.WebPart.Zone.ID; &lt;span class="rem"&gt;//gets the zone name&lt;/span&gt;
        &lt;span class="kwrd"&gt;string&lt;/span&gt; del = &lt;span class="str"&gt;"e"&lt;/span&gt;;
        &lt;span class="kwrd"&gt;string&lt;/span&gt;[] temp = zname.Split(del.ToCharArray());&lt;span class="rem"&gt;//splits the name to get the last numeric value&lt;/span&gt;
        &lt;span class="kwrd"&gt;int&lt;/span&gt; zid = &lt;span class="kwrd"&gt;int&lt;/span&gt;.Parse(temp[1].ToString());&lt;span class="rem"&gt;// get the numeric value of a zone&lt;/span&gt;
        WebPartManager wpm1 = WebPartManager.GetCurrentWebPartManager(Page);&lt;span class="rem"&gt;//gets the available webpartmanager on the page&lt;/span&gt;
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (wpindex != 0)
        {
            HttpContext.Current.Session[&lt;span class="str"&gt;"zoneindex"&lt;/span&gt;] = &lt;span class="kwrd"&gt;null&lt;/span&gt;;
            GenericWebPart part = (GenericWebPart)wpm1.Zones[zid - 1].WebParts[wpindex]; &lt;span class="rem"&gt;//get the current control being move within the zone&lt;/span&gt;
            wpm1.MoveWebPart(part, wpm1.Zones[zid - 1], wpindex - 1);&lt;span class="rem"&gt;//move the webpart to another or within a zone&lt;/span&gt;
        }
        &lt;span class="kwrd"&gt;else&lt;/span&gt;
        {
            &lt;span class="rem"&gt;//some code here for vaildation&lt;/span&gt;
        }
    }

    &lt;span class="preproc"&gt;#endregion&lt;/span&gt;
}

 
    &lt;span class="rem"&gt;//Internal Classes&lt;/span&gt;
    &lt;span class="preproc"&gt;#region&lt;/span&gt; Create Move Right Verb
    &lt;span class="kwrd"&gt;internal&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; MoveToRight : WebPartVerb
    {
        &lt;span class="kwrd"&gt;private&lt;/span&gt; &lt;span class="kwrd"&gt;const&lt;/span&gt; String _copyWebPartImageUrl = &lt;span class="str"&gt;"~/Images/right_arrow.png"&lt;/span&gt;;
        &lt;span class="kwrd"&gt;internal&lt;/span&gt; MoveToRight(WebPartEventHandler serverClickHandler)
            :
           &lt;span class="kwrd"&gt;base&lt;/span&gt;(&lt;span class="str"&gt;"MyVerbRight"&lt;/span&gt;, serverClickHandler)
        { }
        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; Text
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt; { &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="str"&gt;"Move Right"&lt;/span&gt;; }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { ;}
        }
        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; Description
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt;
            {
                &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="str"&gt;"Allows you to move webparts to the right zone "&lt;/span&gt;;
            }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { ; }
        }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;bool&lt;/span&gt; Enabled
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt;
            {
                &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;base&lt;/span&gt;.Enabled;
            }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { &lt;span class="kwrd"&gt;base&lt;/span&gt;.Enabled = value; }
        }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; ImageUrl
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt;
            {
                &lt;span class="kwrd"&gt;return&lt;/span&gt; _copyWebPartImageUrl;
            }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { ; }
        }
    }

    &lt;span class="kwrd"&gt;internal&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; DisableMoveRight : WebPartVerb
    {
        &lt;span class="kwrd"&gt;private&lt;/span&gt; &lt;span class="kwrd"&gt;const&lt;/span&gt; String _copyWebPartImageUrl = &lt;span class="str"&gt;"~/Images/disabled_right_arrow.png"&lt;/span&gt;;
        &lt;span class="kwrd"&gt;internal&lt;/span&gt; DisableMoveRight(WebPartEventHandler serverClickHandler)
            :
           &lt;span class="kwrd"&gt;base&lt;/span&gt;(&lt;span class="str"&gt;"Right"&lt;/span&gt;, serverClickHandler)
        { }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; Text
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt; { &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="str"&gt;"Move Right"&lt;/span&gt;; }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { ;}
        }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; Description
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt;
            {
               &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="str"&gt;"Unable to move "&lt;/span&gt;;
            }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { ; }
        }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;bool&lt;/span&gt; Enabled
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt; { &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;base&lt;/span&gt;.Enabled = &lt;span class="kwrd"&gt;false&lt;/span&gt;; }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { &lt;span class="kwrd"&gt;base&lt;/span&gt;.Enabled = value; }
        }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; ImageUrl
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt; { &lt;span class="kwrd"&gt;return&lt;/span&gt; _copyWebPartImageUrl; }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { ; }
        }
    }

    &lt;span class="preproc"&gt;#endregion&lt;/span&gt;

    &lt;span class="preproc"&gt;#region&lt;/span&gt; Create Move Left Verb

    &lt;span class="kwrd"&gt;internal&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; MoveToLeft : WebPartVerb
    {
        &lt;span class="kwrd"&gt;private&lt;/span&gt; &lt;span class="kwrd"&gt;const&lt;/span&gt; String _copyWebPartImageUrl = &lt;span class="str"&gt;"~/Images/left_arrow.png"&lt;/span&gt;;
        &lt;span class="kwrd"&gt;internal&lt;/span&gt; MoveToLeft(WebPartEventHandler serverClickHandler)
            :

           &lt;span class="kwrd"&gt;base&lt;/span&gt;(&lt;span class="str"&gt;"MyVerbLeft"&lt;/span&gt;, serverClickHandler)
        { }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; Text
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt; { &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="str"&gt;"Move Left"&lt;/span&gt;; }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { ;}
        }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; Description
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt;
            {
                &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="str"&gt;"Allows you to move webparts to the left zone "&lt;/span&gt;;
            }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { ; }
        }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;bool&lt;/span&gt; Enabled
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt; { &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;base&lt;/span&gt;.Enabled; }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { &lt;span class="kwrd"&gt;base&lt;/span&gt;.Enabled = value; }
        }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; ImageUrl
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt; { &lt;span class="kwrd"&gt;return&lt;/span&gt; _copyWebPartImageUrl; }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { ; }
        }
    }


    &lt;span class="kwrd"&gt;internal&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; DisableMoveLeft : WebPartVerb
    {
        &lt;span class="kwrd"&gt;private&lt;/span&gt; &lt;span class="kwrd"&gt;const&lt;/span&gt; String _copyWebPartImageUrl = &lt;span class="str"&gt;"~/Images/disabled_left_arrow.png"&lt;/span&gt;;
        &lt;span class="kwrd"&gt;internal&lt;/span&gt; DisableMoveLeft(WebPartEventHandler serverClickHandler)
            :
           &lt;span class="kwrd"&gt;base&lt;/span&gt;(&lt;span class="str"&gt;"Left"&lt;/span&gt;, serverClickHandler)
        { }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; Text
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt; { &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="str"&gt;"Move Left"&lt;/span&gt;; }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { ;}
        }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; Description
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt;
            {
                &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="str"&gt;"Unable to move "&lt;/span&gt;;
            }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { ; }
        }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;bool&lt;/span&gt; Enabled
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt; { &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;base&lt;/span&gt;.Enabled = &lt;span class="kwrd"&gt;false&lt;/span&gt;; }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { &lt;span class="kwrd"&gt;base&lt;/span&gt;.Enabled = value; }
        }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; ImageUrl
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt; { &lt;span class="kwrd"&gt;return&lt;/span&gt; _copyWebPartImageUrl; }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { ; }
        }
    }

    &lt;span class="preproc"&gt;#endregion&lt;/span&gt;

    &lt;span class="preproc"&gt;#region&lt;/span&gt; Create Move Down Verb
    &lt;span class="kwrd"&gt;internal&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; MoveToDown : WebPartVerb
    {
        &lt;span class="kwrd"&gt;private&lt;/span&gt; &lt;span class="kwrd"&gt;const&lt;/span&gt; String _copyWebPartImageUrl = &lt;span class="str"&gt;"~/Images/down_arrow.png"&lt;/span&gt;;
        &lt;span class="kwrd"&gt;internal&lt;/span&gt; MoveToDown(WebPartEventHandler serverClickHandler)
            :
           &lt;span class="kwrd"&gt;base&lt;/span&gt;(&lt;span class="str"&gt;"MyVerbDown"&lt;/span&gt;, serverClickHandler)
        { }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; Text
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt; { &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="str"&gt;"Move Down"&lt;/span&gt;; }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { ;}
        }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; Description
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt;
            {
                &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="str"&gt;"Allows you to move webparts downward"&lt;/span&gt;;
            }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { ; }
        }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;bool&lt;/span&gt; Enabled
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt; { &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;base&lt;/span&gt;.Enabled; }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { &lt;span class="kwrd"&gt;base&lt;/span&gt;.Enabled = value; }
        }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; ImageUrl
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt; { &lt;span class="kwrd"&gt;return&lt;/span&gt; _copyWebPartImageUrl; }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { ; }
        }
    }

    &lt;span class="kwrd"&gt;internal&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; Disable_Down : WebPartVerb
    {
        &lt;span class="kwrd"&gt;private&lt;/span&gt; &lt;span class="kwrd"&gt;const&lt;/span&gt; String _copyWebPartImageUrl = &lt;span class="str"&gt;"~/Images/disabled_down_arrow.png"&lt;/span&gt;;
        &lt;span class="kwrd"&gt;internal&lt;/span&gt; Disable_Down(WebPartEventHandler serverClickHandler)
            :
           &lt;span class="kwrd"&gt;base&lt;/span&gt;(&lt;span class="str"&gt;"DownVerbDisabled"&lt;/span&gt;, serverClickHandler)
        { }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; Text
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt; { &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="str"&gt;"Move Down"&lt;/span&gt;; }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { ;}
        }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; Description
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt;
            {
                &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="str"&gt;"Unable to move"&lt;/span&gt;;
            }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { ; }
        }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;bool&lt;/span&gt; Enabled
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt; { &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;base&lt;/span&gt;.Enabled = &lt;span class="kwrd"&gt;false&lt;/span&gt;; }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { &lt;span class="kwrd"&gt;base&lt;/span&gt;.Enabled = value; }
        }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; ImageUrl
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt; { &lt;span class="kwrd"&gt;return&lt;/span&gt; _copyWebPartImageUrl; }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { ; }
        }
    }

    &lt;span class="preproc"&gt;#endregion&lt;/span&gt;

    &lt;span class="preproc"&gt;#region&lt;/span&gt; Create Move Up Verb
    &lt;span class="kwrd"&gt;internal&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; MoveToUp : WebPartVerb
    {
        &lt;span class="kwrd"&gt;private&lt;/span&gt; &lt;span class="kwrd"&gt;const&lt;/span&gt; String _copyWebPartImageUrl = &lt;span class="str"&gt;"~/Images/up_arrow.png"&lt;/span&gt;;
        &lt;span class="kwrd"&gt;internal&lt;/span&gt; MoveToUp(WebPartEventHandler serverClickHandler)
            :
           &lt;span class="kwrd"&gt;base&lt;/span&gt;(&lt;span class="str"&gt;"MyVerbUp"&lt;/span&gt;, serverClickHandler)
        { }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; Text
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt; { &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="str"&gt;"Move Up"&lt;/span&gt;; }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { ;}
        }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; Description
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt;
            {
                &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="str"&gt;"Allows you to move webparts upward"&lt;/span&gt;;
            }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { ; }
        }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;bool&lt;/span&gt; Enabled
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt; { &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;base&lt;/span&gt;.Enabled; }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { &lt;span class="kwrd"&gt;base&lt;/span&gt;.Enabled = value; }
        }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;override&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; ImageUrl
        {
            &lt;span class="kwrd"&gt;get&lt;/span&gt; { &lt;span class="kwrd"&gt;return&lt;/span&gt; _copyWebPartImageUrl; }
            &lt;span class="kwrd"&gt;set&lt;/span&gt; { ; }
        }
    }

    &lt;span class="preproc"&gt;#endregion&lt;/span&gt;
}&lt;/pre&gt;
&lt;/div&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;span style="font-size: 10pt"&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;span style="font-size: 10pt"&gt;Please note that in the above implementation, it requires you to have three WebZones in the page.&lt;span&gt; If you have more than 3 WebZones, y&lt;/span&gt;ou can tweak the code above based on your requirements.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;span style="font-size: 10pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;span style="font-size: 10pt"&gt;Also be sure to create a folder for storing your verbs images and set the path of the image in the _copyWebPartImageUrl  for you to see those move option verbs image in the WebParts menu.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;span style="font-size: 10pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;span style="font-size: 10pt"&gt;Important:&lt;/span&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;font face="Tahoma"&gt;MoveToRight(), DisableMoveRight(), MoveToLeft(), DisableMoveLeft, MoveToDown() and MoveToUp() are the names of the methods where the custom WebPart verbs are created including its properties like imageUrl, Title, Description and so on. &lt;/font&gt;&lt;/li&gt;

  &lt;li&gt;&lt;font face="Tahoma"&gt;OnMoveRight(),OnMoveLeft(), OnMoveDown and OnMoveUp() are the Event handlers for that custom verbs being created. It is where the moving of webparts is manipulated. &lt;/font&gt;&lt;/li&gt;

  &lt;li&gt;&lt;font face="Tahoma"&gt;OnCreateVerb() is an overridden method which allows you to add your own custom verbs to the list of the standard WebPart Verbs collection. &lt;/font&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;span style="font-size: 10pt"&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;span style="font-size: 10pt"&gt;Using the Custom WebZone&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;font face="Tahoma"&gt;1. Add a new WebForm and switch to source view (aspx side) 
    &lt;br /&gt;2. Add and Register the namespace of the class which contains the custom control that was created above. See below:&lt;/font&gt; &lt;/p&gt;
&lt;!-- code formatted by http://manoli.net/csharpformat/ --&gt;

&lt;pre class="csharpcode"&gt;&lt;span class="asp"&gt;&amp;lt;%@ Register TagPrefix="MyWebZone" 
             namespace="Samples.CustomWebZone.CS.Controls" %&amp;gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt; &lt;/p&gt;

&lt;p&gt;&lt;font face="Tahoma"&gt;Note that you can changed the TagPrefix value to whatever you like. &lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;font face="Tahoma"&gt;3. Add a standard WebPartManager at the very top of the page. 
    &lt;br /&gt;4. Add three (3) standard WebPartZone in the page. 

    &lt;br /&gt;5. Replace the tagprefix and the name of the standard asp WebPartZone to the tagprefix and name of the custom Webpartzone created earlier like below: &lt;/font&gt;&lt;/p&gt;
&lt;!-- code formatted by http://manoli.net/csharpformat/ --&gt;

&lt;pre class="csharpcode"&gt;REPLACE &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;asp:WebPartZone&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt; to &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;MyWebZone:CustomZone&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt; &lt;/pre&gt;

&lt;p&gt;&lt;font face="Tahoma"&gt;6. Be sure to name the ID of the Custom WebZone the same as the class name of the Custom WebZone with a numeric character like CustomZone1, CustomZone2 and CustomZone3. &lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;span style="font-size: 10pt"&gt;See the whole ASPX markup below.&lt;/span&gt;&lt;/p&gt;

&lt;div style="width: 600px; overflow: auto"&gt;&lt;!-- code formatted by http://manoli.net/csharpformat/ --&gt;
  &lt;pre class="csharpcode"&gt;&lt;span class="asp"&gt;&amp;lt;%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %&amp;gt;&lt;/span&gt;
&lt;span class="asp"&gt;&amp;lt;%@ Register TagPrefix="MyWebZone" namespace="Samples.CustomWebZone.CS.Controls" %&amp;gt;&lt;/span&gt;

&lt;span class="kwrd"&gt;&amp;lt;!&lt;/span&gt;&lt;span class="html"&gt;DOCTYPE&lt;/span&gt; &lt;span class="attr"&gt;HTML&lt;/span&gt; &lt;span class="attr"&gt;PUBLIC&lt;/span&gt; &lt;span class="kwrd"&gt;"-//W3C//DTD HTML 4.01 Transitional//EN"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;html&lt;/span&gt; &lt;span class="attr"&gt;xmlns&lt;/span&gt;&lt;span class="kwrd"&gt;="http://www.w3.org/1999/xhtml"&lt;/span&gt; &lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;

&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;head&lt;/span&gt; &lt;span class="attr"&gt;id&lt;/span&gt;&lt;span class="kwrd"&gt;="Head1"&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;title&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;Custom WebZone Demo&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;title&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;head&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;

&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;body&lt;/span&gt; &lt;span class="attr"&gt;style&lt;/span&gt;&lt;span class="kwrd"&gt;=" width:100%; height:100%;"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;form&lt;/span&gt; &lt;span class="attr"&gt;id&lt;/span&gt;&lt;span class="kwrd"&gt;="form1"&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt; &lt;span class="attr"&gt;style&lt;/span&gt;&lt;span class="kwrd"&gt;=" width:100%; height:100%;"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;asp:WebPartManager&lt;/span&gt; &lt;span class="attr"&gt;ID&lt;/span&gt;&lt;span class="kwrd"&gt;="WebPartManager1"&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;asp:WebPartManager&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;table&lt;/span&gt; &lt;span class="attr"&gt;style&lt;/span&gt;&lt;span class="kwrd"&gt;=" width:100%; height:100%;"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;tr&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;td&lt;/span&gt; &lt;span class="attr"&gt;valign&lt;/span&gt;&lt;span class="kwrd"&gt;="top"&lt;/span&gt; &lt;span class="attr"&gt;style&lt;/span&gt;&lt;span class="kwrd"&gt;=" width:30%; height:100%;"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;MyWebZone:CustomZone&lt;/span&gt; &lt;span class="attr"&gt;ID&lt;/span&gt;&lt;span class="kwrd"&gt;="CustomZone1"&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt; &lt;span class="attr"&gt;style&lt;/span&gt;&lt;span class="kwrd"&gt;=" width:100%; height:100%;"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;ZoneTemplate&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                            &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;asp:TextBox&lt;/span&gt; &lt;span class="attr"&gt;ID&lt;/span&gt;&lt;span class="kwrd"&gt;="TextBox1"&lt;/span&gt; &lt;span class="attr"&gt;Text&lt;/span&gt;&lt;span class="kwrd"&gt;="Hello ASP.NET"&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt; &lt;span class="attr"&gt;Title&lt;/span&gt;&lt;span class="kwrd"&gt;="Sample Text"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;asp:TextBox&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                        &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;ZoneTemplate&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;RestoreVerb&lt;/span&gt; &lt;span class="attr"&gt;ImageUrl&lt;/span&gt;&lt;span class="kwrd"&gt;="~/Images/maximize_blue.gif"&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;
                        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;CloseVerb&lt;/span&gt; &lt;span class="attr"&gt;ImageUrl&lt;/span&gt;&lt;span class="kwrd"&gt;="~/Images/close_blue.gif"&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;
                        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;MinimizeVerb&lt;/span&gt; &lt;span class="attr"&gt;ImageUrl&lt;/span&gt;&lt;span class="kwrd"&gt;="~/Images/minimize_blue.gif"&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;
                        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;PartTitleStyle&lt;/span&gt; &lt;span class="attr"&gt;BackColor&lt;/span&gt;&lt;span class="kwrd"&gt;="Silver"&lt;/span&gt; &lt;span class="attr"&gt;ForeColor&lt;/span&gt;&lt;span class="kwrd"&gt;="Blue"&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;
                        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;PartChromeStyle&lt;/span&gt; &lt;span class="attr"&gt;BorderColor&lt;/span&gt;&lt;span class="kwrd"&gt;="Gray"&lt;/span&gt; &lt;span class="attr"&gt;BorderStyle&lt;/span&gt;&lt;span class="kwrd"&gt;="Solid"&lt;/span&gt; &lt;span class="attr"&gt;BorderWidth&lt;/span&gt;&lt;span class="kwrd"&gt;="1px"&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;
                    &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;MyWebZone:CustomZone&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;td&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;td&lt;/span&gt; &lt;span class="attr"&gt;valign&lt;/span&gt;&lt;span class="kwrd"&gt;="top"&lt;/span&gt; &lt;span class="attr"&gt;style&lt;/span&gt;&lt;span class="kwrd"&gt;=" width:30%; height:100%;"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;MyWebZone:CustomZone&lt;/span&gt; &lt;span class="attr"&gt;ID&lt;/span&gt;&lt;span class="kwrd"&gt;="CustomZone2"&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt; &lt;span class="attr"&gt;style&lt;/span&gt;&lt;span class="kwrd"&gt;=" width:100%; height:100%;"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;RestoreVerb&lt;/span&gt; &lt;span class="attr"&gt;ImageUrl&lt;/span&gt;&lt;span class="kwrd"&gt;="~/Images/maximize_blue.gif"&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;
                        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;CloseVerb&lt;/span&gt; &lt;span class="attr"&gt;ImageUrl&lt;/span&gt;&lt;span class="kwrd"&gt;="~/Images/close_blue.gif"&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;
                        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;MinimizeVerb&lt;/span&gt; &lt;span class="attr"&gt;ImageUrl&lt;/span&gt;&lt;span class="kwrd"&gt;="~/Images/minimize_blue.gif"&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;
                        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;PartTitleStyle&lt;/span&gt; &lt;span class="attr"&gt;BackColor&lt;/span&gt;&lt;span class="kwrd"&gt;="Silver"&lt;/span&gt; &lt;span class="attr"&gt;ForeColor&lt;/span&gt;&lt;span class="kwrd"&gt;="Blue"&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;
                        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;PartChromeStyle&lt;/span&gt; &lt;span class="attr"&gt;BorderColor&lt;/span&gt;&lt;span class="kwrd"&gt;="Gray"&lt;/span&gt; &lt;span class="attr"&gt;BorderStyle&lt;/span&gt;&lt;span class="kwrd"&gt;="Solid"&lt;/span&gt; &lt;span class="attr"&gt;BorderWidth&lt;/span&gt;&lt;span class="kwrd"&gt;="1px"&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;
                        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;ZoneTemplate&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                            &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;asp:Calendar&lt;/span&gt; &lt;span class="attr"&gt;ID&lt;/span&gt;&lt;span class="kwrd"&gt;="Calendar2"&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;asp:Calendar&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                        &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;ZoneTemplate&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                    &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;MyWebZone:CustomZone&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;               
                &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;td&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;td&lt;/span&gt; &lt;span class="attr"&gt;valign&lt;/span&gt;&lt;span class="kwrd"&gt;="top"&lt;/span&gt; &lt;span class="attr"&gt;style&lt;/span&gt;&lt;span class="kwrd"&gt;=" width:30%; height:100%;"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;MyWebZone:CustomZone&lt;/span&gt; &lt;span class="attr"&gt;ID&lt;/span&gt;&lt;span class="kwrd"&gt;="CustomZone3"&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt; &lt;span class="attr"&gt;style&lt;/span&gt;&lt;span class="kwrd"&gt;=" width:100%; height:100%;"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;RestoreVerb&lt;/span&gt; &lt;span class="attr"&gt;ImageUrl&lt;/span&gt;&lt;span class="kwrd"&gt;="~/Images/maximize_blue.gif"&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;
                        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;CloseVerb&lt;/span&gt; &lt;span class="attr"&gt;ImageUrl&lt;/span&gt;&lt;span class="kwrd"&gt;="~/Images/close_blue.gif"&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;
                        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;MinimizeVerb&lt;/span&gt; &lt;span class="attr"&gt;ImageUrl&lt;/span&gt;&lt;span class="kwrd"&gt;="~/Images/minimize_blue.gif"&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;
                        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;PartTitleStyle&lt;/span&gt; &lt;span class="attr"&gt;BackColor&lt;/span&gt;&lt;span class="kwrd"&gt;="Silver"&lt;/span&gt; &lt;span class="attr"&gt;ForeColor&lt;/span&gt;&lt;span class="kwrd"&gt;="Blue"&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;
                        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;PartChromeStyle&lt;/span&gt; &lt;span class="attr"&gt;BorderColor&lt;/span&gt;&lt;span class="kwrd"&gt;="Gray"&lt;/span&gt; &lt;span class="attr"&gt;BorderStyle&lt;/span&gt;&lt;span class="kwrd"&gt;="Solid"&lt;/span&gt; &lt;span class="attr"&gt;BorderWidth&lt;/span&gt;&lt;span class="kwrd"&gt;="1px"&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;
                    &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;MyWebZone:CustomZone&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;                
                &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;td&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;tr&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;table&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;form&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;body&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;html&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;&lt;span style="font-family: arial"&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;7. Compile and run the application. 
  &lt;br /&gt;8. The output would look the same as shown in above screen shot. &lt;/p&gt;

&lt;p&gt;I hope you will find this article useful.&lt;/p&gt;

&lt;p style="font-family: tahoma; margin-left: 0.25in" class="MsoNormal"&gt;&lt;/p&gt;

&lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:148e1bab-c258-43aa-bc29-4b04bf8f4a10" class="wlWriterSmartContent"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/ASP.NET" rel="tag"&gt;ASP.NET&lt;/a&gt;,&lt;a href="http://technorati.com/tags/WebParts" rel="tag"&gt;WebParts&lt;/a&gt;,&lt;a href="http://technorati.com/tags/TipsTricks" rel="tag"&gt;TipsTricks&lt;/a&gt;,&lt;a href="http://technorati.com/tags/C%23" rel="tag"&gt;C#&lt;/a&gt;&lt;/div&gt; &lt;img src="http://geekswithblogs.net/dotNETvinz/aggbug/130970.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Vincent Maverick Durano</dc:creator>
            <guid>http://geekswithblogs.net/dotNETvinz/archive/2009/04/14/enhanced-custom-webpartzone-with-custom-move-option-verbs-in-asp.net.aspx</guid>
            <pubDate>Tue, 14 Apr 2009 04:20:38 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/dotNETvinz/comments/130970.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/dotNETvinz/archive/2009/04/14/enhanced-custom-webpartzone-with-custom-move-option-verbs-in-asp.net.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/dotNETvinz/comments/commentRss/130970.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/dotNETvinz/services/trackbacks/130970.aspx</trackback:ping>
        </item>
        <item>
            <title>ASP.NET WebPart with Skins</title>
            <link>http://geekswithblogs.net/dotNETvinz/archive/2009/04/14/asp.net-webpart-with-skins.aspx</link>
            <description>&lt;p&gt;&lt;/p&gt; &lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type" /&gt;&lt;meta name="ProgId" content="Word.Document" /&gt;&lt;meta name="Generator" content="Microsoft Word 11" /&gt;&lt;meta name="Originator" content="Microsoft Word 11" /&gt;&lt;link rel="File-List" href="file:///C:\DOCUME~1\vd185022\LOCALS~1\Temp\msohtml1\01\clip_filelist.xml" /&gt;&lt;style type="text/css"&gt;&lt;!--
 /* Font Definitions */
 @font-face
	{font-family:wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;
	mso-font-charset:2;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:0 268435456 0 0 -2147483648 0;}
 /* Style Definitions */
 p.msonormal, li.msonormal, div.msonormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
a:link, span.msohyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.msohyperlinkfollowed
	{color:#606420;
	text-decoration:underline;
	text-underline:single;}
@page section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.section1
	{page:section1;}
--&gt;&lt;/style&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;     &lt;br /&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;img alt="" src="/images/geekswithblogs_net/dotNETvinz/WZkins.JPG" width="563" height="289" /&gt;       &lt;br /&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;     &lt;br /&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;This example demonstrates on how to apply Skins to ASP.NET WebParts. Before we begin let us first understand the concept of the skins in ASP.NET.&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;What is a Skin file?&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-indent: 0.5in; font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;A Skin enables us to modify any of the properties applied to the server controls in our ASP.NET page. Skins can work in conjunction with CSS files or images. To create a Theme we can use a single skin file in the Theme Folder. The skin file extension should be always .skin.&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-indent: 0.5in; font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="text-indent: 0.5in; font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;For more information about ASPNET Themes and Skins then have a look at the following link below:&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/wcyt4fxb.aspx"&gt;http://msdn.microsoft.com/en-us/library/wcyt4fxb.aspx&lt;/a&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;strong&gt;STEP 1: Designing the WebPart page.&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;Note that for simplicity of this demo, I just set up the page markup like this:&lt;/font&gt;&lt;/p&gt;  &lt;div style="width: 600px; overflow: auto"&gt;&lt;!-- code formatted by http://manoli.net/csharpformat/ --&gt;   &lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;html&lt;/span&gt; &lt;span class="attr"&gt;xmlns&lt;/span&gt;&lt;span class="kwrd"&gt;="http://www.w3.org/1999/xhtml"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;

&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;head&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;title&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;WebParts with Skins&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;title&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;style&lt;/span&gt; &lt;span class="attr"&gt;type&lt;/span&gt;&lt;span class="kwrd"&gt;="text/css"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
        .style1
        {
            width: 100%;
        }
    &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;style&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;head&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;body&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;form&lt;/span&gt; &lt;span class="attr"&gt;id&lt;/span&gt;&lt;span class="kwrd"&gt;="form1"&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;asp:WebPartManager&lt;/span&gt; &lt;span class="attr"&gt;ID&lt;/span&gt;&lt;span class="kwrd"&gt;="WebPartManager1"&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt;&lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;
        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;table&lt;/span&gt; &lt;span class="attr"&gt;class&lt;/span&gt;&lt;span class="kwrd"&gt;="style1"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;tr&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;td&lt;/span&gt; &lt;span class="attr"&gt;colspan&lt;/span&gt;&lt;span class="kwrd"&gt;="3"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;asp:DropDownList&lt;/span&gt; &lt;span class="attr"&gt;ID&lt;/span&gt;&lt;span class="kwrd"&gt;="DropDownList1"&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt; &lt;span class="attr"&gt;AppendDataBoundItems&lt;/span&gt;&lt;span class="kwrd"&gt;="true"&lt;/span&gt; 
                        &lt;span class="attr"&gt;AutoPostBack&lt;/span&gt;&lt;span class="kwrd"&gt;="True"&lt;/span&gt; &lt;span class="attr"&gt;onselectedindexchanged&lt;/span&gt;&lt;span class="kwrd"&gt;="DropDownList1_SelectedIndexChanged"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;asp:ListItem&lt;/span&gt; &lt;span class="attr"&gt;Value&lt;/span&gt;&lt;span class="kwrd"&gt;="-1"&lt;/span&gt; &lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;Select Skin&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;asp:ListItem&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;asp:ListItem&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;Red&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;asp:ListItem&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;asp:ListItem&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;Blue&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;asp:ListItem&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;asp:ListItem&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;Green&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;asp:ListItem&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                    &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;asp:DropDownList&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;td&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;tr&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;tr&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;td&lt;/span&gt; &lt;span class="attr"&gt;valign&lt;/span&gt;&lt;span class="kwrd"&gt;="top"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;asp:WebPartZone&lt;/span&gt; &lt;span class="attr"&gt;ID&lt;/span&gt;&lt;span class="kwrd"&gt;="WebPartZone1"&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt; &lt;span class="attr"&gt;CssClass&lt;/span&gt;&lt;span class="kwrd"&gt;="style1"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;ZoneTemplate&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                            &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;asp:Calendar&lt;/span&gt; &lt;span class="attr"&gt;ID&lt;/span&gt;&lt;span class="kwrd"&gt;="Calendar1"&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;asp:Calendar&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                        &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;ZoneTemplate&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                    &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;asp:WebPartZone&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;td&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;td&lt;/span&gt; &lt;span class="attr"&gt;valign&lt;/span&gt;&lt;span class="kwrd"&gt;="top"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;asp:WebPartZone&lt;/span&gt; &lt;span class="attr"&gt;ID&lt;/span&gt;&lt;span class="kwrd"&gt;="WebPartZone2"&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt; &lt;span class="attr"&gt;CssClass&lt;/span&gt;&lt;span class="kwrd"&gt;="style1"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;ZoneTemplate&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                            &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;asp:TextBox&lt;/span&gt; &lt;span class="attr"&gt;ID&lt;/span&gt;&lt;span class="kwrd"&gt;="TextBox1"&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;asp:TextBox&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                        &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;ZoneTemplate&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                    &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;asp:WebPartZone&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;td&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;td&lt;/span&gt; &lt;span class="attr"&gt;valign&lt;/span&gt;&lt;span class="kwrd"&gt;="top"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;asp:WebPartZone&lt;/span&gt; &lt;span class="attr"&gt;ID&lt;/span&gt;&lt;span class="kwrd"&gt;="WebPartZone3"&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt; &lt;span class="attr"&gt;CssClass&lt;/span&gt;&lt;span class="kwrd"&gt;="style1"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;ZoneTemplate&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                            &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;asp:TextBox&lt;/span&gt; &lt;span class="attr"&gt;ID&lt;/span&gt;&lt;span class="kwrd"&gt;="TextBox2"&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;asp:TextBox&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                        &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;ZoneTemplate&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                    &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;asp:WebPartZone&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
                &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;td&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;tr&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;table&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;form&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;body&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;html&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;p style="font-family: tahoma; font-weight: bold" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma; font-weight: bold" class="MsoNormal"&gt;&lt;font size="2"&gt;STEP 2: Creating the Skin file.&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;The following are the steps on how to create a skin file in Visual studio:&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;First we need to check if the ASP.NET Theme folder exists in your project. If the Theme folder is not in your project then you can add this by right clicking on the project name &lt;span&gt;à&lt;/span&gt; Add ASP.NET folder &lt;span&gt;à&lt;/span&gt; then select Theme. You will notice that the App_Themes folder is automatically added to your project.&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;Now let’s add a new skin file under the App_Themes folder, to do this then just right click on the App_Themes folder &lt;span&gt;à&lt;/span&gt; Select Add new item &lt;span&gt;à&lt;/span&gt; Select Skin file. In this demo I named the skin file to WZSkin. &lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma; font-weight: bold" class="MsoNormal"&gt;&lt;font size="2"&gt;STEP 3: Setting the look and feel of the WebPartZones in the Skin file.&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;In .skin file we can create multiple definitions in respect of same server control. To create multiple definitions of a single element we can use the SkinID attribute to differentiate among the definitions. The value of SkinID can be anything.&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;For simplicity of this demo, I set up the look and feel of the WebPartZones like this at the WZSkin file:&lt;/font&gt;&lt;/p&gt;

&lt;div style="width: 600px; overflow: auto"&gt;&lt;!-- code formatted by http://manoli.net/csharpformat/ --&gt;
  &lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;asp:WebPartZone&lt;/span&gt;  &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt; &lt;span class="attr"&gt;SkinID&lt;/span&gt; = &lt;span class="kwrd"&gt;"Blue"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;PartTitleStyle&lt;/span&gt; &lt;span class="attr"&gt;BackColor&lt;/span&gt;&lt;span class="kwrd"&gt;="Blue"&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;PartChromeStyle&lt;/span&gt; &lt;span class="attr"&gt;BorderColor&lt;/span&gt;&lt;span class="kwrd"&gt;="Blue"&lt;/span&gt; &lt;span class="attr"&gt;BorderStyle&lt;/span&gt;&lt;span class="kwrd"&gt;="Solid"&lt;/span&gt; &lt;span class="attr"&gt;BorderWidth&lt;/span&gt;&lt;span class="kwrd"&gt;="1px"&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;asp:WebPartZone&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;

&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;asp:WebPartZone&lt;/span&gt;  &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt; &lt;span class="attr"&gt;SkinID&lt;/span&gt; = &lt;span class="kwrd"&gt;"Red"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;PartTitleStyle&lt;/span&gt; &lt;span class="attr"&gt;BackColor&lt;/span&gt;&lt;span class="kwrd"&gt;="Red"&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;PartChromeStyle&lt;/span&gt; &lt;span class="attr"&gt;BorderColor&lt;/span&gt;&lt;span class="kwrd"&gt;="Red"&lt;/span&gt; &lt;span class="attr"&gt;BorderStyle&lt;/span&gt;&lt;span class="kwrd"&gt;="Solid"&lt;/span&gt; &lt;span class="attr"&gt;BorderWidth&lt;/span&gt;&lt;span class="kwrd"&gt;="1px"&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;asp:WebPartZone&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;

&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;asp:WebPartZone&lt;/span&gt;  &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt; &lt;span class="attr"&gt;SkinID&lt;/span&gt; = &lt;span class="kwrd"&gt;"Green"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;PartTitleStyle&lt;/span&gt; &lt;span class="attr"&gt;BackColor&lt;/span&gt;&lt;span class="kwrd"&gt;="Green"&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;PartChromeStyle&lt;/span&gt; &lt;span class="attr"&gt;BorderColor&lt;/span&gt;&lt;span class="kwrd"&gt;="Green"&lt;/span&gt; &lt;span class="attr"&gt;BorderStyle&lt;/span&gt;&lt;span class="kwrd"&gt;="Solid"&lt;/span&gt; &lt;span class="attr"&gt;BorderWidth&lt;/span&gt;&lt;span class="kwrd"&gt;="1px"&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;asp:WebPartZone&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;Note that we set each WebZone with different SkinID to determine which skin set will be used based from the DropDownList value.&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;Also note that you can embed CSS to your Skin file.&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;Now, since we are done setting up our Skin file then we can proceed to the next step.&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma; font-weight: bold" class="MsoNormal"&gt;&lt;font size="2"&gt;STEP 4: Setting the SkinID programmatically.&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;In this demo, I simply use Session variable to hold the current value that was selected in the DropDownlist. If you wan’t to retain the current SkinID that was selected when you visit the page next time then you can store the SkinID value to the database instead of storing it in Session.&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;Here are the code blocks below for setting the SkinID.&lt;/font&gt;&lt;/p&gt;

&lt;div style="width: 600px; overflow: auto"&gt;&lt;!-- code formatted by http://manoli.net/csharpformat/ --&gt;
  &lt;pre class="csharpcode"&gt;   &lt;span class="kwrd"&gt;private&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; SetWebZoneSkins(&lt;span class="kwrd"&gt;string&lt;/span&gt; wzSkinSet){
        &lt;span class="kwrd"&gt;for&lt;/span&gt; (&lt;span class="kwrd"&gt;int&lt;/span&gt; i = 1; i &amp;lt;= 3; i++){
            WebPartZone wz = (WebPartZone)&lt;span class="kwrd"&gt;this&lt;/span&gt;.Page.FindControl(&lt;span class="str"&gt;"WebPartZone"&lt;/span&gt; + i);
            &lt;span class="kwrd"&gt;if&lt;/span&gt; (wz != &lt;span class="kwrd"&gt;null&lt;/span&gt;)
            { wz.SkinID = wzSkinSet; }
        }
    }

    &lt;span class="kwrd"&gt;protected&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; Page_PreInit(&lt;span class="kwrd"&gt;object&lt;/span&gt; sender, EventArgs e){
        &lt;span class="kwrd"&gt;if&lt;/span&gt; (Session[&lt;span class="str"&gt;"Skin"&lt;/span&gt;] != &lt;span class="kwrd"&gt;null&lt;/span&gt;){
            &lt;span class="rem"&gt;//Call the method for setting the SkinID of the WebZone&lt;/span&gt;
            SetWebZoneSkins(Session[&lt;span class="str"&gt;"Skin"&lt;/span&gt;].ToString());
            &lt;span class="rem"&gt;//Retain the Selected item of the DDL on postbacks&lt;/span&gt;
            DropDownList1.ClearSelection();
            DropDownList1.Items.FindByText(Session[&lt;span class="str"&gt;"Skin"&lt;/span&gt;].ToString()).Selected = &lt;span class="kwrd"&gt;true&lt;/span&gt;;
        }
        &lt;span class="kwrd"&gt;else&lt;/span&gt;{ 
            &lt;span class="rem"&gt;//set default skin to WebZone&lt;/span&gt;
        }
    }
    &lt;span class="kwrd"&gt;protected&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; DropDownList1_SelectedIndexChanged(&lt;span class="kwrd"&gt;object&lt;/span&gt; sender, EventArgs e){
        &lt;span class="rem"&gt;//Store the Selected Text in Session so that we can reference the values later&lt;/span&gt;
        Session[&lt;span class="str"&gt;"Skin"&lt;/span&gt;] = DropDownList1.SelectedItem.Text;
        &lt;span class="rem"&gt;//We need to call this line below so that we can set the Skins based on the DDL value&lt;/span&gt;
        Server.Transfer(&lt;span class="str"&gt;"Some{ag.aspx"&lt;/span&gt;);
    }&lt;/pre&gt;
&lt;/div&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;Note: Themes and Skins should be set at PreInit event because it is where all the controls are being initialized.&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma; font-weight: bold" class="MsoNormal"&gt;&lt;font size="2"&gt;STEP 5: Setting the Theme name in the page.&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;In order to work this out then we need to set the attribute Theme with its value like this below in the page declaration.&lt;/font&gt;&lt;/p&gt;
&lt;!-- code formatted by http://manoli.net/csharpformat/ --&gt;

&lt;pre class="csharpcode"&gt;&lt;span class="asp"&gt;&amp;lt;%@ Page Language="C#" AutoEventWireup="true" 
                       CodeFile="Default.aspx.cs" 
                       Inherits="Default" Theme="Theme1"  %&amp;gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;Compile and run your application.&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p style="font-family: tahoma" class="MsoNormal"&gt;&lt;font size="2"&gt;That’s it! Enjoy!&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:41d6b8e3-c7f9-4a47-a67b-dbfaae5a3e68" class="wlWriterSmartContent"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/ASP.NET" rel="tag"&gt;ASP.NET&lt;/a&gt;,&lt;a href="http://technorati.com/tags/WebParts" rel="tag"&gt;WebParts&lt;/a&gt;&lt;/div&gt;
&lt;font size="2"&gt;
  &lt;p style="font-family: tahoma" class="MsoNormal"&gt;
    &lt;br /&gt;&lt;/p&gt;
&lt;/font&gt; &lt;img src="http://geekswithblogs.net/dotNETvinz/aggbug/130960.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Vincent Maverick Durano</dc:creator>
            <guid>http://geekswithblogs.net/dotNETvinz/archive/2009/04/14/asp.net-webpart-with-skins.aspx</guid>
            <pubDate>Mon, 13 Apr 2009 22:51:36 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/dotNETvinz/comments/130960.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/dotNETvinz/archive/2009/04/14/asp.net-webpart-with-skins.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/dotNETvinz/comments/commentRss/130960.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/dotNETvinz/services/trackbacks/130960.aspx</trackback:ping>
        </item>
        <item>
            <title>Implementing ASP.NET WebParts with Different Authentication modes</title>
            <link>http://geekswithblogs.net/dotNETvinz/archive/2009/02/17/implementing-asp.net-webparts-with-different-authentication-modes.aspx</link>
            <description>&lt;p&gt;Just follow these tutorials below regarding how to implement  WebParts in ASP.NET based on different Authentication mode.   &lt;br /&gt;    &lt;br /&gt;&lt;a href="http://www.beansoftware.com/ASP.NET-Tutorials/Web-Parts.aspx"&gt;WEBPART with Windows Authentication&lt;/a&gt;    &lt;br /&gt;    &lt;br /&gt;&lt;a href="http://www.codeproject.com/KB/aspnet/anonywebparts.aspx"&gt;WEBPART with Anonymous Users&lt;/a&gt;    &lt;br /&gt;&lt;a href="http://www.eggheadcafe.com/tutorials/aspnet/0b6cdd68-c023-4f0d-9253-d980bc8b26bd/web-parts-and-form-based.aspx"&gt;     &lt;br /&gt;WEBPART with FORM Authentication&lt;/a&gt;    &lt;br /&gt;    &lt;br /&gt;Good Luck!&lt;/p&gt;  &lt;div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:0fe25f2f-c5ee-44e9-b8a8-ad4792ffacc1" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/ASP.NET" rel="tag"&gt;ASP.NET&lt;/a&gt;,&lt;a href="http://technorati.com/tags/WebParts" rel="tag"&gt;WebParts&lt;/a&gt;&lt;/div&gt; &lt;img src="http://geekswithblogs.net/dotNETvinz/aggbug/129485.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Vincent Maverick Durano</dc:creator>
            <guid>http://geekswithblogs.net/dotNETvinz/archive/2009/02/17/implementing-asp.net-webparts-with-different-authentication-modes.aspx</guid>
            <pubDate>Tue, 17 Feb 2009 10:01:06 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/dotNETvinz/comments/129485.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/dotNETvinz/archive/2009/02/17/implementing-asp.net-webparts-with-different-authentication-modes.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/dotNETvinz/comments/commentRss/129485.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/dotNETvinz/services/trackbacks/129485.aspx</trackback:ping>
        </item>
        <item>
            <title>AJAX Enabled WebParts and FireFox Drag and Drop</title>
            <link>http://geekswithblogs.net/dotNETvinz/archive/2008/09/12/ajax-enabled-webparts-and-firefox-drag-and-drop.aspx</link>
            <description>&lt;p style="font-family: tahoma"&gt;&lt;font size="2"&gt;WebParts Cross- browser drag and drop is a very common issues on ASPNET WebPart Framework.. Basically WebParts doesn't support the Drag and Drop feature in Firefox browsers and this known to be a BUG for ASPNET Webpart Framework.. To get things working in all browsers including the cross browser drag-and-drop feature then you would need to use Visual studio 2008 / VWD 2008 with latest version of the Microsoft ASPNET Futures (AJAX Control Toolkit 3.5)..&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma"&gt;&lt;font size="2"&gt;For more detail information then i would suggest you to read the following article below     &lt;br /&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma"&gt;&lt;font size="2"&gt;http://waitink.blogspot.com/2008/06/ajax-web-parts-part-1-drag-and-drop.html&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma"&gt;&lt;font size="2"&gt;We also discuss the issues in the following links below&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma"&gt;&lt;font size="2"&gt;http://forums.asp.net/t/1277540.aspx&lt;/font&gt;&lt;/p&gt;  &lt;p style="font-family: tahoma"&gt;&lt;font size="2"&gt;&lt;a href="http://forums.asp.net/p/1087200/1943716.aspx#1943716"&gt;http://forums.asp.net/p/1087200/1943716.aspx#1943716&lt;/a&gt; &lt;/font&gt;&lt;/p&gt;  &lt;div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:e98442b3-4a7b-45f4-9a89-a6c13ab9310f" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/ASP.NET" rel="tag"&gt;ASP.NET&lt;/a&gt;,&lt;a href="http://technorati.com/tags/WebParts" rel="tag"&gt;WebParts&lt;/a&gt;&lt;/div&gt; &lt;img src="http://geekswithblogs.net/dotNETvinz/aggbug/125131.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Vincent Maverick Durano</dc:creator>
            <guid>http://geekswithblogs.net/dotNETvinz/archive/2008/09/12/ajax-enabled-webparts-and-firefox-drag-and-drop.aspx</guid>
            <pubDate>Thu, 11 Sep 2008 18:31:01 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/dotNETvinz/comments/125131.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/dotNETvinz/archive/2008/09/12/ajax-enabled-webparts-and-firefox-drag-and-drop.aspx#feedback</comments>
            <slash:comments>4</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/dotNETvinz/comments/commentRss/125131.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/dotNETvinz/services/trackbacks/125131.aspx</trackback:ping>
        </item>
        <item>
            <title>WEBPART: Count the number of Closed WebParts within PageCatalogPart</title>
            <link>http://geekswithblogs.net/dotNETvinz/archive/2008/09/11/webpart-count-the-number-of-closed-webparts-within-pagecatalogpart.aspx</link>
            <description>&lt;p&gt;&lt;font size="2"&gt;&lt;span style="font-weight: bold; font-family: tahoma"&gt;The following snippets below checks whether the &lt;/span&gt;&lt;strong style="font-weight: bold; font-family: tahoma"&gt;PageCatalogPart&lt;/strong&gt;&lt;span style="font-weight: bold; font-family: tahoma"&gt; Control contains any available WebParts in a page that have been closed in the page&lt;/span&gt;&lt;span style="font-family: tahoma"&gt;..&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-weight: bold; font-family: tahoma"&gt;C#&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;protected void PageCatalogPart1_Load(object sender, EventArgs e)&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;{&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;        int count = 0;&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;        if (WebPartManager1.WebParts.Count &amp;gt; 0)&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;        {&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;            for (int i = 0; i &amp;lt; WebPartManager1.WebParts.Count; i++)&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;            {&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;                WebPart wp = (WebPart)WebPartManager1.WebParts[i];&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;                if (wp.IsClosed)&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;                {&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;                    Response.Write("Page Catalog contains Closed WebParts");&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;                    count++;&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;                }&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;            }&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;            Response.Write("&amp;lt;br/&amp;gt;Tolal closed WebParts: " + count.ToString());&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;        }&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;}&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-weight: bold; font-family: tahoma"&gt;VB.NET&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;Protected Sub PageCatalogPart1_Load(ByVal sender As Object, ByVal e As EventArgs)&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;    Dim count As Integer = 0&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;    If WebPartManager1.WebParts.Count &amp;gt; 0 Then&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;        For i As Integer = 0 To WebPartManager1.WebParts.Count - 1&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;            Dim wp As WebPart = DirectCast(WebPartManager1.WebParts(i), WebPart)&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;            If wp.IsClosed Then&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;                Response.Write("Page Catalog contains Closed WebParts")&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;                count += 1&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;            End If&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;        Next&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;        Response.Write("&amp;lt;br/&amp;gt;Tolal closed WebParts: " + count.ToString())&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;    End If&lt;/span&gt;      &lt;br style="font-family: tahoma" /&gt;&lt;span style="font-family: tahoma"&gt;End Sub&lt;/span&gt;&lt;span style="font-weight: bold; font-family: tahoma"&gt;       &lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:43e11dc4-2469-418f-a443-e213928a9de6" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/ASP.NET" rel="tag"&gt;ASP.NET&lt;/a&gt;,&lt;a href="http://technorati.com/tags/WebParts" rel="tag"&gt;WebParts&lt;/a&gt;&lt;/div&gt; &lt;img src="http://geekswithblogs.net/dotNETvinz/aggbug/125108.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Vincent Maverick Durano</dc:creator>
            <guid>http://geekswithblogs.net/dotNETvinz/archive/2008/09/11/webpart-count-the-number-of-closed-webparts-within-pagecatalogpart.aspx</guid>
            <pubDate>Thu, 11 Sep 2008 02:48:36 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/dotNETvinz/comments/125108.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/dotNETvinz/archive/2008/09/11/webpart-count-the-number-of-closed-webparts-within-pagecatalogpart.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/dotNETvinz/comments/commentRss/125108.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/dotNETvinz/services/trackbacks/125108.aspx</trackback:ping>
        </item>
        <item>
            <title>Creating Custom WebPartZones with Custom verbs (Move right/ Move Left)</title>
            <link>http://geekswithblogs.net/dotNETvinz/archive/2008/07/23/creating-custom-webpartzones-with-custom-verbs-move-right-move-left.aspx</link>
            <description>&lt;p&gt;&lt;/p&gt; &lt;link href="file:///C:\DOCUME~1\vd185022\LOCALS~1\Temp\msohtml1\01\clip_filelist.xml" rel="File-List" /&gt;&lt;link href="file:///C:\DOCUME~1\vd185022\LOCALS~1\Temp\msohtml1\01\clip_editdata.mso" rel="Edit-Time-Data" /&gt;&lt;style&gt;&lt;![CDATA[

v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}]]&gt;&lt;/style&gt;&lt;o:smarttagtype name="State" namespaceuri="urn:schemas-microsoft-com:office:smarttags"&gt;&lt;/o:smarttagtype&gt;&lt;o:smarttagtype name="place" namespaceuri="urn:schemas-microsoft-com:office:smarttags"&gt;&lt;/o:smarttagtype&gt;&lt;object id="ieooui" classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D"&gt;&lt;/object&gt;&lt;style&gt;&lt;![CDATA[

st1\:*{behavior:url(#ieooui) }]]&gt;&lt;/style&gt;&lt;style type="text/css"&gt;&lt;!--
 /* Font Definitions */
 @font-face
	{font-family:wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;
	mso-font-charset:2;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:0 268435456 0 0 -2147483648 0;}
 /* Style Definitions */
 p.msonormal, li.msonormal, div.msonormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
@page section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.section1
	{page:section1;}
 /* List Definitions */
 @list l0
	{mso-list-id:643507152;
	mso-list-type:hybrid;
	mso-list-template-ids:628769208 67698701 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
	{mso-level-number-format:bullet;
	mso-level-text:;
	mso-level-tab-stop:.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:wingdings;}
@list l1
	{mso-list-id:1594587925;
	mso-list-type:hybrid;
	mso-list-template-ids:1534082956 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l1:level1
	{mso-level-tab-stop:.5in;
	mso-level-number-position:left;
	text-indent:-.25in;}
ol
	{margin-bottom:0in;}
ul
	{margin-bottom:0in;}
--&gt;&lt;/style&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;Creating Custom WebPartZones with Custom verbs (Move right/ Move Left)&lt;o:p&gt;&lt;/o:p&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;By: Vincent Maverick Durano&lt;o:p&gt;&lt;/o:p&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;Introduction:&lt;o:p&gt;&lt;/o:p&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;This article shows on how we are going to move a webpart from left or right directions in different zones without the drag and drop functionality of the standard webpart. In order to achieve this, we need to create a custom webpartzone with custom verb option “move right/move left” button. See Figure 1.&lt;/p&gt;  &lt;p class="MsoNormal"&gt; &lt;/p&gt;  &lt;p class="MsoNormal"&gt;Figure 1&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;img height="416" alt="" src="/images/geekswithblogs_net/dotNETvinz/img1.JPG" width="490" /&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;The first thing to do is we need to create those custom verbs options by extending the webpartzone base class and add those custom verbs within the zone. Below are the steps on how to extend the webpartzone class.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;Creating the CustomZone.cs Class&lt;o:p&gt;&lt;/o:p&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Below are the snippets with a description in each line on how to extend and overrides verbs. I placed it in a separate class and wrap it in a namespace so that we can use it easily in the page by just registering the namespace. But before that lets take a look at the details first on how does it goes.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;table class="MsoTableGrid" style="background: rgb(224,224,224); width: 6.95in; border-collapse: collapse; moz-background-size: auto auto; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial" cellspacing="0" cellpadding="0" width="925" border="0"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 6.95in; padding-top: 0in" valign="top" width="923"&gt;         &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;using&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt; System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;using&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt; System.Data;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;using&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt; System.Configuration;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;using&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt; System.Web;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;using&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt; System.Web.Security;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;using&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt; System.Security.Permissions;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;using&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt; System.Collections.Generic;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;using&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt; System.Web.UI;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;using&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt; System.Web.UI.WebControls;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;using&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt; System.Web.UI.WebControls.WebParts;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;using&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt; System.Web.UI.HtmlControls;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: gray; font-family: &amp;quot;Courier New&amp;quot;"&gt;///&lt;/span&gt;&lt;span style="font-size: 10pt; color: green; font-family: &amp;quot;Courier New&amp;quot;"&gt; Custom WebPartZone with custom verbs&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: gray; font-family: &amp;quot;Courier New&amp;quot;"&gt;///&lt;/span&gt;&lt;span style="font-size: 10pt; color: green; font-family: &amp;quot;Courier New&amp;quot;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;namespace&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt; Samples.CustomWebpartZone.CS.Controls&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;[&lt;span style="color: teal"&gt;AspNetHostingPermission&lt;/span&gt;(&lt;span style="color: teal"&gt;SecurityAction&lt;/span&gt;.Demand, Level = &lt;span style="color: teal"&gt;AspNetHostingPermissionLevel&lt;/span&gt;.Minimal)]&lt;span&gt;    &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;[&lt;span style="color: teal"&gt;AspNetHostingPermission&lt;/span&gt;(&lt;span style="color: teal"&gt;SecurityAction&lt;/span&gt;.InheritanceDemand, Level = &lt;span style="color: teal"&gt;AspNetHostingPermissionLevel&lt;/span&gt;.Minimal)]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: green; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;    &lt;/span&gt;//Inherits the webpartzone class&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;           &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;    &lt;/span&gt;&lt;span style="color: blue"&gt;public&lt;/span&gt; &lt;span style="color: blue"&gt;class&lt;/span&gt; &lt;span style="color: teal"&gt;CustomZoneWithNewVerb&lt;/span&gt; : &lt;span style="color: teal"&gt;WebPartZone&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;   &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;&lt;span style="color: green"&gt;//Overrides the OnCreateVerbs Methods&lt;/span&gt;&lt;span&gt;      &lt;/span&gt;&lt;span&gt;     &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;&lt;span style="color: blue"&gt;protected&lt;/span&gt; &lt;span style="color: blue"&gt;override&lt;/span&gt; &lt;span style="color: blue"&gt;void&lt;/span&gt; OnCreateVerbs(&lt;span style="color: teal"&gt;WebPartVerbsEventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: green; font-family: &amp;quot;Courier New&amp;quot;"&gt;//NOTE:MoveToLeft and MoveToRight are the name of methods where the custom verbs are created. While the parameter RightVerb and LeftVerb are the event handlers for those verbs.&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;          &lt;/span&gt;&lt;span style="color: teal"&gt;List&lt;/span&gt;&amp;lt;&lt;span style="color: teal"&gt;WebPartVerb&lt;/span&gt;&amp;gt; addNewVerbs = &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;WebPartVerb&lt;/span&gt;&amp;gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;          &lt;/span&gt;addNewVerbs.Add(&lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: teal"&gt;MoveToRight&lt;/span&gt;(RightVerb));&lt;span&gt;                       &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;          &lt;/span&gt;addNewVerbs.Add(&lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: teal"&gt;MoveToLeft&lt;/span&gt;(LeftVerb)); &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;          &lt;/span&gt;e.Verbs = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: teal"&gt;WebPartVerbCollection&lt;/span&gt;(e.Verbs, addNewVerbs);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;          &lt;/span&gt;&lt;span style="color: blue"&gt;base&lt;/span&gt;.OnCreateVerbs(e);&lt;span&gt;                   &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;         &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;  &lt;/span&gt;&lt;span&gt;           &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;         &lt;/span&gt;&lt;span style="color: blue"&gt;void&lt;/span&gt; RightVerb(&lt;span style="color: blue"&gt;object&lt;/span&gt; sender, &lt;span style="color: teal"&gt;WebPartEventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;         &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;         &lt;/span&gt;&lt;span style="color: green"&gt;//gets the total number of webparts that is present in a particular zone&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;     &lt;/span&gt;&lt;span&gt;      &lt;/span&gt;&lt;span style="color: blue"&gt;int&lt;/span&gt; wpcount = (&lt;span style="color: blue"&gt;int&lt;/span&gt;)e.WebPart.Zone.WebParts.Count; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;         &lt;/span&gt;&lt;span style="color: green"&gt;//get the webpart index within the zone&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;           &lt;/span&gt;&lt;span style="color: blue"&gt;int&lt;/span&gt; wpindex = (&lt;span style="color: blue"&gt;int&lt;/span&gt;)e.WebPart.ZoneIndex;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: green; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;         &lt;/span&gt;//gets the zone name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: green; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;           &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;string&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt; zname = (&lt;span style="color: blue"&gt;string&lt;/span&gt;)e.WebPart.Zone.ID;&lt;span&gt;                       &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;           &lt;/span&gt;&lt;span style="color: blue"&gt;string&lt;/span&gt; &lt;st1:place w:st="on"&gt;&lt;st1:state w:st="on"&gt;del&lt;/st1:state&gt;&lt;/st1:place&gt; = &lt;span style="color: maroon"&gt;"b"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;      &lt;/span&gt;&lt;span style="color: green"&gt;//splits the id name “CustomZoneWithNewVerb1” to get the last numeric value&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;          &lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span style="color: blue"&gt;string&lt;/span&gt;[] temp = zname.Split(del.ToCharArray());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;         &lt;/span&gt;&lt;span style="color: green"&gt;// get the numeric value of a zone “1”&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;           &lt;/span&gt;&lt;span style="color: blue"&gt;int&lt;/span&gt; zoneid = &lt;span style="color: blue"&gt;int&lt;/span&gt;.Parse(temp[1].ToString());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;         &lt;/span&gt;&lt;span style="color: green"&gt;//gets the available webpartmanager on the page&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;      &lt;/span&gt;&lt;span&gt;     &lt;/span&gt;&lt;span style="color: teal"&gt;WebPartManager&lt;/span&gt; wpm1 = &lt;span style="color: teal"&gt;WebPartManager&lt;/span&gt;.GetCurrentWebPartManager(Page);&lt;span style="color: green"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;                &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;                &lt;/span&gt;&lt;span style="color: blue"&gt;if&lt;/span&gt; (zid &amp;lt; 3) &lt;span style="color: green"&gt;//assume that you have 3 zones in your page&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;                &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;                 &lt;/span&gt;&lt;span style="color: green"&gt;//get the current control being move within the zone&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;                &lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span style="color: teal"&gt;GenericWebPart&lt;/span&gt; part = (&lt;span style="color: teal"&gt;GenericWebPart&lt;/span&gt;)wpm1.Zones[zoneid - 1].WebParts[wpindex];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;                 &lt;/span&gt;&lt;span style="color: green"&gt;//move the webpart to another or within a zone&lt;/span&gt;&lt;span&gt;                        &lt;/span&gt;&lt;span&gt;                         &lt;/span&gt;&lt;span&gt;                          &lt;/span&gt;wpm1.MoveWebPart(part, wpm1.Zones[zoneid], wpindex);&lt;span style="color: green"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: green; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;                 &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; background: silver; font-family: &amp;quot;Courier New&amp;quot;; moz-background-size: auto auto; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span&gt;              &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; background: silver; font-family: &amp;quot;Courier New&amp;quot;; moz-background-size: auto auto; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;span&gt;    &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;   &lt;/span&gt;&lt;span style="color: blue"&gt;void&lt;/span&gt; LeftVerb(&lt;span style="color: blue"&gt;object&lt;/span&gt; sender, &lt;span style="color: teal"&gt;WebPartEventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;         &lt;/span&gt;&lt;span style="color: blue"&gt;int&lt;/span&gt; wpcount = (&lt;span style="color: blue"&gt;int&lt;/span&gt;)e.WebPart.Zone.WebParts.Count;&lt;span style="color: green"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;     &lt;/span&gt;&lt;span&gt;    &lt;/span&gt;&lt;span style="color: blue"&gt;int&lt;/span&gt; wpindex = (&lt;span style="color: blue"&gt;int&lt;/span&gt;)e.WebPart.ZoneIndex;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;         &lt;/span&gt;&lt;span style="color: blue"&gt;string&lt;/span&gt; zname = (&lt;span style="color: blue"&gt;string&lt;/span&gt;)e.WebPart.Zone.ID;&lt;span style="color: green"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;         &lt;/span&gt;&lt;span style="color: blue"&gt;string&lt;/span&gt; &lt;st1:place w:st="on"&gt;&lt;st1:state w:st="on"&gt;del&lt;/st1:state&gt;&lt;/st1:place&gt; = &lt;span style="color: maroon"&gt;"b"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;         &lt;/span&gt;&lt;span style="color: blue"&gt;string&lt;/span&gt;[] temp = zname.Split(del.ToCharArray());&lt;span style="color: green"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;         &lt;/span&gt;&lt;span style="color: blue"&gt;int&lt;/span&gt; zoneid = &lt;span style="color: blue"&gt;int&lt;/span&gt;.Parse(temp[1].ToString());&lt;span style="color: green"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;         &lt;/span&gt;&lt;span style="color: teal"&gt;WebPartManager&lt;/span&gt; wpm1 = &lt;span style="color: teal"&gt;WebPartManager&lt;/span&gt;.GetCurrentWebPartManager(Page);&lt;span style="color: green"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;          &lt;/span&gt;&lt;span&gt;   &lt;/span&gt;&lt;span style="color: blue"&gt;if&lt;/span&gt; (zid != 1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;             &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;              &lt;/span&gt;&lt;span style="color: teal"&gt;GenericWebPart&lt;/span&gt; part = (&lt;span style="color: teal"&gt;GenericWebPart&lt;/span&gt;)wpm1.Zones[zid - 1].WebParts[wpindex];&lt;span style="color: green"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;              &lt;/span&gt;wpm1.MoveWebPart(part, wpm1.Zones[zid-2], wpindex);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;    &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;           &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;[&lt;span style="color: teal"&gt;AspNetHostingPermission&lt;/span&gt;(&lt;span style="color: teal"&gt;SecurityAction&lt;/span&gt;.Demand, Level = &lt;span style="color: teal"&gt;AspNetHostingPermissionLevel&lt;/span&gt;.Minimal)]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;[&lt;span style="color: teal"&gt;AspNetHostingPermission&lt;/span&gt;(&lt;span style="color: teal"&gt;SecurityAction&lt;/span&gt;.InheritanceDemand, Level = &lt;span style="color: teal"&gt;AspNetHostingPermissionLevel&lt;/span&gt;.Minimal)]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;    &lt;/span&gt;&lt;span style="color: green"&gt;//A fucntion where custom Move Right verbs are created&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: green; font-family: &amp;quot;Courier New&amp;quot;"&gt;//Inherits WebpartVerb class to create custom verbs&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;      &lt;/span&gt;&lt;span style="color: blue"&gt;internal&lt;/span&gt; &lt;span style="color: blue"&gt;class&lt;/span&gt; &lt;span style="color: teal"&gt;MoveToRight&lt;/span&gt; : &lt;span style="color: teal"&gt;WebPartVerb&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;      &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;&lt;span style="color: blue"&gt;private&lt;/span&gt; &lt;span style="color: blue"&gt;const&lt;/span&gt; &lt;span style="color: teal"&gt;String&lt;/span&gt; _WebPartImageUrl = &lt;span style="color: maroon"&gt;"~/image/right.gif"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;&lt;span style="color: blue"&gt;internal&lt;/span&gt; MoveToRight(&lt;span style="color: teal"&gt;WebPartEventHandler&lt;/span&gt; serverClickHandler) :&lt;span&gt;                            &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;&lt;span style="color: blue"&gt;base&lt;/span&gt;(&lt;span style="color: maroon"&gt;"GotoRight"&lt;/span&gt;, serverClickHandler)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;{ }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: blue"&gt;public&lt;/span&gt; &lt;span style="color: blue"&gt;override&lt;/span&gt; &lt;span style="color: blue"&gt;string&lt;/span&gt; Text&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;                &lt;/span&gt;&lt;span style="color: blue"&gt;get&lt;/span&gt; { &lt;span style="color: blue"&gt;return&lt;/span&gt; &lt;span style="color: maroon"&gt;"Move Right"&lt;/span&gt;; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;                &lt;/span&gt;&lt;span style="color: blue"&gt;set&lt;/span&gt; { ;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;         &lt;/span&gt;&lt;span&gt;   &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: blue"&gt;public&lt;/span&gt; &lt;span style="color: blue"&gt;override&lt;/span&gt; &lt;span style="color: blue"&gt;string&lt;/span&gt; Description&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;                &lt;/span&gt;&lt;span style="color: blue"&gt;get&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;                &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;                    &lt;/span&gt;&lt;span style="color: blue"&gt;return&lt;/span&gt; &lt;span style="color: maroon"&gt;"Allows you to move webparts to the right zone "&lt;/span&gt;;&lt;span&gt;         &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;                &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;                &lt;/span&gt;&lt;span style="color: blue"&gt;set&lt;/span&gt; { ; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;&lt;span&gt;    &lt;/span&gt;&lt;span style="color: blue"&gt;public&lt;/span&gt; &lt;span style="color: blue"&gt;override&lt;/span&gt; &lt;span style="color: blue"&gt;bool&lt;/span&gt; Enabled&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;{&lt;span&gt;          &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;               &lt;/span&gt;&lt;span style="color: blue"&gt;get&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;               &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;                  &lt;/span&gt;&lt;span style="color: blue"&gt;return&lt;/span&gt; &lt;span style="color: blue"&gt;base&lt;/span&gt;.Enabled;&lt;span&gt;                                                                      &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;               &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;               &lt;/span&gt;&lt;span style="color: blue"&gt;set&lt;/span&gt; { &lt;span style="color: blue"&gt;base&lt;/span&gt;.Enabled = &lt;span style="color: blue"&gt;value&lt;/span&gt;; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;              &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; background: silver; font-family: &amp;quot;Courier New&amp;quot;; moz-background-size: auto auto; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: blue"&gt;public&lt;/span&gt; &lt;span style="color: blue"&gt;override&lt;/span&gt; &lt;span style="color: blue"&gt;string&lt;/span&gt; ImageUrl&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;                &lt;/span&gt;&lt;span style="color: blue"&gt;get&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;                &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;                    &lt;/span&gt;&lt;span style="color: blue"&gt;return&lt;/span&gt; _WebPartImageUrl;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;                &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;                &lt;/span&gt;&lt;span style="color: blue"&gt;set&lt;/span&gt; { ; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;    &lt;/span&gt;&lt;span style="color: green"&gt;//A fucntion where custom Move Left verbs are created&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: green; font-family: &amp;quot;Courier New&amp;quot;"&gt;//Inherits WebpartVerb class to create custom verbs&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;    &lt;/span&gt;&lt;span style="color: blue"&gt;internal&lt;/span&gt; &lt;span style="color: blue"&gt;class&lt;/span&gt; &lt;span style="color: teal"&gt;MoveToLeft&lt;/span&gt; : &lt;span style="color: teal"&gt;WebPartVerb&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;    &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;      &lt;/span&gt;&lt;span style="color: blue"&gt;private&lt;/span&gt; &lt;span style="color: blue"&gt;const&lt;/span&gt; &lt;span style="color: teal"&gt;String&lt;/span&gt; _WebPartImageUrl = &lt;span style="color: maroon"&gt;"~/image/left.gif"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;      &lt;/span&gt;&lt;span style="color: blue"&gt;internal&lt;/span&gt; MoveToLeft(&lt;span style="color: teal"&gt;WebPartEventHandler&lt;/span&gt; serverClickHandler):&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;      &lt;/span&gt;&lt;span style="color: blue"&gt;base&lt;/span&gt;(&lt;span style="color: maroon"&gt;"GotoLeft"&lt;/span&gt;, serverClickHandler)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;{ }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;&lt;span style="color: blue"&gt;public&lt;/span&gt; &lt;span style="color: blue"&gt;override&lt;/span&gt; &lt;span style="color: blue"&gt;string&lt;/span&gt; Text&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: blue"&gt;get&lt;/span&gt; { &lt;span style="color: blue"&gt;return&lt;/span&gt; &lt;span style="color: maroon"&gt;"Move Left"&lt;/span&gt;; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: blue"&gt;set&lt;/span&gt; { ;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;&lt;span style="color: blue"&gt;public&lt;/span&gt; &lt;span style="color: blue"&gt;override&lt;/span&gt; &lt;span style="color: blue"&gt;string&lt;/span&gt; Description&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;       &lt;/span&gt;&lt;span&gt; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: blue"&gt;get&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;                &lt;/span&gt;&lt;span style="color: blue"&gt;return&lt;/span&gt; &lt;span style="color: maroon"&gt;"Allows you to move webparts to the left zone "&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: blue"&gt;set&lt;/span&gt; { ; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;&lt;span style="color: blue"&gt;public&lt;/span&gt; &lt;span style="color: blue"&gt;override&lt;/span&gt; &lt;span style="color: blue"&gt;bool&lt;/span&gt; Enabled&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: blue"&gt;get&lt;/span&gt; { &lt;span style="color: blue"&gt;return&lt;/span&gt; &lt;span style="color: blue"&gt;base&lt;/span&gt;.Enabled; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: blue"&gt;set&lt;/span&gt; { &lt;span style="color: blue"&gt;base&lt;/span&gt;.Enabled = &lt;span style="color: blue"&gt;value&lt;/span&gt;; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;&lt;span style="color: blue"&gt;public&lt;/span&gt; &lt;span style="color: blue"&gt;override&lt;/span&gt; &lt;span style="color: blue"&gt;string&lt;/span&gt; ImageUrl&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: blue"&gt;get&lt;/span&gt; { &lt;span style="color: blue"&gt;return&lt;/span&gt; _WebPartImageUrl; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: blue"&gt;set&lt;/span&gt; { ; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;   &lt;/span&gt;&lt;span&gt;    &lt;/span&gt;&lt;span&gt; &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: blue"&gt;get&lt;/span&gt; { &lt;span style="color: blue"&gt;return&lt;/span&gt; &lt;span style="color: blue"&gt;base&lt;/span&gt;.Enabled; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: blue"&gt;set&lt;/span&gt; { &lt;span style="color: blue"&gt;base&lt;/span&gt;.Enabled = &lt;span style="color: blue"&gt;value&lt;/span&gt;; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;&lt;span style="color: blue"&gt;public&lt;/span&gt; &lt;span style="color: blue"&gt;override&lt;/span&gt; &lt;span style="color: blue"&gt;string&lt;/span&gt; ImageUrl&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: blue"&gt;get&lt;/span&gt; { &lt;span style="color: blue"&gt;return&lt;/span&gt; _copyWebPartImageUrl; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;            &lt;/span&gt;&lt;span style="color: blue"&gt;set&lt;/span&gt; { ; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;        &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;    &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Important:&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in"&gt;MoveToRight() and MoveToLeft() are names of the methods where the custom verbs are created including its properties like imageUrl, Title, Description and so on.&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in"&gt;RightVerb() and LeftVerb() are the Event handlers for that custom verbs being created. It is where the moving of webparts is manipulated.&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;After creating the class, we can now use those custom webpartzone with added new verbs in our page. To do that, just take a look at the steps below:&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;ol style="margin-top: 0in" type="1"&gt;   &lt;li class="MsoNormal"&gt;Add new WebForm and switch to source mode (aspx side) &lt;/li&gt;    &lt;li class="MsoNormal"&gt;Add and Register the Class Namespace below: &lt;/li&gt; &lt;/ol&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;table class="MsoTableGrid" style="background: rgb(224,224,224); width: 501.45pt; border-collapse: collapse; moz-background-size: auto auto; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial" cellspacing="0" cellpadding="0" width="669" border="0"&gt;&lt;tbody&gt;     &lt;tr style="height: 20.2pt"&gt;       &lt;td style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 501.45pt; padding-top: 0in; height: 20.2pt" valign="top" width="669"&gt;         &lt;p class="MsoNormal" style="margin-left: 0.25in"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;lt;%&lt;span style="color: blue"&gt;@&lt;/span&gt; &lt;span style="color: maroon"&gt;Register&lt;/span&gt; &lt;span style="color: red"&gt;TagPrefix&lt;/span&gt;&lt;span style="color: blue"&gt;="mywebparts"&lt;/span&gt; &lt;span style="color: red"&gt;namespace&lt;/span&gt;&lt;span style="color: blue"&gt;="Samples.CustomWebpartZone.CS.Controls"&lt;/span&gt; %&amp;gt;&lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;ol style="margin-top: 0in" type="1" start="start"&gt;   &lt;li class="MsoNormal"&gt;Add a standard WebPartManager in the page. &lt;/li&gt;    &lt;li class="MsoNormal"&gt;Add three (3) standard WebPartZone in the page. &lt;/li&gt;    &lt;li class="MsoNormal"&gt;Replace the tagprefix and name of the standard asp WebPartZone to the tagprefix and name of the custom Webpartzone created earlier like below: &lt;/li&gt; &lt;/ol&gt;  &lt;table class="MsoTableGrid" style="background: rgb(224,224,224); border-collapse: collapse; moz-background-size: auto auto; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial" cellspacing="0" cellpadding="0" border="0"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td style="padding-right: 5.4pt; padding-left: 5.4pt; padding-bottom: 0in; width: 6.15in; padding-top: 0in" valign="top" width="590"&gt;         &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: &amp;quot;Courier New&amp;quot;"&gt;mywebparts&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;:&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: &amp;quot;Courier New&amp;quot;"&gt;CustomZoneWithNewVerb&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt; &lt;span style="color: red"&gt;id&lt;/span&gt;&lt;span style="color: blue"&gt;="&lt;/span&gt;&lt;span style="color: black"&gt;CustomZoneWithNewVerb1&lt;/span&gt;&lt;span style="color: blue"&gt;"&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;      &lt;/span&gt;&lt;span style="color: red"&gt;HeaderText&lt;/span&gt;&lt;span style="color: blue"&gt;="1"&lt;/span&gt; &lt;span style="color: red"&gt;runat&lt;/span&gt;&lt;span style="color: blue"&gt;="server"&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;      &lt;/span&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: maroon"&gt;ZoneTemplate&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;      &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: &amp;quot;Courier New&amp;quot;"&gt;asp&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;:&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: &amp;quot;Courier New&amp;quot;"&gt;TextBox&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt; &lt;span style="color: red"&gt;ID&lt;/span&gt;&lt;span style="color: blue"&gt;="TextBox1"&lt;/span&gt; &lt;span style="color: red"&gt;runat&lt;/span&gt;&lt;span style="color: blue"&gt;="server"&amp;gt;&lt;/span&gt;A TextBox&lt;span style="color: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: maroon"&gt;asp&lt;/span&gt;&lt;span style="color: blue"&gt;:&lt;/span&gt;&lt;span style="color: maroon"&gt;TextBox&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;/span&gt; &lt;span style="color: blue"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;      &lt;/span&gt;&lt;span style="color: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: maroon"&gt;ZoneTemplate&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: &amp;quot;Courier New&amp;quot;"&gt;mywebparts&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;:&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: &amp;quot;Courier New&amp;quot;"&gt;CustomZoneWithNewVerb&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: &amp;quot;Courier New&amp;quot;"&gt;mywebparts&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;:&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: &amp;quot;Courier New&amp;quot;"&gt;CustomZoneWithNewVerb&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt; &lt;span style="color: red"&gt;id&lt;/span&gt;&lt;span style="color: blue"&gt;="&lt;/span&gt;&lt;span style="color: black"&gt;CustomZoneWithNewVerb2&lt;/span&gt;&lt;span style="color: blue"&gt;"&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;      &lt;/span&gt;&lt;span style="color: red"&gt;HeaderText&lt;/span&gt;&lt;span style="color: blue"&gt;="1"&lt;/span&gt; &lt;span style="color: red"&gt;runat&lt;/span&gt;&lt;span style="color: blue"&gt;="server"&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;      &lt;/span&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: maroon"&gt;ZoneTemplate&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;      &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: &amp;quot;Courier New&amp;quot;"&gt;asp&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;:&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: &amp;quot;Courier New&amp;quot;"&gt;Image&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt; &lt;span style="color: red"&gt;ID&lt;/span&gt;&lt;span style="color: blue"&gt;="Image1"&lt;/span&gt; &lt;span style="color: red"&gt;runat&lt;/span&gt;&lt;span style="color: blue"&gt;="server"&lt;/span&gt; &lt;span style="color: red"&gt;ImageUrl&lt;/span&gt;&lt;span style="color: blue"&gt;="~/image/default.jpg"&lt;/span&gt; &lt;span style="color: blue"&gt;/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;      &lt;/span&gt;&lt;span style="color: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: maroon"&gt;ZoneTemplate&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: &amp;quot;Courier New&amp;quot;"&gt;mywebparts&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;:&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: &amp;quot;Courier New&amp;quot;"&gt;CustomZoneWithNewVerb&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: &amp;quot;Courier New&amp;quot;"&gt;mywebparts&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;:&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: &amp;quot;Courier New&amp;quot;"&gt;CustomZoneWithNewVerb&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt; &lt;span style="color: red"&gt;id&lt;/span&gt;&lt;span style="color: blue"&gt;="&lt;/span&gt;&lt;span style="color: black"&gt;CustomZoneWithNewVerb3&lt;/span&gt;&lt;span style="color: blue"&gt;"&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;      &lt;/span&gt;&lt;span style="color: red"&gt;HeaderText&lt;/span&gt;&lt;span style="color: blue"&gt;="1"&lt;/span&gt; &lt;span style="color: red"&gt;runat&lt;/span&gt;&lt;span style="color: blue"&gt;="server"&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;      &lt;/span&gt;&lt;span style="color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: maroon"&gt;ZoneTemplate&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&lt;span&gt;      &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: &amp;quot;Courier New&amp;quot;"&gt;asp&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;:&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: &amp;quot;Courier New&amp;quot;"&gt;HyperLink&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;"&gt; &lt;span style="color: red"&gt;ID&lt;/span&gt;&lt;span style="color: blue"&gt;="HyperLink1"&lt;/span&gt; &lt;span style="color: red"&gt;runat&lt;/span&gt;&lt;span style="color: blue"&gt;="server"&lt;/span&gt; &lt;span style="color: red"&gt;NavigateUrl&lt;/span&gt;&lt;span style="color: blue"&gt;="~/dashboard.aspx"&amp;gt;&lt;/span&gt;My Favorites&lt;span style="color: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: maroon"&gt;asp&lt;/span&gt;&lt;span style="color: blue"&gt;:&lt;/span&gt;&lt;span style="color: maroon"&gt;HyperLink&lt;/span&gt;&lt;span style="background: silver; color: blue; moz-background-size: auto auto; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;     &lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span style="color: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: maroon"&gt;ZoneTemplate&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: &amp;quot;Courier New&amp;quot;"&gt;mywebparts&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;:&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; font-family: &amp;quot;Courier New&amp;quot;"&gt;CustomZoneWithNewVerb&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; font-family: &amp;quot;Courier New&amp;quot;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;       &lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in"&gt;6. Compile the application and run&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in"&gt;7. The output should look the same as shown in Figure 1&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in"&gt;The behavior of the custom Webpartzone are still the same as what standard webpartzone behaves since the custom webpartzone inherits the standard webpart zone. The only difference is that I added the Custom “Move Right” and “Move Left” Verb in the custom WebpartZone.&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in"&gt;Hope you like this article.&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-left: 0.25in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:cd2ccf57-2060-4429-8f04-208eaa1b7aa9" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/ASP.NET" rel="tag"&gt;ASP.NET&lt;/a&gt;,&lt;a href="http://technorati.com/tags/WebParts" rel="tag"&gt;WebParts&lt;/a&gt;&lt;/div&gt; &lt;img src="http://geekswithblogs.net/dotNETvinz/aggbug/123986.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Vincent Maverick Durano</dc:creator>
            <guid>http://geekswithblogs.net/dotNETvinz/archive/2008/07/23/creating-custom-webpartzones-with-custom-verbs-move-right-move-left.aspx</guid>
            <pubDate>Wed, 23 Jul 2008 08:42:49 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/dotNETvinz/comments/123986.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/dotNETvinz/archive/2008/07/23/creating-custom-webpartzones-with-custom-verbs-move-right-move-left.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/dotNETvinz/comments/commentRss/123986.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/dotNETvinz/services/trackbacks/123986.aspx</trackback:ping>
        </item>
    </channel>
</rss>
