?
Solved

problem with page title when using masterpages

Posted on 2011-03-15
4
Medium Priority
?
326 Views
Last Modified: 2013-12-17
Hi.

My masterpage writes empty <title> tags on every page which has reference to the master page.

Does anybody know what is wrong?
I´ve made a very simple test project which can be downloaded here: www.movievizion.dk/upload/titletest.rar

0
Comment
Question by:bongii
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 3

Expert Comment

by:omnimaven
ID: 35137931
In your master page, remove the line:

    <title></title>
0
 
LVL 3

Accepted Solution

by:
omnimaven earned 2000 total points
ID: 35138123
Actually, remove

<title>default</title>

from your Default.aspx page.

If you want to add a title to your page, do it on the first line:

<%@ Page Title="My Page Title" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
0
 

Author Comment

by:bongii
ID: 35138207
Thank you.

Can you explain why the Title is rendered like this in the code:

<head><title>
      test
</title>
</head>

Is it possible to get the title rendered as:
<head>
<title>test</title>
</head>

 Render code
0
 
LVL 3

Expert Comment

by:omnimaven
ID: 35138370
That is just the way the page gets rendered. I don't know if you are going to be able to change that.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question