NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Niels Larsen on June 12, 2013, 10:49:09 AM

Title: Avoid translation of session var
Post by: Niels Larsen on June 12, 2013, 10:49:09 AM
Hi

Is there a way to avoid <!-- Net:s:xxxxxx --> being translated?

Regards Niels
Title: Re: Avoid translation of session var
Post by: Bruce on June 12, 2013, 10:21:18 PM
is it specifically the language translation you are suppressing, or is it the encoding etc you are trying to suppress?
Title: Re: Avoid translation of session var
Post by: Niels Larsen on June 12, 2013, 11:02:02 PM
The encoding....
Title: Re: Avoid translation of session var
Post by: Bruce on June 12, 2013, 11:19:46 PM
tell me more - why do you want to suppress the encoding? You understand if the encoding is not right then stuff gets "broken"?
Title: Re: Avoid translation of session var
Post by: Niels Larsen on June 14, 2013, 01:56:21 AM
I have an app that uses multiple databases from different companies. Therefore I need to generate different headers.
The easiest way is to insert xhtml code, from a table, into a session variable.
But if it is not easy to do I just do it myself in embeded code.
Title: Re: Avoid translation of session var
Post by: Bruce on June 14, 2013, 02:40:11 AM
Hi Neils,

try this - I think it'll work, but I haven't tested;

<!-- Net:x:SessionVariableName -->

instead of

<!-- Net:s:SessionVariableName -->

It stills goes through the .Translate method, but with the HTML parameter set.


Cheers
Bruce
Title: Re: Avoid translation of session var
Post by: Niels Larsen on June 14, 2013, 12:52:30 PM
Yes - "X" did the magic.

Thanks!!