NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: peterH on April 26, 2020, 08:31:17 AM

Title: Session Variable not displaying when using the Net:s tag (11.35)
Post by: peterH on April 26, 2020, 08:31:17 AM
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
Title: Re: Session Variable not displaying when using the Net:s tag (11.35)
Post by: Jane 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
Title: Re: Session Variable not displaying when using the Net:s tag (11.35)
Post by: peterH 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
Title: Re: Session Variable not displaying when using the Net:s tag (11.35) - RESOLVED
Post by: peterH on April 29, 2020, 05:01:55 AM
Somehow I got my web folder messed-up. All is fine now.

Peter
Title: Re: Session Variable not displaying when using the Net:s tag (11.35)
Post by: Alberto 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?
Title: Re: Session Variable not displaying when using the Net:s tag (11.35)
Post by: Graham 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...
Title: Re: Session Variable not displaying when using the Net:s tag (11.35)
Post by: Graham on April 30, 2020, 01:05:13 AM
Sorry, spoke to soon - that's what quick glances tend to do... :-[
Title: Re: Session Variable not displaying when using the Net:s tag (11.35)
Post by: Bruce on May 02, 2020, 04:14:57 AM
please post an example so I can duplicate and fix.