.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

HTML5 & Masterpage CSS

Posted By:      Posted Date: August 29, 2010    Points: 0   Category :ASP.Net
 I'm migrating my site to HTML5 and I got the home page, including the Masterpage, to work in the browsers. The problem is that when I go another page the CSS doesn't work on the page. All I get is a linearized page; any idea why this occuring? thx  

View Complete Post

More Related Resource Links

Parser Error Message: Could not load type MasterPage File



Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'wamsilverlight.Web.Wam'.

Source Error:

Line 1:  <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Wam.master.cs" Inherits="wamsilverlight.Web.Wam" %>
Line 2:  
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Source File: /Wam.Master    Line: 1

Version Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4927


All of the following have been tried over and over again:

1.) Delete all existing .dlls

2.) Delete MasterPage File and recreate it.

3.) Delete MasterPage perform a c

Setting webpage/masterpage background...image?


I want to have the background of my masterpage (the master page for all of my .aspx pages) have a sort of gradient.  I imagine the only way I can do that is with an image.  Or maybe even some other design, but I want to move away from the "solid color" background.

Is the easiest way to do this just to make an image and set that as the background?  What image size should I make it, because some users could possibly have the normal aspect ratio, or maybe a widescreen?  What should I make it like so that it looks good on all computers?

Thanks in advance. :) 

how can i use stylesheet file on pages that derives from masterpage


Hello. i use masterpage on my project. i want to add stylesheet file on pages that derives from masterpage. I add default.aspx page like this:

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<link href="styles/salon.css" rel="s." type="text/css" />

But i can't see design page like this. It gives error like this:
Error 1 Cannot switch views: Validation (Internet Explorer 6): Element 'link' cannot be nested within element 'div'. 

i use IE7. Also how can i use jquery pages that derives from masterpage. Thanks...


SPD message - The URL ../../_catalogs/masterpage is invalid

When I open a page on one of my SP (MOSS 2007) sites using SharePoint Designer I get a pop-up with this error. I click OK and the page seems to load fine... as far as I can tell. These pages are in a publishing site, but aren't under the control of the publishing feature - they are forms for a list.   I've searched around for some info on this error and have found a lot of solutions for masterpage, but nothing for this one specificaly related to SPD. Any thoughts?   Thanks! Brent

Sharepoint 2010 masterpage editing questions

Hi, I have a Sharepoint design which I am trying to customise in SP2010. I can't make a new masterpage but I can copy an existing one. Why? I copied default.master. Do I need to keep any of the existing elements like Site Actions? Because this needs to exist if I choose to edit the site page. But of course for a read only user this won't display (is a shame this gets in the way of the design though). Please advise and provide any other useful tips. Thanks

Masterpage didnt get applied to a particular _Layouts files(application page) for EditUserPref.asp

Master page did nt  get applied to a application page  (_layout file),   but other layout pages have the master page applied. EditUserPref.aspx  ->  Im accessing from search preference - http://i34.tinypic.com/34xi9t5.jpg  

Sharepoint Designer: ErrorMessage in Designview after adding new PlaceHolder to masterpage

Hi! I added a new PlaceHolder to the masterpage of my SharePoint-Site. Now when I switch to DesignView of a page which uses this masterpage in SPD most of the other PlaceHolders are not displayed and show a error message like "Error on creating control. Response is not available in this context". How do I prevent this problem? And what is the cause? Thank you very much for answers! Gerrit

Masterpage + UpdatePanel + Formview + EditItemTemplate = Null controls

