NetTalk Central

Author Topic: Adding my session variable to the xhtml  (Read 3043 times)

rayrip

  • Newbie
  • *
  • Posts: 34
    • View Profile
    • Email
Adding my session variable to the xhtml
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Adding my session variable to the xhtml
« Reply #1 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

rayrip

  • Newbie
  • *
  • Posts: 34
    • View Profile
    • Email
Re: Adding my session variable to the xhtml
« Reply #2 on: April 29, 2021, 11:38:00 AM »
Thanks Bruce.. and thanks for the link to the doc.