sharepoint-2007

How to start learning SharePoint [closed]

霸气de小男生 提交于 2019-11-28 19:52:51
I'm a fairly experienced developer (.NET, C#, XML, Webservices, HTML, Javascript, various databases etc.) who have been tasked with a new project in SharePoint. I know nothing about SharePoint. My question is: What is the best way for an experienced developer to start learning SharePoint 2007. I'm not looking for long lists of books or websites, which I can google myself, or for general advice on learning, but for specific advice from people who has recently learned SharePoint. This might be advice on the one specific article that I really should read, or what my first learning-project should

Add ScriptManager to Page Programmatically?

久未见 提交于 2019-11-28 16:52:19
I am developing a WebPart (it will be used in a SharePoint environment, although it does not use the Object Model) that I want to expose AJAX functionality in. Because of the nature of the environment, Adding the Script Manager directly to the page is not an option, and so must be added programmatically. I have attempted to add the ScriptManager control to the page in my webpart code. protected override void CreateChildControls() { if (ScriptManager.GetCurrent(Page) == null) { ScriptManager sMgr = new ScriptManager(); // Ensure the ScriptManager is the first control. Page.Form.Controls.AddAt(0

What is a proper way to store site-level global variables in a SharePoint site?

大憨熊 提交于 2019-11-28 12:22:00
One thing that has driven me nuts about SharePoint2007 is the apparent inability to have defineable settings that apply specifically to a site or site collection itself, and not the content. I mean, you have some pre-defined settings like the Site Logo, the Site Name, and various other things, but there doesn't appear to be anywhere to add new kinds of settings. The application I am working on needs to be able to create multiple kinds of "project site collections" that all follow a basic template, but have certain additional settings that apply specifically to that site collection and that one

Get domain name

丶灬走出姿态 提交于 2019-11-28 02:24:18
问题 My computer is in a Domain (Active Directory) and I need to get the domain name dynamically. I found the following code on the internet: SelectQuery query = new SelectQuery("Win32_ComputerSystem"); using (ManagementObjectSearcher searcher = new ManagementObjectSearcher(query)) { foreach (ManagementObject mo in searcher.Get()) { if ((bool)mo["partofdomain"]) { this.Domain = mo["domain"].ToString(); break; } } } It works exactly as I want and returns exactly the domain name as I want (when I am

SharePoint - get value of calculated field without manual parsing

旧城冷巷雨未停 提交于 2019-11-27 23:49:15
问题 I have a calculated field in a list with this formula: =CID & " - " & Title When viewing the list, it might display as: "2 - Big Meeting". When I grab the value from code like so: myItem["CIDandTitle"] the value comes back as: "string;#2 - BigMeeting". Is there a "correct" way in sharepoint to extract the value or should i simply split on the semicolon and pound sign? I am using MOSS2007. 回答1: You have to cast it to an SPCalculatedField: SPFieldCalculated cf = (SPFieldCalculated)myItem.Fields

SQL IN equivalent in CAML

穿精又带淫゛_ 提交于 2019-11-27 13:10:41
问题 Is there a "nice" way to create a CAML query for SharePoint that does something like this? SELECT * FROM table WHERE Id IN (3, 12, ...) Or am I stuck with a nightmare of nested <Or> nodes? EDIT: This was my solution to generate the <Or> nodes. /// Simulates a SQL 'Where In' clause in CAML /// </summary> /// <param name="columnType">Specifies the data type for the value contained by the field.</param> /// <returns>Nested 'Or' elements portion of CAML query</returns> public static string CamlIn

How to start learning SharePoint [closed]

﹥>﹥吖頭↗ 提交于 2019-11-27 12:33:30
问题 I'm a fairly experienced developer (.NET, C#, XML, Webservices, HTML, Javascript, various databases etc.) who have been tasked with a new project in SharePoint. I know nothing about SharePoint. My question is: What is the best way for an experienced developer to start learning SharePoint 2007. I'm not looking for long lists of books or websites, which I can google myself, or for general advice on learning, but for specific advice from people who has recently learned SharePoint. This might be

Add ScriptManager to Page Programmatically?

半城伤御伤魂 提交于 2019-11-27 10:00:38
问题 I am developing a WebPart (it will be used in a SharePoint environment, although it does not use the Object Model) that I want to expose AJAX functionality in. Because of the nature of the environment, Adding the Script Manager directly to the page is not an option, and so must be added programmatically. I have attempted to add the ScriptManager control to the page in my webpart code. protected override void CreateChildControls() { if (ScriptManager.GetCurrent(Page) == null) { ScriptManager

What does square bracket [] mean in the below code?

强颜欢笑 提交于 2019-11-27 04:23:38
I got below code from http://msdn.microsoft.com/en-us/library/dd584174(office.11).aspx for adding custom property in webpart tool pane. What does square bracket ( [] ) mean in the below code? [Category("Custom Properties")] [WebPartStorage(Storage.Personal)] [FriendlyNameAttribute("Custom Color")] [Description("Select a color from the dropdown list.")] [Browsable(true)] [XmlElement(typeof(System.Drawing.KnownColor))] public System.Drawing.KnownColor MyColor { get { return _myColor; } set { _myColor = value; } } As @Spencer Ruport said, they're attributes. They're used within .NET for

What does square bracket [] mean in the below code?

余生长醉 提交于 2019-11-26 11:09:53
问题 I got below code from http://msdn.microsoft.com/en-us/library/dd584174(office.11).aspx for adding custom property in webpart tool pane. What does square bracket ( [] ) mean in the below code? [Category(\"Custom Properties\")] [WebPartStorage(Storage.Personal)] [FriendlyNameAttribute(\"Custom Color\")] [Description(\"Select a color from the dropdown list.\")] [Browsable(true)] [XmlElement(typeof(System.Drawing.KnownColor))] public System.Drawing.KnownColor MyColor { get { return _myColor; }