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

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

How to associate custom masterpage from 12 hive folder to an ASPX page

Posted By:      Posted Date: September 17, 2010    Points: 0   Category :SharePoint
scenario: I have a custom masterpage available within 12 hive folder.  I want one of the ASPX pages (say allitems.aspx) to use this masterpage. I see that when I open the ASPX page using SPD, it has default.master but upon changing it to mydefault.master it gives error indicating that file is not found. So question is how to reference custom masterpage in aspx pages? I prefer to do it through visual studio but SPD is also fine.   thanks.

View Complete Post

More Related Resource Links

Access Classes in an aspx page that is in folder in asp.net


I have classes in App_Code:
Connection.cs, ClientData.cs ....

I have a folder Authenticated within it have an aspx page Client.aspx

How do I access the page through Client.aspx ClientData.cs the class, because there is a mistake for me to define the class as I do, please help me!

Adding a custom control to the SharePoint 2010 Team Site Wiki Page Template ( wkpstd.aspx ) programm

Topic This is maybe my last post about the Team Site Wiki Page customization with the aim of exceeding its limitations. This time we are going to customize the unique template ( wkpstd.aspx) by replacing the control that renders the editable content by a custom one. In this post example, we will take advantage of the use of this custom control to render not editable additional contents, for instance, a header and a footer that could be the same for a specific Wiki Page Library. Of course, we are not going to really customize the template, but we are going to use a delegate control to replace the control at runtime. Here are the screen shots of the result: We can see a non editable Header and Footer on the Team Site Wiki Page In edit mode these additional contents are not rendered, but we can add new content as usual And of course, after having saved the page, the new content is rendered wtih the non editable Header and Footer. Steps required   If you look at the Team Site Wiki Page template, wkpstd.aspx, you can see the control that is rendering the editable content/ <SharePoint:EmbeddedFormField ID="WikiField" FieldName="WikiField" ControlMode="Display" runat="server" /> We are first going to create a custom EmbeddedFormField control Then, we are going to use a delegate control to replace the native EmbeddedFor

unable to create wiki library with bulagarian name via custom ASPX page

hi, I am using one Aspx page where it takes the input from user and create the wiki library with the name entered by User. The issue is , when I am creating name in Eglish it is creating properly. but suppose I give library name  ¿¿¿¿¿¿¿ TEXT 4, I get the following error http://vm2003/ ??????? TEXT 4/Forms/AllPages.aspx?PageView=Shared ?? ??????????. which means ttp://vm2003/ ??????? text / AllPages 4 forms /. Aspx? PageView = shared does not exist. I dont know hwy it is redirecting to this page. but when i check on site , the library gets created with name ??????? TEXT 4 and its URL is http://vm2003/TEXT%204/Forms/AllPages.aspx if you see the bulgarian part is missed, please help.

Custom Page Template (List.aspx) - one to many relationship


Hi, I have two tables which is Customer and Customer Details table, with one to many details.

Is there possible to show Child table's column in (done in one GridView) Customers/Lisp.aspx?

Accessing my custom aspx page in the place of Newform.aspx of the list



I have a aspx page where i have designed the controls as per the need.Now my requirement is as soon as user click on 'New' of the List,i am expecting to aspx page to come as Newform.aspx of the list.Could you please share your ideas regarding this?

Thanks & Regards,


Add Bread Crumb to Custom aspx page


I have deployed a custom aspx page as a sharepoint feature [hence this page is not present in layouts folder].
As a part of functionality, This page is accessible from sub-site. Now problem here is that the breadcrumbs are not getting displayed properly. It is getting displayed as :

TestSite > Test SubSite

Where TestSite is displayed as hyperlink but Test SubSite is not. I want bread crumbs to displayed as :

TestSite > Test SubSite > MyPage

Any Inputs

Thanx & Regards,

