Share Point Questions and answers:
Question 1: What is SharePoint and what its uses?
Answer: SharePoint is a web
site that can be displayed in a browser such as Internet Explorer, and includes
an interface for displaying lists and libraries in a secure database.
Uses:
· Document management server
·
Web content management server
·
Portal solution
·
Search engine
·
List-based repository
·
Collaboration site
· Replacement for file shares
Question 2: How we can web part outside the zones?
Answer :You can programmatically use a Web Part to a page using the following code
snippet:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{
SPWeb web = site.RootWeb;
SPFile page = web.GetFile("Pages/Lipsum.aspx");
page.CheckOut();
using (SPLimitedWebPartManager wpmgr =
page.GetLimitedWebPartManager(PersonalizationScope.Shared))
{
XmlElement
p = new XmlDocument().CreateElement("p");
p.InnerText
= "Hello World";
ContentEditorWebPart
cewp = new ContentEditorWebPart
{
Content
= p
};
wpmgr.AddWebPart(cewp,
"Header", 0);
}
page.CheckIn(String.Empty);
|
Question 3: What is Content Query Web Part in Share Point
2010?
Answer: The Content Query Web Part allows you to display content from anywhere in your
site collection; it’s useful for rolling up content to a home page or creating
an archive view of content.