Rush.2707
Rush.2707

Reputation: 683

page title gets always null

I am stuck with such an issue. I have written a whole code which is necessary to get that page title. like writing the line

<title>@ViewBag.Title - My ASP.NET Application</title>

but this line do works only on my login page and not any other page. at all other pages the title comes once but gets cleared as soon as whole page gets loaded. i am not getting any JS which is stopping the title to come. I don't know which other information i should give to you. Please ask me what more thing i should give you

Upvotes: 0

Views: 445

Answers (1)

prtdomingo
prtdomingo

Reputation: 981

Make sure you always declare ViewBag.Title = "PAGE_TITLE"; in each of your Action method per Controller

Upvotes: 2

Related Questions