<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>My Blogs on Sharepoint</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/pavankumar/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/pavankumar/feed.xml</link>
    <description />
    <lastBuildDate>Tue, 16 Apr 2019 05:24:18 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>How to hide "Respond to this Survey" when a user has already responded to the Survey</title>
      <link>https://docs.microsoft.com/archive/blogs/pavankumar/how-to-hide-respond-to-this-survey-when-a-user-has-already-responded-to-the-survey</link>
      <pubDate>Fri, 19 Mar 2010 02:37:07 GMT</pubDate>
      <dc:creator><![CDATA[Pavan*Kumar]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/pavankumar/2010/03/19/how-to-hide-respond-to-this-survey-when-a-user-has-already-responded-to-the-survey/</guid>
      <description><![CDATA[1. The Rendering Template for the Survey List is in the defaulttemplates.ascx control under...]]></description>
      <content:encoded><![CDATA[<p></p>  <p>1. The Rendering Template for the Survey List is in the defaulttemplates.ascx control under 12/Template/Control template. </p>  <p>2. The rendering template ID is “ViewToolBar”. This template renders the &quot;Respond to this Survey&quot;, Actions menu and Settings menu in the toolbar. </p>  <p>3. This template is a generic template which is used by Other lists as well.</p>  <p>4. The template is given below :</p>  <p>&lt;SharePoint:RenderingTemplate ID=&quot;ViewToolBar&quot; runat=&quot;server&quot;&gt;</p>  <p>&lt;Template&gt;</p>  <p>&lt;wssuc:ToolBar CssClass=&quot;ms-menutoolbar&quot; EnableViewState=&quot;false&quot; id=&quot;toolBarTbl&quot; ButtonSeparator=&quot;&lt;img src='/_layouts/images/blank.gif' alt=''&gt;&quot; RightButtonSeparator=&quot;&amp;nbsp;&amp;nbsp;&quot; runat=&quot;server&quot;&gt;</p>  <p>&lt;Template_Buttons&gt;</p>  <p>&lt;SharePoint:NewMenu AccessKey=&quot;&lt;%$Resources:wss,tb_NewMenu_AK%&gt;&quot; runat=&quot;server&quot; /&gt;</p>  <p>&lt;SharePoint:ActionsMenu AccessKey=&quot;&lt;%$Resources:wss,tb_ActionsMenu_AK%&gt;&quot; runat=&quot;server&quot; /&gt;</p>  <p>&lt;SharePoint:SettingsMenu AccessKey=&quot;&lt;%$Resources:wss,tb_SettingsMenu_AK%&gt;&quot; runat=&quot;server&quot; /&gt;</p>  <p>&lt;/Template_Buttons&gt;</p>  <p>&lt;Template_RightButtons&gt;</p>  <p>&lt;SharePoint:PagingButton runat=&quot;server&quot;/&gt;</p>  <p>&lt;SharePoint:ListViewSelector runat=&quot;server&quot;/&gt;</p>  <p>&lt;/Template_RightButtons&gt;</p>  <p>&lt;/wssuc:ToolBar&gt;</p>  <p>&lt;/Template&gt;</p>  <p>&lt;/SharePoint:RenderingTemplate&gt;</p>  <p>5. &quot;Respond to this Survey&quot; is rendered by &lt;SharePoint:NewMenu AccessKey=&quot;&lt;%$Resources:wss,tb_NewMenu_AK%&gt;&quot; runat=&quot;server&quot; /&gt;.</p>  <p>6. We cannot modify OOB defaulttemplates.ascx as this would be unsupported.</p>  <p>7. Make a copy of defaulttemplates.ascx under CONTROL TEMPLATES FOLDER of 12 hive and rename it to CustomDefaultTemplates.ascx</p>  <p>8. To hide “Respond to this Survey” if a user has already responded to the survey, Create a class which inherits from the Microsoft.Sharepoint.WebControls.NewMenu.</p>  <p>9. In this override CreateChildControls and have your logic to hide unhide &quot;Respond to this Survey&quot; based on your need.</p>  <p>10. Build the class library and install the dll to the GAC.</p>  <p>11. Modify the “ViewToolBar” in the custom ascx such that to render your custom &quot;Respond to this Survey&quot; menu from the class library you created. </p>  <p>(Note : You need to add your assembly reference and register the tag prefix in the Custom ascx control.)</p>  <p>The following is the snippet from the custom ascx control :</p>  <p>&lt;SharePoint:RenderingTemplate ID=&quot;CustomViewToolBar&quot; runat=&quot;server&quot;&gt;</p>  <p>&lt;Template&gt;</p>  <p>&lt;wssuc:ToolBar CssClass=&quot;ms-menutoolbar&quot; EnableViewState=&quot;false&quot; id=&quot;toolBarTbl&quot; ButtonSeparator=&quot;&lt;img src='/_layouts/images/blank.gif' alt=''&gt;&quot; RightButtonSeparator=&quot;&amp;nbsp;&amp;nbsp;&quot; runat=&quot;server&quot;&gt;</p>  <p>&lt;Template_Buttons&gt;</p>  <p>&lt;CustomSurvey:SurveyMenu ID=&quot;SurveyID&quot; runat=&quot;server&quot;&gt;&lt;/CustomSurvey:SurveyMenu&gt;</p>  <p>&lt;SharePoint:ActionsMenu AccessKey=&quot;&lt;%$Resources:wss,tb_ActionsMenu_AK%&gt;&quot; runat=&quot;server&quot; /&gt;</p>  <p>&lt;SharePoint:SettingsMenu AccessKey=&quot;&lt;%$Resources:wss,tb_SettingsMenu_AK%&gt;&quot; runat=&quot;server&quot; /&gt;</p>  <p>&lt;/Template_Buttons&gt;</p>  <p>&lt;Template_RightButtons&gt;</p>  <p>&lt;SharePoint:PagingButton runat=&quot;server&quot;/&gt;</p>  <p>&lt;SharePoint:ListViewSelector runat=&quot;server&quot;/&gt;</p>  <p>&lt;/Template_RightButtons&gt;</p>  <p>&lt;/wssuc:ToolBar&gt;</p>  <p>&lt;/Template&gt;</p>  <p>&lt;/SharePoint:RenderingTemplate&gt;</p>  <p>12. Next step is to render the custom rendering template to the &quot;Survey List&quot; so that the custom &quot;Respond to this Survey&quot; menu will be rendered in the toolbar. </p>  <p>13. For this the &quot;ToolbarTemplate&quot; property of the View should be changed in the schema.xml file of the Survey List definition. </p>  <p>14. As modifying the OOB files are not supported, Copy the “SurveyList” folder from 12/Template/Features and paste in the same place as “CustomSurveysList”.</p>  <p>Change the feature ID of the “CustomSurveyList”</p>  <p>15. Open the schema.xml file available under survey folder of “CustomSurveysList” and add the “ToolbarTemplate=CustomViewToolBar” attribute to the “View BaseID=0”. </p>  <p>16. Sample attached : &lt;View BaseViewID=&quot;0&quot; FreeForm=&quot;TRUE&quot; ReadOnly=&quot;TRUE&quot; Type=&quot;HTML&quot; ToolBarTemplate=&quot; CustomViewToolBar &quot;&gt;</p>  <p>17. Install and activate &quot;CustomSurveysList&quot;</p>  <p>18. Create a Survey List using CustomSurveyList template and we should be able to achieve the functionality as required.</p>  <p>&#160;</p>  <p>CODE FOR CUSTOM ascx file   <br />---------------------------------    <br />using System;    <br />using System.Collections.Generic;    <br />using System.Linq;    <br />using System.Text;    <br />using Microsoft.SharePoint;    <br />using Microsoft.SharePoint.WebControls;    <br />using System.Web;    <br />using Microsoft.SharePoint.Utilities;    <br />using System.Globalization; </p>  <p>namespace CustomSurveyMenu   <br />{    <br />&#160;&#160;&#160; public class SurveyMenu : NewMenu    <br />&#160;&#160;&#160; { </p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; protected override void CreateChildControls()   <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; try    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; string valueToEncode = SPResource.GetString(&quot;ToolBarMenuRespondToSurvey&quot;, new object[0]);    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; SPLinkButton child = new SPLinkButton();    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; child.ID = &quot;diidIONewItem&quot;;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; child.Text = SPHttpUtility.HtmlEncode(valueToEncode);    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; child.ToolTip = valueToEncode;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; child.ImageUrl = &quot;/_layouts/images/NewItem.gif&quot;;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; child.HoverCellActiveCssClass = &quot;ms-buttonactivehover&quot;;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; child.HoverCellInActiveCssClass = &quot;ms-buttoninactivehover&quot;;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; child.Permissions = SPBasePermissions.EmptyMask | SPBasePermissions.AddListItems;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; child.PermissionContext = PermissionContext.CurrentFolder;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; child.RenderContext = base.RenderContext;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; child.NavigateUrl = SPContext.Current.Web.Url + &quot;/Lists/&quot; + SPContext.Current.List.Title + &quot;/NewForm.aspx?Source=&quot; + SPHttpUtility.HtmlEncode(SPContext.Current.Web.Url + &quot;/&quot; + SPContext.Current.List.Views[&quot;Overview&quot;].Url);    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; child.AccessKey = (string)HttpContext.GetGlobalResourceObject(&quot;wss&quot;, &quot;tb_NewMenu_AK&quot;, CultureInfo.CurrentUICulture); </p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; SPList oList = SPContext.Current.List;   <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; SPListItemCollection oListItemColl = oList.Items;</p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; SPUser oUserNew = this.Web.CurrentUser;   <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; string strUserName = oUserNew.Name; </p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; foreach (SPListItem oItem in oListItemColl)   <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; string strCreatedBy = oItem[&quot;Created By&quot;].ToString().Trim();    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; string[] SplitCreated = strCreatedBy.Split(new Char[] { '#' }); </p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; string strModifiedBy = oItem[&quot;Modified By&quot;].ToString().Trim();   <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; string[] SplitModified = strModifiedBy.Split(new Char[] { '#' }); </p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (Convert.ToString(SplitCreated[1]).ToUpper() == strUserName.ToUpper() &amp;&amp; oItem[&quot;Completed&quot;].ToString().ToUpper() == &quot;1&quot; &amp;&amp; Convert.ToString(SplitModified[1]).ToUpper() == strUserName.ToUpper())   <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; child.Visible = false;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } </p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; this.Controls.Add(child);   <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; catch (Exception ex)    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // PUT YOUR LOGIC TO CATCH EXCEPTION. Whether you would want to write it into a txt file etc..    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }    <br />&#160;&#160;&#160; }    <br />}</p>]]></content:encoded>
    </item>
    <item>
      <title>How to hide “Site Collection Administrators” link from settings toolbar menu of Out-of-the-Box User.aspx page (_layouts/user.aspx).</title>
      <link>https://docs.microsoft.com/archive/blogs/pavankumar/how-to-hide-site-collection-administrators-link-from-settings-toolbar-menu-of-out-of-the-box-user-aspx-page-_layoutsuser-aspx</link>
      <pubDate>Thu, 15 Oct 2009 21:18:08 GMT</pubDate>
      <dc:creator><![CDATA[Pavan*Kumar]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/pavankumar/2009/10/15/how-to-hide-site-collection-administrators-link-from-settings-toolbar-menu-of-out-of-the-box-user-aspx-page-_layoutsuser-aspx/</guid>
      <description><![CDATA[Option1 : Using a custom HttpModule to redirect to a custom-mngsiteadmin page. This approach ensures...]]></description>
      <content:encoded><![CDATA[<p><u>Option1 : Using a custom HttpModule to redirect to a custom-mngsiteadmin page. This approach ensures :</u></p>  <p>The OOB page isn’t accessible, even if users put the actual url (layouts/mngsiteadmin.aspx&quot;) in the browser and try accessing it.</p>  <p>Is easy to implement and supported.</p>  <p><u></u></p>  <p><u>The following sample approach can be tested : </u></p>  <p>&lt;Sample-Code&gt;</p>  <p>public class MasterPageModuleHandler : IHttpModule</p>  <p>&#160;&#160;&#160; {</p>  <p>public void Init(HttpApplication context)</p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; {</p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; context.BeginRequest += new EventHandler(context_BeginRequest);</p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>  <p>void context_BeginRequest(object sender, EventArgs e)</p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; {</p>  <p>// throw new Exception(&quot;The method or operation is not implemented.&quot;);</p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; HttpApplication oApp = (HttpApplication)sender;</p>  <p>if (oApp.Request.RawUrl.Contains(&quot;/_layouts/mngsiteadmin.aspx&quot;))</p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {</p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; oApp.Response.Redirect(oApp.Request.RawUrl.Remove(oApp.Request.RawUrl.LastIndexOf(&quot;/&quot;)) + &quot;/custom/SfMngSiteAdmin.aspx&quot;);</p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>  <p>public void Dispose()</p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; {</p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>  <p>&#160;&#160;&#160; }</p>  <p>&lt;/Sample-Code&gt;</p>  <p>1. Build the Custom HTTP Module DLL and place it in the GAC</p>  <p>2. Assuming that a custom folder has been created under Layouts folder, ensure that custom-mngsiteadmin.aspx is present there.</p>  <p>3. Add the web.config entry for the custom HTTPModule in the config file of Web application </p>  <p>Find the HttpModules section in the web.config and add the following entry</p>  <p>&lt;add name=&quot;HTTPModuleSPFileCache&quot; type=&quot;HTTPModuleSPFileCache.CSetFileCache, HTTPModuleSPFileCache, Version=1.0.0.0, Culture=neutral, PublicKeyToken=&lt;your key here&gt;&quot; /&gt;</p>  <p>4. Do an IISRESET.</p>  <p>Note: By putting a custom httpmodule in place, instead of normal 200 HTTP status, we get a HTTP 302 (Moved) and then a 200. No issues of performance hit have been reported , in using this approach, and you might want to test this one.</p>  <p><u>Option 2: Unlike Document Libraries\Lists, where the ToolBar is rendered through Templates defined in ControlTemplates.ascx, the Settings ToolBar for User.aspx is defined in the .aspx like below :</u></p>  <p>&lt;SharePoint:FeatureMenuTemplate id=&quot;MenuTemplateSettings&quot; LargeIconMode=&quot;TRUE&quot; runat=&quot;server&quot;</p>  <p>Location=&quot;Microsoft.SharePoint.User&quot;</p>  <p>GroupId=&quot;SettingsMenu&quot;</p>  <p>&gt;</p>  <p>&lt;SharePoint:MenuItemTemplate id=&quot;MenuItemSiteAdmins&quot; runat=&quot;server&quot; Text=&quot;&lt;%$Resources:wss,people_siteadmins%&gt;&quot;</p>  <p>Description=&quot;&lt;%$Resources:wss,people_siteadminsdescription%&gt;&quot;</p>  <p>ClientOnClickNavigateUrl=&quot;~site/_layouts/mngsiteadmin.aspx&quot; Visible=false MenuGroupId=&quot;300&quot; Sequence=&quot;100&quot; /&gt;</p>  <p>MenuItemSiteAdmins is the ID of the the template responsible for rendering below menu :</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/pavankumar/WindowsLiveWriter/HowtohideSiteCollectionAdministratorsli_89CF/clip_image002_2.jpg" original-url="https://blogs.msdn.com/blogfiles/pavankumar/WindowsLiveWriter/HowtohideSiteCollectionAdministratorsli_89CF/clip_image002_2.jpg"><img title="clip_image002" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="129" alt="clip_image002" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/pavankumar/WindowsLiveWriter/HowtohideSiteCollectionAdministratorsli_89CF/clip_image002_thumb.jpg" original-url="https://blogs.msdn.com/blogfiles/pavankumar/WindowsLiveWriter/HowtohideSiteCollectionAdministratorsli_89CF/clip_image002_thumb.jpg" width="244" border="0" /></a></p>  <p>So, to be able to override this behavior, I have to create a custom User.aspx page and override the link url to point to custom- mngsiteadmin.aspx page,Like below :</p>  <p>&lt;SharePoint:FeatureMenuTemplate id=&quot;MenuTemplateSettings&quot; LargeIconMode=&quot;TRUE&quot; runat=&quot;server&quot;</p>  <p>Location=&quot;Microsoft.SharePoint.User&quot;</p>  <p>GroupId=&quot;SettingsMenu&quot;</p>  <p>&gt;</p>  <p>&lt;SharePoint:MenuItemTemplate id=&quot;MyMenuItemSiteAdmins&quot; runat=&quot;server&quot; Text=&quot;&lt;%$Resources:wss,people_siteadmins%&gt;&quot;</p>  <p>Description=&quot;&lt;%$Resources:wss,people_siteadminsdescription%&gt;&quot; ClientOnClickNavigateUrl=&quot;~site/_layouts/custommngsiteadmin.aspx&quot; Visible=true MenuGroupId=&quot;300&quot; Sequence=&quot;100&quot; /&gt;</p>  <p>So, modifying ClientOnClickNavigateUrl and Visible both&#160; - does the trick.</p>  <p>Next step would be to correct all places where user.aspx appears, to actually point to custom user.aspx. (As I cannot modify OOB User.aspx, I basically have to create a custom copy of it, and then</p>  <p>Correct all those menu-items\links&#160; which point to User.aspx)</p>  <p>Two of such places ,that I can enumerate are :</p>  <p>1. Site Permissions link in QuickLaunch on People.aspx</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/pavankumar/WindowsLiveWriter/HowtohideSiteCollectionAdministratorsli_89CF/clip_image004_2.jpg" original-url="https://blogs.msdn.com/blogfiles/pavankumar/WindowsLiveWriter/HowtohideSiteCollectionAdministratorsli_89CF/clip_image004_2.jpg"><img title="clip_image004" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="54" alt="clip_image004" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/pavankumar/WindowsLiveWriter/HowtohideSiteCollectionAdministratorsli_89CF/clip_image004_thumb.jpg" original-url="https://blogs.msdn.com/blogfiles/pavankumar/WindowsLiveWriter/HowtohideSiteCollectionAdministratorsli_89CF/clip_image004_thumb.jpg" width="150" border="0" /></a></p>  <p>2. Site Permissions link in QuickLaunch on&#160; groups.aspx</p>  <p>Just as an e.g, to add custom User.aspx to People.aspx – we again have to create a custom People.aspx, and replace this line :</p>  <p>&lt;asp:MenuItem Text=&quot;&lt;%$Resources:wss,people_sitepermissions%&gt;&quot; NavigateUrl=&quot;user.aspx&quot;/&gt;</p>  <p>With :</p>  <p>&lt;asp:MenuItem Text=&quot;&lt;%$Resources:wss,people_sitepermissions%&gt;&quot; NavigateUrl=&quot;cuser.aspx&quot;/&gt;</p>  <p>So, the approach requires wide customization and there is no easy way to achieve this (none- as easy as Option1 above).</p>]]></content:encoded>
    </item>
    <item>
      <title>Some of the WSS 3.0/MOSS API's which fires the query SELECT TOP 2147483648</title>
      <link>https://docs.microsoft.com/archive/blogs/pavankumar/some-of-the-wss-3-0moss-apis-which-fires-the-query-select-top-2147483648</link>
      <pubDate>Fri, 09 Oct 2009 05:34:53 GMT</pubDate>
      <dc:creator><![CDATA[Pavan*Kumar]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/pavankumar/2009/10/09/some-of-the-wss-3-0moss-apis-which-fires-the-query-select-top-2147483648/</guid>
      <description><![CDATA[§&#160;&#160;&#160; list.Items.XmlDataSchema&#160;&#160; §&#160;&#160;&#160; list.Items.Xml&#160;...]]></description>
      <content:encoded><![CDATA[<p>§&#160;&#160;&#160; list.Items.XmlDataSchema&#160;&#160; <br />§&#160;&#160;&#160; list.Items.Xml&#160; <br />§&#160;&#160;&#160; list.Items.QueryFieldNames    <br />§&#160;&#160;&#160; list.Items.NumberOfFields&#160; <br />§&#160;&#160;&#160; list.Items.ListItemCollectionPosition&#160; <br />§&#160;&#160;&#160; list.Items.Count    <br />§&#160;&#160;&#160; list.Items.GetDataTable()    <br />§&#160;&#160;&#160; list.Items.GetItemById(40)    <br />§&#160;&#160;&#160; list.Items.ReorderItems()    <br />§&#160;&#160;&#160; list.Items.Delete(40)    <br />§&#160;&#160;&#160; list.Items.DeleteById(40) </p>  <p>SPQuery without RowLimit property set would fire the same the query.</p>  <p>&#160;</p>  <p>I have not listed all the API calls which would fire the above query.</p>]]></content:encoded>
    </item>
    <item>
      <title>How to use OrderBy using GetListItems method of SiteData.asmx (SPS 2003)</title>
      <link>https://docs.microsoft.com/archive/blogs/pavankumar/how-to-use-orderby-using-getlistitems-method-of-sitedata-asmx-sps-2003</link>
      <pubDate>Tue, 14 Jul 2009 04:01:04 GMT</pubDate>
      <dc:creator><![CDATA[Pavan*Kumar]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/pavankumar/2009/07/14/how-to-use-orderby-using-getlistitems-method-of-sitedata-asmx-sps-2003/</guid>
      <description><![CDATA[Sample code   --------------  SiteData.SiteData srvSiteData = new SiteData.SiteData();...]]></description>
      <content:encoded><![CDATA[<p>Sample code </p>  <p>--------------</p>  <p>SiteData.SiteData srvSiteData = new SiteData.SiteData();   <br />srvSiteData.Credentials = System.Net.CredentialCache.DefaultCredentials;    <br />string items = srvSiteData.GetListItems(&quot;{48414507-4436-4D47-BE59-9834D33F2B52}&quot;,&quot;&lt;Query&gt;&lt;OrderBy&gt;&lt;FieldRef Name=\&quot;Modified\&quot; Ascending=\&quot;True\&quot;&gt;&lt;/FieldRef&gt;&lt;/OrderBy&gt;&lt;/Query&gt;&quot;,    <br />&quot;&lt;FieldRef Name=\&quot;Title\&quot;/&gt;&lt;FieldRef Name=\&quot;Modified\&quot;/&gt;&quot;, 100);</p>  <p>&#160;</p>  <p>If the Query looks like </p>  <p>&lt;Query&gt;&lt;OrderBy&gt;&lt;FieldRef Name=\&quot;Modified\&quot; Ascending=\&quot;True\&quot;&gt;&lt;/FieldRef&gt;&lt;/OrderBy&gt;&lt;/Query&gt; the orderby would not work.</p>  <p>&#160;</p>  <p>Change the XML Query to    <br />&lt;OrderBy&gt;&lt;FieldRef Name=\&quot;Modified\&quot; Ascending=\&quot;True\&quot;&gt;&lt;/FieldRef&gt;&lt;/OrderBy&gt;</p>]]></content:encoded>
    </item>
    <item>
      <title>Custom Field Controls in Data Form webpart does not save data in Database</title>
      <link>https://docs.microsoft.com/archive/blogs/pavankumar/custom-field-controls-in-data-form-webpart-does-not-save-data-in-database</link>
      <pubDate>Tue, 26 May 2009 07:04:00 GMT</pubDate>
      <dc:creator><![CDATA[Pavan*Kumar]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/pavankumar/2009/05/26/custom-field-controls-in-data-form-webpart-does-not-save-data-in-database/</guid>
      <description><![CDATA[Any input control for that matter, a simple custom field control with a single text box into the...]]></description>
      <content:encoded><![CDATA[<P>Any input control for that matter, a simple custom field control with a single text box into the DataFormWebPart. The field gets displayed well in the NewForm and EditForm. But on saving the form data is not saved.No errors thrown.</P>
<P>Build and deploy the project attached to this post.</P>
<P>Create a custom list and create a column of Custom field control added by the project. (SimpleTextFieldField) <BR>3. Open SPD. <BR>4. Go to File -- Open Project -- Select the URL of the site. <BR>5. Expand the Lists tree in the Left pane and expand the List which was created in step 2 <BR>6. Double Click on NewForm.aspx of the list. <BR>7. Switch to Split mode of NewForm.aspx in SPD. <BR>8. Select the ListForm Webpart in NewForm.aspx page <BR>9. After &lt;/WebPartPages:ListFormWebPart&gt; tag hit enter.</P>
<P>10. Go to Insert Menu -- SharePoint Controls -- Custom List Form. If Custom List Form option is not enabled save the NewForm.aspx and try again.</P>
<P><A href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/pavankumar/WindowsLiveWriter/CustomFieldControlsinDataFormwebpartdoes_A896/First.png" original-url="https://blogs.msdn.com/blogfiles/pavankumar/WindowsLiveWriter/CustomFieldControlsinDataFormwebpartdoes_A896/First.png" mce_href="https://blogs.msdn.com/blogfiles/pavankumar/WindowsLiveWriter/CustomFieldControlsinDataFormwebpartdoes_A896/First.png"><IMG title=First style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=324 alt=First src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/pavankumar/WindowsLiveWriter/CustomFieldControlsinDataFormwebpartdoes_A896/First_thumb.png" original-url="https://blogs.msdn.com/blogfiles/pavankumar/WindowsLiveWriter/CustomFieldControlsinDataFormwebpartdoes_A896/First_thumb.png" width=585 border=0 mce_src="https://blogs.msdn.com/blogfiles/pavankumar/WindowsLiveWriter/CustomFieldControlsinDataFormwebpartdoes_A896/First_thumb.png"></A> <BR>11. A pop up window appear where you can select the List which we created in step 2 and let the Content Type to use for from be selected to Item, check the radio button "New item form (used to add new items to the list).</P>
<P><A href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/pavankumar/WindowsLiveWriter/CustomFieldControlsinDataFormwebpartdoes_A896/Second.png" original-url="https://blogs.msdn.com/blogfiles/pavankumar/WindowsLiveWriter/CustomFieldControlsinDataFormwebpartdoes_A896/Second.png" mce_href="https://blogs.msdn.com/blogfiles/pavankumar/WindowsLiveWriter/CustomFieldControlsinDataFormwebpartdoes_A896/Second.png"><IMG title=Second style="BORDER-TOP-WIDTH: 0px; DISPLAY: inline; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=343 alt=Second src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/pavankumar/WindowsLiveWriter/CustomFieldControlsinDataFormwebpartdoes_A896/Second_thumb.png" original-url="https://blogs.msdn.com/blogfiles/pavankumar/WindowsLiveWriter/CustomFieldControlsinDataFormwebpartdoes_A896/Second_thumb.png" width=353 border=0 mce_src="https://blogs.msdn.com/blogfiles/pavankumar/WindowsLiveWriter/CustomFieldControlsinDataFormwebpartdoes_A896/Second_thumb.png"></A> </P>
<P><BR>12. Right click on List Form webpart -- Webpart properties -- Layout -- Select both checkboxes "Hidden" and "Close the webpart" -- Click OK button <BR>13. Save the NewForm.aspx page in SPD. <BR>14. Open IE, browse to the list created -- Click on New -- Add entry for Title column and a value for the Custom field control which we have added and click OK <BR>14. It will come back to AllItems.aspx where we can find that the value entered to the custom column is blank.</P>
<P>Schema of Title Field <BR>--------------------------- <BR>&lt;Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Type="Text" Name="Title" DisplayName="Title" Required="TRUE" SourceID="<A href="https://schemas.microsoft.com/sharepoint/v3%22" mce_href='https://schemas.microsoft.com/sharepoint/v3"'>https://schemas.microsoft.com/sharepoint/v3"</A> StaticName="Title" FromBaseType="TRUE" ColName="nvarchar1"/&gt; </P>
<P>Schema of Custom Field control <BR>------------------------------------- <BR>&lt;Field Type="SimpleTextFieldField" DisplayName="huha" Required="TRUE" ID="{9df3f794-4a49-4019-a41a-3d29ae500903}" SourceID="{e68e397e-fb36-4971-955e-904f56a57d10}" StaticName="huha" Name="huha" ColName="nvarchar3" RowOrdinal="0"/&gt; </P>
<P>Schema of Field added through UI <BR>--------------------------------------------- <BR>&lt;Field Type="Text" DisplayName="BoomCol" Required="FALSE" MaxLength="255" ID="{ef0b772f-af19-467a-9afd-2920ba1b10d8}" SourceID="{e68e397e-fb36-4971-955e-904f56a57d10}" StaticName="BoomCol" Name="BoomCol" ColName="nvarchar4" RowOrdinal="0"/&gt;</P>
<P>This behaviour was because, the TextBox we exposed is a child control, the main control is SPTextFieldFieldControl. When you convert to a DataForm webpart, these custom controls will be replaced by the SPForm controls.&nbsp; This control does not identify what is the original value. If you look inside the SPTextFieldFieldControl, I do have HtmlTable, LiteralControl, TextBox etc. So now we get the inner control value and set the “Text/Value” property of the main control(SPTextFieldFieldControl)</P>
<P>===========================================</P>
<P><STRONG>Code changes for SimpleTextField attached below.</STRONG></P>
<P><STRONG>=======================================</STRONG></P>
<P>using System; <BR>using System.Runtime.InteropServices; </P>
<P>using Microsoft.SharePoint; <BR>using Microsoft.SharePoint.WebControls; <BR>using System.Web.UI.HtmlControls; <BR>using System.Web.UI; <BR>using System.Web.UI.WebControls; </P>
<P>namespace SimpleTextFieldControl <BR>{ <BR>&nbsp;&nbsp;&nbsp; // TODO: Replace, as needed, "TextField" with some other class derived from Microsoft.SharePoint.WebControls.BaseFieldControl. <BR>&nbsp;&nbsp;&nbsp; [CLSCompliant(false)] <BR>&nbsp;&nbsp;&nbsp; [Guid("f6fdae87-e10d-4aa6-bd80-db14d41a19d6")] <BR>&nbsp;&nbsp;&nbsp; public class SimpleTextFieldFieldControl : TextField <BR>&nbsp;&nbsp;&nbsp; { <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private HtmlTable table; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private TextBox txtName; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private string _textValue; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private void RefreshValues() <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (txtName != null &amp;&amp; this.Context != null &amp;&amp; this.Context.Request != null) <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach (string key in this.Context.Request.Form.Keys) <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (key.ToLower() == txtName.UniqueID.ToLower()) <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string[] enteredValue = this.Context.Request.Form.GetValues(key); <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; textBox.Text = enteredValue[0]; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _textValue = textBox.Text; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; protected override void CreateChildControls() <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; base.CreateChildControls(); </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.table = new HtmlTable(); </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HtmlTableRow row = new HtmlTableRow(); <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; table.Rows.Add(row); </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HtmlTableCell cell = null; </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (this.ControlMode == SPControlMode.Edit || <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.ControlMode == SPControlMode.New) <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cell = new HtmlTableCell(); <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cell.ColSpan = 2; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cell.Attributes["class"] = "ms-formdescription"; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cell.InnerText = "Enter a Text:"; </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; row.Cells.Add(cell); </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; row = new HtmlTableRow(); <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cell = new HtmlTableCell(); </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // a text field <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.txtName = new TextBox(); <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Get the current value of the field. <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string currentValue = (string)this.ItemFieldValue; </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (currentValue != null &amp;&amp; currentValue != string.Empty) <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.txtName.Text = currentValue; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cell.Controls.Add(this.txtName); <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; row.Cells.Add(cell); <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; table.Rows.Add(row); <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cell = new HtmlTableCell(); </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LiteralControl literalControl = new LiteralControl(); </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string text = null; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; object textObject = this.ItemFieldValue; </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (textObject != null) <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; text = (string)textObject; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (text == null || text == string.Empty) <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; text = this.txtName.Text; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; literalControl.Text = text; </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cell.Controls.Add(literalControl); <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; row.Cells.Add(cell); </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; base.Controls.Add(table); <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public override string Text <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RefreshValues(); <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return _textValue; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; base.Text = value; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public override void UpdateFieldValueInItem() <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; base.UpdateFieldValueInItem(); <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.Value = this.txtName.Text; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.ItemFieldValue = this.Value; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; catch <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; throw new Exception("error in text field") ; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; protected override void Render(HtmlTextWriter output) <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.table.RenderControl(output); <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } </P>
<P>&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp; <BR>}</P>]]></content:encoded>
    </item>
    <item>
      <title>How to customize the Item Form pages for the SharePoint Lists such as NewForm.aspx,  DispForm.aspx and EditForm.aspx</title>
      <link>https://docs.microsoft.com/archive/blogs/pavankumar/how-to-customize-the-item-form-pages-for-the-sharepoint-lists-such-as-newform-aspx-dispform-aspx-and-editform-aspx</link>
      <pubDate>Tue, 05 May 2009 03:43:21 GMT</pubDate>
      <dc:creator><![CDATA[Pavan*Kumar]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/pavankumar/2009/05/05/how-to-customize-the-item-form-pages-for-the-sharepoint-lists-such-as-newform-aspx-dispform-aspx-and-editform-aspx/</guid>
      <description><![CDATA[Item form pages are the pages created based on the &quot;Forms.aspx&quot; as the setup page    which...]]></description>
      <content:encoded><![CDATA[<p>Item form pages are the pages created based on the &quot;Forms.aspx&quot; as the setup page    <br />which is available under 12/Templates/Pages folder. </p>  <p>1. All the templates for the NewForm, EditForm and DispForm (Item Form pages) are    <br />defined in the defaulttemplates.ascx </p>  <p>2. This templates are associated with the List through content type </p>  <p>3. The FormTemplates of the NewForm, EditForm and DispForm are definied in the    <br />content type as folows </p>  <p>&lt;ContentType ID=&quot;0x01&quot;   <br />Name=&quot;$Resources:Item&quot;    <br />Group=&quot;$Resources:List_Content_Types&quot;    <br />Description=&quot;$Resources:ItemCTDesc&quot;    <br />Version=&quot;0&quot;&gt;    <br />&lt;FieldRefs&gt;    <br />&lt;FieldRef ID=&quot;{fa564e0f-0c70-4ab9-b863-0177e6ddd247}&quot; Name=&quot;Title&quot;     <br />Required=&quot;TRUE&quot; ShowInNewForm=&quot;TRUE&quot; ShowInEditForm=&quot;TRUE&quot;/&gt; &lt;!-- Title --&gt;    <br />&lt;/FieldRefs&gt;    <br />&lt;XmlDocuments&gt;    <br />&lt;XmlDocument     <br />NamespaceURI=&quot;<a href="https://schemas.microsoft.com/sharepoint/v3/contenttype/forms&quot;">https://schemas.microsoft.com/sharepoint/v3/contenttype/forms&quot;</a>&gt;    <br />&lt;FormTemplates     <br />xmlns=&quot;<a href="https://schemas.microsoft.com/sharepoint/v3/contenttype/forms&quot;">https://schemas.microsoft.com/sharepoint/v3/contenttype/forms&quot;</a>&gt;    <br />&lt;Display&gt;ListForm&lt;/Display&gt;    <br />&lt;Edit&gt;ListForm&lt;/Edit&gt;    <br />&lt;New&gt;ListForm&lt;/New&gt;    <br />&lt;/FormTemplates&gt;    <br />&lt;/XmlDocument&gt;    <br />&lt;/XmlDocuments&gt;    <br />&lt;/ContentType&gt; </p>  <p>4. The &quot;ListForm&quot; template which have been in the above Content Type you can find    <br />it in the DefaultTemplates.ascx control </p>  <p>5. Create a custom Defaulttemplates.ascx and create the custom rendering template    <br />based on the ListForm and make ur changes (Including or Excluding control) Note :     <br />ListFieldIteratorControl is the one which renders the Fields for the List in the     <br />item form pages </p>  <p>6. Following are the steps to create custom defaulttemplates.ascx </p>  <p>1. Create a new custom Template: say name: CustDefaultTemplates.ascx and save it    <br />in the folder: C:\Program Files\Common Files\Microsoft Shared\web server     <br />extensions\12\TEMPLATE\CONTROLTEMPLATES </p>  <p>a. Open DefaultTemplates.ascx file (located at the same path mentioned above). Copy    <br />the following lines from the file and add to the CustDefaultTemplate.ascx </p>  <p>&lt;%@ Control Language=&quot;C#&quot; AutoEventWireup=&quot;false&quot; %&gt;   <br />&lt;%@Assembly Name=&quot;Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral,     <br />PublicKeyToken=71e9bce111e9429c&quot; %&gt;    <br />&lt;%@Register TagPrefix=&quot;SharePoint&quot; Assembly=&quot;Microsoft.SharePoint,     <br />Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot;     <br />namespace=&quot;Microsoft.SharePoint.WebControls&quot;%&gt;    <br />&lt;%@Register TagPrefix=&quot;SPHttpUtility&quot; Assembly=&quot;Microsoft.SharePoint,     <br />Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot;     <br />namespace=&quot;Microsoft.SharePoint.Utilities&quot;%&gt;    <br />&lt;%@ Register TagPrefix=&quot;wssuc&quot; TagName=&quot;ToolBar&quot;     <br />src=&quot;~/_controltemplates/ToolBar.ascx&quot; %&gt;    <br />&lt;%@ Register TagPrefix=&quot;wssuc&quot; TagName=&quot;ToolBarButton&quot;     <br />src=&quot;~/_controltemplates/ToolBarButton.ascx&quot; %&gt; </p>  <p>b. Now, in DefaultTemplates.ascx look for line:   <br />&lt;SharePoint:RenderingTemplate ID=&quot;ListForm&quot; runat=&quot;server&quot;&gt; </p>  <p>c. Copy this complete node and paste in the CustDefaultTemplate.ascx below the    <br />lines added above. </p>  <p>d. Now, change the ID=&quot;ListForm&quot; to any other ID; example: ID=&quot;CustListForm&quot; in    <br />CustDefaultTemplate.ascx </p>  <p>e. Save the File CustDefaultTemplate.ascx </p>  <p>7. Create a custom content type and render the &quot;CustomListForm&quot; as the template for    <br />the New, Edit and Display form. </p>  <p>8. Attache the custom content type with the List. </p>  <p>9. Now whenever you create new, Edit and Dispform for this List it will render your    <br />custom template instead of OOb template.</p>]]></content:encoded>
    </item>
    <item>
      <title>Page Editing Toolbar - Problem with submit for approval node in the quick access</title>
      <link>https://docs.microsoft.com/archive/blogs/pavankumar/page-editing-toolbar-problem-with-submit-for-approval-node-in-the-quick-access</link>
      <pubDate>Thu, 16 Apr 2009 06:07:00 GMT</pubDate>
      <dc:creator><![CDATA[Pavan*Kumar]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/pavankumar/2009/04/16/page-editing-toolbar-problem-with-submit-for-approval-node-in-the-quick-access/</guid>
      <description><![CDATA[Came across an interesting issue with the quick access area in the page editing toolbar last week....]]></description>
      <content:encoded><![CDATA[<p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 9pt; color: #1f497d; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;">Came across an interesting issue with the quick access area in the page editing toolbar last week. The problem is with the “Submit For Approval” console node in the quick access. The “Submit for Approval” works fine as long as the OOB approval workflow is attached with the “Pages” library. But when the custom workflow is attached which has the ASPX pages associated with it then this “Submit For Approval” button fails to load those aspx pages for the approval. </span>    <p></p> </p>  <p></p>  <p class="MsoNormal" style="margin: 0in 0in 0pt"></p>  <p><font face="Calibri" size="3">&#160;</font></p>  <p></p>  <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 9pt; color: #1f497d; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;">The following screenshot shows a page with “Submit for Approval” button enabled when any approval workflow is attached with the pages library :</span></p>  <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 9pt; color: #1f497d; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;"></span>&#160;</p>  <p class="MsoNormal" style="margin: 0in 0in 0pt"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/pavankumar/WindowsLiveWriter/PageEditingToolbarProblemwithsubmitforap_BB7B/Page1.jpg" original-url="https://blogs.msdn.com/blogfiles/pavankumar/WindowsLiveWriter/PageEditingToolbarProblemwithsubmitforap_BB7B/Page1.jpg"><img title="Page1" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="380" alt="Page1" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/pavankumar/WindowsLiveWriter/PageEditingToolbarProblemwithsubmitforap_BB7B/Page1_thumb.jpg" original-url="https://blogs.msdn.com/blogfiles/pavankumar/WindowsLiveWriter/PageEditingToolbarProblemwithsubmitforap_BB7B/Page1_thumb.jpg" width="624" border="0" /></a> </p>  <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 9pt; color: #1f497d; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;"></span>&#160;</p> <span style="font-size: 9pt; color: #1f497d; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;">   <p class="MsoNormal" style="margin: 0in 0in 0pt"><b><span style="font-size: 9pt; color: #1f497d; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;">The page editing toolbar is divided into two areas such “Editing menu” and “Quick Access”. As you can see in the screenshot, the editing menu consists “Page”, “Workflow” and “Tools” menu which consists sub nodes. The quick access consists the console nodes for the quick access which are already existing under the “Editing Menu” area. Like you see in the screenshot, the “Workflow” menu in the Editing Menu consists the “Submit For Approval” console node which also exists in the “Quick Access” menu. </span>        <p></p>     </b></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"></p>    <p><font face="Calibri" color="#000000" size="3">&#160;</font></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><b><span style="font-size: 9pt; color: #1f497d; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;">These nodes are rendered from the XML data source from “EditingMenu.xml” and “QuickAccess.xml” for Editing Menu and Quick access area respectively. You can find this files under C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\EditingMenu. </span>        <p></p>     </b></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"></p>    <p><font face="Calibri" color="#000000" size="3">&#160;</font></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><b><span style="font-size: 9pt; color: #1f497d; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;">SharePoint also provides the custom editingmenu.xml and customquickaccess.xml under master page gallery. We can use these files to customize the Editing menu and Quick Access areas. You can find my blog post as well on customizing these areas using these files :</span></b><font face="Calibri" color="#000000" size="3"> </font><a href="https://blogs.msdn.com/syedi/archive/2008/07/18/how-to-customize-add-delete-or-replace-the-site-action-menu-items-in-publishing-site.aspx"><font face="Calibri" size="3">https://blogs.msdn.com/syedi/archive/2008/07/18/how-to-customize-add-delete-or-replace-the-site-action-menu-items-in-publishing-site.aspx</font></a><font face="Calibri" color="#000000" size="3"> </font></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"></p>    <p><font face="Calibri" color="#000000" size="3">&#160;</font></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><b><i><u><font size="3"><font color="#000000"><font face="Calibri">While doing the further testing found that the “Submit For Approval” console node under the “Workflow” category in the EditingMenu works fine but the “Submit For Approval” in the Quick Access has the issues with the workflows associated with the ASPX pages. </font>                <p></p>             </font></font></u></i></b></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"></p>    <p><font face="Calibri" color="#000000" size="3">&#160;</font></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><b><span style="font-size: 9pt; color: #1f497d; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;">While digging deeper into the OOB EditingMenu.xml and QuickAccess.xml file found that the console nodes rendered in the EditingMenu and the QuickAccess are different for “Submit For Approval”. </span>        <p></p>     </b></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"></p>    <p><font face="Calibri" color="#000000" size="3">&#160;</font></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 9pt; color: #1f497d; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;">In the EditingMenu.xml, you can find the Console Node which renders the “SubmitForApproval” button as follows : This works fine with all the workflows irrespective of the association whether it is InfoPath form or ASPX pages. </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"></p>    <p><font face="Calibri" color="#000000" size="3">&#160;</font></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&lt;</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">ConsoleNode</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span><span style="font-size: 10pt; color: red; font-family: &#39;Courier New&#39;">Sequence</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">=</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue">200</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">NavigateUrl</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">javascript:</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">DisplayText</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms,console_workflowsubmenu</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">UseResourceFile</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">true</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">UserRights</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">EmptyMask</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">RequiredStates</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">InSharedView</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ID</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="background: yellow; color: blue; mso-highlight: yellow">saWorkflowSubMenu</span><font color="#000000">&quot;</font><span style="color: blue">&gt; </span>        <p></p>     </span></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">ConsoleNode</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span><span style="font-size: 10pt; color: red; font-family: &#39;Courier New&#39;">Action</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">=</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue">cms:OneClickPublishAction</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">DisplayText</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms,console_publish</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">HideStates</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">ContentApprovalEnabledFalse</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ImageUrl</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">/_layouts/images/cnspub16.gif</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">UseResourceFile</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">true</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ID</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">saApprovePublish</span><font color="#000000">&quot;</font><span style="color: blue">/&gt; </span>        <p></p>     </span></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="background: yellow; mso-highlight: yellow">&lt;</span></span><span style="font-size: 10pt; background: yellow; color: maroon; font-family: &#39;Courier New&#39;; mso-highlight: yellow">ConsoleNode</span><span style="font-size: 10pt; background: yellow; color: blue; font-family: &#39;Courier New&#39;; mso-highlight: yellow"> </span><span style="font-size: 10pt; background: yellow; color: red; font-family: &#39;Courier New&#39;; mso-highlight: yellow">Action</span><span style="font-size: 10pt; background: yellow; color: blue; font-family: &#39;Courier New&#39;; mso-highlight: yellow">=</span><span style="font-size: 10pt; background: yellow; font-family: &#39;Courier New&#39;; mso-highlight: yellow"><font color="#000000">&quot;</font><span style="color: blue">cms:PublishWithCommentAction</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">UseResourceFile</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">true</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ID</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">saPublishWithComment</span><font color="#000000">&quot;</font><span style="color: blue">/&gt;</span></span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">ConsoleNode</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span><span style="font-size: 10pt; color: red; font-family: &#39;Courier New&#39;">Action</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">=</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue">cms:CancelApprovalRequestAction</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">DisplayText</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms,console_cancelapprovalrequest</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">HideStates</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">IsApprovalWorkflowConfiguredTrue</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ImageUrl</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">/_layouts/images/cnsca16.gif</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">UseResourceFile</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">true</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ID</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">saCancelApproval</span><font color="#000000">&quot;</font><span style="color: blue">/&gt; </span>        <p></p>     </span></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">ConsoleNode</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span><span style="font-size: 10pt; color: red; font-family: &#39;Courier New&#39;">Action</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">=</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue">cms:CancelApprovalWorkflowRequestAction</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">DisplayText</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms,console_cancelapprovalrequest</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">HideStates</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">IsApprovalWorkflowConfiguredFalse</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ImageUrl</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">/_layouts/images/cnsca16.gif</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">UseResourceFile</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">true</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ID</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">saCancelApprovalWorkflow</span><font color="#000000">&quot;</font><span style="color: blue">/&gt; </span>        <p></p>     </span></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">ConsoleNode</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span><span style="font-size: 10pt; color: red; font-family: &#39;Courier New&#39;">Action</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">=</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue">cms:CancelSchedulingAction</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">DisplayText</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms,console_cancelscheduling</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">UseResourceFile</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">true</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ID</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">saCancelScheduling</span><font color="#000000">&quot;</font><span style="color: blue">/&gt; </span>        <p></p>     </span></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">ConsoleNode</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span><span style="font-size: 10pt; color: red; font-family: &#39;Courier New&#39;">Action</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">=</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue">cms:UnpublishAction</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">DisplayText</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms,console_unpublish</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ImageUrl</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">/_layouts/images/unpub.gif</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">UseResourceFile</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">true</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ID</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">saUnpublish</span><font color="#000000">&quot;</font><span style="color: blue"> /&gt; </span>        <p></p>     </span></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">ConsoleNode</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span><span style="font-size: 10pt; color: red; font-family: &#39;Courier New&#39;">IsSeparatorImage</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">=</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue">True</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">UserRights</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">EmptyMask</span><font color="#000000">&quot;</font><span style="color: blue"> /&gt; </span>        <p></p>     </span></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">ConsoleNode</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span><span style="font-size: 10pt; color: red; font-family: &#39;Courier New&#39;">Action</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">=</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue">cms:ApproveOrDeclineAction</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">DisplayText</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms,console_approveworkflow</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ImageUrl</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">/_layouts/images/apprj.gif</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">UseResourceFile</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">true</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ID</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">saApproveOrDecline</span><font color="#000000">&quot;</font><span style="color: blue">/&gt; </span>        <p></p>     </span></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">ConsoleNode</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span><span style="font-size: 10pt; color: red; font-family: &#39;Courier New&#39;">Action</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">=</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue">cms:WorkflowTasksAction</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">UseResourceFile</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">true</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ImageUrl</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">/_layouts/images/cnsvt16.gif</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ID</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">saWorkflowTasks</span><font color="#000000">&quot;</font><span style="color: blue">/&gt; </span>        <p></p>     </span></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">ConsoleNode</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span><span style="font-size: 10pt; color: red; font-family: &#39;Courier New&#39;">IsSeparatorImage</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">=</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue">True</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">UserRights</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">EmptyMask</span><font color="#000000">&quot;</font><span style="color: blue"> /&gt; </span>        <p></p>     </span></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">ConsoleNode</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span><span style="font-size: 10pt; color: red; font-family: &#39;Courier New&#39;">Action</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">=</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue">cms:WorkflowStatusAction</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">DisplayText</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms,console_workflowstatustracking</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">UseResourceFile</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">true</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ID</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">saWorkflowStatus</span><font color="#000000">&quot;</font><span style="color: blue">/&gt; </span>        <p></p>     </span></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">ConsoleNode</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span><span style="font-size: 10pt; color: red; font-family: &#39;Courier New&#39;">Action</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">=</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue">cms:WorkflowStartAction</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">DisplayText</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms,console_workflowstart</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ImageUrl</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">/_layouts/images/workflows.gif</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">UseResourceFile</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">true</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ID</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">saWorkflowStart</span><font color="#000000">&quot;</font><span style="color: blue">/&gt; </span>        <p></p>     </span></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">ConsoleNode</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&gt;</span></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"></p>    <p><font face="Calibri" color="#000000" size="3">&#160;</font></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"></p>    <p><font face="Calibri" color="#000000" size="3">&#160;</font></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 9pt; color: #1f497d; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;">In the QuickAccess.xml file you can find the Console Node which renders the “SubmitForApproval” button as follows : This doesn’t work fine with the workflows associated with ASPX pages. </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"></p>    <p><font face="Calibri" color="#000000" size="3">&#160;</font></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&lt;</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">ConsoleNode</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span><span style="font-size: 10pt; color: red; font-family: &#39;Courier New&#39;">Sequence</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">=</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue">20</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">Action</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms:SwitchToAuthoringModeAction</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">DisplayText</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms,siteactions_editpage_displaytext</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">UseResourceFile</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">true</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ImageUrl</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">/_layouts/images/edit.gif</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">HideStates</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">PageHasCustomizableZonesFalse|PageHasFieldControlsFalse</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">RequiredStates</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">InEditModeFalse|IsFormPageFalse|IsDocLibListItemTrue|InSharedView|IsCheckedOutToOtherUserFalse</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ID</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">qaEditPage</span><font color="#000000">&quot;</font><span style="color: blue"> /&gt; </span>        <p></p>     </span></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">ConsoleNode</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span><span style="font-size: 10pt; color: red; font-family: &#39;Courier New&#39;">Sequence</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">=</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue">40</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">Action</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms:SwitchToPublishedModeAction</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">DisplayText</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms,console_reviewmode</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">UseResourceFile</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">true</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ImageUrl</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">/_layouts/images/saveitem.gif</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">RequiredStates</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">InEditModeTrue|IsDocLibListItemTrue|InSharedView|SaveConflictExistsFalse|CheckOutRequiredFalse</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ID</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">qaReviewMode</span><font color="#000000">&quot;</font><span style="color: blue">/&gt; </span>        <p></p>     </span></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">ConsoleNode</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span><span style="font-size: 10pt; color: red; font-family: &#39;Courier New&#39;">Sequence</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">=</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue">60</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">Action</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms:CheckInAction</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">UseResourceFile</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">true</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ImageUrl</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">/_layouts/images/checkin.gif</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ID</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">qaCheckin</span><font color="#000000">&quot;</font><span style="color: blue">/&gt; </span>        <p></p>     </span></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; background: yellow; color: maroon; font-family: &#39;Courier New&#39;; mso-highlight: yellow">ConsoleNode</span><span style="font-size: 10pt; background: yellow; color: blue; font-family: &#39;Courier New&#39;; mso-highlight: yellow"> </span><span style="font-size: 10pt; background: yellow; color: red; font-family: &#39;Courier New&#39;; mso-highlight: yellow">Sequence</span><span style="font-size: 10pt; background: yellow; color: blue; font-family: &#39;Courier New&#39;; mso-highlight: yellow">=</span><span style="font-size: 10pt; background: yellow; font-family: &#39;Courier New&#39;; mso-highlight: yellow"><font color="#000000">&quot;</font><span style="color: blue">80</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">Action</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms:PublishAction</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">UseResourceFile</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">true</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">HideStates</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">MinorVersionsEnabledFalse</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ID</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">qaPublish</span><font color="#000000">&quot;</font><span style="color: blue">/&gt;</span></span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">ConsoleNode</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span><span style="font-size: 10pt; color: red; font-family: &#39;Courier New&#39;">Sequence</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">=</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue">100</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">Action</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms:ApproveAction</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">DisplayText</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms,console_approve</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">UseResourceFile</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">true</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ImageUrl</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">/_layouts/images/cnsapp16.gif</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ID</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">qaApprove</span><font color="#000000">&quot;</font><span style="color: blue">/&gt; </span>        <p></p>     </span></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">ConsoleNode</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span><span style="font-size: 10pt; color: red; font-family: &#39;Courier New&#39;">Sequence</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">=</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue">101</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">Action</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms:WorkflowApproveAction</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">DisplayText</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms,console_approve</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">UseResourceFile</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">true</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ImageUrl</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">/_layouts/images/cnsapp16.gif</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ID</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">qaWorkflowApprove</span><font color="#000000">&quot;</font><span style="color: blue">/&gt; </span>        <p></p>     </span></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">ConsoleNode</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span><span style="font-size: 10pt; color: red; font-family: &#39;Courier New&#39;">Sequence</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">=</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue">120</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">Action</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms:OneClickPublishAction</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">DisplayText</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms,console_publish</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">UseResourceFile</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">true</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ImageUrl</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">/_layouts/images/cnspub16.gif</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ID</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">qaApprovePublish</span><font color="#000000">&quot;</font><span style="color: blue">/&gt; </span>        <p></p>     </span></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">ConsoleNode</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span><span style="font-size: 10pt; color: red; font-family: &#39;Courier New&#39;">Sequence</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">=</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue">140</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">Action</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms:DeclineAction</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">DisplayText</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms,console_declineworkflow</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">UseResourceFile</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">true</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ImageUrl</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">/_layouts/images/cnsrej16.gif</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ID</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">qaDecline</span><font color="#000000">&quot;</font><span style="color: blue">/&gt; </span>        <p></p>     </span></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">ConsoleNode</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span><span style="font-size: 10pt; color: red; font-family: &#39;Courier New&#39;">Sequence</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">=</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue">141</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">Action</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms:WorkflowDeclineAction</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">DisplayText</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms,console_declineworkflow</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">UseResourceFile</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">true</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ImageUrl</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">/_layouts/images/cnsrej16.gif</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ID</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">qaWorkflowDecline</span><font color="#000000">&quot;</font><span style="color: blue">/&gt; </span>        <p></p>     </span></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">ConsoleNode</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span><span style="font-size: 10pt; color: red; font-family: &#39;Courier New&#39;">Sequence</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">=</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue">160</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">Action</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms:WorkflowTasksAction</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">UseResourceFile</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">true</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ImageUrl</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">/_layouts/images/cnsvt16.gif</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ID</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">qaWorkflowTasks</span><font color="#000000">&quot;</font><span style="color: blue">/&gt; </span>        <p></p>     </span></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">ConsoleNode</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span><span style="font-size: 10pt; color: red; font-family: &#39;Courier New&#39;">Sequence</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">=</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue">180</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">Action</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms:SharedViewAction</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">DisplayText</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">cms,console_sharedview</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ImageUrl</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">/_layouts/images/allusr.gif</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">UseResourceFile</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">true</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">ID</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">qaSharedView</span><font color="#000000">&quot;</font><span style="color: blue">/&gt;</span></span></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"></p>    <p><font face="Calibri" color="#000000" size="3">&#160;</font></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"></p>    <p><font face="Calibri" color="#000000" size="3">&#160;</font></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><font color="#000000"><span style="font-size: 9pt; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;">In the above highlighted nodes you can find the difference that the Console Action are rendered from different class.</span><font face="Calibri" size="3"> </font></font><b><u><span style="font-size: 9pt; color: #1f497d; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;">The One which works fine is rendered from the cms:PublishWithCommentAction and the one which doesn’t work with the workflows associated with the ASPX pages is rendered from cms:PublishAction. </span>          <p></p>       </u></b></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"></p>    <p><font face="Calibri" color="#000000" size="3">&#160;</font></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><font size="3"><font color="#000000"><font face="Calibri"><b><u>Note</u></b> : </font></font></font><span style="font-size: 9pt; color: #1f497d; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;">CMS is the tag prefix used as follows in the EditingMenu.xml and QuickAccess.xml files</span></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"></p>    <p><font face="Calibri" color="#000000" size="3">&#160;</font></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&lt;</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">references</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&gt; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">reference</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span><span style="font-size: 10pt; color: red; font-family: &#39;Courier New&#39;">TagPrefix</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">=</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue">cms</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">assembly</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">namespace</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">Microsoft.SharePoint.Publishing.WebControls.EditingMenuActions</span><font color="#000000">&quot;</font><span style="color: blue"> /&gt; </span>        <p></p>     </span></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160; &lt;/</span><span style="font-size: 10pt; color: maroon; font-family: &#39;Courier New&#39;">references</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&gt; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"></span>      <p>&#160;</p>   </p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"></p>    <p><font face="Calibri" color="#000000" size="3">&#160;</font></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 9pt; color: #1f497d; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;">So now we concluded that the node rendered from the cms:PublishWithCommentAction class works fine. So by using the customquickaccess.xml existing in the Mater Page gallery we can delete the existing node (cms:PublishAction) from the quick access and can “Add” the cms:PublishWithCommentAction in the quick access. </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"></p>    <p>&#160;</p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/pavankumar/WindowsLiveWriter/PageEditingToolbarProblemwithsubmitforap_BB7B/Page2.jpg" original-url="https://blogs.msdn.com/blogfiles/pavankumar/WindowsLiveWriter/PageEditingToolbarProblemwithsubmitforap_BB7B/Page2.jpg"><img title="Page2" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="406" alt="Page2" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/pavankumar/WindowsLiveWriter/PageEditingToolbarProblemwithsubmitforap_BB7B/Page2_thumb.jpg" original-url="https://blogs.msdn.com/blogfiles/pavankumar/WindowsLiveWriter/PageEditingToolbarProblemwithsubmitforap_BB7B/Page2_thumb.jpg" width="664" border="0" /></a> </p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"></p>    <p>&#160;</p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"></p>    <p>&#160;</p>    <p></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><b><span style="font-size: 9pt; color: #1f497d; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;">Following is the content of the customquickaccess.xml which will delete the non working node and will add the working node in the quick access area. </span></b><span style="font-size: 9pt; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;"></span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 9pt; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;"></span>      <p><font color="#000000">&#160;</font></p>   </p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&lt;?</span><span style="font-size: 10pt; color: #a31515; font-family: &#39;Courier New&#39;">xml</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span><span style="font-size: 10pt; color: red; font-family: &#39;Courier New&#39;">version</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">=</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue">1.0</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">encoding</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">utf-8</span><font color="#000000">&quot;</font><span style="color: blue"> ?&gt; </span>        <p></p>     </span></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&lt;</span><span style="font-size: 10pt; color: #a31515; font-family: &#39;Courier New&#39;">Console</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&gt; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: #a31515; font-family: &#39;Courier New&#39;">references</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&gt; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: #a31515; font-family: &#39;Courier New&#39;">reference</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span><span style="font-size: 10pt; color: red; font-family: &#39;Courier New&#39;">TagPrefix</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">=</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue">cms</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">assembly</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, </span>        <p></p>     </span></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">PublicKeyToken=71e9bce111e9429c</span><span style="font-size: 10pt; font-family: &#39;Courier New&#39;"><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">namespace</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">Microsoft.SharePoint.Publishing.WebControls.EditingMenuActions</span><font color="#000000">&quot;</font><span style="color: blue"> /&gt; </span>        <p></p>     </span></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="font-size: 10pt; color: #a31515; font-family: &#39;Courier New&#39;">references</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&gt; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="font-size: 10pt; color: #a31515; font-family: &#39;Courier New&#39;">structure</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&gt; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="background: yellow; mso-highlight: yellow">&lt;</span></span><span style="font-size: 10pt; background: yellow; color: #a31515; font-family: &#39;Courier New&#39;; mso-highlight: yellow">ConsoleNode</span><span style="font-size: 10pt; background: yellow; color: blue; font-family: &#39;Courier New&#39;; mso-highlight: yellow"> </span><b><span style="font-size: 10pt; background: yellow; color: red; font-family: &#39;Courier New&#39;; mso-highlight: yellow">Action</span></b><b><span style="font-size: 10pt; background: yellow; color: blue; font-family: &#39;Courier New&#39;; mso-highlight: yellow">=</span></b><b><span style="font-size: 10pt; background: yellow; font-family: &#39;Courier New&#39;; mso-highlight: yellow"><font color="#000000">&quot;</font><span style="color: blue">cms:PublishWithCommentAction</span><font color="#000000">&quot;</font></span></b><span style="font-size: 10pt; background: yellow; color: blue; font-family: &#39;Courier New&#39;; mso-highlight: yellow"> </span><span style="font-size: 10pt; background: yellow; color: red; font-family: &#39;Courier New&#39;; mso-highlight: yellow">ID</span><span style="font-size: 10pt; background: yellow; color: blue; font-family: &#39;Courier New&#39;; mso-highlight: yellow">=</span><span style="font-size: 10pt; background: yellow; font-family: &#39;Courier New&#39;; mso-highlight: yellow"><font color="#000000">&quot;</font><span style="color: blue">saPublishWithComment</span><font color="#000000">&quot;</font><span style="color: blue"> </span><span style="color: red">Sequence</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: blue">610</span><font color="#000000">&quot;</font><span style="color: blue"> </span><b><span style="color: red">ConfigMenu</span><span style="color: blue">=</span><font color="#000000">&quot;</font><span style="color: red">Add</span><font color="#000000">&quot;</font></b><span style="color: blue">/&gt;</span></span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="background: yellow; mso-highlight: yellow">&lt;</span></span><span style="font-size: 10pt; background: yellow; color: #a31515; font-family: &#39;Courier New&#39;; mso-highlight: yellow">ConsoleNode</span><span style="font-size: 10pt; background: yellow; color: blue; font-family: &#39;Courier New&#39;; mso-highlight: yellow"> </span><b><span style="font-size: 10pt; background: yellow; color: red; font-family: &#39;Courier New&#39;; mso-highlight: yellow">ConfigMenu</span></b><b><span style="font-size: 10pt; background: yellow; color: blue; font-family: &#39;Courier New&#39;; mso-highlight: yellow">=</span></b><b><span style="font-size: 10pt; background: yellow; font-family: &#39;Courier New&#39;; mso-highlight: yellow"><font color="#000000">&quot;</font><span style="color: blue">Delete</span><font color="#000000">&quot;</font></span></b><span style="font-size: 10pt; background: yellow; color: blue; font-family: &#39;Courier New&#39;; mso-highlight: yellow"> </span><b><span style="font-size: 10pt; background: yellow; color: red; font-family: &#39;Courier New&#39;; mso-highlight: yellow">ChangedNodeID</span></b><b><span style="font-size: 10pt; background: yellow; color: blue; font-family: &#39;Courier New&#39;; mso-highlight: yellow">=</span></b><b><span style="font-size: 10pt; background: yellow; font-family: &#39;Courier New&#39;; mso-highlight: yellow"><font color="#000000">&quot;</font><span style="color: blue">qaPublish</span><font color="#000000">&quot;</font></span></b><span style="font-size: 10pt; background: yellow; color: blue; font-family: &#39;Courier New&#39;; mso-highlight: yellow"> /&gt;</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"> </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="font-size: 10pt; color: #a31515; font-family: &#39;Courier New&#39;">structure</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&gt; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&lt;/</span><span style="font-size: 10pt; color: #a31515; font-family: &#39;Courier New&#39;">Console</span><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;">&gt; </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 10pt; color: blue; font-family: &#39;Courier New&#39;"></span>      <p>&#160;</p>   </p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"></p>    <p><font face="Calibri" color="#000000" size="3">&#160;</font></p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 9pt; color: #1f497d; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;">In the above CustomQuickaccess.xml you can find that we are adding the cms:PublishWithCommentAction through ConfigMenu=Add option and deleting the “qaPublish” node through ConfigMenu=Delete which is cms:PublishAction console node existing in the quickaccess.xml. This is how we need to override the OOB Quick area nodes. In the same way you can customize the EditingMenu and Site Action nodes. </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 9pt; color: #1f497d; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;"></span>      <p>&#160;</p>   </p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 9pt; color: #1f497d; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;">Once you save and publish the customquickaccess.xml file the problematic console node vanishes and the new console node for “SubmitForApproval” appears in the quickaccess which works fine for all the workflows irrespective of the associations. </span>      <p></p>   </p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-size: 9pt; color: #1f497d; font-family: &#39;Verdana&#39;,&#39;sans-serif&#39;"></span>      <p>&#160;</p>   </p>    <p></p>    <p class="MsoNormal" style="margin: 0in 0in 0pt"></p>&#160;&#160; <p></p> </span>]]></content:encoded>
    </item>
    <item>
      <title>How to Retain/Preserve "Modified By" while checking in a file</title>
      <link>https://docs.microsoft.com/archive/blogs/pavankumar/how-to-retainpreserve-modified-by-while-checking-in-a-file</link>
      <pubDate>Tue, 14 Apr 2009 23:21:00 GMT</pubDate>
      <dc:creator><![CDATA[Pavan*Kumar]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/pavankumar/2009/04/14/how-to-retainpreserve-modified-by-while-checking-in-a-file/</guid>
      <description><![CDATA[SPSite mySite = new SPSite("&lt;SiteURL&gt;");
SPWeb myWeb = mySite.OpenWeb();
SPFolder myList =...]]></description>
      <content:encoded><![CDATA[<FONT color=#0000ff size=2><FONT color=#008080 size=2>
<P>SPSite</FONT><FONT color=#000000 size=2> mySite = </FONT><FONT color=#0000ff size=2>new</FONT><FONT color=#000000 size=2> </FONT><FONT color=#008080 size=2>SPSite</FONT><FONT color=#000000 size=2>(</FONT><FONT color=#800000 size=2>"&lt;SiteURL&gt;"</FONT><FONT size=2><FONT color=#000000>);</FONT></FONT></P>
<P><FONT color=#008080 size=2>SPWeb</FONT><FONT size=2> myWeb = mySite.OpenWeb();</P>
<P></FONT><FONT color=#008080 size=2>SPFolder</FONT><FONT size=2> myList = myWeb.Folders[</FONT><FONT color=#800000 size=2>"&lt;DocLibName&gt;"</FONT><FONT size=2>];</P>
<P></FONT><FONT color=#008080 size=2>SPFile</FONT><FONT size=2> myFile = myList.Files[0];</P></FONT><FONT color=#008080 size=2>
<P>SPUser</FONT><FONT color=#000000 size=2> myUser = myWeb.Users[</FONT><FONT color=#800000 size=2>"&lt;User_Name&gt;"</FONT><FONT size=2><FONT color=#000000>];</FONT></P>
<P>CheckInFileByUser(myFile, </FONT><FONT color=#800000 size=2>"Checkin Comments"</FONT><FONT size=2>, </FONT><FONT color=#008080 size=2>SPCheckinType</FONT><FONT size=2>.MajorCheckIn, myUser);</P>
<P></FONT>public</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>static</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> CheckInFileByUser(</FONT><FONT color=#008080 size=2>SPFile</FONT><FONT size=2> file, </FONT><FONT color=#0000ff size=2>string</FONT><FONT size=2> checkinComment,</FONT><FONT color=#008080 size=2>SPCheckinType</FONT><FONT size=2> checkinType,</FONT><FONT color=#008080 size=2>SPUser</FONT><FONT size=2> modifiedByUser)</P>
<P>{</P>
<P></FONT><FONT color=#008080 size=2>MethodInfo</FONT><FONT size=2> mi = </FONT><FONT color=#0000ff size=2>typeof</FONT><FONT size=2>(</FONT><FONT color=#008080 size=2>SPFile</FONT><FONT size=2>).GetMethod(</FONT><FONT color=#800000 size=2>"CheckIn"</FONT><FONT size=2>,</FONT><FONT color=#008080 size=2>BindingFlags</FONT><FONT size=2>.Instance | </FONT><FONT color=#008080 size=2>BindingFlags</FONT><FONT size=2>.NonPublic, </FONT><FONT color=#0000ff size=2>null</FONT><FONT size=2>, </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#008080 size=2>Type</FONT><FONT size=2>[] { </FONT><FONT color=#0000ff size=2>typeof</FONT><FONT size=2>(</FONT><FONT color=#0000ff size=2>string</FONT><FONT size=2>), </FONT><FONT color=#0000ff size=2>typeof</FONT><FONT size=2>(</FONT><FONT color=#008080 size=2>SPCheckinType</FONT><FONT size=2>), </FONT><FONT color=#0000ff size=2>typeof</FONT><FONT size=2>(</FONT><FONT color=#0000ff size=2>bool</FONT><FONT size=2>), </FONT><FONT color=#0000ff size=2>typeof</FONT><FONT size=2>(</FONT><FONT color=#008080 size=2>SPUser</FONT><FONT size=2>) }, </FONT><FONT color=#0000ff size=2>null</FONT><FONT size=2>);</P>
<P></FONT><FONT color=#0000ff size=2>try</P></FONT><FONT size=2>
<P>{</P>
<P>mi.Invoke( file, </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>object</FONT><FONT size=2>[] { checkinComment, checkinType, </FONT><FONT color=#0000ff size=2>false</FONT><FONT size=2>, modifiedByUser });</P>
<P></FONT><FONT size=2>&nbsp;</P>
<P>}</P>
<P mce_keep="true">&nbsp;</P>
<P></FONT><FONT color=#0000ff size=2>catch</FONT><FONT size=2> (</FONT><FONT color=#008080 size=2>Exception</FONT><FONT size=2> ex)</P>
<P>{</P>
<P></FONT><FONT color=#008080 size=2>MessageBox</FONT><FONT size=2>.Show(ex.StackTrace);</P>
<P>}</P>
<P>}</P>
<P>Before calling this code you will need to Check out the file, otherwise you will get an error.<BR>&nbsp;</P>
<P mce_keep="true">&nbsp;</P></FONT>]]></content:encoded>
    </item>
    <item>
      <title>Working with MWSDefault.master page along with meeting workspace definition</title>
      <link>https://docs.microsoft.com/archive/blogs/pavankumar/working-with-mwsdefault-master-page-along-with-meeting-workspace-definition</link>
      <pubDate>Thu, 09 Apr 2009 01:02:00 GMT</pubDate>
      <dc:creator><![CDATA[Pavan*Kumar]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/pavankumar/2009/04/09/working-with-mwsdefault-master-page-along-with-meeting-workspace-definition/</guid>
      <description><![CDATA[&#160; Recently I came across an issue with a custom master page created based on the OOB...]]></description>
      <content:encoded><![CDATA[&#160; <p>Recently I came across an issue with a custom master page created based on the OOB MWSDefault.master page.</p>  <p>MWSDefault.Master is the master page used by the OOB meeting workspace definition &quot;MPS&quot;. This master page has been used with all the configuration of the MPS meeting workspace site definition. You can find this master page under the C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\GLOBAL folder. All the modules in the MPS site definition refers the master page from this set up path to provision it to the master page gallery.</p>  <p>Created a custom master page based on this MWSDefault.master page and has successfully provisioned it to the master page gallery. But applying this master page to the meeting workspace site doesn't replicate the same behavior as the OOB MWSDefault.master.</p>  <p>The following screenshot shows you the multipage meeting workspace site with the OOB MWSDefault.master page applied :</p>  <p mce_keep="true"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/pavankumar/WindowsLiveWriter/Wor.masterpagealongwithmeetingworkspaced_BCB5/Blog1_2.jpg" original-url="https://blogs.msdn.com/blogfiles/pavankumar/WindowsLiveWriter/Wor.masterpagealongwithmeetingworkspaced_BCB5/Blog1_2.jpg"><img title="Blog1" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="401" alt="Blog1" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/pavankumar/WindowsLiveWriter/Wor.masterpagealongwithmeetingworkspaced_BCB5/Blog1_thumb.jpg" original-url="https://blogs.msdn.com/blogfiles/pavankumar/WindowsLiveWriter/Wor.masterpagealongwithmeetingworkspaced_BCB5/Blog1_thumb.jpg" width="656" border="0" /></a>&#160; </p>  <p mce_keep="true">&#160;</p>  <p mce_keep="true">The following screenshot shows you the multipage meeting workspace site with the Custom MWSDefault.master page applied :</p>  <p mce_keep="true"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/pavankumar/WindowsLiveWriter/Wor.masterpagealongwithmeetingworkspaced_BCB5/Blog2_2.jpg" original-url="https://blogs.msdn.com/blogfiles/pavankumar/WindowsLiveWriter/Wor.masterpagealongwithmeetingworkspaced_BCB5/Blog2_2.jpg"><img title="Blog2" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="411" alt="Blog2" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/pavankumar/WindowsLiveWriter/Wor.masterpagealongwithmeetingworkspaced_BCB5/Blog2_thumb.jpg" original-url="https://blogs.msdn.com/blogfiles/pavankumar/WindowsLiveWriter/Wor.masterpagealongwithmeetingworkspaced_BCB5/Blog2_thumb.jpg" width="673" border="0" /></a> </p>  <p><b></b>&#160;</p>  <p>From the above screenshots you can find the difference that the multi page meeting workspace with the custom master page appears with a &quot;Meeting Navigator&quot; in the quick launch. This meeting navigator should appear only if more than one meeting event is linked with the meeting workspace. There are no meeting events linked with the meeting workspace but still the meeting workspace shows the &quot;Meeting Navigator&quot; with the message that &quot;There are no more meeting occurrences to select from&quot; but with the OOB MWSDefault.master everything is fine.</p>  <p mce_keep="true">&#160;</p>  <p>If you have a look into the &quot;Default.aspx&quot; page then you can find that the &quot;HideMtgNavigatorPane&quot; JavaScript function has been called to hide the meeting navigator if the meeting count for the meeting workspace is less than or equal to one (&lt;=1). The following is the snippet from the default.aspx page :</p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; color: blue; line-height: 115%; font-family: &#39;Courier New&#39;">&lt;</span><span style="font-size: 10pt; color: maroon; line-height: 115%; font-family: &#39;Courier New&#39;">div</span><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;"> <span style="color: red">id</span><span style="color: blue">=&quot;MeetingNavigatorPane&quot;</span> <span style="color: red">class</span><span style="color: blue">=&quot;ms-quicklaunchouter&quot;&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160; <span style="color: blue">&lt;</span><span style="color: maroon">div</span> <span style="color: red">class</span><span style="color: blue">=&quot;ms-quickLaunch&quot;</span> <span style="color: red">style</span><span style="color: blue">=&quot;width:100%&quot;&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160; <span style="color: blue">&lt;</span><span style="color: maroon">div</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue">&lt;</span><span style="color: maroon">table</span> <span style="color: red">height</span><span style="color: blue">=100%</span> <span style="color: red">cellspacing</span><span style="color: blue">=0</span> <span style="color: red">cellpadding</span><span style="color: blue">=2</span> <span style="color: red">class</span><span style="color: blue">=&quot;ms-navSubMenu2&quot;&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue">&lt;</span><span style="color: maroon">tr</span> <span style="color: red">valign</span><span style="color: blue">=top&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue">&lt;</span><span style="color: maroon">td</span> <span style="color: red">id</span><span style="color: blue">=&quot;onetidMtgNavigator&quot;&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue">&lt;</span><span style="color: maroon">script</span><span style="color: blue">&gt;</span> <span style="color: blue">if</span> (<span style="color: blue">typeof</span>(<span style="background: yellow; mso-highlight: yellow">g_meetingCount</span>) != <span style="color: maroon">&quot;undefined&quot;</span> &amp;&amp; <span style="background: yellow; mso-highlight: yellow">(g_meetingCount == 0 || g_meetingCount == 1)</span>) <span style="background: yellow; mso-highlight: yellow">HideMtgNavigatorPane()</span>; <span style="color: blue">&lt;/</span><span style="color: maroon">script</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: green">&lt;!-- Begin Date Picker Column --&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue">&lt;</span><span style="color: maroon">WebPartPages</span><span style="color: blue">:</span><span style="color: maroon">WebPartZone</span> <span style="color: red">runat</span><span style="color: blue">=&quot;server&quot;</span> <span style="color: red">Title</span><span style="color: blue">=&quot;loc:MeetingNavigator&quot;</span> <span style="color: red">ID</span><span style="color: blue">=&quot;MeetingNavigator&quot;</span> <span style="color: red">Orientation</span><span style="color: blue">=&quot;Vertical&quot;</span> <span style="color: red">FrameType</span><span style="color: blue">=&quot;None&quot;</span> <span style="color: red">AllowLayoutChange</span><span style="color: blue">=&quot;False&quot;</span> <span style="color: red">AllowPersonalization</span><span style="color: blue">=&quot;false&quot;/&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: green">&lt;!-- End Meeting Date Picker --&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue">&lt;/</span><span style="color: maroon">td</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue">&lt;/</span><span style="color: maroon">tr</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue">&lt;/</span><span style="color: maroon">table</span><span style="color: blue">&gt;       <p></p>     </span></span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160; <span style="color: blue">&lt;/</span><span style="color: maroon">div</span><span style="color: blue">&gt;</span></span><span style="mso-bidi-font-family: &#39;Times New Roman&#39;; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri">     <p></p>   </span></p>  <p mce_keep="true">The custom master page has the JavaScript reference but this JavaScript method (HideMtgNavigatorPane) was not called when we are applying the custom master page. While doing the further source code debugging with the variable &quot;g_meetingCount&quot; found an interesting thing which is the root cause of the behavior. </p>  <p mce_keep="true">&#160;</p>  <p>The variable &quot;g_meetingCount&quot; has been assigned with the value in the fly by registering a Client Script Block. This has been implemented in the HandlePrerender method of Microsoft.SharePoint.Meetings.PropertyBag Class. The following is the snippet of the &quot;HandlePrerender&quot; method in which you can find that the &quot;g_meetingCount&quot; is assigned with the value of meeting count from the current web object.</p>  <p mce_keep="true">&#160;</p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; color: blue; line-height: 115%; font-family: &#39;Courier New&#39;">private</span><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;"> <span style="color: blue">void</span> HandlePreRender(<span style="color: blue">object</span> sender, <span style="color: teal">EventArgs</span> e)      <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; {     <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: green">// This item is obfuscated and can not be translated.       <p></p>     </span></span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: teal">SPWeb</span> contextWeb = SPControl.GetContextWeb(<span style="color: blue">this</span>.Context);      <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue">if</span> (SPMeeting.IsMeetingWorkspaceWeb(contextWeb))      <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {     <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="background: yellow; mso-highlight: yellow">ScriptBuilder builder = <span style="color: blue">new</span> ScriptBuilder();</span>      <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue">string</span> fullOrRelativeUri = contextWeb.GetWebRelativeUrlFromUrl(SPGlobal.GetVTIRequestUrl(<span style="color: blue">this</span>.Page.Request, contextWeb.Request).ToString(), <span style="color: blue">false</span>, <span style="color: blue">false</span>);      <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; builder.AddVariable(<span style="color: maroon">&quot;g_pageUrl&quot;</span>, <span style="color: maroon">&quot;\&quot;&quot;</span> + SPHttpUtility.UrlPathEncode(MtgUtility.GetServerRelativeUrl(contextWeb) + fullOrRelativeUri, <span style="color: blue">true</span>) + <span style="color: maroon">&quot;\&quot;&quot;</span>);      <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; builder.AddVariable(<span style="color: maroon">&quot;g_webUrl&quot;</span>, <span style="color: maroon">&quot;\&quot;&quot;</span> + SPHttpUtility.UrlPathEncode(contextWeb.ServerRelativeUrl, <span style="color: blue">true</span>) + <span style="color: maroon">&quot;\&quot;&quot;</span>);      <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; builder.AddVariable(<span style="color: maroon">&quot;g_instanceId&quot;</span>, <span style="color: maroon">&quot;\&quot;&quot;</span> + contextWeb.MeetingInformation.InstanceId + <span style="color: maroon">&quot;\&quot;&quot;</span>);      <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="background: yellow; mso-highlight: yellow">builder.AddVariable(<span style="color: maroon">&quot;g_meetingCount&quot;</span>, <span style="color: maroon">&quot;\&quot;&quot;</span> + contextWeb.MeetingCount + <span style="color: maroon">&quot;\&quot;&quot;</span>);</span>      <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: teal">SPList</span> homepageLib = MtgUtility.GetHomepageLib(contextWeb);      <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue">if</span> (homepageLib != <span style="color: blue">null</span>)      <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {     <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue">string</span> str2;      <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue">string</span> str3;      <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Utility.SplitUrl(fullOrRelativeUri, <span style="color: blue">out</span> str2, <span style="color: blue">out</span> str3);      <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue">if</span> (SPUtility.StsCompareStrings(str2, contextWeb.MeetingInformation.MakeInstanceFolder(homepageLib.RootFolder.Url)))      <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {     <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }     <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; builder.AddVariable(<span style="color: maroon">&quot;g_fPageGlobal&quot;</span>, <span style="color: maroon">&quot;0&quot;</span>);      <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }     <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="background: yellow; color: blue; mso-highlight: yellow">this</span><span style="background: yellow; mso-highlight: yellow">.Page.ClientScript.RegisterClientScriptBlock(<span style="color: blue">typeof</span>(PropertyBag), <span style="color: maroon">&quot;Mtg_MeetingsPropertyBag&quot;</span>, builder.ScriptText);</span>      <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }     <p></p>   </span></p>  <p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-size: 10pt; line-height: 115%; font-family: &#39;Courier New&#39;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; }     <p></p>   </span></p>  <p>So we need to add this class to the Body of the custom master page so that the &quot;g_meetingCount&quot; variable will be assigned with the value and hide/show of the meeting Navigator panel will work as expected. There is already a Tag prefix has been included in the custom Master page for the &quot;Microsoft.SharePoint.Meetings&quot; namespace in the master page so we just need to add the reference to the &quot;PropertyBag&quot; class in the &quot;Body&quot; of the custom master page. This fixed the issue and now the Branding works as expected :</p>  <p mce_keep="true"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/pavankumar/WindowsLiveWriter/Wor.masterpagealongwithmeetingworkspaced_BCB5/Blog3.jpg" original-url="https://blogs.msdn.com/blogfiles/pavankumar/WindowsLiveWriter/Wor.masterpagealongwithmeetingworkspaced_BCB5/Blog3.jpg"><img title="Blog3" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="366" alt="Blog3" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/pavankumar/WindowsLiveWriter/Wor.masterpagealongwithmeetingworkspaced_BCB5/Blog3_thumb.jpg" original-url="https://blogs.msdn.com/blogfiles/pavankumar/WindowsLiveWriter/Wor.masterpagealongwithmeetingworkspaced_BCB5/Blog3_thumb.jpg" width="600" border="0" /></a> </p>  <p mce_keep="true">Note :</p>  <p mce_keep="true">This &quot;PropertyBag&quot; class is very important and it's not only important for this &quot;g_meetingCount&quot; because there are some other variables are also used in this PropertyBag. So when you are missing any functionalities while customizing the &quot;MWSDefault.master&quot; please make sure that you adds this &quot;PropertyBag&quot; to the &quot;Body&quot; of the custom master page.</p>]]></content:encoded>
    </item>
    <item>
      <title>State machine workflow with delay activity</title>
      <link>https://docs.microsoft.com/archive/blogs/pavankumar/state-machine-workflow-with-delay-activity</link>
      <pubDate>Thu, 09 Apr 2009 00:29:00 GMT</pubDate>
      <dc:creator><![CDATA[Pavan*Kumar]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/pavankumar/2009/04/09/state-machine-workflow-with-delay-activity/</guid>
      <description><![CDATA[State based workflow that has a DelayActivity. The DelayActivity never fires and errors out...]]></description>
      <content:encoded><![CDATA[<SPAN style="FONT-SIZE: 11pt; COLOR: red; FONT-FAMILY: 'Calibri','sans-serif'; mso-bidi-font-family: 'Times New Roman'; 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">
<P><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Trebuchet MS','sans-serif'; mso-fareast-font-family: Calibri; mso-themecolor: text1; mso-fareast-theme-font: minor-latin"></P>
<P><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: Calibri; mso-themecolor: text1; mso-fareast-theme-font: minor-latin">State based workflow that has a DelayActivity. The DelayActivity never fires and errors out eventually. The problem lies in the fact that the workflow calls&nbsp; out to another DLL in the code activity following the DelayActivity. When the call is made a&nbsp; "System.IO.FileNotFoundException: Could not load file or assembly" exception is raised.</SPAN></P><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: Calibri; mso-themecolor: text1; mso-fareast-theme-font: minor-latin">
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face=Calibri>System.IO.FileNotFoundException: Could not load file or assembly 'Utilities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=584ac65395d6cc3f' or one of its dependencies. The system cannot find the file specified. File name: 'Utilities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=584ac65395d6cc3f' at RRURequestWorkflow.Workflow1.codeActivity2_ExecuteCode(Object sender, EventArgs e) at System.Workflow.ComponentModel.Activity.RaiseEvent(DependencyProperty dependencyEvent, Object sender, EventArgs e) at System.Workflow.Activities.CodeActivity.Execute(ActivityExecutionContext executionContext) at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext) at System.Workflow.ComponentModel.ActivityExecutor`1.Execute...</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face=Calibri></FONT>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face=Calibri>Go ahead and start Windows Sharepoint Services Timer. This will resolve the issue.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face=Calibri></FONT>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face=Calibri>Reason behind this</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face=Calibri>----------------------------</FONT><FONT face=Calibri></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 12pt; COLOR: black; mso-themecolor: text1">When you have workflow that has got a delay activity, the event is fired by the service(SPTimerV3), before it fires, it has to load the assembly from its bin or from the GAC, only one file(module loads) based on the assembly information specified in workflow.xml file loads.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 'Times New Roman','serif'; mso-themecolor: text1"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 12pt; COLOR: black; mso-themecolor: text1">Deploying the new binary after changing the workflow activities, the SPTimerV3 is not aware of the newly added binary, it won’t reload it unless you do a time reset. <o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 12pt; COLOR: black; mso-themecolor: text1">Unless you do a reset, the persistence (serialization or de-serialization) or loading of assembly would fail due to mismatch of types.<o:p></o:p></SPAN></P></FONT>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face=Calibri></FONT>&nbsp;</P></SPAN><SPAN style="FONT-SIZE: 11pt; COLOR: black; FONT-FAMILY: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; mso-themecolor: text1"><o:p></o:p></SPAN></SPAN></SPAN>]]></content:encoded>
    </item>
  </channel>
</rss>