<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>Dipesh Bhanani</title>
        <link>http://geekswithblogs.net/DipeshBhanani/Default.aspx</link>
        <description> </description>
        <language>en-US</language>
        <copyright>DipeshBhanani</copyright>
        <managingEditor>dipesh.bhanani@hotmail.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <image>
            <title>Dipesh Bhanani</title>
            <url>http://geekswithblogs.net/images/RSS2Image.gif</url>
            <link>http://geekswithblogs.net/DipeshBhanani/Default.aspx</link>
            <width>77</width>
            <height>60</height>
        </image>
        <item>
            <title>How to create Custom ListForm WebPart</title>
            <category>SharePoint</category>
            <category>Custom ListForm</category>
            <category>WebPart</category>
            <link>http://geekswithblogs.net/DipeshBhanani/archive/2010/05/13/how-to-create-custom-listform-webpart.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/DipeshBhanani/archive/2010/05/13/how-to-create-custom-listform-webpart.aspx'&gt;http://geekswithblogs.net/DipeshBhanani/archive/2010/05/13/how-to-create-custom-listform-webpart.aspx&lt;/a&gt;&lt;/p&gt;&lt;div style="margin: 0in 0in 10pt"&gt; &lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;Mostly all who works extensively on SharePoint (including me&lt;/font&gt;&lt;span style="font-family: Wingdings"&gt;J&lt;/span&gt;&lt;font face="Calibri"&gt;) don’t like to use out-of-box list forms (DispForm.aspx, EditForm.aspx, NewForm.aspx) as interface. Actually these OOB list forms bind hands of developers for the customization. It gives headache to developers to add just one post back event, for a dropdown field and to populate other fields in NewForm.aspx or EditForm.aspx. On top of that clients always ask such stuff. So here I am going to give you guys a flight for SharePoint Customization world. In this blog, I will explain, how to create CustomListForm WebPart. In my next blogs, I am going to explain easy deployment of List Forms through features and last, guidance on using SharePoint web controls.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-indent: -0.25in; margin: 0in 0in 10pt 0.5in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;1.&lt;/font&gt;&lt;span style="font: 7pt 'Times New Roman'"&gt;       &lt;/span&gt;&lt;font face="Calibri"&gt;First thing, create a class library project through Visual Studio and inherit the class with WebPart class.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&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: #2b91af"&gt;CustomListForm&lt;/span&gt; : &lt;span style="color: #2b91af"&gt;WebPart&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="text-indent: -0.25in; margin: 0in 0in 10pt 0.5in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;2.&lt;/font&gt;&lt;span style="font: 7pt 'Times New Roman'"&gt;       &lt;/span&gt;&lt;font face="Calibri"&gt;Declare a &lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;property called “ControlMode”. The property is used to identify the mode of the List Form. The property is of type SPControlMode which is an enum type with values (Display, Edit, New and Invalid). When we will add this WebPart to DispForm.aspx, EditForm.aspx and NewForm.aspx, we will set this property to Display, Edit and New respectively&lt;/font&gt;&lt;/span&gt;.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        &lt;span style="color: #2b91af"&gt;SPControlMode&lt;/span&gt; _ControlMode = &lt;span style="color: #2b91af"&gt;SPControlMode&lt;/span&gt;.New;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        [&lt;span style="color: #2b91af"&gt;Personalizable&lt;/span&gt;(&lt;span style="color: #2b91af"&gt;PersonalizationScope&lt;/span&gt;.Shared),&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;         &lt;span style="color: #2b91af"&gt;WebBrowsable&lt;/span&gt;(&lt;span style="color: blue"&gt;true&lt;/span&gt;),&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;         &lt;span style="color: #2b91af"&gt;WebDisplayName&lt;/span&gt;(&lt;span style="color: #a31515"&gt;"Control Mode"&lt;/span&gt;),&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;         &lt;span style="color: #2b91af"&gt;WebDescription&lt;/span&gt;(&lt;span style="color: #a31515"&gt;"Set Control Mode"&lt;/span&gt;),&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;         &lt;span style="color: #2b91af"&gt;DefaultValue&lt;/span&gt;(&lt;span style="color: #a31515"&gt;""&lt;/span&gt;),&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;         &lt;span style="color: #2b91af"&gt;Category&lt;/span&gt;(&lt;span style="color: #a31515"&gt;"Miscellaneous"&lt;/span&gt;)]&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        &lt;span style="color: blue"&gt;public&lt;/span&gt; &lt;span style="color: #2b91af"&gt;SPControlMode&lt;/span&gt; ControlMode&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        {&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: blue"&gt;get&lt;/span&gt; { &lt;span style="color: blue"&gt;return&lt;/span&gt; _ControlMode; }&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: blue"&gt;set&lt;/span&gt; { _ControlMode = &lt;span style="color: blue"&gt;value&lt;/span&gt;; }&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        }&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;  &lt;/div&gt;
