2.0 Personal Web Site Login Name

C

Cindy Lee

Sorry I'm new, this must be easy, but how do you add the log in name to
the title of the web page? (This is using the Microsoft Personal Web
page starter kit), the top of the page is listed below. Is there a tag
I need for the "Your Name Here | Home" part?

Or maybe the "Your name" is supposed to be my web page and not the user
name. Is it then possible to put a variable in there?

<%@ Page Language="C#" MasterPageFile="~/Default.master" Title="Your
Name Here | Home"
CodeFile="Default1.aspx.cs" Inherits="Default1_aspx" %>
 
T

Trevor Braun

Try the following in the page load:
Page.Title = "My Title" to hard-set the title

In the Personal Web page starter kit, it looks there may be properties right
in the Master file. If that's the case then add the following to your page
markup, just below
<%@Page...%>
<%@ MasterType VirtualPath="~/Default.master" %>
and on your page load code, look in the Intellisense for something like
Master.MyName

HTH
Trevor Braun
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top