Click here to Skip to main content
12,816,654 members (34,650 online)
Rate this:
Please Sign up or sign in to vote.
See more: ASP.NET
Hii to all,iam developing a project where i incuded master page content in so many pages at the design time itself.Hear i want to add master page content for two more pages which whear already created. I have tried by adding content place holder but it is not working.please help me how can i do this..........thanks in advance

with regards
D RAmu
Posted 13-Dec-12 2:25am
Sampath Kumar Sathiya 13-Dec-12 7:37am
could you please provide some more details or the page code?
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

If you've created a Master Page, to create a new Web Form you can just by the following clause:

<![CDATA[<% @ Page Language = "vb" AutoEventWireup = "false" CodeBehind = "CadMetasLoja.aspx.vb" Inherits = "SAC_BESNI.ConsMetasLoja" MasterPageFile = "~ / MasterPrincipal.Master"%>]]>
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Just add MasterPageFile="../Admin.master" to your page directive of .aspx page
and then add content placeholder according to ur requirement

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 13 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100