Click here to Skip to main content
Rate this: bad
good
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
Comments
Sampath Kumar Sathiya at 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)



Advertise | Privacy | Mobile
Web01 | 2.8.150302.1 | Last Updated 13 Dec 2012
Copyright © CodeProject, 1999-2015
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