loading session variables in page title bar

L

Leon

what my title will not load the user session values on first load, but will
load on page refresh?

code..
*html file..
<HTML>
<HEAD>
<title>
<asp:literal id="Title" runat="server"></asp:literal></title>
<asp:literal id="CSS" runat="server"></asp:literal>
.....

*code behind file..
Protected WithEvents Title As System.Web.UI.WebControls.Literal

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

Me.Title.Text = "Showroom - " & Me.Session("FName") & " " &
Me.Session("LName") & _

" @ " & Me.Session("BPhone")

End Sub

.....

Page Title Results...

Showroom - @
 
T

tom.pesterDeLeTeTHISSS

My guess is that the session wasnt created yet. Dont have a quick solution
though.

Cheers,
Tom Pester
 

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

Top