master-pages

VS2008 Complains about css class names it should know about

I've seen this in a webcast somewhere, but I can't remember where, and all searching terms I'm trying are coming up unhelpful. I've got a stylesheet for my site, and it's referenced in a master page. Child pages that use this master page use these styles, but .Net doesn't know about them. When the site is run, it all works great, bu...

AJAX binds jquery events multiple times

Hi... I have a masterpage setup, with a pageLoad in the topmost masterpage, which calls pageLoad2 for nested masterpages which calls pageLoad3 for content pages. In my content page I have a jquery click event and in my nested masterpage I have a web user control. Whenever I use the user control in the nested masterpage, it rebinds the...

Using C# FindControl to find a user-control in the master page

So all I want to do is simply find a user control I load based on a drop down selection. I have the user control added but now I'm trying to find the control so I can access a couple properties off of it and I can't find the control for the life of me. I'm actually doing all of this in the master page and there is no code in the default....

Difference between Master Page and MVC View Master page

Please check below screen shot. What is main difference between Master Page and MVC View Master page. When I should use Master page and when I should use MVC View Master page. Thanks. ...

asp.net masterpage - make hyperlink visible at runtime

Hi Is it possible to alter the visible property of hyperlinks on a masterpage at runtime? thanks ...

MVC Page not showing up, 404 not found

I have a very simple MVC site that is returning a 404 not found error when trying to load a page at the very beginning. I'm looking for some direction to troubleshoot this problem since there is really nothing to go on from the error message. UPDATE: The problem appears to have been cause by me setting the start page by right-clicking ...

ResolveUrl Problem in Master Page

Okay, I know it is weird but when I put this code between <head runat="server"></head> in master.page, this is how it renders into: <link id="ctl00_Link1" rel="shortcut icon" href="../%3C%25%20ResolveUrl(%22~/Resources/Pictures/Shared/Misc/favicon.ico%22);%20%25%3E" type="image/x-icon" /> It doesn't see something asp.net needs to ta...

Pass data to Master Page with ASP.NET MVC

I have a hybrid ASP.NET WebForms/MVC project. In my Master Page, I have a "menu" User Control and a "footer" User Control. Anyways. I need to pass some data (2 strings) to my "menu" User Control on my Master Page (to select the current tab in my menu navigation, etc.) My views are strongly-typed to my data model. How can I push data...

How to get image info from css into MasterPage'gridview?

i try to givee style via GridView.css into Masterpage my masterpage includes 3 pages also 3 pages sources has GridView. i added head tags css file: <link type="text/css" href="../CSS/GridView.css" rel="stylesheet" /> also give property my GridVew source: <asp:GridView ID="gwRehber" runat="server" AutoGenerateColumns="false" CssClass...

RenderPartial from master page failing

I have a call to RenderPartial() from a master page that's returning empty on a remote server. Works fine on the local dev server. Any thoughts? ...

ASP.NET Content Web Form - content from placeholder disappears

I'm attempting to set a class on the body tag in my asp.net site which uses a master page and content web forms. I simply want to be able to do this by adding a bodycssclass property (see below) to the content web form page directive. It works through the solution below but when i attempt to view Default.aspx the Content1 control loses ...

Strange exceptions using FindControl after implementing master pages

Nevermind! Wish there was a delete button. ...

Applying css media=print not working with MasterPages after pagebreaks

Hi, I´m using a css media=print file in a Page that is using a MasterPage. I put some pagebreaks like this in certain parts of the html code: <h1 style="page-break-before: always; height: 0px; line-height: 0px;"> This works perfectly in the first page, meaning that the styles are applied correctly, but after the pagebreaks, the css is...

CSS and control name mangling in content pages

I have a simple website with a master-page. To set properties to elements on a content page (such as Textbox) I use CSS. In designer it works well but when I launch a site a style isn't apllied to controls. The reason is simple. To say, I have a TextBox with id="TextBox1" in content page, it is placed in ContentPlaceHolder1. In CSS file ...

Spark engine without master page

I use application.spark file for master page In my app i have login page that does not need master page I tried remove master page from my login page using this tag , but it continue to use application.spark I can fix it by adding new master page in layout folder with name blank.spark file without any code and in my login page put this...

Refresh a control on the master page after postback

Hi all! What i am trying to do here is to show a couple of validation messages in form of a bulletlist, so i have a Div on my master page containing a asp:bulletlist. Like this: <div> <asp:BulletedList ID="blstValidationErrorMessage" runat="server" BulletStyle="Disc"> </asp:BulletedList> ...

master page images not showing on child pages

Hi this is probably something really simple but I cant see what! Any images I have in a masterpage aint showing in child pages, all i get is the box with the red cross in it. Dont think Ive done anything different from usual and its not something thats happened in other sites so im kinda scratchin my head with it. Any ideas appreciated!...

Changing elements in master page from content page in vb.net

i have a page called a1.aspx, with the Masterpagefile = a1_master.master. Now the master page has its own divs and images for design purposes. I want a way where when i load a1.aspx, certain chosen 's and images should be hidden (visible=false). how can i do this? how can i change the visibility of a div or an image in the master page f...

Can I make controls defined in my markup public instead of protected

Say I have a web site with a master page and an aspx page. In my ASPX page, I am pointing to my masterpage with the MasterType tag. <%@ MasterType VirtualPath="~/mymasterpage.master" %> Say, I've defined a label in the markup of my master page. If you look at the designer code, this label should be something like this. protected gl...

Marker cant show in google map in master page

hi everyone, i now implement a google map in master page. every things go fine. the map can show. but the problem is the marker. i have add marker in the map, but the places should have marker replaced by a white box, not the normal marker icon. anyone know what happen? i tried in normal aspx page, it can show the marker. this is ...