NetTalk Central

Author Topic: Session Variable not displaying when using the Net:s tag (11.35)  (Read 5660 times)

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
In two newly created web apps I've included a couple of Net:s tags ( <!-- Net:s:mySessionVar --> ) in the PageHeaderTag and IndexPage procedures - just like I've done in many other apps.

The problem is that nothing displays and I know for sure that they hold some value. There's no sign of the tag nor the content in the generated source. Strangely, Net:d:year and Net:f:myFile does work.

Has anyone else seen this and what could be the cause of this?

Peter
NT11.35
« Last Edit: April 26, 2020, 08:33:29 AM by peterH »

Jane

  • Sr. Member
  • ****
  • Posts: 372
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
Re: Session Variable not displaying when using the Net:s tag (11.35)
« Reply #1 on: April 26, 2020, 09:35:26 AM »
Probably not your problem.  But sometimes when I've put XHTML into tags I've written the code and configured the routine name and condition... but neglected to include the Location (Top, Before <body>. etc.).  Without that, the routine gets created but never called.

I've done this more than once... sigh...

Jane

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: Session Variable not displaying when using the Net:s tag (11.35)
« Reply #2 on: April 26, 2020, 11:18:50 AM »
Hi Jane,

Oh yeah, I've been there too  ;)

But not this time, though.

Thanks anyway - and stay safe, especially where you are.
Peter
« Last Edit: April 26, 2020, 11:37:24 AM by peterH »

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Somehow I got my web folder messed-up. All is fine now.

Peter

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Session Variable not displaying when using the Net:s tag (11.35)
« Reply #4 on: April 29, 2020, 12:45:23 PM »
Im having the same problem!
No matter what I the variables, that has value, are not diplayed.
The XHTL are diplayed ok but without any Net:s varieble.
Any idea?
-----------
Regards
Alberto

Graham

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: Session Variable not displaying when using the Net:s tag (11.35)
« Reply #5 on: April 29, 2020, 11:29:54 PM »
A quick glance - seems the code to handle Session Value tags has been commented out in 11.35...?

In Netweb.clw - "_HandleTag" procedure

Bruce will have to chip in on this...

Graham

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: Session Variable not displaying when using the Net:s tag (11.35)
« Reply #6 on: April 30, 2020, 01:05:13 AM »
Sorry, spoke to soon - that's what quick glances tend to do... :-[

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Session Variable not displaying when using the Net:s tag (11.35)
« Reply #7 on: May 02, 2020, 04:14:57 AM »
please post an example so I can duplicate and fix.