I have a content page with a DropDownList in an UpdatePanel, a GridView in another UpdatePanel and a FormView in a 3rd UpdatePanel.  The databind's for the 3 controls happen in the code behind.  The FormView is populated when a row is clicked in the grid.  The Mode of the FormView is contolled by a series of buttons in that UpdatePanel, displayed as appropriate depending on the data in the grid row.  When the FormView is in Insert and the bound textboxes of that template are edited and (partial) posted back, I can retrieve the controls and their values with casts such as: if (Emp_Form.CurrentMode == FormViewMode.Insert) { CheckBox active = (CheckBox)Emp_Form.FindControl("cbActive"); ... But when the FormView is in Edit there aren't and controls during the (partial) post back.  A reference to them such as: if (Emp_Form.CurrentMode == FormViewMode.Edit) { TextBox usrNmTB = (TextBox)Emp_Form.FindControl("UserNmTbx"); sUsr = usrNmTB.Text.ToString(); ... results in a Null object reference exception.  When a button's onclick runat server event fires how should I capture the FormView's controls collection?  Why does it work for the Insert mode and not the Edit mode? Thanks in adva

Access Public Function in MasterPage

Hi,I need help in accessing the function in my masterpage.I have a.master and b.aspx with the content page.Now in the page load of my content page, I want to execute the an sql query which is in a function in my master page.How can I access the function in my master page??code in my master page:public function info () as string'SQL Queryend function

Why can't use 'user.identity.name' in masterpage code behind?

 I tried to use user.identity.name in a master page code behing  but intellisense doesn't recognize it.   If I change Inherits masterpage to inherit page then intellisense accepts it. What's going On?

localization sitemap on MasterPage

Hi Everyone, i am new in localization.I need to create a website in dual language.I plan to put the sitemap and change language dropdownlist in the master page.May anyone advice on how to i change the sitemap language at treeview and Menu on master page?

Cannot access public methods on MasterPage

Hi All, maybe someone can help me with this one. I have a a public method in my code behind on the site.master pagenamespace PROJECT { public partial class Site : System.Web.UI.MasterPage { protected void Page_Load(object sender, EventArgs e) { } public void applyUserRole(string userID) { } } } I  wish to call applyUserRole() from Default.aspx On Default.aspx I have .. <%@ Page Language="C#" MasterPageFile="Site.Master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="Project- Home" %> <%@ MasterType virtualPath="~/Site.master" %> But when I go to Default.aspx.cs and type Master. the method is not appearing. I've seen other post where people are having this issue but I can't find an answer. If anyone has any good pointer and you please let me know, thanks 

Required Side bar for Masterpage

Hi All, Need good sidebar in my application, we are using masterpage concept,Master page should be having header,sidebar. Sidebar contains sidemenus which will display links for other pages need similar kind in ASP.NETPleaase share me if you have any.

WebClasses:Support for WebSockets/HTML5/Comet architecture

Hello ! If I want to communicate with a webbrowser, which implements HTLM5 WebSockets, a lot of things are to make: - have the right http header - make a handshake with the browser - allow me access to the socket In many frameworks thera are attempts/experimental implementaions for such behavior. When will MS/Framework come with this additions?? So currently, I need java or apache/php to make my things going!! Thanks! ++scamb Note:Really a pain:No group dedicated to webdevelopment, what will this imply ??? Event at other places, like Technet oder Server forums, IIS does not exist .... :-(  

Masterpage with header and footer and buttons on header to change between silverlight and asp pages.

Hi, I would like to create a master page with a header and footer. The header contains buttons which call either an ASP page or Silverlight page. I want to be able to select a page and the relevant page is loaded. The problem I am facing is that the footer does not dock to the bottom unless I include a fixed height. Can someone help as to the best way of doing this. I am not sure if I need to use a masterpage for this or just a simple page? The following is my code on the master page:<head runat="server"> <title>Staff Profiles</title> <asp:ContentPlaceHolder ID="head" runat="server"></asp:ContentPlaceHolder> <link href="CSS/mainpage.css" rel="stylesheet" type="text/css" /> </head> <body> <form id="form1" runat="server" > <div id="container"> <div class="mainHeader" align="center"> <table width="920" height="120" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="10" rowspan="2"><img src="images/Header_01.jpg" alt="" width="10" height="120" /></td>

MasterPage DefaultButton

Hello. I need to set the DefaultButton (the one that fires when enter key pressed)  in the code behind of my MasterPage (VS 2010 / C# / Web App). The button is located in a User Control which resides in the MasterPage. I AM able to do this from a child page of the MasterPage (from an earlier post of mine), however, I cannot get it to work in MasterPage code behind...this.BaseMasterPage.Page.Form.DefaultButton = ((LinkButton)this.BaseMasterPage.FindControl("cSearch").FindControl("btnSearch")).UniqueID;Thanks in advance!

Accessing Logged In Users Details from MasterPage

Hi I have designed a navigation structure that is customisable from within my application and linked to the users role. So I can restrict what menu items a user gets based on their role. I have managed to do this quite well using SQL Tables and an ASP.Net Menu. I can get it to only show the menuitems that are marked active and I have created an Stored procedure to get the menu items for a particular role. Where I am struggling is getting the Logged On Users Roleid to pass it to the Stored Procedure. I can get it using a regular aspx page but my menu is on my masterpage and I do not want to have to code it in each and every page. I even tried to do it with a user-control but same happens.  It seems that the User class is just not available when in a masterpage. Anyone know how I can pass the roleid from a Class or something or from the page to the masterpage? Please Help.   Ronnie 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend