|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
loading session variables in page title barload 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 - @ 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 - @ >
Other interesting topics
No two-way databinding
javascript datagrid events inside item template container.dataitem cast throws exception if(blah) alert box else somethinge useful code continues after stop debugging How to Stop a Function? datagrid - do not refresh the contents in the grid Exception has been thrown by the target of an invocation....what is this? asp.net button handler PostBack after AddHandler |
|||||||||||||||||||||||