master-pages Questions

12

I have an application which has a master page and child pages. My application is working fine on local host (on my intranet). But as soon as I put it on a server that is on the internet, I get the ...
Ailssa asked 14/2, 2013 at 5:50

7

Solved

I am learning about Progressive Enhancement and I have a question about AJAXifying views. In my MVC 3 project I have a layout page, a viewstart page, and two plain views. The viewstart page is in ...
Cibis asked 15/3, 2011 at 21:37

5

Solved

I have an aspx that has the following javascript function being ran during the onload event of the body. <body onload="startClock();"> However, I'm setting the aspx up to use a master page...
Lowelllowenstein asked 3/6, 2009 at 18:57

4

Solved

The following is the sequence in which events occur when a master page is merged with a content page: Content page PreInit event. Master page controls Init event. Content controls Init event. Mast...
Upsetting asked 24/12, 2013 at 10:10

4

Solved

I'm looking for a way to (preferably) strongly type a master page from a user control which is found in a content page that uses the master page. Sadly, you can't use this in a user control: <...
Micco asked 6/1, 2009 at 14:15

4

Solved

In my ASP.Net page I have <form id="MasterPageForm" runat="server"> However, whenever the markup is generated, it turns into <form name="aspnetForm" method="post" action="SomePage.asp...
Floorman asked 15/7, 2010 at 15:53

7

Solved

I have a master page which contains a label for status messages. I need to set the status text from different .aspx pages. How can this be done from the content page? public partial class Site : S...
Debility asked 22/3, 2013 at 14:59

5

Solved

Maybe its a stupid question, but i'm having this issue in Visual Studio 2010: in my Master page i've this code: <head runat="server"> <title>App Title</title> <asp:Content...
Plastered asked 8/10, 2011 at 8:51

6

Solved

There is a textbox on a ContentPage. When the user presses Enter in that textbox I am trying to fire a 'Submit' button on this ContentPage. I'd like to fire off that particular button's event. Ins...
Greathearted asked 3/10, 2011 at 16:52

12

Solved

When I navigate on a website utilizing MasterPages, does the application know what page I am on? If so, does it store it in an object I can access? The reason I am asking is so I can replace this:...
Writ asked 9/10, 2008 at 20:26

3

Solved

I have a asp.net webform application. Now I have to add master page in this application, but I don’t know how to merge or add new created master page with old webforms? How to handle html in webfor...
Extrusive asked 5/4, 2011 at 9:12

4

Ok this an odd way of doing this, I know I should have done it on Page_Load in every pages when using Masterpage, but is there a way around this issue? I don't want to rebuild the pages if I can he...
Unsubstantial asked 7/2, 2014 at 1:53

5

Solved

I want to get the page title in c# master page code behind. I tried using Page.Header.Title; property but it return null. Please help me to get the title. Thanks in advance. Shibin V.M
Greenlaw asked 18/11, 2011 at 5:40

2

Solved

I new to using web applications. I am currently using visual studio 2013 and I have created a web application. I would like to have a form that employees fill out and then when they hit submit the ...

5

Solved

I need to pass data to a variable in my master page each time a page is loaded. I have a string[] of RequiredRoles that I set on each content page defining what roles are required to access that p...
Giraldo asked 2/7, 2009 at 0:6

13

Solved

I can get simple examples to work fine as long as there's no master page involved. All I want to do is click a button and have it say "hello world" with the javascript in a .js file, using a master...
Firth asked 15/11, 2008 at 17:28

16

Solved

I'm writing code on the master page, and I need to know which child (content) page is being displayed. How can I do this programmatically?
Mascia asked 6/11, 2008 at 15:15

3

I am adding controls dynamically to PlaceHolder which within ContentPlaceHolder var t = (ContentPlaceHolder)Master.FindControl("ContentPlaceHolder1"); var t1 = (PlaceHolder)mpContentPlaceHolder.Fi...
Lophobranch asked 23/9, 2010 at 18:9

6

<%@ Page Language="C#" MasterPageFile="~/master/111.master" AutoEventWireup="true" CodeFile="Template.aspx.cs" Inherits="_Template" Title="Untitled Page" %> <%@ Register Assembly="AjaxCont...
Earthshaker asked 7/8, 2013 at 8:5

2

Solved

We have an existing ASP.Net web application which we want to convert into using masterpages. In the process of doing this, I found that the HTML id's generated for the HTML elements are prefixed w...
Lamebrain asked 19/4, 2013 at 21:51

7

Solved

How to make master pages in php? Like a Layout.cshtml (and RenderBody()) in ASP.NET MVC? Thanks! P.S. Maybe there's a third-party tool for the purpose? EDIT Ok. The thing is not about MVC archi...
Thacher asked 18/5, 2012 at 13:46

3

I have a form which uploads a photo to my database, and I use a view model to aid in this process. View Model: public class GalleryViewModel { //Members: public Gallery _photo { get; set; } p...
Saccharide asked 19/8, 2010 at 22:9

6

Solved

I want to do some client side validation using javascript in ASP.NET page. I tried using <script src="../../../JS/Registration.js" language="javascript" type="text/javascript" /> but its ...
Presentiment asked 3/11, 2009 at 11:41

2

I am using WebForms and I am trying to perform Model Validation inside a Master-Page and for some reason the model is not picking up the values, meaning that after the validation fires if I enter a...
Cinquecento asked 6/6, 2014 at 13:13

7

Solved

I've read through quite a bit of posts/articles on how to do this and I still am not getting the page title set from the content page. My pages render OK except I can't get the title set from the c...
Ulotrichous asked 19/2, 2010 at 0:38

© 2022 - 2024 — McMap. All rights reserved.