.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> SharePoint >> Post New Question Subscribe to Interview Questions

What is a web part zone?

Posted By :Gowthammanju     Posted Date :October 31, 2011    Points :40   Category :SharePoint 
Web part zones are what your web parts reside in and help categorize your web parts when designing a page.

You can also find related Interview Question to What is a web part zone?  below: 

What is a web part zone in SharePoint?

  
Web part zones in SharePont are what your web parts reside in and help categorize your web parts when designing a page. (More...)

What are the differences between web part page gallery, site gallery,Virtual server gallery and online gallery in SharePoint?

  
Web Part Page Gallery in SharePoint is the default gallery provided by Microsoft that comes installed with SharePoint. Site Gallery is specific to one sharepoint website site. Virtual Server gallery is specific to that virtual server and online gallery is available for download web parts from MSDN. (More...)

While creating a Web part, which is the ideal location to Initialize my new controls?

  
Override the CreateChildControls method to include your new controls. You can control the exact rendering of your controls by calling the .Render method in the web parts Render method.
(More...)

What does partial trust mean the Web Part developer?

  
If an assembly is installed into the BIN directory, the code must be ensured that provides errorhandling in the event that required permissions are not available.
Otherwise, unhandled securityexceptions may cause the Web Part to fail and may affect page rendering on the page where theWeb Part appears. (More...)

What are the differences between web part page gallery, site gallery,Virtual server galleryand online gallery?

  
Web Part Page Gallery is the default gallery that comes installed with SharePoint. Site Gallery is specific to one site. Virtual Server gallery is specific to that virtual server and online gallery are downloadable web parts from Microsoft. (More...)

. While creating a Web part, which is the ideal location to Initialize my new controls?

  

Override the CreateChildControls method to include your new controls. You can control the exact rendering of your controls by calling the .Render method in the web parts Render method. (More...)

How would you pass user credentials while using SharePoint WebService from your Web Part or application.

  
Ans. The web service needs credentials to be set before making calls.

Examples:

listService.UseDefaultCredentials = true; // use currently logged on user

listService.Credentials = new System.Net.NetworkCredential("user", "pass", "domain"); // use specified user (More...)

While creating a Web part, which is the ideal location to Initialize my new controls?

  

Override the CreateChildControls method to include your new controls. You can control the exact rendering of your controls by calling the .Render method in the web parts Render method (More...)

What is the difference between a web part and a user control?

  
One of the limitations of user control is that they cannot be shared across web applications but they can be created using a designer tool. On the other hand if you take custom controls, they can be shared across web applications, but there is no visual designer for creating custom controls through which we cannot drag and drop custom controls. By now, we understand that there is a need to have a solution that would combine the features of both the user controls and custom controls. The solution which will solve this issue is Web Parts.

Web Parts are prefabricated components that are basically targeted at easing the job of portal site / collaboration sites development. They are basically server-side controls that run inside the context of special pages (known as Web Part pages) within an ASP.NET application or a WSS (Windows SharePoint Services) site. Web parts combine the flexibility of user controls and custom controls. Developers can drag completed Web Parts from Web Part galleries and drop them into Web Part zones. It can also be said that web parts add more value over other types of ASP.NET controls in that they add extra dimensions of user customization and personalization.

A bare ASP.NET ascx control would have to be added to a custom layout page. This limits the utility of the control a little as it cannot be added "just anywhere".

Having a webpart gives the flexibility of the control being added to the site multiple times in different locations or even multiple times on the same page with different properties.

When it comes to editors using the site, it makes a lot of difference for them to be able to add a webpart compared to editing a page layout, publishing it and then creating pages based on that page layout, so from the perspective of a site editor, the difference in usability is really quite large. (More...)

How to hide the web part selection checkbox

  
To Hide the web part selection checkbox add below style in CEWP
.ms-WPHeaderTdSelection
{
display: none;
} (More...)

How-to add web part to master-page?

  
add web part to any sharepoint page using web-interface. Open this page in SharePoint Designer, find and copy tag that corresponds to your web part and tag "Register" for namespace from the begining of page. Open masterpage for edit and paste copied tags to necessary place. (More...)

You added a SharePoint Web part to page, and now, when you go to the page, get an error message. To get the page working again, what need to do?

  
Go to the page with the error and add

?Contents=1

to the end of the page's URL. If the URL already has a "?" then add this instead to the end of the URL:

&Contents=1

You will now see a list of all of the Web Parts on the page and can now delete the offending Web Part.

Here is an example for a site URL that ends in aspx:
http://.../default.aspx?Contents=1 (More...)

How to Hide the Quick Launch on a Sharepoint web part Page

  
The Quick Launch on a Sharepoint web part Page can be hide by editing the webpart page and add the content editor webpart to the page,then copy paste this CSS in it.

(More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend