NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: rayrip on April 28, 2021, 01:39:14 PM

Title: Adding my session variable to the xhtml
Post by: rayrip on April 28, 2021, 01:39:14 PM
I'm in the PageHeaderTag When logged in. The XHTML that is in there already is

<div class="nt-left nt-site-header-logo"></div><h1>WebWrench - User: </h1>
This works.

However, my username is stored in  p_web.GetSessionValue('User') and I'm trying to figure the correct syntax to add it, or what I'm supposed to do.

I want something like: <div class="nt-left nt-site-header-logo"></div><h1>WebWrench - User: & p_web.GetSessionValue('User') & </h1>

Which I know is wrong...

TIA

Ray
Title: Re: Adding my session variable to the xhtml
Post by: Bruce on April 29, 2021, 12:43:33 AM
<div class="nt-left nt-site-header-logo"></div><h1>WebWrench - User: <!-- Net:s:user --></h1>

see https://www.capesoft.com/docs/NetTalk12/NetTalkWebBasic.htm#Tags
Title: Re: Adding my session variable to the xhtml
Post by: rayrip on April 29, 2021, 11:38:00 AM
Thanks Bruce.. and thanks for the link to the doc.