SharePoint - Development and Programming ForumTopics about development and programming (i.e. web parts, features, etc.), SDKs, and tools (i.e. Visual Studio).© 2009 Microsoft Corporation. All rights reserved.Wed, 25 Nov 2009 14:09:24 Z175b2de3-6a0a-4b73-8882-93446f9133e3http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/eb247834-6944-4ecb-958c-7ae7a620b094http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/eb247834-6944-4ecb-958c-7ae7a620b094Rex Ehttp://social.msdn.microsoft.com/Profile/en-US/?user=Rex%20ESharePoint object model and Windows ServicesHi<br/> <br/> I'm creating a windows service that connects to a SharePoint site to retrieve and update a list. The code works fine while debugging and not running as a service, but when I want to run the code as a service the code fails to retrieve list items.<br/> <br/> So: I have two listitems in my SharePoint list which I successfully retrieve while not running the code as a service, but the Items.Count retrieves 0 while running as a service, e.g. I involve the following into my code:<br/> <br/> [code]<br/>             ServiceBase[] ServicesToRun;<br/>             ServicesToRun = new ServiceBase[] <br/>             { <br/>                 new MyProgram()<br/>             };<br/>             ServiceBase.Run(ServicesToRun);<br/> [/code]<br/> <br/> Can it be a permission issue? While running as a service the code successfully retrieves the SharePoint site, but why wouldn't it be able to correctly interact with this specific list? I haven't set any special permissions on it.<br/> <br/> Any ideas? <hr class=sig> Studying system development. I always give credit to helpful posts!Wed, 25 Nov 2009 14:02:00 Z2009-11-25T14:09:24Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/1c7b9844-c834-4a78-89de-370fdb9cb495http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/1c7b9844-c834-4a78-89de-370fdb9cb495sparkymark75http://social.msdn.microsoft.com/Profile/en-US/?user=sparkymark75User interface issues when performing multiple column filtering on an SPGridView controlWhen viewing a SharePoint list, you can filter on multiple columns at once. I'm trying to replicate this using the SPGridView control bound to a SQLDataSource. I think I've got the multiple filtering cracked by appending the newly chosen filter to the one held in ViewState and then applying that to the datasource. However, the SPGridView UI still thinks that only the last filter has been applied because only the last filtered column has the filter icon next to it and the filtered value selected/ticked in the list of filter values for the column.<br/><br/>For example, say I have 3 columns; Location, Manufacturer, Model<br/>I first filter on Location and set that to UK. All works fine. I then filter on Manufacturer = Dell. So I'm now being shown all the Dell PC's in the UK. However, the filter icon is now only showing on the Manufacturer column and when viewing the filter dropdowns for the column headings, only the manufacturer column is aware it's being filtered upon.<br/><br/>Any ideas?Wed, 25 Nov 2009 14:03:41 Z2009-11-25T14:03:41Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/d5d9ac6b-7575-4365-9f73-d0bac23b4abahttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/d5d9ac6b-7575-4365-9f73-d0bac23b4abaDorfihttp://social.msdn.microsoft.com/Profile/en-US/?user=DorfiAdd Items to SPListItemCollectionHi,<br/><br/>i have a loop to get different items with a spquery in my collection, at the end of the loop i would like to sum these items to one big collection of all items...<br/><br/>code example:<br/><br/> <pre lang="x-c#">SPList list = web.Lists[&quot;Sitzungen&quot;]; SPQuery q = new SPQuery(); SPQuery sitzungen = new SPQuery(); sitzungen.Query = &quot;&lt;Where&gt;&lt;IsNotNull&gt;&lt;FieldRef Name='Title' /&gt;&lt;/IsNotNull&gt;&lt;/Where&gt;&lt;OrderBy&gt;&lt;FieldRef Name='Datum' Ascending='False'/&gt;&lt;/OrderBy&gt;&quot;; SPListItemCollection sitzcol = list.GetItems(sitzungen); SPListItemCollection alleBeschlüsse = null; foreach (SPListItem c in sitzcol) { q.Query = &quot;&lt;Where&gt;&lt;Eq&gt;&lt;FieldRef Name='ContentType'/&gt;&lt;Value Type='Text'&gt;Beschluss&lt;/Value&gt;&lt;/Eq&gt;&lt;/Where&gt;&quot;; q.ViewAttributes = &quot;Scope=\&quot;Recursive\&quot;&quot;; if (c.Folder != null) q.Folder = c.Folder; SPListItemCollection col = list.GetItems(q); }</pre> please dont look @query text, cause they are nonsense is just for a test program...<br/>at the end i get the items i want in the SpistItemCollection &quot;col&quot; now i want sum in every loop the items of these collection to get all my items...<br/><br/>thanks, markusWed, 25 Nov 2009 13:02:52 Z2009-11-25T13:55:26Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/b6ae0519-9996-4968-8497-7c3592022778http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/b6ae0519-9996-4968-8497-7c3592022778Pmatthe1http://social.msdn.microsoft.com/Profile/en-US/?user=Pmatthe1Track documents that have been readHI<br/><br/>I have a request to track the documents in a doc library.  The documents in the library have to be read by users of the portal.  Each time the user logs in, they will be provided with a list of the documents that they are required to read.  As soon as a user has read / opened a document, the item is flagged as read by the that user.<br/><br/>I cannot find any events that fire on document read/open.  I was thinking of added an ECB menu and forcing the user to selected when they have read the document.  Then have a field against the document to store all the users that have read the marked the document as read,<br/><br/>Can anyone think of a better way of doing this.<br/><br/>Thanks in advance<br/>Tue, 24 Nov 2009 15:41:39 Z2009-11-25T13:51:50Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/45c4150c-5bf2-4d32-a007-fcf6419159f9http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/45c4150c-5bf2-4d32-a007-fcf6419159f9SridharVhttp://social.msdn.microsoft.com/Profile/en-US/?user=SridharVSharepoint UserGroup webservice: This operation is not allowed on an object that inherits permissionsHi All,<br/>I am creating a new group and then I am trying to add a role (Read) to the Group by using SharePoint userGroup Web Service. It is throwing the following error message: <br/><br/>This operation is not allowed on an object that inherits permissions.<br/><br/>Here is my code:<br/> <pre lang="x-c#"> oGroup = new GSK.IW.UserGroup.UserGroup(); oGroup.Credentials = new System.Net.NetworkCredential(gvMigrator.SharePointUserName, gvMigrator.SharePointPassword,gvMigrator.SharePointDomain); // Setting a timeout period of 1000 seconds for creation of the groups. oGroup.Timeout = Convert.ToInt32(ConfigurationManager.AppSettings[&quot;DefaultTimeoutperiod&quot;]); //Formating the Site URL if (strSiteURL.LastIndexOf(&quot;/&quot;).Equals(strSiteURL.Length - 1)) { oGroup.Url = strSiteURL + Convert.ToString(ConfigurationManager.AppSettings[&quot;UserGroupWebservice1&quot;]); } else { oGroup.Url = strSiteURL + Convert.ToString(ConfigurationManager.AppSettings[&quot;UserGroupWebservice2&quot;]); } oGroup.AddGroup(strGroupName, (gvMigrator.SharePointDomain + &quot;\\&quot; + gvMigrator.SharePointUserName), Convert.ToString(ConfigurationManager.AppSettings[&quot;OwnerType&quot;]), (gvMigrator.SharePointDomain + &quot;\\&quot; + gvMigrator.SharePointUserName), (&quot;Managers for &quot; + strDocumentLibraryName + &quot;Document Library&quot;)); //Adding the created group to the role: <strong> oGroup.AddGroupToRole(&quot;Read&quot;, strGroupName);</strong></pre> Any suggestions? <br/><br/>I have not faced this error before :(. It was working fine for site collection level. Now I am trying to check for the subsites. Please help<hr class="sig">Thanks SridharWed, 25 Nov 2009 08:19:16 Z2009-11-25T13:38:15Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/b6b60ebd-7c73-4f48-9f51-a287e3a0fa1dhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/b6b60ebd-7c73-4f48-9f51-a287e3a0fa1dSP RAJhttp://social.msdn.microsoft.com/Profile/en-US/?user=SP%20RAJCustom breadcrumb for WSSHi,<br/> <br/> I am working on WSS environment and trying to create a custom breadcrumb, which should suppose to display the parent site title as well as it's subsites<br/> <br/> for example: I have a top level site (TPLevel) under than I have a subsite (Subsite) and under Subsite I have one more subsite (Sub-Subsite) so If I browse to the site 'Sub-Subsite' the breacrumb should look like as <br/> <br/> TPLevel &gt; Subsite &gt; Sub-Subsite<br/> <br/> In the same way if I browse to the Subsite the breadcrumb should look like as TPLevel &gt; Subsite<br/> <br/> I am looking for the feasible solution whether it can be using SPD or programmatically<br/> Reply's always appreciated, thank you<hr class="sig">Best Regards, G Vijai Kumar | <a href="http://www.fivenumber.com">My Sharepoint Blog</a>Wed, 25 Nov 2009 12:15:40 Z2009-11-25T13:21:13Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/ab6a4728-81ad-4a3b-bdee-997dd4bb3f46http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/ab6a4728-81ad-4a3b-bdee-997dd4bb3f46Milan Chauhanhttp://social.msdn.microsoft.com/Profile/en-US/?user=Milan%20ChauhanEventReceiver getting attached to every list.Hi all, <br/>        I have a Custom List and event receiver attached to it. But when i am deploying solution, that event receiver is getting attach to other list also. which is wrong. <br/><br/>I want to attach event receiver to that list only. so is their any configuration i am missing !<br/><br/>Regards<br/>Milan.Wed, 25 Nov 2009 13:12:27 Z2009-11-25T13:19:16Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/631e6831-4572-457d-8260-932a18de20e5http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/631e6831-4572-457d-8260-932a18de20e5BiztalkGhosthttp://social.msdn.microsoft.com/Profile/en-US/?user=BiztalkGhostWSP DeploymentHi,<br/><br/>I have a .WSP file. I need to how to deploy this in moss. I tried with stsadm but not getting it . Please let me know the steps i need to follow<hr class="sig">Vijaykishan | http://v2attechhorizon.blogspot.com | Please mark this as answer if it helpsWed, 25 Nov 2009 09:51:37 Z2009-11-25T12:33:17Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/b2303a88-65e9-4e13-abbd-25220a161448http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/b2303a88-65e9-4e13-abbd-25220a161448Bhavesh A Patelhttp://social.msdn.microsoft.com/Profile/en-US/?user=Bhavesh%20A%20PatelImport data into list using custom web serviceHi Guys<br/><br/>I have one list named &quot;Customer&quot; and alreday developed web service which return the customer data from other server. Now I want to insert this data in my sharepoint &quot;Customer&quot; list usign this web service <br/><br/>We are using only WSS 3.0 no MOSS<br/><br/>Is there any way?<br/><br/><br/>Thanks in advance.<br/><br/><br/>Wed, 25 Nov 2009 11:11:41 Z2009-11-25T12:26:00Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/088421b6-f9b8-4146-af9b-95c93b091dd4http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/088421b6-f9b8-4146-af9b-95c93b091dd4Benjamin Quintinohttp://social.msdn.microsoft.com/Profile/en-US/?user=Benjamin%20QuintinoAutocomplete extender + WebParts + UserControlHello guys,<br/> <br/> Im trying to use the AutoComplete extender in my userControl without use a web service. When i do this(without web service) in an aspx page it works perfectly, but when i try to use the autocomplete in the usercontrol it doesnt fire the event in the code behind file. If i use any other extender, usualy it works, but the AutoComplete dont. So my question is: Its possible to use the AutoComplete extender in the UserControl without use web services? <br/> <br/> Tyvm.Wed, 25 Nov 2009 12:13:50 Z2009-11-25T12:13:51Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/31c61416-7abb-4469-a1a5-9cd2c027d96dhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/31c61416-7abb-4469-a1a5-9cd2c027d96dBiztalkGhosthttp://social.msdn.microsoft.com/Profile/en-US/?user=BiztalkGhostCustom Webpart for loginHi,<br/><br/>I need a create a webpart for login in aspx. I don't need existing login webparts. I need to deploy this to my site. Please let me know the steps to acheive the same.<hr class="sig">Vijaykishan | http://v2attechhorizon.blogspot.com | Please mark this as answer if it helpsWed, 25 Nov 2009 12:00:45 Z2009-11-25T12:00:45Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/a525c44f-8ab5-422d-9060-4f0af794022fhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/a525c44f-8ab5-422d-9060-4f0af794022fKeesshttp://social.msdn.microsoft.com/Profile/en-US/?user=KeessIncluding files with VSeWSS CTP 1.1<p align=left><font face=Arial>VSeWSS</font></p> <p align=left> </p> <p class=MsoPlainText style="margin:0cm 0cm 0pt" align=left><span lang=EN-US><font face=Consolas>Something driving me crazy with the VSeWSS  , I'd like the ability to use the classresources in the manifest.xml file, but I can't get other files than the assembly in the solution folder. Mapping to an elementmanifest will get a file in the solution folder, but that's not where I want it.</font></span></p> <p class=MsoPlainText style="margin:0cm 0cm 0pt" align=left><span lang=EN-US><font face=Consolas>Exact error:</font></span></p> <p class=MsoPlainText style="margin:0cm 0cm 0pt" align=left><span lang=EN-US><font face=Consolas>Cannot find this file specified in the manifest file: azul.jpg</font></span></p> <p class=MsoPlainText style="margin:0cm 0cm 0pt" align=left><span lang=EN-US><font face=Consolas></font></span> </p> <p class=MsoPlainText style="margin:0cm 0cm 0pt" align=left><span lang=EN-US><font face=Consolas>Code in manifest.xml</font></span></p> <p class=MsoPlainText style="margin:0cm 0cm 0pt" align=left><span lang=EN-US><font face=Consolas>    &lt;Assembly Location=&quot;testassembly.dll&quot; DeploymentTarget=&quot;GlobalAssemblyCache&quot;&gt;</font></span></p> <p class=MsoPlainText style="margin:0cm 0cm 0pt" align=left><span lang=EN-US><font face=Consolas>      &lt;ClassResources&gt;</font></span></p> <p class=MsoPlainText style="margin:0cm 0cm 0pt" align=left><span lang=EN-US><font face=Consolas>        &lt;ClassResource Location=&quot;azul.jpg&quot; /&gt;</font></span></p> <p class=MsoPlainText style="margin:0cm 0cm 0pt" align=left><span lang=EN-US><font face=Consolas>      &lt;/ClassResources&gt;</font></span></p> <p class=MsoPlainText style="margin:0cm 0cm 0pt" align=left><span lang=EN-US><font face=Consolas>    &lt;/Assembly&gt;</font></span></p> <p class=MsoPlainText style="margin:0cm 0cm 0pt" align=left><span lang=EN-US><font face=Consolas>File is in the project. Can't copy the file to the solution folder because VSeWSS will delete it on building the WSP , can't make it readonly because VSeWSS won't run because it can't delete the file..</font></span></p> <p class=MsoPlainText style="margin:0cm 0cm 0pt" align=left><span lang=EN-US><font face=Consolas></font></span> </p> <p class=MsoPlainText style="margin:0cm 0cm 0pt" align=left><span lang=EN-US><font face=Consolas>My exact question is thus:</font></span></p> <p class=MsoPlainText style="margin:0cm 0cm 0pt" align=left><span lang=EN-US><font face=Consolas>How to get a file (image/javascript) in the WSP with the extensions for visual studio...</font></span></p> <p class=MsoPlainText style="margin:0cm 0cm 0pt" align=left><span lang=EN-US><font face=Consolas></font></span> </p> <p class=MsoPlainText style="margin:0cm 0cm 0pt" align=left><span lang=EN-US><font face=Consolas>Regards,</font></span></p> <p class=MsoPlainText style="margin:0cm 0cm 0pt" align=left><span lang=EN-US><font face=Consolas>   Kees</font></span></p>Tue, 30 Oct 2007 06:23:24 Z2009-11-25T11:32:17Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/7d46551c-56b4-421e-936c-fc18c8d31beehttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/7d46551c-56b4-421e-936c-fc18c8d31beeAnu Pravinyahttp://social.msdn.microsoft.com/Profile/en-US/?user=Anu%20PravinyaClock for Different Zones in Sharepoint Home Page using Javascript<p>Hi<br/><br/>We are displaying Clock in Home page of Sharepoint Site.We display Clock for different Zones lik Montreal,Geneva etc., which are subjected to DST Changes<br/>The time are displayed using a javascript which has hardcoded values like UTC+1,UTC-5 etc.,If DST occurs then we are forced to change the Javascript in the Master Page to display correct time.<br/>Can anybody tell me how to track DST changes automatically in Javascript and apply to Sharepoint Master page.<br/>We have tried many web parts but we dont want to use it as it occupies more space on the page<br/>Any Ideas..please help<br/><br/>Below is our Javacript:<br/><br/>function calcTime(city, offset) {</p> <p> </p> <p>    // create Date object for current location</p> <p>    d = new Date();</p> <p>  </p> <p>    // convert to msec</p> <p>    // add local time zone offset</p> <p>    // get UTC time in msec</p> <p>    utc = d.getTime() + (d.getTimezoneOffset() * 60000);</p> <p>  <br/>    // create new Date object for different city</p> <p>    // using supplied offset</p> <p>    nd = new Date(utc + (3600000*offset));</p> <p>   //return nd;</p> <p>  var day = nd.getDate()</p> <p>  var month = nd.getMonth()<br/> <br/>  var month1=month +1;</p> <p>  var year = nd.getFullYear()</p> <p>  //document.write(&quot;&lt;b&gt;&quot; + day + &quot;/&quot; + month + &quot;/&quot; + year + &quot;&lt;/b&gt;&quot;)</p> <p><br/>    // return time as a string</p> <p>    return  year+&quot;-&quot;+month1+&quot;-&quot;+day<br/>}</p> <p><br/>function time(city, offset) {</p> <p> </p> <p>    // create Date object for current location</p> <p>    d = new Date();</p> <p>  </p> <p>    // convert to msec</p> <p>    // add local time zone offset</p> <p>    // get UTC time in msec</p> <p>    utc = d.getTime() + (d.getTimezoneOffset() * 60000);</p> <p>  <br/>    // create new Date object for different city</p> <p>    // using supplied offset</p> <p>    nd = new Date(utc + (3600000*offset));</p> <p>   //return nd;</p> <p>  <br/>  var hours = nd.getHours()<br/>  var minutes = nd.getMinutes()</p> <p>  if (minutes &lt; 10)<br/>  minutes = &quot;0&quot; + minutes</p> <p>  //document.write(&quot;&lt;b&gt;&quot; + hours + &quot;:&quot; + minutes + &quot; &quot; + &quot;&lt;/b&gt;&quot;)<br/> return hours +&quot;:&quot; + minutes ;</p> <p>   <br/>}<br/><br/><br/>&lt;table class=&quot;WorldTime_Zone&quot; width=&quot;100%&quot; <br/>                         style=&quot;font-size:8pt;font-family:arial;&quot; align=&quot;left&quot;&gt;<br/>                        &lt;tr class=&quot;BoldTime&quot;&gt;<br/>                                &lt;td style=&quot;height: 18px;&quot; nowrap&gt;<br/>                                    &lt;b&gt;Universal&lt;/b&gt; (&lt;font style=&quot;font-size:7pt&quot;&gt;UTC&lt;/font&gt;)<br/>                                &lt;/td&gt;<br/>                                &lt;td style=&quot;height: 18px;&quot; nowrap&gt;<br/>                                    &lt;b&gt;Montreal&lt;/b&gt; (&lt;font style=&quot;font-size:7pt&quot;&gt;UTC-5&lt;/font&gt;)<br/>                                &lt;/td&gt;<br/>                                &lt;td style=&quot;height: 18px;&quot; nowrap&gt;<br/>                                    &lt;b&gt;Geneva&lt;/b&gt; (&lt;font style=&quot;font-size:7pt&quot;&gt;UTC+1&lt;/font&gt;)<br/>                                &lt;/td&gt;<br/>                                &lt;td style=&quot;height: 18px;&quot; nowrap&gt;<br/>                                    &lt;b&gt;Miami&lt;/b&gt; (&lt;font style=&quot;font-size:7pt&quot;&gt;UTC-5&lt;/font&gt;)<br/>                                &lt;/td&gt;<br/>                                &lt;td style=&quot;height: 18px;&quot; nowrap&gt;<br/>                                    &lt;b&gt;Singapore&lt;/b&gt; (&lt;font style=&quot;font-size:7pt&quot;&gt;UTC+8&lt;/font&gt;)<br/>                                &lt;/td&gt;<br/>                                &lt;td style=&quot;height: 18px;&quot; nowrap&gt;<br/>                                    &lt;b&gt;Beijing&lt;/b&gt; (&lt;font style=&quot;font-size:7pt&quot;&gt;UTC+8&lt;/font&gt;)<br/>                                &lt;/td&gt;<br/>                        &lt;/tr&gt;</p> <p>                        &lt;tr&gt;<br/>                                &lt;td&gt;<br/>                                        &lt;script type=&quot;text/javascript&quot;&gt;<br/>                                        document.write<br/>                                        (calcTime('UTC', '+0'));&lt;/script&gt;<br/>                                &lt;/td&gt;</p> <p>                                 &lt;td&gt;<br/>                                    &lt;script type=&quot;text/javascript&quot;&gt;<br/>                                    document.write<br/>                                    (calcTime('UTC', '-5'));&lt;/script&gt;</p> <p>                                  &lt;/td&gt;<br/>                                  &lt;td&gt;<br/>                                    &lt;script type=&quot;text/javascript&quot;&gt;<br/>                                    document.write <br/>                                    (calcTime('UTC', '+1'));&lt;/script&gt;<br/>                                    &lt;/td&gt;</p> <p>                                    &lt;td&gt;<br/>                                    &lt;script type=&quot;text/javascript&quot;&gt;<br/>                                    document.write<br/>                                    (calcTime('UTC', '-5'));&lt;/script&gt;<br/>                                    &lt;/td&gt;</p> <p>                                    &lt;td&gt;<br/>                                    &lt;script type=&quot;text/javascript&quot;&gt;<br/>                                    document.write<br/>                                    (calcTime('UTC', '+8'));&lt;/script&gt;<br/>                                    &lt;/td&gt;</p> <p>                                    &lt;td&gt;<br/>                                    &lt;script type=&quot;text/javascript&quot;&gt;<br/>                                    document.write<br/>                                    (calcTime('UTC', '+8'));&lt;/script&gt;<br/>                                    &lt;/td&gt;</p> <p>                    &lt;/tr&gt;</p> <p>                    &lt;tr&gt;<br/>                                    &lt;td&gt;<br/>                                    &lt;script type=&quot;text/javascript&quot;&gt;<br/>                                    document.write<br/>                                    (time('UTC', '0'));&lt;/script&gt;<br/>                                    &lt;/td&gt;</p> <p>                                    &lt;td&gt;<br/>                                    &lt;script type=&quot;text/javascript&quot;&gt;<br/>                                    document.write<br/>                                    (time('UTC', '-5'));&lt;/script&gt;<br/>                                    &lt;/td&gt;</p> <p><br/>                                    &lt;td&gt;<br/>                                    &lt;script type=&quot;text/javascript&quot;&gt;<br/>                                    document.write <br/>                                    (time('UTC', '+1'));&lt;/script&gt;<br/>                                    &lt;/td&gt;</p> <p>                                    &lt;td&gt;<br/>                                    &lt;script type=&quot;text/javascript&quot;&gt;<br/>                                    document.write<br/>                                    (time('UTC', '-5'));&lt;/script&gt;<br/>                                    &lt;/td&gt;</p> <p>                                    &lt;td&gt;<br/>                                    &lt;script type=&quot;text/javascript&quot;&gt;<br/>                                    document.write<br/>                                    (time('UTC', '+8'));&lt;/script&gt;<br/>                                    &lt;/td&gt;</p> <p>                                    &lt;td&gt;<br/>                                    &lt;script type=&quot;text/javascript&quot;&gt;<br/>                                    document.write<br/>                                    (time('UTC', '+8'));&lt;/script&gt;<br/>                                    &lt;/td&gt;</p> <p>                &lt;/tr&gt;<br/>         &lt;/table&gt;<br/><br/><br/>Thanks,<br/>Anu</p>Wed, 25 Nov 2009 11:29:49 Z2009-11-25T13:28:59Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/d77ea62e-e17a-41dd-bde8-e9e2fd4a6803http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/d77ea62e-e17a-41dd-bde8-e9e2fd4a6803Bhavesh A Patelhttp://social.msdn.microsoft.com/Profile/en-US/?user=Bhavesh%20A%20PatelStore uploaded files on a shared drive as opposed to directly in the database? Hi Guys,<br/><br/>Generally uploaded files in sharepoint are stored in content database but can we store it on shared drive and use and serch it in sharepoint ?<br/><br/><br/><br/>ThanksWed, 25 Nov 2009 11:21:26 Z2009-11-25T11:26:38Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/bf52cfa6-496e-42f8-a9df-ffdded530481http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/bf52cfa6-496e-42f8-a9df-ffdded530481Mathur Saurabhhttp://social.msdn.microsoft.com/Profile/en-US/?user=Mathur%20SaurabhWidget submission frameworkHi Experts,<br/><br/>I have to develop a framework in which a user can submit his custom created Widgets (it is similar to submission of gadgets in Google gadgets and flakes in pageflakes.com and so on). For this, I guess I have to create my own objects and APIs so that user can user those while creating a widget.<br/><br/>Can you pls pour-in some thoughts/reference regarding the same.<br/><br/>Thanks in Advance,<br/>SM!Wed, 25 Nov 2009 11:10:04 Z2009-11-25T11:33:49Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/ba5e3228-8dea-4112-b5b0-f3a49fb94abahttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/ba5e3228-8dea-4112-b5b0-f3a49fb94abaminorityhttp://social.msdn.microsoft.com/Profile/en-US/?user=minorityweb part properties, is it possible to select multiple lists.I am building a web part which I need to be able to select 1 to many lists to role up the information.<br/> <br/> I have successfully got the back end working and the data is rolling up (The lists at this point are hard coded).  I am wondering what the best way in the web part property section to get the user to select the lists to include in the role up.  I only need the list Guid and no extra filtering is provided at the mean time.<br/> <br/> I did consider just a text field with caml but this seems to me complicated for the average user.  Is it possible to have a multiple choice field or a popup which will show all the lists for them to select from (is it even possible to limit the lists shown to a specific type?<br/> <br/> Any examples would be great as this is the first web part I have created.Mon, 23 Nov 2009 11:40:18 Z2009-11-25T11:05:35Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/224b8010-3123-4cf9-9381-c5554257bab6http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/224b8010-3123-4cf9-9381-c5554257bab6arunagullahttp://social.msdn.microsoft.com/Profile/en-US/?user=arunagullaSharepoint CAML query problem for SPQuer.GetItems()<span style="font-family:Verdana, Helvetica, Arial, sans-serif;font-size:12px;line-height:15px">Hi <br/><br/>We have discussions webpart customized to us and I want to get the number of discussoins from a particular user. My problem is when I pass the First Name and Last Name of the user (which is the displayname on the ffront end )in my query then I would able to get the correct count but if I pass the username then I am not able to the correct count from that user. Is there a way that I can say that get by username. Please have a look at my SPQuery code: <br/><br/>SPQuery query = new SPQuery();<br/>SPList splist = spWeb.Lists[&quot;Forum&quot;];<br/><br/>query.Query = &quot; <pre>&quot;&lt;Where&gt;&lt;Or&gt;&lt;Eq&gt;&lt;FieldRef Name='Author'/&gt;&quot; + &quot;&lt;Value Type='User'&gt;&quot; + spUsrDisplayName + &quot;&lt;/Value&gt;&quot; + &quot;&lt;/Eq&gt;&lt;Eq&gt;&lt;FieldRef Name='Editor'/&gt;&quot; + &quot;&lt;Value Type='User'&gt;&quot; + spUsrDisplayName + &quot;&lt;/Value&gt;&quot; + &quot;&lt;/Eq&gt;&lt;/Or&gt;&lt;/Where&gt;&quot;;</pre> <br/> <div></div> <br/>query.ViewFields = &quot;&quot;;<br/>SPListItemCollection spListColl = splist.GetItems(query);<br/>int discussionsCount = spListColl.Count;<br/><br/><br/>Can any one give me any idea please.<br/><br/><br/>Thanks,<br/><br/>Regards,<br/>Aruna <br/></span>Wed, 25 Nov 2009 09:15:12 Z2009-11-25T10:52:29Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/50f64cb0-fd38-400a-9db8-e00a852e37d5http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/50f64cb0-fd38-400a-9db8-e00a852e37d5hkossuhttp://social.msdn.microsoft.com/Profile/en-US/?user=hkossuhttp GET and security validations, web.lists.addHi all,<br/> <br/> I am developig custom action to listitems EditControlBlock, which is supposed to create list to the current web. UrlAction code is on my _layouts/xxx/yyy.aspx page load, and is rougly following:<br/> <br/> <div style="color:Black;background-color:White"> <pre><span style="color:Blue">protected</span> <span style="color:Blue">override</span> <span style="color:Blue">void</span> OnLoad(EventArgs e)&lt;br/&gt;<br/> {&lt;br/&gt;<br/> <span style="color:Blue">try</span> <br/> {<br/> SPContext.Current.Web.AllowUnsafeUpdates = <span style="color:Blue">true</span> ;<br/> <span style="color:Green">//SPContext.Current.Web.ValidateFormDigest();</span> <br/> SPContext.Current.Web.Lists.Add(Guid.NewGuid().ToString(), Guid.NewGuid().ToString(), Guid.NewGuid().ToString(), <span style="color:#a31515">&quot;9C3ED004-7495-44f1-9DD4-C96BCDA31F82&quot;</span> , 10100, <span style="color:#a31515">&quot;1000&quot;</span> , SPListTemplate.QuickLaunchOptions.On);<br/> }<br/> <span style="color:Blue">finally</span> <br/> {<br/> SPContext.Current.Web.AllowUnsafeUpdates = <span style="color:Blue">false</span> ;<br/> }&lt;br/&gt;<br/> }<br/> </pre> </div> Page is inherited from LayoutsPageBase.<br/> <br/> Even thou i allow unsafeupdates i still get the error message:<br/> <br/> <span>The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again.   at Microsoft.SharePoint.Library.SPRequestInternalClass.MoveUrl(String bstrUrl, String bstrWebRelOldUrl, String bstrWebRelNewUrl, Int32 grf) <br/>    at Microsoft.SharePoint.Library.SPRequest.MoveUrl(String bstrUrl, String bstrWebRelOldUrl, String bstrWebRelNewUrl, Int32 grf)</span> <br/> <br/> <br/> However, if i run my code on postback, everything goes fine. So how should i do this without postback and what are the best practises on this.<br/> <br/> br,<br/> <br/> -hkWed, 25 Nov 2009 08:00:57 Z2009-11-25T10:45:59Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/535e8c1a-10e2-420f-957d-bb89533f1aaehttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/535e8c1a-10e2-420f-957d-bb89533f1aaeBeaSharepointhttp://social.msdn.microsoft.com/Profile/en-US/?user=BeaSharepointerror with sharepoint when using VS 2008Hello!<br/><br/>I'm using visual studio 2008, i'm using code for sharepoint, when i try it to compile it show me this errorr:<br/><br/>the type or namespace name 'Sharepoint' does not exist in the namespace 'Microsoft'<br/><br/>i'm using <span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"> <p>using</p> </span></span></span><span style="color:#0000ff;font-size:x-small"> <p> </p> </span></span> <p><span style="font-size:x-small">Microsoft.Sharepoint; but i don't found the dll in my pc<br/><br/>someone knows waht it is happening?<br/><br/>thank<br/><br/></span></p>Wed, 25 Nov 2009 09:15:04 Z2009-11-25T11:13:48Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/d05effb1-7dde-4979-a72f-e8c82f92e544http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/d05effb1-7dde-4979-a72f-e8c82f92e544Rajan Shttp://social.msdn.microsoft.com/Profile/en-US/?user=Rajan%20SProgramatically change permission to a list for a user ?How do I Programatically change permission to a list  for a user ?Wed, 25 Nov 2009 07:18:17 Z2009-11-25T10:57:07Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/bdffd1e2-9288-4a4b-8b1a-7d20da01dc95http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/bdffd1e2-9288-4a4b-8b1a-7d20da01dc95TLin100http://social.msdn.microsoft.com/Profile/en-US/?user=TLin100Error seen after adding customized web part to web part zone.I have created a simple data capture web part consisting of three text boxes.  This has been done using Visual Studio 2008. I have created a corresponding list in my SharePoint site with three identically named columns.<br/><br/>I can build and deploy my web part successfully using Visual Studio 2008.  However, when I try to import the web part into my site for testing purposes, I see an error: &quot;Error rendering control - Control Name.   An unhandled exception has occurred.  Object reference not set to an instance of an object.&quot;<br/><br/>I have tried everything I can to try and resolve this. Can anyone help? Tue, 24 Nov 2009 12:27:49 Z2009-11-25T09:58:21Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/925f0508-c2d8-47f9-91c2-7c655a2040f1http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/925f0508-c2d8-47f9-91c2-7c655a2040f1Diana.Manowhttp://social.msdn.microsoft.com/Profile/en-US/?user=Diana.ManowSpecific web.config -> Configuration object?<p>Inside a web application feature I try to get a Configuration object of the web.config file.</p> <p>I tried this:</p> <p><strong>config = WebConfigurationManager.OpenWebConfiguration(&quot;/&quot;, webApp.Name);<br/>config = WebConfigurationManager.OpenWebConfiguration(&quot;/15678&quot;, webApp.Name);</strong><br/><br/>=&gt; Exception:<br/>Failed to resolve the site ID for 'MyWebApplicationName'.  <br/><br/>('MyWebApplicationName' == webApp.Name).<br/><br/>Why does SharePoint want to resolve the site ID for 'MyWebApplicationName'?<br/><br/>My folder structure looks like this:</p> <p>C:\inetpub\wwwroot\wss\VirtualDirectories<br/>C:\inetpub\wwwroot\wss\VirtualDirectories\80<br/>C:\inetpub\wwwroot\wss\VirtualDirectories\15678</p> <p>and the wanted web.config is located in C:\inetpub\wwwroot\wss\VirtualDirectories\15678\web.config.</p> <p><br/>I've had a look at the msdn docs (<a href="http://msdn.microsoft.com/en-us/library/ms151456.aspx">http://msdn.microsoft.com/en-us/library/ms151456.aspx</a>) and a comment in this post <a href="http://www.andrewconnell.com/blog/articles/CreatingCustomSharePointTimerJobs.aspx">http://www.andrewconnell.com/blog/articles/CreatingCustomSharePointTimerJobs.aspx</a> but without any success.</p> <p><br/>How can I access key/value pairs in a specific web.config?</p>Mon, 23 Nov 2009 17:55:01 Z2009-11-25T09:55:00Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/558e135b-d491-4466-9085-3981a903f3e5http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/558e135b-d491-4466-9085-3981a903f3e5aaroh_bitshttp://social.msdn.microsoft.com/Profile/en-US/?user=aaroh_bitsProblem getting permission for the user from the TASK list. Hi All, <br/> <br/> I have a <strong>document library</strong> (namely, Business Services), its attached to <strong>OOTB Approval workflow</strong> and workflow is attached to the TASK list. <br/> Apparently, I wrote a an event handler (<strong>ItemUpdating</strong> ) because &quot;contributor&quot; can approve his own document. So, we have modified the behavior of OOTB Approval workflow. Its seems &quot;by design&quot;.   Please <a href="http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/01947d74-db79-4e79-897f-d21a9e00c313">see this link </a> about OOTB Approval workflow issue. <br/> <br/> We have 2 users: <br/> 1) <strong>vm1/contributor</strong> (with <strong>contribute</strong> permission on &quot;<strong>Business Services</strong> &quot; document library)<br/> 2) vm1/approver (with <strong>approve</strong> permission on &quot;<strong>Business Services</strong> &quot; document library)<br/> <br/> This is my event handler: <br/> <br/> The event handler is hooked to the &quot;TASK&quot; list and I am able to get the <strong>&quot;vm1/contributor&quot; </strong> as well. <br/> But I need to get the permission of the user (<strong>vm1/contributor</strong> ) who is from &quot;Business services&quot; lists. <br/> <br/> Can somebody advice me on this? <br/> <br/> Thank you. <br/> --Aroh <br/> <pre lang="x-c#"> public override void ItemUpdating(SPItemEventProperties properties) { base.ItemUpdating(properties); this.DisableEventFiring(); using (SPWeb currentTeamSite = properties.OpenWeb()) { // Delcare variables string currentUser = string.Empty; // Get the current item SPListItem currentItem = properties.ListItem; Console.WriteLine(&quot;Parent list {0}&quot;, currentItem.ParentList); // ITS TASK LIST // Get the value display name of the current logged in user and Created by Field of the current item currentUser = currentItem[&quot;Author&quot;].ToString(); // USER FROM &quot;BUSINESS SERVICES&quot; // Get the user id as integer int userid = Convert.ToInt32(currentUser.Substring(0, currentUser.IndexOf(&quot;;#&quot;))); // Convert SharePoint user which matches the ID SPUser user = currentTeamSite.AllUsers.GetByID(userid); // Now, we have to user's permissions (Document Library, not on the Task) ???????????? } this.EnableEventFiring(); }</pre> <br/>Wed, 25 Nov 2009 09:28:25 Z2009-11-25T09:41:09Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/99b15c65-3ec0-4278-b3be-9a6858d05d1bhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/99b15c65-3ec0-4278-b3be-9a6858d05d1bMohammadJizihttp://social.msdn.microsoft.com/Profile/en-US/?user=MohammadJizihow to copy folders with items in it from one list to another list in another site collection Programmaticallyhi all<br/><br/>i wish anyone could help me in this problem<br/><br/>i have a custom list that contains folders as items in the list .Each folder also consists of multiple items in it.<br/><br/>i want to copy the folders with the items in it to another custom list in another site collection using c# code<br/>thanks a lotMon, 23 Nov 2009 10:20:52 Z2009-11-25T09:19:54Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/ef2f5e73-b76e-4965-9f87-a7841a09e4c7http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/ef2f5e73-b76e-4965-9f87-a7841a09e4c7plastikmanhttp://social.msdn.microsoft.com/Profile/en-US/?user=plastikmanCan't get user from workflowProperties.Item.ParentList.ParentWeb.UsersHi guys,<br/> <br/> I need to retrieve a user <strong>LogonName</strong> from <strong>Contact Selector Control</strong> . I have a user <strong>ID</strong> from lookup value:<br/> <br/> <div style="color:Black;background-color:White"> <pre>DepChief = DepChiefValue.LookupId; </pre> </div> <br/> Now I need to get more info about this user using his <strong>ID</strong> , but this code return error:<br/> <div style="color:Black;background-color:White"> <pre><br/> workflowProperties.Item.ParentList.ParentWeb.Users.GetByID(DepChief).LoginName </pre> </div> <br/> While debagging I see that there's no user with this <strong>ID </strong> at <br/> <div style="color:Black;background-color:White"> <pre><br/> workflowProperties.Item.ParentList.ParentWeb.Users </pre> </div> <br/> But still there're others users in this list. So I get error not for every users, but some of them.<br/> I've checked <strong>Users and Groups</strong> at <strong>Site properties</strong> - all users are there. Made full import - nothing changed.<br/> <br/> Any ideas?<br/>Wed, 25 Nov 2009 08:37:57 Z2009-11-25T09:04:09Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/907b8fe9-8633-4692-93e8-e1e13710f982http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/907b8fe9-8633-4692-93e8-e1e13710f982SridharVhttp://social.msdn.microsoft.com/Profile/en-US/?user=SridharVSharepoint webservices break role inheritance for a newly created groupHi All,<br/>Is there a way to break role inheritance for the objects of subsite using web services provided by wss?<hr class="sig">Thanks SridharWed, 25 Nov 2009 08:57:57 Z2009-11-25T08:57:58Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/2e0e4b80-4b89-4b06-9efa-1faf9301d1e0http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/2e0e4b80-4b89-4b06-9efa-1faf9301d1e0ItsMeSrihttp://social.msdn.microsoft.com/Profile/en-US/?user=ItsMeSriconnect custom list with web service?Is it possible to connect from list to web service. I need to read data from webservice when list loads on to the page and data also need to happend on the web service and update with web service. <br/> <br/> If user adds new item I need to call web service method to add and for delete item i need to call web service method to delete and samething for update.<br/> <br/> How can we do this?<hr class="sig">JamsbondTue, 24 Nov 2009 23:36:18 Z2009-11-25T08:39:12Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/2590514c-06b8-4eeb-8c4b-fc091aba533ahttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/2590514c-06b8-4eeb-8c4b-fc091aba533aNekrofagehttp://social.msdn.microsoft.com/Profile/en-US/?user=NekrofageValidation formHello !<br/> <br/> I would likt to know how to make a systeme to validate my form &quot;NewForm.aspx&quot;.<br/> <br/> By example :<br/> <br/> - the &quot;hour&quot; field must be between 0 and 24<br/> - select only one field : &quot;hour&quot; or &quot;day&quot; not the both<br/> - &quot;dateend&quot; must be greater than &quot;datebegin&quot;<br/> <br/> Thanks in advance !! :-)Tue, 24 Nov 2009 09:27:12 Z2009-11-25T07:38:36Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/e67360ba-dc42-4e3e-9f81-38586faa90eahttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/e67360ba-dc42-4e3e-9f81-38586faa90eaHemendra Agrawalhttp://social.msdn.microsoft.com/Profile/en-US/?user=Hemendra%20AgrawalGet all items from document library folder or subfolderHi ppl,<br/> <br/> I am wrote below code for sending an email, when item is added/updated through timer job.<br/> <br/> Code is working fine, only problem is: my document library has many folders and subfolders. when i added/update the item in folder that item data is not coming in email.  Pls tell me how can i fetch all items from folder / subfolder. <br/> <br/> <br/> <br/> public override void Execute(Guid targetInstanceId)<br/>         {<br/>             // your code goes here<br/>             base.Execute(targetInstanceId);<br/> <br/> <br/>             string webUrl = SPContext.Current.Web.Url;<br/>             using (SPSite site = new SPSite(webUrl))<br/>             using (SPWeb web = site.OpenWeb())<br/>             {<br/> <br/>                <br/>                 SPList list = web.Lists[&quot;MHN&quot;];<br/>                 SPGroup objgroup = web.SiteGroups[&quot;AlertEmail&quot;];<br/>                 SPUserCollection userCollection = objgroup.Users;<br/>                <br/>                 string strQuery1 = &quot;&lt;Where&gt;&lt;Eq&gt;&lt;FieldRef Name='Modified'/&gt;&lt;Value Type='DateTime'&gt;&lt;Today /&gt;&lt;/Value&gt;&lt;/Eq&gt;&lt;/Where&gt;&quot;;<br/>                 <br/>                 string subject = string.Format(&quot;Item has been added/updated in MHN Document Library&quot;, list.Title);<br/>                 string body = null;<br/>                 string strmsg = &quot;These items have been Added or Modified today&quot;;<br/>                 string strmodifiedby = &quot;&quot;;<br/>                 string strDTN = &quot;&quot;;<br/>                 <br/>                 SPQuery objquery = new SPQuery();<br/>                 objquery.Query = strQuery1;<br/>                 int itemID = 0;<br/>                <br/>                 StringBuilder sb = new System.Text.StringBuilder();<br/> <br/> <br/>                 sb.Append(&quot;&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&quot;);<br/>                 sb.Append(&quot;&lt;br&gt;Dear Sir/Maa'm,&lt;br/&gt;&quot;);<br/>                 sb.Append(&quot;&lt;li&gt;&lt;/li&gt;&quot;);<br/>                 sb.Append(&quot;&lt;p&gt;&lt;strong&gt;&quot; + strmsg + &quot;&lt;/strong&gt;&lt;/p&gt;&quot;);<br/>                 sb.Append(&quot;&lt;table cellpadding=\&quot;0\&quot; cellspacing=\&quot;0\&quot; border=\&quot;2\&quot; border-color=\&quot;white\&quot;&gt;&quot;);<br/> <br/>                 sb.Append(&quot;&lt;tr&gt;&quot;);<br/>                 sb.Append(&quot;&lt;td&gt;Document Link&lt;/td&gt;&quot;);<br/>                 sb.Append(&quot;&lt;td&gt;Title&lt;/td&gt;&quot;); <br/>                 sb.Append(&quot;&lt;td&gt;DTN&lt;/td&gt;&quot;);<br/>                 sb.Append(&quot;&lt;/tr&gt;&quot;);<br/>                <br/>        #region abs<br/> <br/>                 SPListItemCollection objListColl = list.GetItems(objquery);<br/> <br/>                 if (objListColl.Count != 0) //send mail<br/>                 {<br/>                     foreach (SPListItem item in objListColl)<br/>                     {<br/>                         itemID = item.ID;<br/> <br/>                         //string subject = string.Format(&quot;Item '{0}' added/updated to '{1}'&quot;, item.Name, list.Title);<br/>                         //string body = null;<br/>                         string itemUrl = string.Format(&quot;{0}/{1}?ID={2}&quot;, web.Url, list.Forms[PAGETYPE.PAGE_DISPLAYFORM].Url, itemID);<br/> <br/>                         if (item[&quot;Title&quot;] == null)<br/>                         {<br/>                             strTitle = item.Name;<br/>                         }<br/>                         else<br/>                         {<br/>                             strTitle = item[&quot;Title&quot;].ToString();<br/>                         }<br/> <br/>                         string[] strmodified;<br/>                         if (item[&quot;Modified By&quot;] == null)<br/>                         {<br/>                             strmodifiedby = DateTime.Now.ToString();<br/>                             strmodified = strmodifiedby.Split('#');<br/>                         }<br/>                         else<br/>                         {<br/>                             strmodifiedby = item[&quot;Modified By&quot;].ToString();<br/>                             strmodified = strmodifiedby.Split('#');<br/>                         }<br/> <br/>                         if (item[&quot;DTN&quot;] == null)<br/>                         {<br/>                             strDTN = &quot;NA&quot;;<br/>                         }<br/>                         else<br/>                         {<br/>                             strDTN = item[&quot;DTN&quot;].ToString();<br/>                         }<br/> <br/>                        <br/> <br/>                 #endregion<br/>                         //sb.Append(&quot;&lt;tr&gt;&quot;);<br/> <br/>                         sb.Append(&quot;&lt;tr&gt;&quot;);<br/>                         sb.Append(&quot;&lt;td&gt;&lt;a href='&quot; + itemUrl + &quot;'&gt;&quot; + item.Name + &quot;&lt;/a&gt;&lt;/td&gt;&quot;);<br/>                         sb.Append(&quot;&lt;td&gt;&quot; + strTitle + &quot;&lt;/td&gt;&quot;);<br/>                         sb.Append(&quot;&lt;td&gt;&quot; + strDTN + &quot;&lt;/td&gt;&quot;);<br/>                         sb.Append(&quot;&lt;/tr&gt;&quot;);<br/>                         <br/>                     }<br/>                         sb.Append(&quot;&lt;/table&gt;&quot;);<br/>                         sb.Append(&quot;&lt;/body&gt;&lt;/html&gt;&quot;);<br/> <br/>                         body = sb.ToString();<br/>                        <br/>                     <br/>                     foreach (SPUser user in userCollection)<br/>                     {<br/>                         if (string.IsNullOrEmpty(user.Email)) continue;<br/>                         SPUtility.SendEmail(web, true, false, user.Email, subject, body);<br/>                     }<br/>                 }<br/>                 else<br/>                 {<br/>                     Console.WriteLine(&quot;Email does not exist&quot;);<br/>                     Console.ReadLine();<br/>                 }<br/>             }<br/>         }<hr class="sig">HemendraWed, 25 Nov 2009 07:24:27 Z2009-11-25T07:24:28Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/1dad0f85-6938-4a9b-9faa-07b3702c6db4http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/1dad0f85-6938-4a9b-9faa-07b3702c6db4s_Ganesh Moorthyhttp://social.msdn.microsoft.com/Profile/en-US/?user=s_Ganesh%20MoorthyExport a Custom List as CSVHi all,<br/> <br/> Is it possible to export a custom list to as CSV(Comma Separated Value) File pro grammatically in share point?<br/> <br/><hr class="sig">123456Wed, 25 Nov 2009 06:40:41 Z2009-11-25T07:00:12Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/783c5b02-2873-4634-aab0-3857fbc4ca35http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/783c5b02-2873-4634-aab0-3857fbc4ca35Kousalya Dhanrajhttp://social.msdn.microsoft.com/Profile/en-US/?user=Kousalya%20DhanrajForm Authentication Module ProblemHi All,<br/><br/>        I created one Form Based Authentication module(FBA) using ASPNET Membership provider in  VS.NET 2005.It has sent the auto generated password in email once the member registered .I created two web application in production server where i deployed my FBA.Both site are internet site.one of the web site ,member created and email sent to them correctly.But i encountered the problem is that another site in the same server where the member created and not email sent to the member.Both site have different database for FBA users.Sites both referred same FBA module and i kept formatted email as xslt under the /_layouts folder which invoked by the FBA module.<br/><br/>        I used SPUtility for send email to the members.It logged error such as Remote name could not be resolved : 'sitename' at system.Net.HttpRequest.GetResponse() at system.xml.xmldowloadmanager.getNOnFileStream(uri,uri,,) at system.xml.xmlurlresolver.getentity(,,) at system.xml.xsl.xslt.xsltloader.createReader() at system.xml.xsl.xslt.xsltloader.load()  at system.xml.xsl.xslt.compiler.compile() at system.xml.xsl.xslcompiledtransform.compilexslttoqil() at system.xml.xsl.xslcompiledTansform.LoadInternal()<br/><br/>      I stuck here ,anybody know how to trace this problem.why did it not send email in particular site?.<br/><br/>     Thanks,<br/>     Kousalya.Tue, 24 Nov 2009 06:35:46 Z2009-11-25T06:40:35Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/fad4448f-828e-4339-93ba-706d24254299http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/fad4448f-828e-4339-93ba-706d24254299vronjhttp://social.msdn.microsoft.com/Profile/en-US/?user=vronjSPGridView HyperLinkField won't shown hyperlink?<p>Could you plesae help me? I have been trying different combinations for several days.<br/><br/>I am programming a Visual Basic web part in Visual Studio 2008.<br/><br/>I can't get the account_no to show a link, no matter what I do. It always shows vanilla output text.<br/><br/>Here is the code:<br/> Dim cS As New GetCustomersWebPart.ConnectionStrings<br/>            Dim vConnStr As String = cS.Siebel<br/>            Dim con As OracleConnection = New OracleConnection(vConnStr)<br/>            con.Open()</p> <p>            Dim vSQL As String = _<br/>            &quot;SELECT account_no, &quot; &amp; _<br/>                    &quot;name cust_name, &quot; &amp; _<br/>                    &quot;state||' '||zipcode st_zip, &quot; &amp; _<br/>                    &quot;region, &quot; &amp; _<br/>                    &quot;cust_stat_cd &quot; &amp; _<br/>              &quot;FROM siebel.mw_sales_heir &quot; &amp; _<br/>             &quot;WHERE emp='&quot; &amp; UCase(vUserName) &amp; &quot;' &quot; &amp; _<br/>             &quot;ORDER BY 1 &quot;<br/>            'lblOutput.Text = vSQL</p> <p>            Dim cmd As New OracleCommand(vSQL, con)<br/>            Dim da As New OracleDataAdapter(cmd)<br/>            Dim cb As New OracleCommandBuilder(da)<br/>            Dim ds As New DataSet(&quot;Cust&quot;)<br/>            da.Fill(ds, &quot;Cust&quot;)</p> <p>            Dim vGv1 As New SPGridView()<br/>            vGv1.ID = &quot;gvSiebel&quot;<br/>            vGv1.DataSource = ds.Tables(0)<br/>            vGv1.DataBind()<br/>            vGv1.AutoGenerateColumns = False</p> <p><br/>            Dim hlfAccount As New HyperLinkField()<br/>            Dim vStr(0) As String<br/>            vStr(0) = &quot;account_no&quot;           </p> <p>            hlfAccount.DataTextField = &quot;account_no&quot;<br/>            hlfAccount.DataTextFormatString = &quot;{0}&quot;<br/>            hlfAccount.DataNavigateUrlFields = vStr<br/>            hlfAccount.DataNavigateUrlFormatString = &quot;~\AccountReports?accountno={0}&quot;<br/>            hlfAccount.HeaderText = &quot;Account No&quot;<br/>            'hlfAccount.HeaderStyle.HorizontalAlign = Web.UI.WebControls.HorizontalAlign.Left<br/>            hlfAccount.Target = &quot;_blank&quot;<br/>            vGv1.Columns.Add(hlfAccount)</p> <p>            Dim bfCust_Name As New SPBoundField()<br/>            bfCust_Name.DataField = &quot;cust_name&quot;<br/>            bfCust_Name.HeaderText = &quot;Account Name&quot;<br/>            bfCust_Name.HeaderStyle.HorizontalAlign = Web.UI.WebControls.HorizontalAlign.Left<br/>            vGv1.Columns.Add(bfCust_Name)<br/><br/>'others SPBoundField() items are added below</p>Tue, 24 Nov 2009 20:13:44 Z2009-11-25T06:37:25Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/21d5be95-76df-4b6a-a021-1c4c620c9c03http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/21d5be95-76df-4b6a-a021-1c4c620c9c03saytochethanhttp://social.msdn.microsoft.com/Profile/en-US/?user=saytochethanHow to integrate silverlight 3 webpart in sharepoint site.I tried with this link - <a href="http://msdn.microsoft.com/en-us/magazine/dd148643.aspx#id0100027">http://msdn.microsoft.com/en-us/magazine/dd148643.aspx#id0100027</a><br/>    I am facing problem in placing the .xap file in the sharepoint server and i guess its web.config is to be modified. The problem here is the Clientbin folder of the web application folder has the .xap file. Now i copied the same Clientbin folder(contains only .xap and .wmv files) to sharepoint server. But i get an empty webpart on site without the media player. Kindly let me know what i am missing out.Tue, 24 Nov 2009 06:34:24 Z2009-11-25T06:35:10Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/f3c0af19-edf0-4052-8d5d-f211efee54fchttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/f3c0af19-edf0-4052-8d5d-f211efee54fcallan8964http://social.msdn.microsoft.com/Profile/en-US/?user=allan8964how to develop web parts for weather, news, etc?hi there,<br/><br/>i know it's a big topic, just want some helpful links or blogs to get some ideas how to develop the web parts used as gadgets on a page to get info of weather, news or even stock or sports events. thanks in advance.<br/><hr class="sig">allanTue, 24 Nov 2009 22:30:09 Z2009-11-25T06:26:31Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/5bb6fa57-38be-4a45-8490-be5d7e38af59http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/5bb6fa57-38be-4a45-8490-be5d7e38af59JoeBlack77http://social.msdn.microsoft.com/Profile/en-US/?user=JoeBlack77webparti am displaying some details from database1 in a gridview.<br/>when i select first field(a hyperlink) i need to display some results(grid) in another webpart which are taken from another database2.<br/><br/>Can anyone explain in detail how to find solution for thisWed, 25 Nov 2009 05:46:44 Z2009-11-25T06:07:24Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/878d35ee-6ecb-4bbb-9dc3-f542ee834abahttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/878d35ee-6ecb-4bbb-9dc3-f542ee834abarun4ithttp://social.msdn.microsoft.com/Profile/en-US/?user=run4itIs it possible to save a template to my desktop?I created a site in a sandbox situation.  Is it possible for me to save it as an .stp file to my desktop so I can re upload it into a new template gallery on a different site?Tue, 24 Nov 2009 22:29:13 Z2009-11-25T05:43:00Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/d04d68ff-a1e6-4dcf-bf9e-9b6a2c435356http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/d04d68ff-a1e6-4dcf-bf9e-9b6a2c435356SickOfIThttp://social.msdn.microsoft.com/Profile/en-US/?user=SickOfITProblem displaying a webpart in MOSS 2007<p>Hi,</p> <p>I have written a webpart which internally calls WCF service and displays data.<br/>When I copy this code into .net windowss form and run, it works fine.<br/>When I deploy this webpart to MOSS 2007 (same box) and add this webpart to a page, I do not see the webpart in MOSS page.</p> <p>When I debugged the webpart in visual studio 2008 when the MOSS page was loading, I saw that it was failing to create an instance of the wcf service.<br/>But it does not show the error [says - Cannot obtain value of local or argument 'ex' as it is not available at this instruction pointer, possibly because it has been optimized away].<br/>Event viewer show the error - Error: Failure in loading assembly: &lt;name&gt;. <br/><br/>The WCF service which I am calling inside webpart has anonymous access enabled.</p> <p>I have added an entry in the web.config of MOSS under &lt;SafeControl&gt; and also &lt;system.serviceModel&gt; &lt;bindings&gt; and &lt;client&gt;&lt;endpoints&gt; (copied from the configuration.svcinfo of the wcf service ref)</p> <p><br/>Appreciate any help on this.<br/>Thanks.</p>Fri, 20 Nov 2009 13:03:58 Z2009-11-25T05:24:08Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/a0246c33-f6ed-42c2-a05b-2cb3d88bd2cchttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/a0246c33-f6ed-42c2-a05b-2cb3d88bd2ccSanbanhttp://social.msdn.microsoft.com/Profile/en-US/?user=SanbanWebPart Feature scoped to Web does not get populated to special group <p>Hi,<br/><br/>We want to deploy a webpart with scope=&quot;Web&quot;, so that it will be available only for a subsite where this feature is activated and we also want to have this webpart to appear under a special category instead of miscellaneous group.<br/><br/>I have created the required feature.xml, elements.xml, .webpart file. This work fine when the feature scope is set &quot;Site&quot;, but when I change the scope to &quot;Web&quot; and then after activating the feature,<br/><br/>1. I do not see the webpart in WebPart gallary.<br/>2. Also when I try to add a webpart using add web part button, I do not see those webparts, I have to explicitly populate those again<br/>3. After explicitly populating those webpart, it comes under the miscellaneous group not in my special group<br/><br/>This means when the webpart feature scope is set to &quot;Web&quot;, none of the properties set in elements.xml and .webpart file are working. Does it mean I cannot create a group for my webpart when then feature scope is set to &quot;Web&quot;<br/><br/>There is an another thread (<a href="http://social.msdn.microsoft.com/Forums/en/sharepointdevelopment/thread/87b224e6-8053-4db1-9314-f8f7b6371197">http://social.msdn.microsoft.com/Forums/en/sharepointdevelopment/thread/87b224e6-8053-4db1-9314-f8f7b6371197</a>) which has discussed a similar issue, but I don't think it been answered there.<br/><br/>Thanks in advance,<br/>Sanban</p>Tue, 24 Nov 2009 17:48:24 Z2009-11-25T05:22:31Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/e28f559d-a05b-4100-97ad-6fde44c4d7a3http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/e28f559d-a05b-4100-97ad-6fde44c4d7a3nguyenbinhkinghttp://social.msdn.microsoft.com/Profile/en-US/?user=nguyenbinhkingIs lookup field content type supported in VSeWSS 1.3 ?In the VSeWSS 1.2, I cannot create lookup field by using content type. I have two list has been created by using content type: Contact and Address, in the Address list has a column look up a field in the Contact list. I cannot do that. Please let me know: Is VSeWSS 1.3 supported that thing?<br/><br/>Thank all very much.<br/> <hr class=sig> NguyenTue, 10 Nov 2009 12:40:58 Z2009-11-25T05:21:50Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/404e493e-28fa-40fa-a063-8764bca76050http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/404e493e-28fa-40fa-a063-8764bca76050wll6568http://social.msdn.microsoft.com/Profile/en-US/?user=wll6568Why breakpoint not caught?I have a question. I have been creating this event receiver and then trying to attach to iis process for debugging purpose as we used to on standard web applications. But strange thing is, sometimes it works and sometimes it doesn;t. Does anyone know why?<br/><br/>My way to do it is clean, build, deploy. And then attach to w3wp. Then on Sharepoint, i hit the edit form (as i am working on item updating). Sometimes the breakpoint get caught but sometimes it just doesnt wanna do it.Mon, 23 Nov 2009 02:42:59 Z2009-11-25T05:05:39Z