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
1
vote
0 answers

Accessing Content Page Method From MasterPage Method

Possible Duplicate: How to call content Page function from Master Page I need to access Content Page Method from Master page Event. How can I do this? I saw this in stackoverflow But not able to know how to use it - LINK (cphPage.Page as…
Krishna Thota
  • 6,646
  • 14
  • 54
  • 79
1
vote
1 answer

WHMCS Addon Module with Multiple Pages

I am currently working on developing my first WHMCS Addon Module, and so far everything has gone very well. However, I need to make multiple content pages, and the only way to display output according to the Wiki Article is to echo it in the output…
user470760
0
votes
1 answer

Dynamic control ID generation of ContentPage

I'm stuck with this dynamic control ID generation,if I put my controls(say Button) in ContentPage (which is inherited by MasterPage) inside when the page is rendered in the browser then the control Id are changed ,I read…
DayTimeCoder
  • 4,294
  • 5
  • 38
  • 61
0
votes
1 answer

Pass values to content page from programmatically added masterpage menuitem?

I'm working on a project that uses a master page and content pages. My masterpage a navigation bar:
cloudberry
  • 379
  • 3
  • 10
0
votes
1 answer

Is it possible to add style sheet only to a content page?

In a asp.net webforms project, I need to add external style sheet only to content page, If I put css link after the <%@ Page> declaration it gives an error saying Error 103 Validation (XHTML 1.0 Transitional): Content is not supported outside…
Nalaka526
  • 11,278
  • 21
  • 82
  • 116
0
votes
1 answer

.Net Maui Content Page vs Xamarin Content Page

I am converting a Shell Xamarin app to a Shell .Net Maui. In my Xamarin project, one of my detail pages (called from the MainPage) is a Xmal ContentPage with all (100%) of the Content built in the code behind. I have a BuildForm() method called in…
Gary H
  • 71
  • 7
0
votes
1 answer

3 dots representing ToolbarItems from a Content Page in a .net Maui app only showing when the device is in dark mode

image 1 is when the device is on dark mode. image 2 is when the device is on light mode. I can still click it and access the toolbarItems that I have defined but the icon is not visible. Any idea on why this is happening? is it a style problem?…
Jean
  • 25
  • 3
0
votes
3 answers

MasterPage And ContentPage Body Css Problem?

I have a Masterpage and I have a content page from this masterpage.. I must use different css for body tag for only this contentpage? How can ı do this? this is my masterpage's css body, div, ul, ol, li, p, h1, h2, h3, span, pre, a, img,…
mekar10
  • 631
  • 1
  • 6
  • 16
0
votes
3 answers

In .NET MAUI is there a way to choose a different XAML view based upon whether the device is in Landscape or Portrait

I am using .NET MAUI and I have a particular view that is rather complicated and I would rather have a different layout if the device orientation is in Portrait vs if the device orientation is in landscape. I tinkered around with Android programming…
David Pugh
  • 758
  • 3
  • 12
  • 33
0
votes
1 answer

Update Panel in ContentPage button Click not updating repeater in MasterPage

I have an update panel inside contentpage when I click the button in there, I'm checking on breakpoint running this code block but its not refresing the masterpages controls. still empty repeater and also label. After that I try f5 on browser then…
0
votes
1 answer

What is the life cycle of a ContentPage in Xamarin Forms iOS and why does it crash when I switch to another app?

My Xamarin iOS app is crashing on a ContentPage when I switch away from it to another app. The first occurrence was in a label renderer, so I wrapped it in a try catch block: protected override void OnElementChanged(ElementChangedEventArgs
jho
  • 199
  • 1
  • 8
0
votes
1 answer

Can I put another ContentPage in ContentPage inside TabbedPage?

I have TabbedPage. This has multiple ContentPages inside. E.g; I have a settings page, I want a new page to be opened by clicking a button in the settings page, hiding the tab part. When I do as below, the new page is gone, but I have to re-create…
Ozgur Saklanmaz
  • 528
  • 3
  • 17
0
votes
1 answer

Change the ContentPage's content with customize titleview

I make a customize title in the titleview, and I want to show different content(with other pages) by pressing the tabs I customize.(like pic shows below) I am wondering how to change the content with different pages...
0
votes
1 answer

Page with cards/frames in a listview (X.Forms 4.6+)

I had a question about X.Forms. Does anyone know how I can build such a page in X.Forms? Flow of the page: The user must be able to create a note and/or make changes. I want to display these notes one below the other (preferably in a scrollable list…
E75
  • 153
  • 3
  • 13
0
votes
1 answer

VirtualPathProvider problem with content pages

I have a VirtualPathProvider that works fine with asp.net pages. It compiles in runtime and run everything well. But, when I try to open a page that contains asp:Content tags, I always getting: Only Content controls are allowed directly in a…
1 2 3
8 9