sharepoint-2007

access list in sharepoint 2007 using c#

∥☆過路亽.° 提交于 2019-12-06 02:35:41
I'm looking to compile data from a few diffrent custome lists in sharepoint 2007 Its a hosted sharepoint site so I don't have access to the machine backend. Is there any example code to access the sharepoint site using c#? here is my code thus far (i get the error Cannot connect to the Sharepoint site ''. Try again later. ) DataSet dt = new DataSet(); string query = "SELECT * FROM list"; string site = "http://sp.markonsolutions.com/Lists/Security/"; string list = "35E70EO4-6072-4T55-B741-4B75D5F3E397"; //security db string myConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;WSS;IMEX=2

Why is SharePoint dispalying my HTML and CSS content improperly?

99封情书 提交于 2019-12-06 02:09:25
I am trying to add content to a SharePoint content editor web part, but when I do, it displays as if it's ignoring parts of my CSS. It displays fine in Firefox 3.6 and IE 8 when it's a stand-alone page, but goes all off when the same code is placed in the Content Editor web part: Click here to view Often, things that are broken in SharePoint when viewed through IE will appear correctly when the same SharePoint page is viewed in FF; this time the menu was laid out correctly, but the text was the wrong color (should be white). When I examine the code using IE's Developer Tools, Sharepoint

Is there a good reference SharePoint's databinding syntax?

丶灬走出姿态 提交于 2019-12-06 01:42:58
问题 I'm putting asp server-controls into my SharePoint XSLT using SharePoint Designer. I've found it's really handy for pre-populating values into the form, or providing a different experience than the SharePoint defined layout (hidden fields, etc). For example, I can use a asp:TextBox control instead of the SharePoint:FormField control if I define it as such: <xsl:stylesheet ... xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"> <xsl:param name="Name" /> <xsl:template match

Scope of a timer job feature

我怕爱的太早我们不能终老 提交于 2019-12-05 20:49:50
问题 I am writing a timer job for the first time. I am following the examples that can be obtained by googling as my reference. In many such articles, I am coming across the timer job features being activated to the Site Collection level or the Site level. I feel this is weird, since there can be only one instance of a timer job for a particular web application. Should't all the timer job features be scoped to a Web application? Am I missing anything here? 回答1: It depends entirely on your scenario

How can you hook a SharePoint 2007 feature into the Application_Start of a site?

北城以北 提交于 2019-12-05 12:29:41
I was wondering if there is a good way to hook into the Application_Start of a SharePoint 2007 site when developing a feature? I know I can directly edit the Global.asax file in the site root, but is there a way to do this so that it gets deployed with the feature? Thanks! This is actually possible, but it doesn't involve the Global.asax file. Many of Microsoft's examples demonstrate wiring code in via the Global.asax, but this is not a best-practices approach when it comes to SharePoint. Ideally, your code should get packaged as a Feature and deployed via WSP (as you already know). The key

Determine which edition of SharePoint is Installed?

孤街浪徒 提交于 2019-12-05 10:52:04
What is the most reliable way to determine which version of SharePoint is installed. Whether it is WSS or MOSS. If MOSS, whether it is standard or enterprise. I want to programmatically detect the exact SharePoint version installed.. PS: I already have posted this question at SharePoint.SE but could not find a convincing answer. Rubens Farias You could try to use SPFarm.Local.BuildVersion or SPWebService.ContentService.Farm.BuildVersion (from this previous question ) and to build a lookup table based on this: How to find the level of SharePoint you are running? Another option is to read

Automatically copy list data from one list to another list after 1 month

六眼飞鱼酱① 提交于 2019-12-05 10:23:23
I have list that having data stores dynamically once the infopath form has been submitted. I want to archive this data after 30 days of creation date of any data. can you please suggest how would i do this. see i can do this by workflow but how can i set the condition that once 30 days complete after creation of any list it will automatically copy into other list. First I would want to question WHY you want to move it to another list? Why not simply setup a view on your main list showing only records created in last 30 days :- Created >= [Today]-30 (And yes, you can use Today in view filters )

How to open URL in SSRS report in webpart to new window

。_饼干妹妹 提交于 2019-12-05 09:12:06
I have created a report that I will embed in Sharepoint 2007 via a webpart using a report viewer. This works well and looks rather nice, however in the report I have a text field whose action is "Go To URL". When I click on the link within the webpart the link goes to the URL but it opens the URL within the webpart. Kind of ugly. There doesnt seem to be any additional capabilities/properties of the text box in the report other than setting the URL. How can I make the link/webpart open the URL in a new tab or window? Other than telling the user to right click the link and "Open in a new tab"...

SharePoint SiteDefinitions

99封情书 提交于 2019-12-05 06:17:17
I have created a simple site definition based on the publishing portal. Every time I want to use the template to create a site-collection I get the following error-message: The template you have chosen is invalid or cannot be found. I do not use any custom feature, just the default features with the publishing portal site-def. Any hints? There is a error log but it just gives me the information above: Applying template "PalfingerPlatformsOrderRoot#0" to web at URL "http://datsa0004:8080/Platforms/Orders/0000112233". Failed to get the site template for language 1031, search key

Difference between FieldLinks and Field in Sharepoint

£可爱£侵袭症+ 提交于 2019-12-05 05:55:22
I'm in the middle of trying to copy a custom content type from one web to another. I've googled around and found some examples that use FieldLinks and Fields. I'm kind of lost as to which one to use, since when I get the FieldLinks from my source web, I get 3 fields; while retrieving from Fields only returned me 2 fields... the custom field is missing. I'm pretty darn sure that I've added the fields at the proper level since I did it via the interface. But when retrieving it using code... the numbers just don't add up. So besides from that strange problem, I want to know what is the difference