NetTalk Central
Toggle navigation
Login
Register
×
Welcome,Guest
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
Avoid translation of session var
« previous
next »
Print
Pages: [
1
]
Author
Topic: Avoid translation of session var (Read 3808 times)
Niels Larsen
Sr. Member
Posts: 431
Avoid translation of session var
«
on:
June 12, 2013, 10:49:09 AM »
Hi
Is there a way to avoid <!-- Net:s:xxxxxx --> being translated?
Regards Niels
Logged
Bruce
Global Moderator
Hero Member
Posts: 11251
Re: Avoid translation of session var
«
Reply #1 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?
Logged
Niels Larsen
Sr. Member
Posts: 431
Re: Avoid translation of session var
«
Reply #2 on:
June 12, 2013, 11:02:02 PM »
The encoding....
Logged
Bruce
Global Moderator
Hero Member
Posts: 11251
Re: Avoid translation of session var
«
Reply #3 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"?
Logged
Niels Larsen
Sr. Member
Posts: 431
Re: Avoid translation of session var
«
Reply #4 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.
Logged
Bruce
Global Moderator
Hero Member
Posts: 11251
Re: Avoid translation of session var
«
Reply #5 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
Logged
Niels Larsen
Sr. Member
Posts: 431
Re: Avoid translation of session var
«
Reply #6 on:
June 14, 2013, 12:52:30 PM »
Yes - "X" did the magic.
Thanks!!
Logged
Print
Pages: [
1
]
« previous
next »
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
Avoid translation of session var