Questions tagged [content-pages]

A content-page is an asp.net page that utilizes inheritance from a master page. Useful for template page development

In Web site development with ASP.NET, the Content Page is a page that is associated to a Master Page. A Content Page will contain only markup and controls inside Content controls and it cannot have any top-level content of its own. Any Content Page can use controls that specifically override content placeholder sections in the Master Page.

What is a Content Page - ASP.Net

Master and Content Page Tutorial

123 questions
25
votes
6 answers

How to add meta tag to ASP.Net content page

I have several content pages hanging off of one master page. I need to add a refresh meta tag to one of the content pages but I can't see where I can do this. Any help would be much appreciated.
doogdeb
  • 403
  • 1
  • 4
  • 15
18
votes
2 answers

why we use @Master type?

if we have a master page and a content page.so the content page @Page directive look like as <%@ Page Language="C#" MasterPageFile="~/Site1.Master" .... /> so , in order to access master page controls in content page we should have to use <%@…
Usman
  • 3,200
  • 3
  • 28
  • 47
18
votes
5 answers

How to set the default button in content page using asp.net?

I need to set the content page default button. My code is like this: It is working fine, but my master page…
hmk
  • 969
  • 10
  • 38
  • 70
15
votes
2 answers

Xamarin.Forms: Can I embed one ContentPage or ContentView into another ContentPage

I have multiple ContentPage xaml files in my Xamarin project. I want to embed a shared piece of xaml into each ContentPage. There is nothing particularly special about the shared piece of xaml (it does't need to do anything platform specific).…
Anthony Tietjen
  • 1,032
  • 2
  • 8
  • 19
8
votes
1 answer

How to get Div of Master Page in page in ASP.net?

I am using Master Page in my Web Application. Now i am creating multiple content pages. there is one Div in the Master page which had label. Now i want to hide that Div in one content page and other requirement in other content page is to get label…
Brijesh Patel
  • 2,901
  • 15
  • 50
  • 73
6
votes
1 answer

Get ID of Master Page object in Content Page

If the master page has a label with the id label1 how do I control that id in the content page. The id is not passed down so i can't control it inherently. For example if i have a control with the id contentLabel i can access it code by just typing…
auwall12688
  • 389
  • 3
  • 11
  • 23
5
votes
2 answers

How to call javascript function from asp.net button click event

How do I call the showDialog from a asp.net button click event. My page is a contentpage that has a masterpage associated with it. I have tried the following
Spafa9
  • 742
  • 3
  • 14
  • 30
5
votes
1 answer

Horizontal ScrollView - xamarin.forms

I know there are many about this topic (Scroll horizontally in Xamarin.Forms ScrollView), but I could not implement the horizontal scrollview which scrolls horizontally. public class DetailView : ContentPage { public DetailView () { …
4
votes
2 answers

ASP.NET Master Page Content Page's IDs all changed, breaking CSS based on original element IDs? Are you kidding me

ASP.NET Master Page Content Page's elements all seem to be having their ID's changed or prepended by the ASP.NET page renderer. This breaks all CSS styles based on the original element IDs. Is this seriously how it works? If so, is there a way…
Triynko
  • 18,766
  • 21
  • 107
  • 173
4
votes
1 answer

Viewing CSS Intellisense in partial views and Content pages - Visual Studio 2010?

I am trying to figure out how to get Intellisense for CSS to render when in a partial view or a content page. Of course I don't want it to render a runtime, as the css comes from the masterpage. I found this trick.... <%if (false) {%>
Martin
  • 23,844
  • 55
  • 201
  • 327
4
votes
3 answers

Can't find ASP.NET master page

I'm trying to get my content page to be able to access an ASP:Literal on a master page. I have my content page as: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="viewProduct.aspx.cs" Inherits="AlphaPackSite.viewProduct" Title="Hi there!"…
Tom Gullen
  • 61,249
  • 84
  • 283
  • 456
3
votes
2 answers

Content control not accessbile from content page?

My content page looks like this: <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Basket.aspx.cs" Inherits="Basket" Title="Untitled Page" %>
Wodzu
  • 6,932
  • 10
  • 65
  • 105
2
votes
0 answers

Nuxt.js generate page with dynamic URL

My nuxtjs app contains page with dynamic url (actually page has two params event-slug and event-id), then in that page's asyncData method, I extract these params from URL and use for axios request. This page opens when I click on one item on list of…
user11273740
2
votes
0 answers

open new page from nav drawer xamarin forms

I'm working on a Xamarin Forms App. This App has a ContentPage as MainPage, this ContenPage has 2 buttons. One of them, after being clicked, shows a new Page (I'm using App.Current.MainPage = page;) and this new page has a Nav Drawer. The Nav…
2
votes
1 answer

How to add content place holder like a loop in asp.net. Is it allowed?

I have a master page called MasterFile.master. I added a content place holder in master page. That content place holder holds reference to another page(default.aspx). Can that reference page(default.aspx) hold reference to another content page? I…
ash2code
  • 21
  • 1
  • 6
1
2 3
8 9