.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

How will you add Code behind to a Custom Applictaion Page or a Layout Page in SharePoint?

Posted By :Gowthammanju     Posted Date :October 31, 2011    Points :40   Category :SharePoint 
Ans. You do not deploy a code behind file with your custom Layouts page. Instead, you can have the page inherit from the complied dll of the solution to access the code behind.

You can also find related Interview Question to How will you add Code behind to a Custom Applictaion Page or a Layout Page in SharePoint?  below: 

Q. How will you add Code behind to a Custom Applictaion Page or a Layout Page in SharePoint?

  

Ans. You do not deploy a code behind file with your custom Layouts page. Instead, you can have the page inherit from the complied dll of the solution to access the code behind.
(More...)

How will you add Code behind to a Custom Applictaion Page or a Layout Page in SharePoint?

  
You do not deploy a code behind file with your custom Layouts page. Instead, you can have the page inherit from the complied dll of the solution to access the code behind. (More...)

Q. Can we use our custom master page with the application pages in SharePoint 2010 ?

  

Ans. With 2010, you can now set whether the pages under _Layouts use the same Master Page as the rest of your site. You can enable or disable this functionality through the web application settings in Central Administration. This however, is not applicable to your custom application pages. If you want your custom applictaion page to inherit the site master page you must derive it from Microsoft.SharePoint.WebControls.LayoutsPageBase class.
(More...)

Q. Can we use our custom master page with the application pages in SharePoint 2010 ?

  
Ans. With 2010, you can now set whether the pages under _Layouts use the same Master Page as the rest of your site. You can enable or disable this functionality through the web application settings in Central Administration. This however, is not applicable to your custom application pages. If you want your custom applictaion page to inherit the site master page you must derive it from Microsoft.SharePoint.WebControls.LayoutsPageBase class.

(More...)

Which is mandatory Content Placeholders Create Custom Master Page in SharePoint?

  
The Below Content Placeholders are required for backwards Compatibility:-

? PlaceHolderTitleLeftBorder
? PlaceHolderPageImage
? PlaceHolderMiniConsole
? PlaceHolderTitleRightMargin
? PlaceHolderTitleAreaSeparator
? PlaceHolderNavSpacer
? PlaceHolderLeftNavBarBorder
? PlaceHolderBodyLeftBorder
? PlaceHolderBodyRightMargin
(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...)

How would you create a Master Detail page in sharepoint?

  
Creating a Content type inheriting from Folder Content Type for the master, and another Content type inheriting from Item and using them both on a List (More...)

How can we register a custom server control to a web page ?

  
we can register a custom server control to a web page using

@Register directive (More...)

How to create an instance of a user control programmatically in the code behind file of a Web Forms page

  
Create a new Web Forms page in Visual Studio.
Navigate to the code behind file generated for this Web Forms page.
In the Page_Load event of the Page class, write the following code.
// Load the control by calling LoadControl on the page class.
Control c1 = LoadControl("test.ascx");

// Add the loaded control in the page controls collection.
Page.Controls.Add(c1);

(More...)

What is the use of SharePoint designer setting page in SharePoint designer 2010.

  
SharePoint designer setting page allows the following

1) Disable SharePoint designer completely
2) Different pages from being detached
3) Hide master pages and page layouts
4) Hide the website URL structure (More...)

What is the difference between Site Master Page and System Master Page in SharePoint?

  
The site master page will be used by all publishing pages whereas
System Master Page is Used for all forms and view pages in this site.
(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...)

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