Click here to Skip to main content
12,294,775 members (58,984 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 1:25am
Comments
Sampath Kumar Sathiya 13-Dec-12 7:37am
   
could you please provide some more details or the page code?
Rate this: bad
 
good
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"%>]]>
  Permalink  
Rate this: bad
 
good
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
  Permalink  
v3

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
Web01 | 2.8.160525.2 | Last Updated 13 Dec 2012
Copyright © CodeProject, 1999-2016
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