content-pages

Can't find ASP.NET master page

I'm trying to get my content page to be able to access an ASP:Literal on a master page. I have my content page as: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="viewProduct.aspx.cs" Inherits="AlphaPackSite.viewProduct" Title="Hi there!" %> <%@ MasterType TypeName="Main" %> Then my master page called Main.master has: <asp...

Changing MasterPage control text from ContentPage but still renders old text

Hey guys/girls I have a HyperLink in my MasterPage and i want to change the text of it from a ContentPage. This is how im doing it: In masterpage i included a public property: public string LinkExampleText { set { linkExample.Text = value; } } At the top of my content page, i added the following directive: <%@ MasterType V...

Viewing CSS Intellisense in partial views and Content pages - Visual Studio 2010?

I am trying to figure out how to get Intellisense for CSS to render when in a partial view or a content page. Of course I don't want it to render a runtime, as the css comes from the masterpage. I found this trick.... <%if (false) {%> <link rel="Stylesheet" href="styles.css"/> <%}%> But is there a better option? ...