Home All Groups Group Topic Archive Search About

loading session variables in page title bar

Author
9 Jun 2005 9:46 PM
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 - @

Author
9 Jun 2005 11:09 PM
tom.pesterDeLeTeTHISSS
My guess is that the session wasnt created yet. Dont have a quick solution
though.

Cheers,
Tom Pester

Show quoteHide quote
> 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 - @
>

Bookmark and Share