何小碩's profileGet More... ExperiencePhotosBlogListsMore ![]() | Help |
Creating List DefinationSteps: To do this we will have to modify schema.xml , and add our own custom column(that we will create) in default Item content type. This column will then be displayed along with the Title column when one craetes the List. Steps: 1. Open schema.xml in VS or Notepad. Locate "ContentType ID="0x01" in ContentTypes tag. 2. Now Open ctypeswss.xml in ctypes folder in Features directory and copy the defination for "ContentType ID="0x01" and paste in schema.xml . see below:
come from: http://programmingsharepoint.blogspot.com/ Sharepoint QuestionsWhat are Application Pages in SharePoint? Ans : Unlike site pages (for example, default.aspx), a custom application page is deployed once per Web server and cannot be customized on a site-by-site basis. Application pages are based in the virtual _layouts directory. In addition, they are compiled into a single assembly DLL. A good example of an Application Page is the default Site Settings page: every site has one, and it's not customizable on a per site basis (although the contents can be different for sites). With application pages, you can also add inline code. With site pages, you cannot add inline code. UserControl or WebPart? Ans: Advantages of Using User Control are : Advantages There are three primary advantages to user controls when dealing with SharePoint. They are: familiarity, reusability, and development speed. *Familiarity: One of the keys to development is managing the degree of change that the team is put through as it transitions from technology to technology. Part of managing that change is minimizing it where possible. This is one of the reasons that user controls are such a good solution for many organizations. User controls are a core ASP.NET construct, they are something that developers are likely already familiar with — or at least aware of. This familiarity increases the knowledge reuse coming into the project, which keeps morale high, improves productivity, and improves reuse of the experience after the SharePoint project. *Reusability Another way user controls are advantageous is that they can be used with other ASP.NET-based solutions. They aren't explicitly tied to SharePoint. If for some reason in the future you decide that SharePoint isn't the right platform for the solutions you're building — or you decide you need to reuse the technology in another non-SharePoint project — you have that capability. *Development Speed: Direct support by Visual Studio for a visual interface for user controls — as opposed to manually adding in controls through code — is a great advantage in development speed. Having a visual look and feel instantly available makes the process go faster. *Debugging is faster too, as you can construct testing harnesses that fully exercise and instrument the user control. Web Parts are essentially only runable from within SharePoint. This means that you must deal with all of the SharePoint infrastructure while trying to debug. Maintenance is also easier and faster with User Controls, primarily because they are easier to understand and debug. The net of this is that developing with user controls is substantially faster than developing a Web Part for everything but the most trivial implementations Q. When to use Diffrent Site Collections? Ans. An Individual Site collection offers following : For the Users: Dedicated Recycle bins For the IT Administrators: Site quota templates why to use diffrent site collections: 1. Site quotas is one of the reasons. The issue is the recycle bin is based on site collections and the quota for a site collection. If everyone shares a site collection, then they share the recycle bins storage size. 2. Delegated Security and distributed administration is the next big thing. For eg, you have a IT department that doesn't know who should be able to see what content, besides how it should be organized. This is the job of the content owners and users. SharePoint site collections offers IT the ability to create a site collection for a project, team, department, document, or whatever the needs are, then assign an owner and hand it off to them. 3. In addition to these two points is the need to separate the content between databases. What is Authentication and Authorization. Once the system knows who the user is through authentication, authorization is how the system decides what the user can do. What are some of the accounts you create while installing/managing the sharepont. Ans : Some of the accounts are specified here What are Security methods(Authentication methods) available in sharepoint. Ans :"Out of the box", SharePoint 2007 supports nine authentication methods. NTLM (short for NT Lan Manager, which is simply the Windows authentication that everyone is familiar with) and Kerberos (also a Windows "standard" authentication) are offered during installation, but I recommend to get started with NTLM, as Kerberos requires "special configuration by the domain administrator", while NTLM works without further hassle. come from: http://programmingsharepoint.blogspot.com/ WebPart Life cycle1. protected override void OnInit(EventArgs e) come from: http://programmingsharepoint.blogspot.com/ |
|
|