&lt;div style="text-indent: -0.25in; margin: 0in 0in 10pt 0.5in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;3.&lt;/font&gt;&lt;span style="font: 7pt 'Times New Roman'"&gt;       &lt;/span&gt;&lt;font face="Calibri"&gt;Now, we need to override the “&lt;font size="2" face="Courier New"&gt;CreateChildControls()&lt;/font&gt;” method and write code to manually add SharePoint Web Controls related to each list fields as well as ToolBar controls.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&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; CreateChildControls()&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        {&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: blue"&gt;base&lt;/span&gt;.CreateChildControls();&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: blue"&gt;try&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            {&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                SiteId = &lt;span style="color: #2b91af"&gt;SPContext&lt;/span&gt;.Current.Site.ID;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                ListId = &lt;span style="color: #2b91af"&gt;SPContext&lt;/span&gt;.Current.ListId;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                ListName = &lt;span style="color: #2b91af"&gt;SPContext&lt;/span&gt;.Current.List.Title;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                &lt;span style="color: blue"&gt;if&lt;/span&gt; (_ControlMode == &lt;span style="color: #2b91af"&gt;SPControlMode&lt;/span&gt;.Display || _ControlMode == &lt;span style="color: #2b91af"&gt;SPControlMode&lt;/span&gt;.Edit)&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    ItemId = &lt;span style="color: #2b91af"&gt;SPContext&lt;/span&gt;.Current.ItemId;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                &lt;span style="color: #2b91af"&gt;SPSecurity&lt;/span&gt;.RunWithElevatedPrivileges(&lt;span style="color: blue"&gt;delegate&lt;/span&gt;()&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                {&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    &lt;span style="color: blue"&gt;using&lt;/span&gt; (&lt;span style="color: #2b91af"&gt;SPSite&lt;/span&gt; site = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;SPSite&lt;/span&gt;(SiteId))&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    {&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                        &lt;span style="color: green"&gt;//creating a new SPSite with credentials of System Account&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                        &lt;span style="color: blue"&gt;using&lt;/span&gt; (&lt;span style="color: #2b91af"&gt;SPWeb&lt;/span&gt; web = site.OpenWeb())&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                        {&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                              //&amp;lt;Custom Code for creating form controls&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                        }&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    }&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                });&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            }&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: blue"&gt;catch&lt;/span&gt; (&lt;span style="color: #2b91af"&gt;Exception&lt;/span&gt; ex)&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            {&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                ShowError(ex, &lt;span style="color: #a31515"&gt;"CreateChildControls"&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            }&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        }&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt; &lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;Here we are assuming that we are developing this WebPart to plug into List Forms. Hence we will get the List Id and List Name from the current context. We can have Item Id only in case of Display and Edit Mode. We are writting our code in “&lt;/font&gt;&lt;span style="line-height: 115%; font-family: 'Courier New'"&gt;&lt;font size="2"&gt;&lt;span style="color: #2b91af"&gt;SPSecurity&lt;/span&gt;.RunWithElevatedPrivileges(&lt;span style="color: blue"&gt;delegate&lt;/span&gt;(){}&lt;/font&gt;&lt;/span&gt;&lt;font face="Calibri"&gt;” to elevate privileges to credentials of System Account.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;Now, let’s get deep down into the main code and expand “&lt;/font&gt;&lt;font size="2" face="Courier New"&gt;//&amp;lt;Custom Code for creating form controls&amp;gt;&lt;/font&gt;&lt;font face="Calibri"&gt;”. &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;Before initiating any SharePoint control, we need to set context of “&lt;span style="line-height: 115%; font-family: 'Courier New'"&gt;&lt;font size="2"&gt;&lt;span style="color: #2b91af"&gt;&lt;span style="color: #2b91af"&gt;SPControl&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font face="Calibri"&gt;” &lt;/font&gt;explicitly even if the code is written inside “&lt;span style="line-height: 115%; font-family: 'Courier New'"&gt;&lt;font size="2"&gt;&lt;span style="color: #2b91af"&gt;SPSecurity&lt;/span&gt;.RunWithElevatedPrivileges(&lt;span style="color: blue"&gt;delegate&lt;/span&gt;(){}&lt;/font&gt;&lt;/span&gt;&lt;font face="Calibri"&gt;”. &lt;/font&gt;Following line does the job.&lt;/font&gt;&lt;/span&gt;&lt;font face="Calibri"&gt; &lt;/font&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    &lt;span style="color: green"&gt;//To create SharePoint controls with new web object and System Account credentials&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    &lt;span style="color: #2b91af"&gt;SPControl&lt;/span&gt;.SetContextWeb(Context, web);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;Now, let’s add main table as container for all controls.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    &lt;span style="color: green"&gt;//Table to render webpart&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    &lt;span style="color: #2b91af"&gt;Table&lt;/span&gt; spTableMain = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;Table&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    spTableMain.CellPadding = 0;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    spTableMain.CellSpacing = 0;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    spTableMain.Width = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;Unit&lt;/span&gt;(100, &lt;span style="color: #2b91af"&gt;UnitType&lt;/span&gt;.Percentage);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    &lt;span style="color: blue"&gt;this&lt;/span&gt;.Controls.Add(spTableMain);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;Here we are going to add Top Toolbar with Save and Cancel button at top as you see in the below screen shot.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-size: small"&gt; &lt;img alt="" width="602" height="70" src="http://gwb.blob.core.windows.net/dipeshbhanani/CustomListFormImages/TopToolbar.jpg" /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    &lt;span style="color: green"&gt;// Add Row and Cell for Top ToolBar&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    &lt;span style="color: #2b91af"&gt;TableRow&lt;/span&gt; spRowTopToolBar = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;TableRow&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    spTableMain.Rows.Add(spRowTopToolBar);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    &lt;span style="color: #2b91af"&gt;TableCell&lt;/span&gt; spCellTopToolBar = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;TableCell&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    spRowTopToolBar.Cells.Add(spCellTopToolBar);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    spCellTopToolBar.Width = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;Unit&lt;/span&gt;(100, &lt;span style="color: #2b91af"&gt;UnitType&lt;/span&gt;.Percentage);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    &lt;span style="color: #2b91af"&gt;ToolBar&lt;/span&gt; toolBarTop = (&lt;span style="color: #2b91af"&gt;ToolBar&lt;/span&gt;)Page.LoadControl(&lt;span style="color: #a31515"&gt;"/_controltemplates/ToolBar.ascx"&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    toolBarTop.CssClass = &lt;span style="color: #a31515"&gt;"ms-formtoolbar"&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    toolBarTop.ID = &lt;span style="color: #a31515"&gt;"toolBarTbltop"&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    toolBarTop.RightButtons.SeparatorHtml = &lt;span style="color: #a31515"&gt;"&amp;lt;td class=ms-separator&amp;gt; &amp;lt;/td&amp;gt;"&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    &lt;span style="color: blue"&gt;if&lt;/span&gt; (_ControlMode != &lt;span style="color: #2b91af"&gt;SPControlMode&lt;/span&gt;.Display)&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    {&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        &lt;span style="color: #2b91af"&gt;SaveButton&lt;/span&gt; btnSave = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;SaveButton&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        btnSave.ControlMode = _ControlMode;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        btnSave.ListId = ListId;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        &lt;span style="color: blue"&gt;if&lt;/span&gt; (_ControlMode == &lt;span style="color: #2b91af"&gt;SPControlMode&lt;/span&gt;.New)&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            btnSave.RenderContext = &lt;span style="color: #2b91af"&gt;SPContext&lt;/span&gt;.GetContext(web);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        &lt;span style="color: blue"&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        {&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            btnSave.RenderContext = &lt;span style="color: #2b91af"&gt;SPContext&lt;/span&gt;.GetContext(&lt;span style="color: blue"&gt;this&lt;/span&gt;.Context, ItemId, ListId, web);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            btnSave.ItemContext = &lt;span style="color: #2b91af"&gt;SPContext&lt;/span&gt;.GetContext(&lt;span style="color: blue"&gt;this&lt;/span&gt;.Context, ItemId, ListId, web);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            btnSave.ItemId = ItemId;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        }&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        toolBarTop.RightButtons.Controls.Add(btnSave);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    }&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    &lt;span style="color: #2b91af"&gt;GoBackButton&lt;/span&gt; goBackButtonTop = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;GoBackButton&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    toolBarTop.RightButtons.Controls.Add(goBackButtonTop);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    goBackButtonTop.ControlMode = &lt;span style="color: #2b91af"&gt;SPControlMode&lt;/span&gt;.Display;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    spCellTopToolBar.Controls.Add(toolBarTop);&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt; &lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;The toolbar is basically user control which is available in ControlTemplates folder of 12Hive. The control basically serves as container for other controls. Here we have use “&lt;/font&gt;&lt;span style="line-height: 115%; font-family: 'Courier New'; color: #2b91af"&gt;&lt;font size="2"&gt;&lt;span style="color: #2b91af"&gt;SaveButton&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font face="Calibri"&gt;” and “&lt;/font&gt;&lt;span style="line-height: 115%; font-family: 'Courier New'; color: #2b91af"&gt;&lt;font size="2"&gt;&lt;span style="color: #2b91af"&gt;GoBackButton&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font face="Calibri"&gt;” which are internal SharePoint web controls for save and cancel functionality. We have added both the controls on right buttons section with “&lt;/font&gt;&lt;font size="2" face="Courier New"&gt;toolBarTop.RightButtons.Controls.Add()&lt;font size="4" face="Calibri"&gt;” method. One can add more buttons with custom events at left or right side. To add controls on left side use, “&lt;font size="2" face="Courier New"&gt;toolBarTop.Buttons.Controls.Add()&lt;font size="4" face="Calibri"&gt;” method.&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;Now, It's time to add Form Toolbar to the page which contains “New Item”, “Edit Item”, “Delete Item”, “Attach File” etc buttons. &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;img alt="" width="602" height="70" src="http://gwb.blob.core.windows.net/dipeshbhanani/CustomListFormImages/FormToolBar.jpg" /&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    &lt;span style="color: green"&gt;// Add Row and Cell for FormToolBar&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    &lt;span style="color: #2b91af"&gt;TableRow&lt;/span&gt; spRowFormToolBar = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;TableRow&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    spTableMain.Rows.Add(spRowFormToolBar);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    &lt;span style="color: #2b91af"&gt;TableCell&lt;/span&gt; spCellFormToolBar = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;TableCell&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    spRowFormToolBar.Cells.Add(spCellFormToolBar);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    spCellFormToolBar.Width = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;Unit&lt;/span&gt;(100, &lt;span style="color: #2b91af"&gt;UnitType&lt;/span&gt;.Percentage);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    &lt;span style="color: #2b91af"&gt;FormToolBar&lt;/span&gt; formToolBar = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;FormToolBar&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    formToolBar.ID = &lt;span style="color: #a31515"&gt;"formToolBar"&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    formToolBar.ListId = ListId;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    &lt;span style="color: blue"&gt;if&lt;/span&gt; (_ControlMode == &lt;span style="color: #2b91af"&gt;SPControlMode&lt;/span&gt;.New)&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        formToolBar.RenderContext = &lt;span style="color: #2b91af"&gt;SPContext&lt;/span&gt;.GetContext(web);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    &lt;span style="color: blue"&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    {&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        formToolBar.RenderContext = &lt;span style="color: #2b91af"&gt;SPContext&lt;/span&gt;.GetContext(&lt;span style="color: blue"&gt;this&lt;/span&gt;.Context, ItemId, ListId, web);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        formToolBar.ItemContext = &lt;span style="color: #2b91af"&gt;SPContext&lt;/span&gt;.GetContext(&lt;span style="color: blue"&gt;this&lt;/span&gt;.Context, ItemId, ListId, web);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        formToolBar.ItemId = ItemId;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    }&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    formToolBar.ControlMode = _ControlMode;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    formToolBar.EnableViewState = &lt;span style="color: blue"&gt;true&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    spCellFormToolBar.Controls.Add(formToolBar);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;The “ControlMode” property will take care of which button to be displayed on the toolbar. E.g. “Attach files”, “Delete Item” in new/edit forms and “New Item”, “Edit Item”, “Delete Item”, “Manage Permissions” etc in display forms.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;Now add main section which contains form field controls.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-size: 10pt"&gt;    &lt;span style="color: green"&gt;//Add a Blank Row with height of 5px to render space between ToolBar table and Control table&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-size: 10pt"&gt;    &lt;span style="color: #2b91af"&gt;TableRow&lt;/span&gt; spRowTopLine = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;TableRow&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-size: 10pt"&gt;    spTableMain.Rows.Add(spRowTopLine);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-size: 10pt"&gt;    &lt;span style="color: #2b91af"&gt;TableCell&lt;/span&gt; spCellTopLine = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;TableCell&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-size: 10pt"&gt;    spRowTopLine.Cells.Add(spCellTopLine);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-size: 10pt"&gt;    spCellTopLine.Height = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;Unit&lt;/span&gt;(5, &lt;span style="color: #2b91af"&gt;UnitType&lt;/span&gt;.Pixel);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-size: 10pt"&gt;    spCellTopLine.Controls.Add(&lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;LiteralControl&lt;/span&gt;(&lt;span style="color: #a31515"&gt;"&amp;lt;IMG SRC='/_layouts/images/blank.gif' width=1 height=1 alt=''&amp;gt;"&lt;/span&gt;));&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-size: 10pt"&gt;    &lt;span style="color: green"&gt;//Add Row and Cell for Form Controls Section&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-size: 10pt"&gt;    &lt;span style="color: #2b91af"&gt;TableRow&lt;/span&gt; spRowFormControl = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;TableRow&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-size: 10pt"&gt;    spTableMain.Rows.Add(spRowFormControl);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-size: 10pt"&gt;    &lt;span style="color: #2b91af"&gt;TableCell&lt;/span&gt; spCellFormControl = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;TableCell&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-size: 10pt"&gt;    spRowFormControl.Cells.Add(spCellFormControl);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-size: 10pt"&gt;    spCellFormControl.Width = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;Unit&lt;/span&gt;(100, &lt;span style="color: #2b91af"&gt;UnitType&lt;/span&gt;.Percentage);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-size: 10pt"&gt;    &lt;span style="color: green"&gt;//Create form field controls&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-size: 10pt"&gt;    CreateFieldControls(web);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-size: 10pt"&gt;    &lt;span style="color: green"&gt;//Add table created in above function with form field controls to the page&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-size: 10pt"&gt;    spCellFormControl.Controls.Add(spTableCntl);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-size: 10pt"&gt;    &lt;span style="color: #2b91af"&gt;TableRow&lt;/span&gt; spRowBottomLine = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;TableRow&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-size: 10pt"&gt;    spTableMain.Rows.Add(spRowBottomLine);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-size: 10pt"&gt;    &lt;span style="color: #2b91af"&gt;TableCell&lt;/span&gt; spCellBottomLine = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;TableCell&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-size: 10pt"&gt;    spRowBottomLine.Cells.Add(spCellBottomLine);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-size: 10pt"&gt;    spCellBottomLine.CssClass = &lt;span style="color: #a31515"&gt;"ms-formline"&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-size: 10pt"&gt;    spCellBottomLine.Height = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;Unit&lt;/span&gt;(5, &lt;span style="color: #2b91af"&gt;UnitType&lt;/span&gt;.Pixel);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-size: 10pt"&gt;    spCellBottomLine.Controls.Add(&lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;LiteralControl&lt;/span&gt;(&lt;span style="color: #a31515"&gt;"&amp;lt;IMG SRC='/_layouts/images/blank.gif' width=1 height=1 alt=''&amp;gt;"&lt;/span&gt;));&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt; &lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;You can add bottom toolbar also to get same look and feel as OOB forms. There are SharePoint controls available like "&lt;span style="line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;; color: #2b91af; font-size: 10pt; mso-no-proof: yes; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;CreatedModifiedInfo&lt;/span&gt;" which displays created and modified information just like OOB list forms.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;At last, you need to write following lines to allow unsafe updates for Save and Delete button. If you miss this, you will get most famous error "Security validation for this page....".&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    &lt;span style="color: green"&gt;// Allow unsafe update on web for save button and delete button&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    &lt;span style="color: blue"&gt;if&lt;/span&gt; (&lt;span style="color: blue"&gt;this&lt;/span&gt;.Page.IsPostBack &amp;amp;&amp;amp; &lt;span style="color: blue"&gt;this&lt;/span&gt;.Page.Request[&lt;span style="color: #a31515"&gt;"__EventTarget"&lt;/span&gt;] != &lt;span style="color: blue"&gt;null&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        &amp;amp;&amp;amp; (&lt;span style="color: blue"&gt;this&lt;/span&gt;.Page.Request[&lt;span style="color: #a31515"&gt;"__EventTarget"&lt;/span&gt;].Contains(&lt;span style="color: #a31515"&gt;"IOSaveItem"&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        || &lt;span style="color: blue"&gt;this&lt;/span&gt;.Page.Request[&lt;span style="color: #a31515"&gt;"__EventTarget"&lt;/span&gt;].Contains(&lt;span style="color: #a31515"&gt;"IODeleteItem"&lt;/span&gt;)))&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    {&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        &lt;span style="color: #2b91af"&gt;SPContext&lt;/span&gt;.Current.Web.AllowUnsafeUpdates = &lt;span style="color: blue"&gt;true&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    }&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt; &lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;That’s all. We have finished writing Custom Code for adding field control. But something most important thing is skipped. In above code, I have called function “&lt;/font&gt;&lt;span style="line-height: 115%; font-family: 'Courier New'"&gt;&lt;font size="2"&gt;CreateFieldControls(web)&lt;/font&gt;&lt;/span&gt;&lt;font face="Calibri"&gt;”. &lt;/font&gt;&lt;/span&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;Let’s see the implementation of the function as below:&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    &lt;span style="color: blue"&gt;private&lt;/span&gt; &lt;span style="color: blue"&gt;void&lt;/span&gt; CreateFieldControls(&lt;span style="color: #2b91af"&gt;SPWeb&lt;/span&gt; pWeb)&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    {&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        &lt;span style="color: #2b91af"&gt;SPList&lt;/span&gt; listMain = pWeb.Lists[ListId];&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        &lt;span style="color: #2b91af"&gt;SPFieldCollection&lt;/span&gt; fields = listMain.Fields;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        &lt;span style="color: green"&gt;//Main Table to render all fields&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        spTableCntl = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;Table&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        spTableCntl.BorderWidth = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;Unit&lt;/span&gt;(0);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        spTableCntl.CellPadding = 0;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        spTableCntl.CellSpacing = 0;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        spTableCntl.Width = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;Unit&lt;/span&gt;(100, &lt;span style="color: #2b91af"&gt;UnitType&lt;/span&gt;.Percentage);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        spTableCntl.CssClass = &lt;span style="color: #a31515"&gt;"ms-formtable"&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        &lt;span style="color: #2b91af"&gt;SPContext&lt;/span&gt; controlContext = &lt;span style="color: #2b91af"&gt;SPContext&lt;/span&gt;.GetContext(&lt;span style="color: blue"&gt;this&lt;/span&gt;.Context, ItemId, ListId, pWeb);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        &lt;span style="color: blue"&gt;foreach&lt;/span&gt; (&lt;span style="color: #2b91af"&gt;SPField&lt;/span&gt; listField &lt;span style="color: blue"&gt;in&lt;/span&gt; fields)&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        {&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: blue"&gt;string&lt;/span&gt; fieldDisplayName = listField.Title;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: blue"&gt;string&lt;/span&gt; fieldInternalName = listField.InternalName;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: green"&gt;//Skip if the field is system field or hidden&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: blue"&gt;if&lt;/span&gt; (listField.Hidden || listField.ShowInVersionHistory == &lt;span style="color: blue"&gt;false&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                &lt;span style="color: blue"&gt;continue&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: green"&gt;//Skip if the control mode is display and field is read-only&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: blue"&gt;if&lt;/span&gt; (_ControlMode != &lt;span style="color: #2b91af"&gt;SPControlMode&lt;/span&gt;.Display &amp;amp;&amp;amp; listField.ReadOnlyField == &lt;span style="color: blue"&gt;true&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                &lt;span style="color: blue"&gt;continue&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: #2b91af"&gt;FieldLabel&lt;/span&gt; fieldLabel = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;FieldLabel&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            fieldLabel.FieldName = listField.InternalName;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            fieldLabel.ListId = ListId;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: #2b91af"&gt;BaseFieldControl&lt;/span&gt; fieldControl = listField.FieldRenderingControl;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            fieldControl.ListId = ListId;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: green"&gt;//Assign unique id using Field Internal Name&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            fieldControl.ID = &lt;span style="color: blue"&gt;string&lt;/span&gt;.Format(&lt;span style="color: #a31515"&gt;"Field_{0}"&lt;/span&gt;, fieldInternalName);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            fieldControl.EnableViewState = &lt;span style="color: blue"&gt;true&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: green"&gt;//Assign control mode&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            fieldLabel.ControlMode = _ControlMode;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            fieldControl.ControlMode = _ControlMode;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: blue"&gt;switch&lt;/span&gt; (_ControlMode)&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            {&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                &lt;span style="color: blue"&gt;case&lt;/span&gt; &lt;span style="color: #2b91af"&gt;SPControlMode&lt;/span&gt;.New:&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    fieldLabel.RenderContext = &lt;span style="color: #2b91af"&gt;SPContext&lt;/span&gt;.GetContext(pWeb);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    fieldControl.RenderContext = &lt;span style="color: #2b91af"&gt;SPContext&lt;/span&gt;.GetContext(pWeb);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    &lt;span style="color: blue"&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                &lt;span style="color: blue"&gt;case&lt;/span&gt; &lt;span style="color: #2b91af"&gt;SPControlMode&lt;/span&gt;.Edit:&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                &lt;span style="color: blue"&gt;case&lt;/span&gt; &lt;span style="color: #2b91af"&gt;SPControlMode&lt;/span&gt;.Display:&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    fieldLabel.RenderContext = controlContext;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    fieldLabel.ItemContext = controlContext;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    fieldLabel.ItemId = ItemId;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    fieldControl.RenderContext = controlContext;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    fieldControl.ItemContext = controlContext;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    fieldControl.ItemId = ItemId;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    &lt;span style="color: blue"&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            }&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: green"&gt;//Add row to display a field row&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: #2b91af"&gt;TableRow&lt;/span&gt; spCntlRow = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;TableRow&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            spTableCntl.Rows.Add(spCntlRow);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: green"&gt;//Add the cells for containing field lable and control&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: #2b91af"&gt;TableCell&lt;/span&gt; spCellLabel = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;TableCell&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            spCellLabel.Width = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;Unit&lt;/span&gt;(30, &lt;span style="color: #2b91af"&gt;UnitType&lt;/span&gt;.Percentage);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            spCellLabel.CssClass = &lt;span style="color: #a31515"&gt;"ms-formlabel"&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            spCntlRow.Cells.Add(spCellLabel);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: #2b91af"&gt;TableCell&lt;/span&gt; spCellControl = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;TableCell&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            spCellControl.Width = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;Unit&lt;/span&gt;(70, &lt;span style="color: #2b91af"&gt;UnitType&lt;/span&gt;.Percentage);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            spCellControl.CssClass = &lt;span style="color: #a31515"&gt;"ms-formbody"&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            spCntlRow.Cells.Add(spCellControl);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: green"&gt;//Add the control to the table cells&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            spCellLabel.Controls.Add(fieldLabel);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            spCellControl.Controls.Add(fieldControl);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: green"&gt;//Add description if there is any in case of New and Edit Mode&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: blue"&gt;if&lt;/span&gt; (_ControlMode != &lt;span style="color: #2b91af"&gt;SPControlMode&lt;/span&gt;.Display &amp;amp;&amp;amp; listField.Description != &lt;span style="color: blue"&gt;string&lt;/span&gt;.Empty)&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            {&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                &lt;span style="color: #2b91af"&gt;FieldDescription&lt;/span&gt; fieldDesc = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;FieldDescription&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                fieldDesc.FieldName = fieldInternalName;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                fieldDesc.ListId = ListId;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                spCellControl.Controls.Add(fieldDesc);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            }&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: green"&gt;//Disable Name(Title) in Edit Mode&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: blue"&gt;if&lt;/span&gt; (_ControlMode == &lt;span style="color: #2b91af"&gt;SPControlMode&lt;/span&gt;.Edit &amp;amp;&amp;amp; fieldDisplayName == &lt;span style="color: #a31515"&gt;"Name"&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            {&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                &lt;span style="color: #2b91af"&gt;TextBox&lt;/span&gt; txtTitlefield = (&lt;span style="color: #2b91af"&gt;TextBox&lt;/span&gt;)fieldControl.Controls[0].FindControl(&lt;span style="color: #a31515"&gt;"TextField"&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                txtTitlefield.Enabled = &lt;span style="color: blue"&gt;false&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            }&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        }&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;        fields = &lt;span style="color: blue"&gt;null&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;    }&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;b&gt; &lt;/b&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;First of all, I have declared List object and got list fields in field collection object called “fields”. Then I have added a table for the container of all controls&lt;/font&gt;&lt;font face="Calibri"&gt;. Now it’s time to navigate through all fields and add them to the page if required. &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;Here we don’t need to add hidden or system fields. We also don’t want to display read-only fields in new and edit forms. Following lines does this job.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: green"&gt;//Skip if the field is system field or hidden&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: blue"&gt;if&lt;/span&gt; (listField.Hidden || listField.ShowInVersionHistory == &lt;span style="color: blue"&gt;false&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                &lt;span style="color: blue"&gt;continue&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: green"&gt;//Skip if the control mode is display and field is read-only&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: blue"&gt;if&lt;/span&gt; (_ControlMode != &lt;span style="color: #2b91af"&gt;SPControlMode&lt;/span&gt;.Display &amp;amp;&amp;amp; listField.ReadOnlyField == &lt;span style="color: blue"&gt;true&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                &lt;span style="color: blue"&gt;continue&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;Let’s move to the next line of code.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: #2b91af"&gt;FieldLabel&lt;/span&gt; fieldLabel = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;FieldLabel&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            fieldLabel.FieldName = listField.InternalName;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            fieldLabel.ListId = ListId;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: #2b91af"&gt;BaseFieldControl&lt;/span&gt; fieldControl = listField.FieldRenderingControl;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            fieldControl.ListId = ListId;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: green"&gt;//Assign unique id using Field Internal Name&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            fieldControl.ID = &lt;span style="color: blue"&gt;string&lt;/span&gt;.Format(&lt;span style="color: #a31515"&gt;"Field_{0}"&lt;/span&gt;, fieldInternalName);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            fieldControl.EnableViewState = &lt;span style="color: blue"&gt;true&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: green"&gt;//Assign control mode&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            fieldLabel.ControlMode = _ControlMode;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            fieldControl.ControlMode = _ControlMode;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt; &lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;We have used “&lt;/font&gt;&lt;span style="line-height: 115%; font-family: 'Courier New'; color: #2b91af"&gt;&lt;span style="color: #2b91af"&gt;&lt;font size="2"&gt;FieldLabel&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Calibri"&gt;” control for displaying field title. The advantage of using Field Label is, SharePoint automatically adds red star besides field label to identify it as mandatory field if there is any. &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;Here is the most important part to understand. The “&lt;/font&gt;&lt;span style="line-height: 115%; font-family: 'Courier New'; color: #2b91af"&gt;&lt;font size="2"&gt;&lt;span style="color: #2b91af"&gt;BaseFieldControl&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font face="Calibri"&gt;” which will will render the respective web controls according to type of the field. For example, if it’s single line of text, then Textbox, if it’s look up field then it renders dropdown. &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;Additionally, the “ControlMode” property tells compiler how control will get rendered on various List Forms. In display mode, it will render label with field value. In edit mode, it will render respective control with item value and in new mode, it will render respective control with empty/default value. &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;Please note that, it’s not always the case when dropdown field will be rendered for Lookup field or Choice field. You need to understand which controls are rendered for which list fields. I am planning to write a separate blog which I hope to publish it very soon. &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;Moreover, we also need to assign list field specific properties like List Id, Field Name etc to identify which SharePoint List field is attached with the control. &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: blue"&gt;switch&lt;/span&gt; (_ControlMode)&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            {&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                &lt;span style="color: blue"&gt;case&lt;/span&gt; &lt;span style="color: #2b91af"&gt;SPControlMode&lt;/span&gt;.New:&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    fieldLabel.RenderContext = &lt;span style="color: #2b91af"&gt;SPContext&lt;/span&gt;.GetContext(pWeb);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    fieldControl.RenderContext = &lt;span style="color: #2b91af"&gt;SPContext&lt;/span&gt;.GetContext(pWeb);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    &lt;span style="color: blue"&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                &lt;span style="color: blue"&gt;case&lt;/span&gt; &lt;span style="color: #2b91af"&gt;SPControlMode&lt;/span&gt;.Edit:&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                &lt;span style="color: blue"&gt;case&lt;/span&gt; &lt;span style="color: #2b91af"&gt;SPControlMode&lt;/span&gt;.Display:&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    fieldLabel.RenderContext = controlContext;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    fieldLabel.ItemContext = controlContext;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    fieldLabel.ItemId = ItemId;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    fieldControl.RenderContext = controlContext;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    fieldControl.ItemContext = controlContext;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    fieldControl.ItemId = ItemId;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    &lt;span style="color: blue"&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            }&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt; &lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;Here, I have separated the code for New mode and Edit/Display mode because we will not have Item Id to assign in New Mode. We also need to set CSS class for cell containing Label and Controls so that those controls get rendered with SharePoint theme and layout.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            spCellLabel.CssClass = &lt;span style="color: #a31515"&gt;"ms-formlabel"&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            spCellControl.CssClass = &lt;span style="color: #a31515"&gt;"ms-formbody"&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;“&lt;/font&gt;&lt;span style="line-height: 115%; font-family: 'Courier New'; color: #2b91af"&gt;&lt;font size="2"&gt;&lt;span style="color: #2b91af"&gt;FieldDescription&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font face="Calibri"&gt;” control is used to add field description if there is any.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;   &lt;/span&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;Now it’s time to add some customization, &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: green"&gt;//Disable Name(Title) in Edit Mode&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            &lt;span style="color: blue"&gt;if&lt;/span&gt; (_ControlMode == &lt;span style="color: #2b91af"&gt;SPControlMode&lt;/span&gt;.Edit &amp;amp;&amp;amp; fieldDisplayName == &lt;span style="color: #a31515"&gt;"Name"&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            {&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                &lt;span style="color: #2b91af"&gt;TextBox&lt;/span&gt; txtTitlefield = (&lt;span style="color: #2b91af"&gt;TextBox&lt;/span&gt;)fieldControl.Controls[0].FindControl(&lt;span style="color: #a31515"&gt;"TextField"&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                txtTitlefield.Enabled = &lt;span style="color: blue"&gt;false&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            }&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt; &lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;The above code will disable the title field in edit mode. &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;You can add more code here to achieve more customization according to your requirement. Some of the examples are as follow:&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; color: green; font-size: 10pt"&gt;            //Adding post back event on UserField to auto populate some other dependent field&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; color: green; font-size: 10pt"&gt;            //in new mode and disable it in edit mode&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; color: green; font-size: 10pt"&gt;            &lt;/span&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;if (_ControlMode != &lt;span style="color: #2b91af"&gt;SPControlMode&lt;/span&gt;.Display &amp;amp;&amp;amp; fieldDisplayName == &lt;span style="color: #a31515"&gt;"Manager"&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            {&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                if (fieldControl.Controls[0].FindControl(&lt;span style="color: #a31515"&gt;"UserField"&lt;/span&gt;) != null)&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                {&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    &lt;span style="color: #2b91af"&gt;PeopleEditor&lt;/span&gt; pplEditor = (&lt;span style="color: #2b91af"&gt;PeopleEditor&lt;/span&gt;)fieldControl.Controls[0].FindControl(&lt;span style="color: #a31515"&gt;"UserField"&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    if (_ControlMode == &lt;span style="color: #2b91af"&gt;SPControlMode&lt;/span&gt;.New)&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                        pplEditor.AutoPostBack = true;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                    else&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                        pplEditor.Enabled = false;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                }&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            }&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt; &lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; color: green; font-size: 10pt"&gt;            //Add JavaScript Event on Dropdown field. Don't forget to add the JavaScript function on the page.&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; color: green; font-size: 10pt"&gt;            &lt;/span&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;if (_ControlMode == &lt;span style="color: #2b91af"&gt;SPControlMode&lt;/span&gt;.Edit &amp;amp;&amp;amp; fieldDisplayName == &lt;span style="color: #a31515"&gt;"Designation"&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            {&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                &lt;span style="color: #2b91af"&gt;DropDownList&lt;/span&gt; ddlCategory = (&lt;span style="color: #2b91af"&gt;DropDownList&lt;/span&gt;)fieldControl.Controls[0];&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;                ddlCategory.Attributes.Add(&lt;span style="color: #a31515"&gt;"onchange"&lt;/span&gt;, &lt;span style="color: blue"&gt;string&lt;/span&gt;.Format(&lt;span style="color: #a31515"&gt;"javascript:DropdownChangeEvent('{0}');return false;"&lt;/span&gt;, ddlCategory.ClientID));&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; font-size: 10pt"&gt;            }&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: 'Courier New'; color: green; font-size: 10pt"&gt;   &lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;Finally your custom list form is ready to be deployed. Cheers!!!&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;In next blog, I am going to explain how to create package to deploy Custom ListForms on SharePoint site through Features.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;Following are the screenshots of my Custom ListForm WebPart. Let’s play a game, check out your OOB List forms of SharePoint, compare with these screens and find out differences. &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt; &lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: large"&gt;&lt;b&gt;&lt;u&gt;&lt;font face="Calibri"&gt;DispForm.aspx:&lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt; &lt;img alt="" width="771" height="272" src="http://gwb.blob.core.windows.net/dipeshbhanani/CustomListFormImages/DispForm.jpg" /&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt; &lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: large"&gt;&lt;b&gt;&lt;u&gt;&lt;font face="Calibri"&gt;EditForm.aspx:&lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;img alt="" width="619" height="282" src="http://gwb.blob.core.windows.net/dipeshbhanani/CustomListFormImages/EditForm.jpg" /&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: large"&gt;&lt;b&gt;&lt;u&gt;&lt;font face="Calibri"&gt;NewForm.aspx:&lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt; &lt;img alt="" width="630" height="268" src="http://gwb.blob.core.windows.net/dipeshbhanani/CustomListFormImages/NewForm.jpg" /&gt;&lt;/div&gt;
&lt;div style="margin: 0in 0in 10pt 0.25in"&gt;&lt;span style="font-size: medium"&gt;&lt;font face="Calibri"&gt;Enjoy the SharePoint Soup!!!&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;p&gt; &lt;/p&gt; &lt;img src="http://geekswithblogs.net/DipeshBhanani/aggbug/139792.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>DipeshBhanani</dc:creator>
            <guid>http://geekswithblogs.net/DipeshBhanani/archive/2010/05/13/how-to-create-custom-listform-webpart.aspx</guid>
            <pubDate>Thu, 13 May 2010 14:50:25 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/DipeshBhanani/comments/139792.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/DipeshBhanani/archive/2010/05/13/how-to-create-custom-listform-webpart.aspx#feedback</comments>
            <slash:comments>4</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/DipeshBhanani/comments/commentRss/139792.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/DipeshBhanani/services/trackbacks/139792.aspx</trackback:ping>
        </item>
        <item>
            <title>How to move MOSS 2007 to another SharePoint Farm</title>
            <category>SharePoint</category>
            <link>http://geekswithblogs.net/DipeshBhanani/archive/2010/04/22/how-to-move-moss-2007-to-another-sharepoint-farm.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/DipeshBhanani/archive/2010/04/22/how-to-move-moss-2007-to-another-sharepoint-farm.aspx'&gt;http://geekswithblogs.net/DipeshBhanani/archive/2010/04/22/how-to-move-moss-2007-to-another-sharepoint-farm.aspx&lt;/a&gt;&lt;/p&gt;&lt;div&gt;&lt;span style="font-family: Arial"&gt;&lt;span&gt;&lt;span style="font-size: small"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: Arial"&gt;&lt;span&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;It was time of my first onsite client assignment on SharePoint. Client had one server production environment. They wanted to upgrade the topology with completely new SharePoint Farm of three servers. So, the task was to move whole MOSS 2007 stuff to the new server environment without impacting data. The last three words “… without impacting data…” were actually putting pressure on my head. Moreover SSP was required to move because additional information has been added for users apart from AD import. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;I thought I had to do only backup and restore. It appeared pretty easy at first thought. Just because of these three damn scary words, I thought to check out on internet for guidance related to this scenario. I couldn’t get anything except general guidance of moving server on Microsoft TechNet site. I promised myself for starting blogs with this post if I would be successful in this task. Well, I took long time to write this but finally made it. I hope it will be useful to all guys looking for SharePoint server movement.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;Before beginning restoration, make sure that, there is no difference in versions of SharePoint at source and destination server. Also check whether the state of SharePoint Installation at the time of backup and restore is same or not. (E.g. SharePoint related service packs and patches if any)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;The main tasks of the server movement are as follow:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: -0.25in; margin: 0in 0in 10pt 0.5in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;1.&lt;span style="font: 7pt 'Times New Roman'"&gt;        &lt;/span&gt;Backup all the web applications including SSP with all associated database through Central Admin. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: -0.25in; margin: 0in 0in 10pt 0.5in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;2.&lt;span style="font: 7pt 'Times New Roman'"&gt;        &lt;/span&gt;Install and configure SharePoint on new environment.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: -0.25in; margin: 0in 0in 10pt 0.5in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;3.&lt;span style="font: 7pt 'Times New Roman'"&gt;        &lt;/span&gt;Deploy all solutions (WSP Files) globally to destination server- for installing features attached to the solutions.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: -0.25in; margin: 0in 0in 10pt 0.5in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;4.&lt;span style="font: 7pt 'Times New Roman'"&gt;        &lt;/span&gt;Install all the custom features.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: -0.25in; margin: 0in 0in 10pt 0.5in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;5.&lt;span style="font: 7pt 'Times New Roman'"&gt;        &lt;/span&gt;Deploy/Copy custom pages/files which are added to the “12Hive” folder.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: -0.25in; margin: 0in 0in 10pt 0.5in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;6.&lt;span style="font: 7pt 'Times New Roman'"&gt;        &lt;/span&gt;Restore SSP through Central Admin.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: -0.25in; margin: 0in 0in 10pt 0.5in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;7.&lt;span style="font: 7pt 'Times New Roman'"&gt;        &lt;/span&gt;Restore My Site through Central Admin.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: -0.25in; margin: 0in 0in 10pt 0.5in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;8.&lt;span style="font: 7pt 'Times New Roman'"&gt;        &lt;/span&gt;Restore all other web applications through Central Admin.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;Tasks 3 to 5 are for making sure that we have configured the environment well enough for the web application to be restored successfully. The main and complex task was restoring SSP. I have started restoring SSP through Central Admin. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;After a while, the restoration status was updated to “unsuccessful”. “Damn it, what went wrong?” I thought looking at the error detail down the page. I couldn’t remember the error message but I had corrected and restored it again. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;Actually once you fail restoring SSP, until and unless you don’t clean all related stuff well, your restoration will be failed again and again. I wanted to find the actual reason. So cleaned, restored, cleaned, restored… I had tried almost 5-6 times and finally, I succeeded. I had realized how pleasant it is, to see the word “Successful” on the screen. Without wasting your much time to read, let me write all the detailed steps of restoring SSP:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: -0.25in; margin: 0in 0in 10pt 0.5in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;1.&lt;span style="font: 7pt 'Times New Roman'"&gt;        &lt;/span&gt;Delete the SSP through following &lt;i&gt;STSADM&lt;/i&gt; command. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: 0.25in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;stsadm -o deletessp -title &lt;i&gt;&amp;lt;SSP name&amp;gt;&lt;/i&gt; -deletedatabases -force&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: 0.5in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;e.g.: stsadm -o deletessp -title &lt;i&gt;SharedServices1&lt;/i&gt; -deletedatabases –force&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: -0.25in; margin: 0in 0in 10pt 0.5in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;2.&lt;span style="font: 7pt 'Times New Roman'"&gt;        &lt;/span&gt;Check and delete the web application associated with SSP if it exists. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: -0.25in; margin: 0in 0in 10pt 0.5in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;3.&lt;span style="font: 7pt 'Times New Roman'"&gt;        &lt;/span&gt;Remove Link from Check and remove “&lt;i&gt;Alternate Access Mapping&lt;/i&gt;” associated with SSP if it exists. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: -0.25in; margin: 0in 0in 10pt 0.5in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;4.&lt;span style="font: 7pt 'Times New Roman'"&gt;        &lt;/span&gt;Check and delete IIS site as well as application pool associated with SSP if it exists. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: -0.25in; margin: 0in 0in 10pt 0.5in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;5.&lt;span style="font: 7pt 'Times New Roman'"&gt;        &lt;/span&gt;Stop following services: &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: -0.25in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;·         &lt;i&gt;Office SharePoint Server Search&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: -0.25in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;·         &lt;i&gt;Windows SharePoint Services Search&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: -0.25in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;·         &lt;i&gt;Windows SharePoint Services Help Search&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: -0.25in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: -0.25in; margin: 0in 0in 10pt 0.5in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;6.&lt;span style="font: 7pt 'Times New Roman'"&gt;        &lt;/span&gt;Delete all the databases associated/related to SSP from SQL Server. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: -0.25in; margin: 0in 0in 10pt 0.5in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;7.&lt;span style="font: 7pt 'Times New Roman'"&gt;        &lt;/span&gt;Reset IIS. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: -0.25in; margin: 0in 0in 10pt 0.5in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;8.&lt;span style="font: 7pt 'Times New Roman'"&gt;        &lt;/span&gt;Start again following services: &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: -0.25in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;·         &lt;i&gt;Office SharePoint Server Search&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: -0.25in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;·         &lt;i&gt;Windows SharePoint Services Search&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: -0.25in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;·         &lt;i&gt;Windows SharePoint Services Help Search&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: -0.25in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal; text-indent: -0.25in; margin: 0in 0in 10pt 0.5in"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;9.&lt;span style="font: 7pt 'Times New Roman'"&gt;        &lt;/span&gt;Restore the new SSP. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt;After the SSP restoration, all other stuffs had completed very smoothly without any more issues. I did few modifications to sites for change of server name and finally, the new environment was ready.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="line-height: normal"&gt;&lt;span style="font-family: Arial"&gt;&lt;span style="font-size: small"&gt;&lt;span style="color: #000080"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;img src="http://geekswithblogs.net/DipeshBhanani/aggbug/139449.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>DipeshBhanani</dc:creator>
            <guid>http://geekswithblogs.net/DipeshBhanani/archive/2010/04/22/how-to-move-moss-2007-to-another-sharepoint-farm.aspx</guid>
            <pubDate>Thu, 22 Apr 2010 15:07:10 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/DipeshBhanani/comments/139449.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/DipeshBhanani/archive/2010/04/22/how-to-move-moss-2007-to-another-sharepoint-farm.aspx#feedback</comments>
            <slash:comments>8</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/DipeshBhanani/comments/commentRss/139449.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/DipeshBhanani/services/trackbacks/139449.aspx</trackback:ping>
        </item>
        <item>
            <title>My First Dive into Ocean of SharePoint</title>
            <category>SharePoint</category>
            <link>http://geekswithblogs.net/DipeshBhanani/archive/2010/03/23/my-first-dive-into-ocean-of-sharepoint.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/DipeshBhanani/archive/2010/03/23/my-first-dive-into-ocean-of-sharepoint.aspx'&gt;http://geekswithblogs.net/DipeshBhanani/archive/2010/03/23/my-first-dive-into-ocean-of-sharepoint.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: medium"&gt;&lt;span style="color: #000080"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table border="0" cellspacing="0" cellpadding="0"&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td style="width: 2pt"&gt;&lt;span style="font-size: medium"&gt;&lt;span style="color: #000080"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
            &lt;td style="font-family: 'Gill Sans MT'; color: #5e7e8e; font-size: small"&gt;
            &lt;p&gt;&lt;span style="font-size: medium"&gt;&lt;span style="color: #000080"&gt;Hello Guys, &lt;br /&gt;
            &lt;br /&gt;
            I am Dipesh Bhanani, An IT Consultant from an MNC. I have worked with many client as a SharePoint Consultant ever since. I have been on various successful engagements deploying Project Server 2003/2007, SharePoint 2003, MOSS 2007 and InfoPath 2007. &lt;br /&gt;
            &lt;br /&gt;
            People have asked me for years why I don’t start blogging. I have come across many technical hurdles in the ocean of SharePoint and resolved them passionately. So I thought why I should not share my knowledge to alleviate SharePoint troubles. &lt;br /&gt;
            &lt;br /&gt;
            Wish me luck on my ride in the world of Blogging, please share your thoughts on my topics right here on my blog! &lt;br /&gt;
            &lt;br /&gt;
            More to come soon!&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;p&gt;&lt;span style="font-size: medium"&gt;&lt;span style="color: #000080"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;span style="font-size: medium"&gt;&lt;span style="color: #000080"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;img src="http://geekswithblogs.net/DipeshBhanani/aggbug/138879.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>DipeshBhanani</dc:creator>
            <guid>http://geekswithblogs.net/DipeshBhanani/archive/2010/03/23/my-first-dive-into-ocean-of-sharepoint.aspx</guid>
            <pubDate>Wed, 24 Mar 2010 04:36:53 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/DipeshBhanani/comments/138879.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/DipeshBhanani/archive/2010/03/23/my-first-dive-into-ocean-of-sharepoint.aspx#feedback</comments>
            <slash:comments>4</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/DipeshBhanani/comments/commentRss/138879.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/DipeshBhanani/services/trackbacks/138879.aspx</trackback:ping>
        </item>
    </channel>
</rss>