Click here to Skip to main content
13,052,033 members (37,540 online)
Rate this:
Please Sign up or sign in to vote.
See more:
If I run my project, in the browser tab, I could see the name appearing as 'Untitled Page'.
How to make my project name to appear at browser tab instead of that 'untitled page'.
Posted 3-May-14 23:36pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Add something between <title> and </title> in the header of your web page!
I did like this in my master page:
<head runat="server">
- no effect
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

As you have used Master Page, the Solution #1 won't work.
You need to give the title on every content page.

See the very first line of your content page.
<![CDATA[<%@ Page Title= "About" Language="C#" MasterPageFile="" %>]]>

Kornfeld Eliyahu Peter 4-May-14 6:07am
It's true that my solution won't work for master-page (as there is no title tag in content page), but there is no need to declare @Page Title on every page! If OP leaves @Page Title empty (as it is by default) the page will be displayed with master-page's title...

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="WebApplication1.Site" %>
<!DOCTYPE html>
<html xmlns="">
<head runat="server">

--- and ---

<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master"

This case will display 'Master' as the title of the content page...(You can remove totally the Title attribute also)
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

In ASP.Net MVC set the Viewbag.Title.
     ViewBag.Title = "Page";

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 4 May 2014
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100