[Sorry for posting this on multiple forums, I have posted it on Sharepoint-Design & customization forum but din't get any reply and its really urgent .. Thnx]

Provision Custom aspx page



      I need to provision a custom aspx  with webparts  on the page with site definition,

I added follwing code to element.xml

<Module Name="x" Url="Pages" Path="Pages">
        <File Url="x.aspx"  Path="page.aspx" Type="GhostableInLibrary"/>

but it did not work and error says could not complete the action.

How to use a custom aspx page instead of RSViewerPage.aspx to open report from Report Library in Sha

I am using MOSS 2007 in SSRS integration mode and currently the report opens up on page - RSViewerPage.aspx and I have created my own custom aspx that can be used for viewing the reports. How to use a custom aspx page instead of RSViewerPage.aspx to open report from Report Library in Sharepoint SSRS integration mode.

Thanks in advance

Sharepoint 2010 custom .aspx page for custom functionality





I want to include a custom .aspx page with code behind in sharepoint 2010. This aspx page is supposed to take data 
from custom list and generate an xml. So the output is xml. Our site is an internet facing site and it is anonymous
access. Some swf files are using this aspx page to get dynamic data from list in xml format. When flash is trying
to get xml from this page sharepoint first redirects to login page. I need help from you guys, since I am new in sharepoint I got really struck here.

Thanks in advance,
Jiju Alex.

Same aspx page with 2 different masterpage: is it possible??

Hi All,

I'm trying to solve the following issue:

I need that the same page (stored in a document library) can be accessible from two diffenet website... (let's call it page.aspx)

we can say web1 and web2

I have also created 2 masterpages: master1 and master2

I need to achieve the following scenario:

if I open "page.aspx" from web1, it should load up the masterpage master1

if I open "page.aspx" from web2, it should load up the masterpage master2

is it possibel to achieve this in sharepoint???

I'm just downloading Visual Studio 2010 to try so play around with this, because with sharepoint designer I cannot find anything usefull...

any suggestion to make this "strange" process work????

this is due to have the same content in just one repository (so if I have to change something I do it once) and present the information with two different layouts...

thanks all


How to use custom WrkTaskIp.aspx page in custom sharepoint workflow ?


I have created as custom task edit browser enabled Infopath form which successfully gets open when user clicks on Edit task. But by default it opens up in the WrkTaskIP.aspx page which is available in 12 hive..Layouts folder.

Now the default WrkTaskIP form provides two following options as hyperlinks 1. Delete item, and 2. A link to navigate to the task display form

I want to customize the OOB, WrkTaskIP page and associate that with my workflow.

How exactly can i achieve this ?

P.S: I have refered this link , but that does not specify clearly where exaclty to associate that custom page in the workflow and how.


SP2010: Using SPCalendarView in custom .aspx page


I am trying to use sharepoint SPCalendarView in my hand-written page. Calendar's grid displays empty cells with dates only without events. Calendar doesn't react on user's actions.

 <SharePoint:SPCalendarView runat="server" ListName="IWCalendar" EnableViewState="true"></SharePoint:SPCalendarView>

I've referenced all required assemblies:

<%@ Register Tagprefix="SharePoint"

Custom action to actions- menu on "manage content and structure" sitemanager.aspx page


Hi all


I need to add custom action to actions menu of document library when user is in "content and structure" and can multiselect items from doclib. (doc lib is active in left side)


Any ideas how to add that?


By default the Action menu contains items copy,move,delete|checkout,discard checkout, checkin,publish,unpublish


Other option would be to add multiselect support to doc libraries.


Thanks for the ideas in advance,




MultipleLookUpField on custom aspx Page


Hi guys,

I've a question regarding the MulitpleLookField. I want a field of this type include in my custom aspx page which should create a new list item, but I get the error:

Operation is not valid due to the current state of the object.

<td class="ms-formbody"><SharePoint:MultipleLookupField ID="control" runat="server" ControlMode="New" /></td>

Code Behind:
public class myClass : LayoutsPageBase
 protected MultipleLookupField control;
 protected override void OnPageLoad()
  using(SPSite site = SPContext.Current.Site)
   using(SPWeb web = site.Rootweb)
   SPList list = web.Lists["Produkte"];
   SPControl.SetContextWeb(HttpContext.Current, web);
   control.ListId = list.ID;
   control.FieldName =        InternalNames.aehnlichekoppelbarePro

Open custom aspx page as modal dialog from link


Here's what I'm trying to achieve. I got a url field in my list which contains a link to a custom aspx page I've created earlier. I've added the "&IsDlg=1" property to my url and I want to page to be opened as a modal dialog. However the page opens full window and not as a dialog at all.

Do I have to create a custom field? I've seen how to open a modal dialog with javascript, but my url field only accepts http://xxx aso so I'm screwed. Any help is very much appreciated.

Cannot access pages using /_layouts//.aspx



I have a development server on which we have implemented a number of application pages. We can access these using the url format:

Cannot access pages using http:/<site>/_layouts/<folder>/<page>.aspx

This also works for subsites:

Cannot access pages using http:/<site>/<subsite>/_layouts/<folder>/<page>.aspx


Now I am trying to implement these pages on our production server and I am getting file does not exist errors. Any thoughts on why this might be?

Andrew Wiles - www.it-workplace.com - MDX made simple

Click on document and Redirect to a custom aspx page.


Hi all

I have created a document library and uploading files in it.

when i click on any document it is opened at client side for example in sharepoint designer.

I want to redirect to a custom aspx page when user clicks on any document rather than opening at client side.

Is it possible?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

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