master-pages Questions
1
Solved
The following is the LogOn user control from a standard default ASP.NET MVC project created by Visual Studio (LogOnUserControl.ascx):
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUser...
Radioactivity asked 27/10, 2010 at 18:47
2
Solved
I'm using strongly typed views and autofac for Dependency Injection under ASP.NET MVC2 and I'm trying to get a common dynamic header via dependency injection. I.e. i want this to happen without the...
Acinaciform asked 26/10, 2010 at 5:50
2
Solved
I am to access a method on my master page. I have an error label which I want to update based on error messages I get from my site.
public string ErrorText
{
get { return this.infoLabel.Text; }
...
Sempiternal asked 25/10, 2010 at 9:38
2
Solved
Ok, I am an experienced web developer but sometimes ASP.Net is tricking me.
I have a master page in asp.net. Then I have a page based on that master page (home.aspx). Now in home.aspx.cs I want to...
Erechtheus asked 29/9, 2010 at 19:28
2
Solved
I have a master page:
<%@ Master Language="C#" AutoEventWireup="true" Codefile="AdminMaster.master.cs" Inherits="AlphaPackSite.MasterPages.AdminMaster" %>
Then I have a public variable:
p...
Tarbes asked 6/9, 2010 at 12:12
1
Solved
I have an asp:UpdatePanel with an asp:Timer. These are in a Master/Content Page. The code is below:
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTe...
Megalocardia asked 19/8, 2010 at 15:36
2
Solved
I have a web page named MyPage.aspx and two master page named Home.master and BlanK.master.
By default MyPage.aspx uses Home.master.But based on some condition I need to change the master page from...
Hennessey asked 4/8, 2010 at 11:35
2
Solved
I am writing an ASP.Net application. I am making use of master page in it. I have several child pages with me, which consist of some java script functions;
Let's say;
function ChildPageFunction...
Myronmyrrh asked 28/7, 2010 at 14:27
4
Solved
I am trying to set a default button in my ASPX page. I have a master page so the form is there. I have a panel in the content page that holds a table that organizes a number of textboxes, dropdowns...
Jarad asked 22/7, 2010 at 20:21
4
Solved
I am new to Code Igniter and I wish to know if there is anything that works like MasterPages do on .NET.
Also i was wondering where should i keep my public files, like scripts, styles and images.
...
Lalia asked 8/7, 2010 at 3:33
3
Solved
I am adding MVC to a project that has MANY legacy webform pages. This works fine. However, I currently have a separate masterpage for MVC and for the webforms. The two master pages produce essentia...
Josephus asked 8/5, 2009 at 19:31
3
Solved
I'm using Master Page in my ASP.net application, in the master page I put a ContentPlaceHolder in Update Panel to support AJAX in child pages, the question is how to stop Refreshing "master page co...
Lotetgaronne asked 21/4, 2010 at 7:46
2
Solved
if i need remove master layout from my view, how can i do it in MVC2?
i tried put code in my view that was shown in documentation http://sparkviewengine.com/documentation/master-layouts: , but it s...
Moxley asked 25/1, 2010 at 11:38
6
Solved
I'm trying to pass ViewData to my asp.net mvc masterpage for an mvc usercontrol that I keep on a masterpage. For example, I created a dropdownlist of names as an mvc usercontrol and I put that in m...
Kibitka asked 31/3, 2009 at 7:27
1
Solved
A page could have an attribute MasterType to make Page.Master to be strong-typed:
<%@ MasterType VirtualPath="~/Site.master" %>
If all my pages inherits specific class inherited System.Web...
Chanson asked 12/2, 2010 at 1:0
1
The docs for @MasterType have this example.
<%@ Page masterPageFile="~/MasterPage.master"%>
<%@ MasterType virtualPath="~/MasterPage.master"%>
Why is @MasterType even needed? Couldn...
Jentoft asked 28/1, 2010 at 14:54
4
Solved
Is it possible with ASP.NET Master Pages to create content pages dynamically?
That is, I know we can create content dynamically, but the content pages themselves, can those be created programmatic...
Jennee asked 22/1, 2010 at 19:41
7
Here is a scenario: Let's say I have site with two controllers responsible for displaying different type of content - Pages and Articles. I need to embed Partial View into my masterpage that will l...
Comestible asked 7/9, 2008 at 21:16
2
Solved
Hai guys,
I want to find a UL control and then find a LI within that UL and assign a css class to that from a content page....
<ul id="mainMenu" runat="server" style="width:350px;">
<li...
Karlis asked 19/11, 2009 at 10:56
5
As described in this post, I created an abstract base controller class in order to be able to pass data from a controller to master.page. In this case, I want to lookup a user in my db, querying fo...
Etui asked 8/1, 2009 at 21:41
5
Solved
I'm building a new website and want to use Ajax controls.
Do I need to put a ScriptManager control on both the MasterPage and on each content page? or Just on the MasterPage?(or just on the conten...
Shulman asked 19/2, 2009 at 21:12
8
Solved
I have this quite popular problem, but have failed to find a solution that works.
Basicly, I am using a Master Page (/Masterpages/Default.master), that includes
<link href="../css/style.css" r...
Gear asked 13/10, 2009 at 11:13
5
Solved
Scenario
I have an application using asp.net Master Pages in which I would like to repeat some content at the top and bottom of a page. Currently i use something like this:
Master Page
<html&...
Perth asked 17/4, 2009 at 13:5
2
Solved
I have a tag in a master page.
I use this master page in many folders. So the src path of the tag should be different for each folder.
Here is my code :
<img src="images/1.gif" />
and I ha...
Limewater asked 1/10, 2009 at 20:53
4
Solved
i have a number of files that i want to have the same "base" layout so i am using the site.master file for this and its working perfectly. but now i want another set of pages with a different "site...
Titus asked 16/8, 2009 at 15:40
© 2022 - 2024 — McMap. All rights reserved.