0
голосов
3ответов
303 просмотров

How to access the current [web] page (outside of the current page)?

The situation is this: I have an abstract class used globally that used to reference a Session variable via a public property. We now want to change its behavior to return a property on a master page. (By simply changing the guts of this particular property, we hope to avoid doing a lot of r...

0
голосов
1ответов
693 просмотров

Asp.Net Menu Highlighting

I try to figure out what's the best strategy to manage a menu in Asp.Net and highlight the "active" menu-item. That's have to be done in the MasterPage but it's the Page that know what menu-item to highlight.

1
голосов
1ответов
407 просмотров

Sharing App_Code and master pages with nested ASP.NET applications

Is it possible to share the App_Code directory and master pages with a nested application? I have a third-party newsletter application installed in my web app and I want it to share the same look and feel as the "parent" application. When I try, though, I get an error saying that the child appl...

1
голосов
1ответов
2034 просмотров

Why can't I override the default master page content in a SharePoint publishing page?

So I've setup a site collection using the Publishing Portal template and stubbed out a prototype site structure including three tiers. At the second tier I've created a Publishing site and developed a custom master page for the site and its third tier children. The problem is that the banner gr...

4
голосов
2ответов
4573 просмотров

How to change the Master Page dynamically

I want to assign one master page dynamically for a pure aspx file, Anybody can tell me, how to do this?

2
голосов
3ответов
1776 просмотров

Using LightBox in ASP.NET master pages

I am using LightBox v2.0.4 with master pages on a web site and am having problems with the loading.gif and closelabel.gif images appearing. I have content pages residing in folders that are 3 layers in from the root, their master page is 2 layers in from root, images in question are in ~/images/,...

4
голосов
3ответов
3749 просмотров

ASP.NET MVC getting last modified date/FileInfo of View

I'm required to include the last modified date on every page of my applications at work. I used to do this by including a reference to at the bottom of my WebForms master page which would return the last modified date of the current .aspx page. My code would even check the associated .aspx.cs fi...

0
голосов
3ответов
705 просмотров

Permissions in ASP.Net Master Page

I'm using Master page in my website. When the user logged in, the ASP menu button of the master page should be enabled or disabled according to the user permission. How can I do this?

2
голосов
2ответов
998 просмотров

ASP.NET MVC - pull and populate masterpage contents from database?

how can I pull masterpage content from the database and pass that into the masterpage so that my Views inherits from it? This is an example: Clients to the website will have a unique code, lets call it "TargetCode", for example, ABC123, ABC456, etc... This unique code will be entered in the quer...

2
голосов
5ответов
8311 просмотров

ASP.Net, Master Pages : style-sheet per page

Those are my assumptions, are these correct? Layout using CSS is preferred over using tables. CSS ishould be extracted in a separate file, rather than in-lined. CSS are imported (linked) from that is located in the site.master, therefore all .css are imported for (and apply to) all .asp...

0
голосов
1ответов
410 просмотров

Proper Usage of Forms within Master Pages and Content Pages

I am currently trying to make my existing ASP.NET WebForms application use a Site.Master template. Creating the Site.Master template wasn't really a problem as it works like a charm. The problem starts with deriving from it and putting controls in the given ContentPlaceHolder's. At runtime I ...

5
голосов
2ответов
12367 просмотров

Relative Path in master page for img tag

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 have a folder named "images" and a folder named "Users". Master Page is in the root, but I use it in...

57
голосов
3ответов
59363 просмотров

jquery: find element whose id has a particular pattern

I am trying to find a span element who has an id in a particular pattern. Its main use is to find certain elements rendered by an asp.net (aspx) page which is derived from a master page.

0
голосов
2ответов
1338 просмотров

Why do my ASP.NET Master pages dont compile in content pages?

I'm writing my first ASP.NET web application containing Master Pages. However, even though I seem to use them by the book, when running the project the Master Pages don't seem to work. I have created a Default.MasterPage lite this: <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="...

0
голосов
7ответов
345 просмотров

Simple jQuery works in HTML, not ASP.NET

jQuery noob here, trying to produce alternating row background colors. This works in HTML: <script type="text/javascript"> $(document).ready(function() { $('.stripedtable tr:even td').addClass(" evenrow"); alert("Just executed stripedtable...

1
голосов
1ответов
2622 просмотров

The control with ID 'SomeControlId' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it (but it does)

ASP.NET AJAX scriptmanager problem: I get a Yellow Screen of Death with: The control with ID 'SomeControlId' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it. BUT - there is a scriptmanager on the page, and it does work on the dev box (t...

0
голосов
3ответов
850 просмотров

How can I read what the destination URL is when a redirect is requested?

I am using a MasterPage with a dynamic menu bar across the page. If the user has requested a redirect back to the login (home) page, I don't want to log them out but I do want to hide the menu bar. Currently I am using whether the user is authenticated to control if the menu bar is visible or no...

1
голосов
2ответов
2351 просмотров

Proper way to hide place holders in a SharePoint 2007 Master Page?

I am working on a specialized instance of MOSS for a client where What I am wanting to do is hide elements on the master page. In particular, I want to hide the main top navigation bar, the search functionality and the label that shows up in the upper-left-hand corner that tells you the name of t...

0
голосов
2ответов
4073 просмотров

ASP.NET 2.0 Session & Master Page

In my MasterPage I am setting a session variable to some value, that I got from the database. The value is shown on the footer of every page, that's why it is in the MasterPage. protected void Page_Load(object sender, EventArgs e) { Session["TODAY"] = value_from_DB; } Later on, I w...

0
голосов
3ответов
2404 просмотров

when page loads. focus should be on first control

I have a login page. Whenever the page loads, the cursor should blink in the first textbox only that is for entering a userid. I've written javascript like this, but I am using Master Pages now. this is my script: function fcus(x) { x.focus(); } <asp:TextBox id="textbox1" onload="javasc...

0
голосов
1ответов
151 просмотров

Radcontrol using MVC master page

I cannot use RadMenu Control in master page with MVC pattern (MVC Framework 3.5)? How can I do it?

1
голосов
3ответов
1003 просмотров

Embedded code blocks in masterpage and page

Well I'm some what baffled! 'Simple problem' I have parts of my master page that I want to render differently depending on whether or not a ContentPlaceHolder is empty. So: I have a master page that as some code like: <% if (ContentPlaceHolder1.HasControls()) {%> <div id="Little...

0
голосов
2ответов
7775 просмотров

Problem using form runat=server with master pages?

I have a master page with two ContentPlaceHolders. I have a default page.aspx which uses this master page. In the default page one ContentHolder has a TreeView and the other has a GridView. Now i need to display both of them together and both require <form runat="server">. But the issue...

0
голосов
1ответов
1932 просмотров

Master Pages in DotNetNuke

I want to create a master page for my dotnetnuke web application, can u give me guide lines for how to create master page and how to register into dotnetnuke.

1
голосов
3ответов
709 просмотров

Why a <a href="~/#link"> when run become </a><a href="#link#link"> in a master page?</a>

I never saw that problem and I have no idea what is causing it. I got something like this code in my masterpage &lt;div class="myClass1"&gt; &lt;a href="~/#link" runat="server" title=" &lt;%$ Resources: myRess1 %&gt;"&gt; &lt;asp:Literal runat="server" Text="&lt;%$ Resources: myRess...

0
голосов
3ответов
1789 просмотров

How to call a method of an user control from a page in asp.net 2.0?

I have a usercontrol used in a masterpage. I have added a page with the masterpage. Now I need to call a method of the user control from the page. How to do this? Please help.

0
голосов
3ответов
1657 просмотров

What is the base class of master page &amp; User Control in asp.net c#?

What is the base class of master page &amp; User Control in asp.net c#?

0
голосов
1ответов
1601 просмотров

ASP.NET User control on a master page renders behind my main content when viewed in IE7

I have a user control in my master page. When it is viewed in IE7 (or IE8 Compatibility mode), it renders behind the page content from the ContentPlaceHolders. I tried manually setting the z-index of every element in sight, and none of it will put the control in front. Has anyone else encounte...

6
голосов
5ответов
17893 просмотров

ASP.NET: Call function in MasterPage through UserControl

Calling a function from the MasterPage in a Page is quite straigt forward but how do I call it for a UserControl: Adding &lt;%@ MasterType VirtualPath="~/MasterPage.master" %&gt;, doesn't work on UserControls. So this.Page.Master.MyFunction() fails :(

2
голосов
4ответов
548 просмотров

Compiler Errors on Master Page

Does anybody have advice on moving a master page from one solution / application to another? I have copied a master page from an existing solution to a new one. The original solution builds and runs fine. In the new solution the page causes build errors These are primarily 'variable' not decl...