Questions tagged [master-pages]
a feature of ASP.NET that allows template-based page development.
2,941
questions
-2
votes
2
answers
73
views
How to change the content page from within the masterpage in ASP.NET using C#?
I have seen the other way around, where coders need to change the master page for a particular content. But in this case, I am more worried about what is in the content, and I wish to change it.
...
0
votes
0
answers
38
views
Can we add Permissions-Policy headers by using html meta tag?
I need to add Permissions-Policy Headers on master page by using Meta tags?
But i dont have clue that how to add it.I tried with below but dint work.
<meta http-equiv="Feature-Policy" ...
0
votes
1
answer
22
views
How to pass a parameter from a an aspx page to a master page in order to load different menus?
I have a webforms page with a dropdownlist with projects and a "Go" button (first page).It has its own master page.
When the user selects a Project from the list and clicks on "Go" ...
0
votes
2
answers
28
views
How to change the type of the data in text box?
I want my text box to have a date in it, how do I do it?
<asp:TextBox ID="BirthdayRegBt" runat="server" class="form-control" placeholder="Birthday Date" ...
0
votes
0
answers
62
views
asp.net masterpage design/split/source disappeared and masterpage diğer sayfalara yansımaz
While I can see these buttons on all other pages, I can't see them on my masterpage, they disappeared my other pages using masterpage
masterpage that disappeared design/split/source
also, when I ...
0
votes
0
answers
15
views
The effects in my master page messes everything
When I try to activate any effect on a picture in my master page it just messes the whole order of the page and just ruins it. How can I fix it?
I just want a cool effect on my website.
body {
...
0
votes
1
answer
47
views
How do I fix the problem with master page view (html)? [closed]
I was given a html code for a master page for my website. The original page had a beautiful design, but when i copied it it showed a blank page with the text that was in the original site, but without ...
0
votes
1
answer
107
views
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 ...
0
votes
1
answer
148
views
Content page button click event not triggering from master page using JavaScript/jQuery
I have a master page and content page, In content page I have a button with server side click event.
I want to call the content page button server side click event from master page button ...
0
votes
0
answers
11
views
Mobile compatible website template for masterpage
I have been looking all over for templates that are mobile compatible. I understand that people carry the web with them. My present website uses an old css template which does not work well in phones....
1
vote
0
answers
88
views
Only last saved Content page is loaded into ContentPlaceholder elements
I have a master page that defines content placeholders for a header, content and footer.
The master page is formatted from with head and body.
It also has a that wraps around the entire main content ...
1
vote
1
answer
41
views
Problems with Master Page
I have been learning JavaScript for a week and because I already have some knowledge in CSS and HTML I was trying to make a simple page with an option to change the body's background picture by ...
0
votes
1
answer
22
views
Hide the Text Link in another page which is in Master Page in VB
I am new to Master pages. As per my project I need to hide the Text Link in another page which is in Master Page. So how can I hide the text link in another page.
I tried with multiple ways but I ...
0
votes
1
answer
317
views
Flyout page overlapping in Xamarin iOS
I am developing a small application with Xamarin forms in visual studio 2022 version, My project need flyout/master page but It is different android and iOS, Android is not overlapping when click on ...
0
votes
1
answer
169
views
Navbar links in ASP.NET master page
So I am writing a master page for an ASP.NET web application, and I am having an issue with the links it contains to content within the site.
The master page sits in a folder named "admin", ...
0
votes
1
answer
84
views
Why in master asp the places of the content change
Master page:
<div class="container">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</div&...
0
votes
1
answer
458
views
asp.NET button has an onclick event but the connection between the button and the onclick event is not made
Here is the button code in the productdetails.aspx file:
<asp:Button ID="Button2" runat="server" Text="Add to Wish List"
CssClass="btn btn-...
0
votes
0
answers
32
views
asp.net buttons stopped working after I inked a StyleSheet
I've run into a problem while trying to style a content page. I created a content Page that have buttons in it and for some reason after I linked a styleSheet the buttons stopped working.
I would ...
0
votes
1
answer
21
views
C# Masterpage picture being stretched when opening other webpages
I have a picture of our logo on my master page and previously when I opened other pages on the website the picture was the same size. When I updated the picture to a new one the master page looks ...
0
votes
0
answers
87
views
Request too long Error 400. Remove the process that goes to Account/Login.aspx
I was wondering on you block the website from going to the Account/login.aspx page? I can not seem to find it anywhere. We are getting a Bad Request - Request Too Long HTTP Error 400. The size of the ...
-2
votes
1
answer
318
views
W3 Schools Nav Bar not working in C# Site.Master
I'm using the code below from the W3 Schools website for a Drop Down Nav Bar which is not working from the Site.Master file within my C# application.
The Nav Bar displays but the drop down menu is not ...
1
vote
0
answers
228
views
Virtual Directory setup not working on IIS
I have following Projects in my asp.net application:
Web (main website)
Shop (subset)
Now instead of accessing the website through shop.abc.com i want it to access it through abc.com/shop hence i ...
0
votes
0
answers
37
views
Is there a way to implement a single master page across multiple existing web applications?
Developing setup: VS 2013 on Windows 10 Pro
Host server for production: IIS 10 on Windows Server 2016
My goal is to have a master page that I can reference for the majority of our web applications so ...
0
votes
1
answer
134
views
Update Logo image of master.page from child page asp.net(vb)
I am creating a child page by using Master page. I have logo, company name in header part of master page. I need to display in next page(child page of master) after login page. Next page will be ...
0
votes
0
answers
84
views
Xamarin Page.Title access but not as a string
I want to access the page.title or this.title but not as a string and instead as an element or anything other than a string in which I can then convert to a visual element.
The reason I want to do ...
0
votes
1
answer
22
views
Altering masterpage content permanently from a subpage
Say I have a masterpage and 2 subpages. For sake of simplicity I'll refer the first subpage as subpage A, and the other as subpage B.
Now assume that I made a change in the masterpage label from ...
0
votes
1
answer
556
views
How can I execute an async function in Master Page code behind file?
I have an ASP.Net Framework (4.7) Forms Application.
All pages are using Master Page template. In Master Page Code behind file, I am calling a function that takes some time (async)
Site.Master.cs
...
0
votes
1
answer
116
views
Inserting logo in Master asp page at the bottom right corner does not work when scrolling: overlaps
I have an asp.net webform app.
It consists on a master page and a web form.
I am trying to insert a logo at the bottom right corner of the master page, it works but when scrolling logo overlaps on the ...
0
votes
1
answer
27
views
Do I need to duplicate the script connection in child pages?
In the master page, my script is connected in this way:
<script src="scripts/jquery-3.4.1.min.js" type="text/javascript"></script>
And on the pages at the root, the ...
0
votes
1
answer
52
views
accessing master page session in child pages
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
lblSTuName.Text = "Welcome! " + Session("StuID")
If con.State = ConnectionState....
0
votes
0
answers
262
views
Get form value from Master Page from web form
There is a search box on the Master page that takes a value and calls code that provide a details page on that item. The Master page form takes a 'butterfly name' and the button calls the details ...
0
votes
1
answer
69
views
Dynamic og meta content asp.net webforms master and content page
I have a master page with head tag which uses some <%=%> tags for loading some contents like css, js and favicons.
I wish to dynamically construct og meta contents like
<meta property="...
0
votes
1
answer
88
views
Access Master Page control (html: Input) from Content Page doesn't work
I have an input control on Master Page where I store the window size that is returned by a javascript that runs onload. I need to access these controls from the content page but I can't make it work. ...
0
votes
1
answer
76
views
Pass select value to masterpage when it changes
I am working with an ASP.NET application for my company. I have a MasterPage with a navbar with options. One of the options displays another page but now the company ask me to pass a parameter to the ...
0
votes
1
answer
46
views
How to Disabled Master Form After Search Button?
**
This my Search Button Code I want to Disabled Master Page After Search Signup**
try
{
signUp signUp = new signUp();
signUp.Username = txtUserName.Text;
...
1
vote
2
answers
57
views
How to access dataset defined in master page from user control on master page?
I have a single master page with a dataset defined in VB code behind.
Public Property Inventory As DataSet = New DataSet
I populate the data in Page_Init.
I have a user control on the same master ...
0
votes
0
answers
36
views
render ContentPlaceHolder without MasterPage
I wanna render a aspx content without the MasterPage and return that as string for ajax requests. When i call RenderControll on the LoadEvent of the root level MasterPage, then i got the full html of ...
0
votes
0
answers
45
views
UpdatePanel always post back whole page
There is an UpdatePanel add inside UserControl, and this user control is added inside the MasterPage. When clicking on a button in that UpdatePanl. The whole page is refreshed. why?
Master Page:
<%@...
1
vote
0
answers
134
views
ASP.Net Nested Master Pages - How Deep Can You Nest?
This is long, so please bear with me. I just want to lay out the situation as completely as possible...
Regarding master pages in ASP.Net - I know that you can nest master pages and that you can have ...
0
votes
2
answers
183
views
Master property is not auto generated in aspx designer causing runtime errors
I have a content page that uses a MasterPageFile, and in the code we try to access a master property Master.SessionId.
<%@ Page Title="" Language="C#" MasterPageFile="~/...
1
vote
0
answers
347
views
Keep active sidebar menu on postback
I am using a sidebar menu from GitHub here
I am implementing it in a .Net master page and trying to keep the expanded/selected menu item selected on postback and having no luck.
sidebar-menu.js file, ...
0
votes
0
answers
235
views
Unload Event firing on Page Loading in Asp.net
I wanted to fire unload event when page is close or close browser tab / window. I have used below code but it is firing when page it load instead of page unload. I have used master / child page ...
0
votes
0
answers
33
views
css page does not connect proparley to the master page
half of the css content doesn't apply to the master page
when i delete the css page and add the css code to the master page itself(without having two separate pages) the css works perfect
html
<%@ ...
0
votes
1
answer
162
views
Href link to subfolder
I have created a masterpage with a submenu folder called "County_Polices". Within the subfolder I have the file "Cty_911_calltaking.aspx".
On the master page I have tried the 3 ...
0
votes
1
answer
254
views
Dropdownlist in masterpage is not returning a default value that was set by content page
I have a DropDown bound to a data source. And has auto-postback to true so that I can call middle-tier based on the value selected. But, by default, the second value in the dropdown is selected by the ...
0
votes
1
answer
336
views
Include form tag only in master page if content page not contains <form> tag?
I am using <asp:ScriptManager> and link in master page which require <Form> tag but issue is here that i have included already <form> tags in all the child content pages.
I know i ...
0
votes
1
answer
126
views
master page logo not displaying on new web form within subfolder
I am new to masterpages so bear with me if this is a stupid question. I have a master page that has the company logo image on the top of the menu bar. I created a new web form with master page. ...
0
votes
2
answers
186
views
Ability to scrolling thru menu dropdown list in ASPX masterpage
I have created my first master page so bear with me if this is a dumb question. One of my menu drop down lists within the master page is longer than the viewable page, so some of the items in the ...
0
votes
1
answer
326
views
Pass value from Content page to Master Page - ASP.NET
I am new to programming. I am working on a web application, where i have used two master pages, one master page for login and the another for rest of the application. In login page the login details ...
0
votes
1
answer
392
views
output is blank in master layout using Laravel
I am new to Laravel,i am using template layout inheritance for laravel blade,here is my code, it is just simple to show hello on browser. but after running this, my output is display blank. there is ...