<?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>NidhishBlog</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/nidhishd/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/nidhishd/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 04:05:36 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>"Access Denied" error after setting up Form Based Authentication for SharePoint site using Active Directory as a datastore</title>
      <link>https://docs.microsoft.com/archive/blogs/nidhishd/access-denied-error-after-setting-up-form-based-authentication-for-sharepoint-site-using-active-directory-as-a-datastore</link>
      <pubDate>Wed, 27 Jan 2010 16:46:00 GMT</pubDate>
      <dc:creator><![CDATA[nidhishd]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/nidhishd/2010/01/27/access-denied-error-after-setting-up-form-based-authentication-for-sharepoint-site-using-active-directory-as-a-datastore/</guid>
      <description><![CDATA[&nbsp;
Recently I faced very interesting scenario where I have configured everything as mentioned...]]></description>
      <content:encoded><![CDATA[<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><FONT size=3 face=Calibri></FONT>&nbsp;</P>
<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><FONT size=3 face=Calibri>Recently I faced very interesting scenario where I have configured everything as mentioned in this article </FONT><A href="https://blogs.msdn.com/echarran/archive/2006/09/11/749707.aspx" mce_href="https://blogs.msdn.com/echarran/archive/2006/09/11/749707.aspx"><FONT size=3 face=Calibri>https://blogs.msdn.com/echarran/archive/2006/09/11/749707.aspx</FONT></A><FONT size=3 face=Calibri> for the Forms Authentication using Active Directory Membership Provider. After doing so, whenever I tried to login I was getting <B style="mso-bidi-font-weight: normal"><I style="mso-bidi-font-style: normal">“Access Denied”</I></B> error and was not able to login via any user. <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>To check the configuration validity in Web.Config of my web application I did the following:</FONT></P>
<P style="TEXT-INDENT: -0.25in; MARGIN-LEFT: 0.25in; mso-list: l0 level1 lfo1"><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: Tahoma"><SPAN style="mso-list: Ignore">1.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">Opened Central Administration Web site.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P style="TEXT-INDENT: -0.25in; MARGIN-LEFT: 0.25in; mso-list: l0 level1 lfo1"><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: Tahoma"><SPAN style="mso-list: Ignore">2.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">Clicked on the <B>Application Management</B> tab, and then clicked on <B>Policy for Web application</B>.<o:p></o:p></SPAN></P>
<P style="TEXT-INDENT: -0.25in; MARGIN-LEFT: 0.25in; mso-list: l0 level1 lfo1"><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: Tahoma"><SPAN style="mso-list: Ignore">3.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">Ensured that the correct Web application is selected; it is displayed in the upper-right corner. Clicked <B>Add Users</B>.<o:p></o:p></SPAN></P>
<P style="TEXT-INDENT: -0.25in; MARGIN-LEFT: 0.25in; mso-list: l0 level1 lfo1"><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: Tahoma"><SPAN style="mso-list: Ignore">4.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">In the <B>Zones</B> list, clicked the appropriate zone for which I was setting up the FBA.<o:p></o:p></SPAN></P>
<P style="TEXT-INDENT: -0.25in; MARGIN-LEFT: 0.25in; mso-list: l0 level1 lfo1"><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: Tahoma"><SPAN style="mso-list: Ignore">5.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">On the Add Users page, clicked the address book icon to open the <B>People Picker</B> dialog box<o:p></o:p></SPAN></P>
<P style="TEXT-INDENT: -0.25in; MARGIN-LEFT: 0.25in; mso-list: l0 level1 lfo1"><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: Tahoma"><SPAN style="mso-list: Ignore">6.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">In the <B>People Picker</B> dialog box, typed <B>the username (user from membership datastore)</B>in the <B>Find</B> box, and then clicked the search button. <o:p></o:p></SPAN></P>
<P style="TEXT-INDENT: -0.25in; MARGIN-LEFT: 0.25in; mso-list: l0 level1 lfo1"><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: Tahoma"><SPAN style="mso-list: Ignore">7.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">I was not getting any user in the result which meant that there is some problem in web.config file. </SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt"><o:p>&nbsp;</o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">I looked at the Authentication Provider page carefully and here is what I figured out which was missing in my configuration:<o:p></o:p></SPAN></P>
<P><SPAN style="mso-no-proof: yes"><?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /><v:shapetype id=_x0000_t75 stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"></v:path><o:lock aspectratio="t" v:ext="edit"></o:lock></v:shapetype><v:shape style="WIDTH: 517.5pt; HEIGHT: 92.25pt; VISIBILITY: visible; mso-wrap-style: square" id=Picture_x0020_1 type="#_x0000_t75" o:spid="_x0000_i1025"><v:imagedata o:title="" src="file:///C:\Users\dhru\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png" mce_src="file:///C:\Users\dhru\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png"></v:imagedata></v:shape></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin">Above screen says that you need to do the same configuration in <B style="mso-bidi-font-weight: normal">Central Admin</B> site’s web.config as well. That was the missing part. I did the same modification in the Central Admin’s web.config which I did it for my web application. <o:p></o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin"><o:p>&nbsp;</o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin">I followed the steps 1 – 7 listed above and this time was I was seeing the users.</SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt"> You should also notice that the account name is displayed in the format that SharePoint uses internally to keep track of it: <I>MembershipProviderName</I>:<I>accountName</I>. In this scenario, that means the account name for <B>username</B> is <B>ADProvider:username</B>.<o:p></o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin"><o:p>&nbsp;</o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE: 11pt; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin">Then I did few additional steps:<o:p></o:p></SPAN></P>
<P style="TEXT-INDENT: -0.25in; MARGIN-LEFT: 0.25in; mso-list: l1 level1 lfo2"><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: Tahoma"><SPAN style="mso-list: Ignore">1.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">Double-clicked username to add it to the Add box, and then clicked OK.<o:p></o:p></SPAN></P>
<P style="TEXT-INDENT: -0.25in; MARGIN-LEFT: 0.25in; mso-list: l1 level1 lfo2"><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: Tahoma"><SPAN style="mso-list: Ignore">2.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">Selected Full Control<o:p></o:p></SPAN></P>
<P style="TEXT-INDENT: -0.25in; MARGIN-LEFT: 0.25in; mso-list: l1 level1 lfo2"><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt; mso-fareast-font-family: Tahoma"><SPAN style="mso-list: Ignore">3.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">Click Finish to save the changes.<o:p></o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt"><o:p>&nbsp;</o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">Logged-in back to my web application using the FBA and with the same user, this time I was able to login without any error.<o:p></o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt"><o:p>&nbsp;</o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">Hope this will be useful to someone who is also facing similar issue.<o:p></o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt"><o:p>&nbsp;</o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">Cheers !!!!</SPAN></P>]]></content:encoded>
    </item>
    <item>
      <title>UnGacing doesn't work</title>
      <link>https://docs.microsoft.com/archive/blogs/nidhishd/ungacing-doesnt-work</link>
      <pubDate>Tue, 07 Apr 2009 12:34:00 GMT</pubDate>
      <dc:creator><![CDATA[nidhishd]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/nidhishd/2009/04/07/ungacing-doesnt-work/</guid>
      <description><![CDATA[Recently I have faced a very strange issue, I have UnGaced the DLL but it was still being referenced...]]></description>
      <content:encoded><![CDATA[<P><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">Recently I have faced a very strange issue, I have UnGaced the DLL but it was still being referenced by the application. I have developed a Workflow based application which does some computation once a document is uploaded to the Document Library. DLL was not in the GAC but still it was being referenced and computation was happening even after "IISRESET" multiple time.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">Fortunately&nbsp;while trying lot of different options I have tried restarting the SharePoint Timer Service and that worked finally. It seems SharePoint Timer Service (OWSTimer) is caching the DLLs and not releasing the reference even after restarting the IIS. <o:p></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><FONT size=3 face=Calibri>So for all my workflow related DLLs I follow below steps:</FONT></P>
<P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpFirst><SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT size=3 face=Calibri>1.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3 face=Calibri>UnGAC the application specific DLL</FONT></P>
<P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpMiddle><SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT size=3 face=Calibri>2.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3 face=Calibri>IISRESET</FONT></P>
<P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpMiddle><SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT size=3 face=Calibri>3.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3 face=Calibri>Restart SharePoint Timer Service</FONT></P>
<P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpMiddle><SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT size=3 face=Calibri>4.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3 face=Calibri>GAC the DLL</FONT></P>
<P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpMiddle><SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT size=3 face=Calibri>5.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3 face=Calibri>IISRESET</FONT></P>
<P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1" class=MsoListParagraphCxSpLast><SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT size=3 face=Calibri>6.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3 face=Calibri>Restart SharePoint Timer Service</FONT></P>
<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><FONT size=3 face=Calibri>Someone might have different experience and want to share, please do so …</FONT></P>
<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><FONT size=3 face=Calibri>Cheers !!!</FONT></P>
<P mce_keep="true">&nbsp;</P>
<P mce_keep="true">&nbsp;</P>]]></content:encoded>
    </item>
    <item>
      <title>How to modify Content Type once it is deployed?</title>
      <link>https://docs.microsoft.com/archive/blogs/nidhishd/how-to-modify-content-type-once-it-is-deployed</link>
      <pubDate>Tue, 06 May 2008 05:50:00 GMT</pubDate>
      <dc:creator><![CDATA[nidhishd]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/nidhishd/2008/05/06/how-to-modify-content-type-once-it-is-deployed/</guid>
      <description><![CDATA[Once the Content Type&nbsp;is deployed it is very difficult to modify them via Feature deployment....]]></description>
      <content:encoded><![CDATA[<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US><FONT face=Calibri size=3>Once the Content Type&nbsp;is deployed it is very difficult to modify them via Feature deployment. Once the Content Type is being used by any of the object in SharePoint, it’s difficult to modify that Content Type without deleting the associate content. </FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US><FONT face=Calibri size=3>For Example, There is a Page Layout (let’s name it as SamplePL) which is bind to the Content Type (let’s name is as SampleCT). User creates pages using SamplePL. Now, if there is a requirement to add new field to the SamplePL, we need to first add that field to the SampleCT and then add that field to the SamplePL. If the deployment is happening through feature deployment (automated deployment) then the SampleCT will never be refreshed on the server.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US><FONT face=Calibri size=3>To overcome this problem there are two approaches (as far as I know):</FONT></SPAN></P>
<P class=MsoListParagraphCxSpFirst style="MARGIN: 0cm 0cm 0pt 36pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1"><SPAN lang=EN-US style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>1.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3><FONT face=Calibri><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US>Manual Changes</SPAN></B><SPAN lang=EN-US>:</SPAN></FONT></FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; mso-list: l0 level2 lfo1; mso-add-space: auto"><SPAN lang=EN-US style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>a.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US><FONT face=Calibri size=3>Admin has to manually delete the content which is created using the SamplePL. </FONT></SPAN></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; mso-list: l0 level2 lfo1; mso-add-space: auto"><SPAN lang=EN-US style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>b.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US><FONT face=Calibri size=3>Admin has to manually add the column to the Content Type via the SharePoint UI Interface. </FONT></SPAN></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; mso-list: l0 level2 lfo1; mso-add-space: auto"><SPAN lang=EN-US style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>c.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US><FONT face=Calibri size=3>Add that newly added column to the SamplePL and then only the SamplePL will start showing that new field.</FONT></SPAN></P>
<P class=MsoListParagraphCxSpLast style="MARGIN: 0cm 0cm 0pt 36pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1; mso-add-space: auto"><SPAN lang=EN-US style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>2.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3><FONT face=Calibri><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US>Via Object Model</SPAN></B><SPAN lang=EN-US>:</SPAN></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 36pt"><SPAN lang=EN-US><FONT face=Calibri size=3>If the content is huge and if it’s practically impossible to delete that content to change the Content Type, the other way is to write a small utility which can do the job for you without even deleting the content. Here is the example, i am deleting a field from the SampleCT: </FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 36pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">string</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> contentTypeName = <SPAN style="COLOR: maroon">"SampleCT"</SPAN>;<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 36pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">try<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 36pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: teal">SPContentType</SPAN> contentType = site.RootWeb.ContentTypes[contentTypeName]; <SPAN style="COLOR: green">// site is the SPSite object</SPAN><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 36pt; TEXT-INDENT: 36pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">if</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> (contentType == <SPAN style="COLOR: blue">null</SPAN>)<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: green">// display error message</SPAN><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: 36pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">return</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 36pt; TEXT-INDENT: 36pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">}<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">else<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: green">// Getting Fileds collection from the Site Columns Gallery </SPAN><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: teal">SPFieldCollection</SPAN> fileds = site.RootWeb.Fields;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">if</SPAN> (fileds.ContainsField(<SPAN style="COLOR: maroon">"FieldName"</SPAN>))<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: 36pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // </SPAN><SPAN style="COLOR: teal">SPField</SPAN> field = fileds.GetField(<SPAN style="COLOR: maroon">"FieldName"</SPAN>); // This method will get the object of the field</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: green">// Checking for the field in SampleCT <o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">if</SPAN> (!contentType.Fields.ContainsField(<SPAN style="COLOR: maroon">"FieldName"</SPAN>))<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 167.25pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">// In this example I am deleting a Field from the Content Type<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>contentType.FieldLinks.Delete(<SPAN style="COLOR: maroon">"FieldName"</SPAN>);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>contentType.Update(); <SPAN style="COLOR: green">// Updating Content Type is very important otherwise changes will be reflected<o:p></o:p></SPAN></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 108pt; TEXT-INDENT: 36pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">}<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 36pt; TEXT-INDENT: 36pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">}<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt 36pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">}<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt 36pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">You can put the entier&nbsp;code block&nbsp;inside the <SPAN style="COLOR: blue">RunWithElevatedPrivileges </SPAN>statement if you are facing permission issues:<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt 36pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: teal; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">SPSecurity</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">.RunWithElevatedPrivileges(<SPAN style="COLOR: blue">delegate</SPAN>(){<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt 36pt"><SPAN lang=EN-US><FONT face=Calibri size=3>});</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt 36pt"><SPAN lang=EN-US>Hope this blog helps all those who are wondering the behaviour of the Content Types.</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt 36pt"><SPAN lang=EN-US>Cheers!!!!</SPAN></P>]]></content:encoded>
    </item>
    <item>
      <title>How to use CAML query to fetch data from a list?</title>
      <link>https://docs.microsoft.com/archive/blogs/nidhishd/how-to-use-caml-query-to-fetch-data-from-a-list</link>
      <pubDate>Mon, 05 May 2008 06:59:00 GMT</pubDate>
      <dc:creator><![CDATA[nidhishd]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/nidhishd/2008/05/05/how-to-use-caml-query-to-fetch-data-from-a-list/</guid>
      <description><![CDATA[Here is the CAML Query: 
&lt;Where&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...]]></description>
      <content:encoded><![CDATA[<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">Here is the CAML Query: <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">&lt;Where&gt;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>&lt;Eq&gt;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>&lt;FieldRef Name="Title" /&gt;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>&lt;Value Type="Text"&gt;title&lt;/Value&gt;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>&lt;/Eq&gt;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">&lt;/Where&gt;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">I am using object model from my Webpart to load this CAML query and get the results back:<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: teal; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">SPList</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> list = web.Lists[“ListName”];<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">SPQuery</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> spQuery = <SPAN style="COLOR: blue">new</SPAN> <SPAN style="COLOR: teal">SPQuery</SPAN>();<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">spQuery.Query = “” //CAML Query String from the Top;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">SPListItemCollection</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> items = list.GetItems(spQuery);<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">if</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> (items != <SPAN style="COLOR: blue">null</SPAN>)<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 36pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">if</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> (items.Count &gt; 0)<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>… do something …<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">}<SPAN style="mso-spacerun: yes">&nbsp; </SPAN><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">Works fine, isn’t it? Examine the CAML query carefully, I have not used <B style="mso-bidi-font-weight: normal"><I style="mso-bidi-font-style: normal"><SPAN style="BACKGROUND: yellow; mso-highlight: yellow">&lt;Query&gt;&lt;/Query&gt;</SPAN></I></B> block in the Query.<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">Important Note</SPAN></B><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">:- Whenever you build a CAML Query and supply it to the SPQuery object make sure that the CAML query doesn’t have &lt;Query&gt;&lt;/Query&gt; block as starting and ending statement, otherwise SPQuery will always return empty result set. This is valid when we are using SPQuery object in the context of Web. If you are doing the same from a windows utility then &lt;Query&gt;&lt;/Query&gt; block should not create any issue.<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">Most developer face this issue first time they interact with CAML Query, hopping they find this blog useful.<o:p></o:p></SPAN></P>
<P><SPAN lang=EN-US style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-bidi-language: AR-SA; mso-no-proof: yes">Need help building CAML query? Visit this blog <A href="https://blogs.msdn.com/nidhishd/archive/2007/05/03/tool-to-auto-generate-caml-queries-in-moss.aspx" mce_href="https://blogs.msdn.com/nidhishd/archive/2007/05/03/tool-to-auto-generate-caml-queries-in-moss.aspx">https://blogs.msdn.com/nidhishd/archive/2007/05/03/tool-to-auto-generate-caml-queries-in-moss.aspx</A> <SPAN style="mso-spacerun: yes">&nbsp;</SPAN><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;</SPAN></SPAN></P>]]></content:encoded>
    </item>
    <item>
      <title>Working with SPGridView - all in one</title>
      <link>https://docs.microsoft.com/archive/blogs/nidhishd/working-with-spgridview-all-in-one</link>
      <pubDate>Mon, 02 Jul 2007 02:33:00 GMT</pubDate>
      <dc:creator><![CDATA[nidhishd]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/nidhishd/2007/07/02/working-with-spgridview-all-in-one/</guid>
      <description><![CDATA[I recently had the opportunity to work extensively on SPGridView. I have chronicled few of the...]]></description>
      <content:encoded><![CDATA[<P>I recently had the opportunity to work extensively on SPGridView. I have chronicled few of the challenges faced while working on SPGridView, and their solutions in the attached document. Have also attached the codebase, which will help people working&nbsp; with SPGridView without&nbsp;much trouble.. :)&nbsp;</P>
<P>Cheers...<BR></P>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Components.PostAttachments/00/03/65/66/62/Technical%20WhitePaper%20-%20Working%20with%20SPGridView.zip" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-03-65-66-62/Technical-WhitePaper-_2D00_-Working-with-SPGridView.zip">Technical WhitePaper - Working with SPGridView.zip</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Tool to auto-generate CAML queries in MOSS</title>
      <link>https://docs.microsoft.com/archive/blogs/nidhishd/tool-to-auto-generate-caml-queries-in-moss</link>
      <pubDate>Thu, 03 May 2007 06:03:00 GMT</pubDate>
      <dc:creator><![CDATA[nidhishd]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/nidhishd/2007/05/03/tool-to-auto-generate-caml-queries-in-moss/</guid>
      <description><![CDATA[There is a tool on U2U resource Center which will help generating CAML queries for the given object...]]></description>
      <content:encoded><![CDATA[<P>There is a tool on U2U resource Center which will help generating CAML queries for the given object in MOSS.</P>
<P>URL to Down load the tool:</P>
<P><A href="https://www.u2u.info/SharePoint/U2U%20Community%20Tools/Forms/AllItems.aspx">https://www.u2u.info/SharePoint/U2U%20Community%20Tools/Forms/AllItems.aspx</A></P>
<P>URL on how to use this tool:</P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'MS Shell Dlg','sans-serif'; mso-ansi-language: EN-IN; mso-fareast-font-family: Calibri; mso-fareast-language: EN-IN; mso-fareast-theme-font: minor-latin; mso-bidi-language: AR-SA"><A href="https://www.u2u.info/Blogs/Patrick/Lists/Posts/Post.aspx?ID=1252">https://www.u2u.info/Blogs/Patrick/Lists/Posts/Post.aspx?ID=1252</A></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'MS Shell Dlg','sans-serif'; mso-ansi-language: EN-IN; mso-fareast-font-family: Calibri; mso-fareast-language: EN-IN; mso-fareast-theme-font: minor-latin; mso-bidi-language: AR-SA"></SPAN>&nbsp;</P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'MS Shell Dlg','sans-serif'; mso-ansi-language: EN-IN; mso-fareast-font-family: Calibri; mso-fareast-language: EN-IN; mso-fareast-theme-font: minor-latin; mso-bidi-language: AR-SA">Thanks to the owner which has made the life simpler of CAML query writter..</SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'MS Shell Dlg','sans-serif'; mso-ansi-language: EN-IN; mso-fareast-font-family: Calibri; mso-fareast-language: EN-IN; mso-fareast-theme-font: minor-latin; mso-bidi-language: AR-SA"></SPAN>&nbsp;</P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'MS Shell Dlg','sans-serif'; mso-ansi-language: EN-IN; mso-fareast-font-family: Calibri; mso-fareast-language: EN-IN; mso-fareast-theme-font: minor-latin; mso-bidi-language: AR-SA">Cheers !!!</SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'MS Shell Dlg','sans-serif'; mso-ansi-language: EN-IN; mso-fareast-font-family: Calibri; mso-fareast-language: EN-IN; mso-fareast-theme-font: minor-latin; mso-bidi-language: AR-SA"></SPAN>&nbsp;</P>]]></content:encoded>
    </item>
    <item>
      <title>Find Domin User Information</title>
      <link>https://docs.microsoft.com/archive/blogs/nidhishd/find-domin-user-information</link>
      <pubDate>Fri, 20 Apr 2007 09:46:00 GMT</pubDate>
      <dc:creator><![CDATA[nidhishd]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/nidhishd/2007/04/20/find-domin-user-information/</guid>
      <description><![CDATA[System.DirectoryServices class will help finding the information of a Domain User. 
Function which...]]></description>
      <content:encoded><![CDATA[<P>System.DirectoryServices class will help finding the information of a Domain User. </P>
<P><STRONG>Function which will help retriving Active Directory Object: </STRONG></P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private DirectoryEntry GetActiveDirectoryObject(string filter, string domain, string[] properties)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /// Running LADAP query to get the directory entry<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DirectoryEntry adsRoot = new DirectoryEntry("LDAP://" + domain, null, null, AuthenticationTypes.Secure);</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DirectorySearcher searcher = new DirectorySearcher(adsRoot);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; searcher.SearchScope = SearchScope.Subtree;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; searcher.ReferralChasing = ReferralChasingOption.All;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; searcher.PropertiesToLoad.AddRange(properties);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; searcher.Filter = filter;</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SearchResult result = searcher.FindOne();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DirectoryEntry directoryEntry = result.GetDirectoryEntry();</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return directoryEntry;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</P>
<P><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Parameters one has to pass to GetActiveDirectoryObject funtion:</STRONG></P>
<P>string filter = string.Format("(&amp;(ObjectClass={0})(sAMAccountName={1}))","person", username);</P>
<P>string domain = Current User's Domain</P>
<P>string[] properties = One can pass string array of properties, for Example: string[] properties = new string[] {&nbsp;"memberOf" };</P>
<P><STRONG>Retriving data from the DirectoryEntry&nbsp;object:</STRONG></P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DirectoryEntry directoryEntry = GetActiveDirectoryObject(filter, domain, properties);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (directoryEntry != null)<BR>&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; directoryEntry.AuthenticationType = AuthenticationTypes.None;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string displayName = directoryEntry.Properties["displayName"][0].ToString();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string firstName = directoryEntry.Properties["givenName"][0].ToString();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string lastName = directoryEntry.Properties["sn"][0].ToString();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;string email&nbsp;= directoryEntry.Properties["mail"][0].ToString();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</P>
<P>I have also attached the sample code. For more information on the System.DirectoryServices please refere MSDN, it has detailed description about it.</P>
<P>&nbsp;Cheers!!!!</P>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Components.PostAttachments/00/02/20/75/04/DomainUsreInfo.zip" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-02-20-75-04/DomainUsreInfo.zip">DomainUsreInfo.zip</a></p>]]></content:encoded>
    </item>
    <item>
      <title>MOSS VPC Performance Imporvement tips</title>
      <link>https://docs.microsoft.com/archive/blogs/nidhishd/moss-vpc-performance-imporvement-tips</link>
      <pubDate>Wed, 11 Apr 2007 01:46:00 GMT</pubDate>
      <dc:creator><![CDATA[nidhishd]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/nidhishd/2007/04/11/moss-vpc-performance-imporvement-tips/</guid>
      <description><![CDATA[MOSS VPC Performance improvement:
Few services you might want to stop to give performance boost to...]]></description>
      <content:encoded><![CDATA[<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal"><B><SPAN lang=EN-US style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 'Times New Roman','serif'">MOSS VPC Performance improvement:</SPAN></B></P><SPAN lang=EN-US style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 'Times New Roman','serif'">
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT face=Calibri>Few services you might want to stop to give performance boost to your VPC.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT face=Calibri></FONT></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 36pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT face=Calibri>Windows SharePoint Services Timer<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 36pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT face=Calibri>Windows SharePoint Services Tracer<o:p></o:p></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 36pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT face=Calibri>Windows SharePoint Services Search<o:p></o:p></FONT></SPAN></P></SPAN>]]></content:encoded>
    </item>
    <item>
      <title>AJAX ComboBox control. Based on the first combo's value fill up the next combo without page post back</title>
      <link>https://docs.microsoft.com/archive/blogs/nidhishd/ajax-combobox-control-based-on-the-first-combos-value-fill-up-the-next-combo-without-page-post-back</link>
      <pubDate>Wed, 11 Apr 2007 01:12:00 GMT</pubDate>
      <dc:creator><![CDATA[nidhishd]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/nidhishd/2007/04/11/ajax-combobox-control-based-on-the-first-combos-value-fill-up-the-next-combo-without-page-post-back/</guid>
      <description><![CDATA[AJAX&nbsp;Parent/Child Dropdown control: 
Two dropdown controls, country and province/state.&nbsp;...]]></description>
      <content:encoded><![CDATA[<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 36pt; LINE-HEIGHT: normal"><B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 'Arial','sans-serif'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-IN">AJAX&nbsp;Parent/Child Dropdown control: <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></B></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 36pt; LINE-HEIGHT: normal"><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 'Arial','sans-serif'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-IN">Two dropdown controls, country and province/state.&nbsp; When you select a country, the province list should be refreshed (without a postback) with the list of provinces for that country.&nbsp; Developers using the control should be supply the country data, and the province data should either be a list of all provinces for all countries, or alternatively have a call back to the server to get the list of provinces for the country that the user just selected (maybe using partial postback method, or some AJAX feature).&nbsp;&nbsp; The control should have public properties for Country and Province so that the developer can pick up the selections that were made.</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-IN"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 36pt; LINE-HEIGHT: normal"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: EN-IN">&nbsp;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 36pt; LINE-HEIGHT: normal"><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 'Arial','sans-serif'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-IN">A Control has been created for the same purpose. Please download the source code&nbsp;attached.&nbsp;&nbsp;Control has a Boolean property called as <B>AddScriptManager</B>. &nbsp;The user needs to set the value as false if a instance of the script manager is present at the page level. If we have multiple instances of the control on the same page, the first instance should have the AddScriptmanager property as true and all other instances will have that property as false.<o:p></o:p></SPAN></P>
<P mce_keep="true">&nbsp;</P>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Components.PostAttachments/00/02/08/19/41/TestParentChildControl.zip" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-02-08-19-41/TestParentChildControl.zip">TestParentChildControl.zip</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Creating WinForm ComboBox in WebFroms</title>
      <link>https://docs.microsoft.com/archive/blogs/nidhishd/creating-winform-combobox-in-webfroms</link>
      <pubDate>Wed, 11 Apr 2007 00:56:00 GMT</pubDate>
      <dc:creator><![CDATA[nidhishd]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/nidhishd/2007/04/11/creating-winform-combobox-in-webfroms/</guid>
      <description><![CDATA[AJAX dropdown edit control:
Create a control that allows users to select from a dropdown list, or...]]></description>
      <content:encoded><![CDATA[<SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT size=3><FONT face=Calibri><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p>
<P class=MsoListParagraph style="MARGIN: 0cm 0cm 0pt 36pt; TEXT-INDENT: -18pt"><STRONG><SPAN lang=EN-US style="FONT-FAMILY: 'Calibri','sans-serif'; mso-bidi-font-family: Arial; mso-ansi-language: EN-US">AJAX dropdown edit control:</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"><o:p></o:p></SPAN></STRONG></P>
<P class=MsoListParagraph style="MARGIN: 0cm 0cm 0pt 18pt"><SPAN lang=EN-US style="FONT-FAMILY: 'Calibri','sans-serif'; mso-bidi-font-family: Arial; mso-ansi-language: EN-US">Create a control that allows users to select from a dropdown list, or to type a value if the value they want is not in the list.&nbsp; E.g. maybe there is an “Other…” option in the list which shows the text box when selected.&nbsp; Or maybe there is some other slick way that works like the WinForms ComboBox control.<o:p></o:p></SPAN></P>
<P class=MsoListParagraph style="MARGIN: 0cm 0cm 0pt 36pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1"></o:p></FONT></FONT></SPAN>&nbsp;</P>]]></content:encoded>
    </item>
  </channel>
</rss>