Custom aspx page with default master page in SharePoint

I had a requirement to create custom aspx page and deploy to _layouts folder.

Got help from this 
http://www.codeproject.com/Tips/312544/How-To-Add-Custom-ASP-NET-Page-Using-Layouts-Folde

Page is deployed to _layouts folder.

Code in .aspx file


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ItemDetails.aspx.cs" Inherits="namespace,Version=1.0.0.0, Culture=neutral, PublicKeyToken=3ffee3a64ae3d939" Debug="true" MasterPageFile="~/_layouts/v4.master" %>

<%@ Assembly Name="Microsoft.SharePoint.ApplicationPages, 
Version=14.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderMain" runat="server">
   main file content
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" runat="server" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea">
</asp:Content>

Issue I faced was page CSS.

be sure to use v4.master for SharePoint 2010 and default.master for MOSS.


else page will lose the css part.

Comments

  1. Hi Anuja...i have a queation...
    in sharepoint 2007 Advanced search, we have something called "add property restriction"...in that when i use "title 'contains' xxx", it is not showing up the result because xxx comes at a very later part in the title...my question is that, is there any character limit upto which the property 'contains' recognizes words and displays...i would be really grateful to u if u help me.
    thanks in advance

    ReplyDelete

Post a Comment

Popular posts from this blog

Search Result Webpart,Filter result If QueryString is present in URL

SharePoint 2013 Workflow gets canceled automatically

Permission denied for "Add and Customize Pages" in Sharepoint Online