473,406 Members | 2,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

generated jscript link and urlencode

I know this is more JS problem but this newsgroup is my home!!! :)

in my page i have something like
link.NavigateUrl="javascript:window('some url?tkt=yyy%2kjh')

now contents of tkt is encrypted (in c#) userid
after encryption of course I urlencode

now when the new browser window (after clicking that link) pops up
I see that somehow in the process of cicking off new window
Javascript urldecoded the contents of tkt parameter like instead of %20
putting some slashes etc etc
of course decryption does not work with bad url

What to do?
when I move mouse on the origibal page over that link I see everything is in
order like all
%20s etc are in place
It happens after clicking

Thanks
GSL
Nov 19 '05 #1
1 1068
Hey Greg,

"greg" <in**@ebsdevelopmentNOSPAM.com> wrote in message
news:eS**************@TK2MSFTNGP14.phx.gbl...
I know this is more JS problem but this newsgroup is my home!!! :)

in my page i have something like
link.NavigateUrl="javascript:window('some url?tkt=yyy%2kjh')

now contents of tkt is encrypted (in c#) userid
after encryption of course I urlencode

now when the new browser window (after clicking that link) pops up
I see that somehow in the process of cicking off new window
Javascript urldecoded the contents of tkt parameter like instead of %20
putting some slashes etc etc
of course decryption does not work with bad url


I just had the same problem. My solution was to convert the encrypted byte
array to hex digits. In your case you'd end up with something like 'some
url?tkt=A2190D5C83'.

Christoph
Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Pjotr Wedersteers | last post by:
Hello again, I have now several consecutive forms in my site which nicely pass variables in POST, so they won't show up in the header. Now I have a page people reach after submitting all kinds...
1
by: TopDawg044 | last post by:
I continue to lose Javascript functionality in any browser I use under WinXPPro...(IE6, Moz 1.4, NS 7.1...)it is now at the point where I'm unable to access my school sites which use jscript and...
14
by: John Bentley | last post by:
Note this is crossposted to comp.lang.javacript and microsoft.public.dotnet.scripting. After some Googling and FAQing my understanding of these terms is, crudely: Javascript (3 different...
1
by: Jim | last post by:
Hello, I'm trying to do urllib.urlencode() with unicode correctly, and I wonder if some kind person could set me straight? My understanding is that I am supposed to be able to urlencode...
1
by: Harry Keck | last post by:
Is there a set of methods in the .Net framework that do the same thing as the jscript functions escape and unescape? I get very close with HttpUtility.UrlEncodeUnicode, but it puts "+" for...
4
by: ree32 | last post by:
I am having problems displaying links with # in the filenames. When it is clicked it doesn't show. I have tried converting the # to %23 and still no luck. Tried server.urlEncode and still no...
2
by: Kuldeep | last post by:
Framework: Visual Studio 2005 Technology: ASP.NET 2.0 Language: C#.NET 2.0 Hi All, I have an in-built tool to generate PDF Reports. Once a PDF Report is generated, I have provided an option...
1
by: mister-Ed | last post by:
I am displaying subcategories in my datalist, and now I have a bizarre thing happen when I add a new subcategory record in my sql database, the new subcategory link does not click into the next...
3
by: suganya | last post by:
Hi Some professionals already has developed the project using menu. In my company, they have given me task to clear the error in that. It is a script file named as "menubarAPI4.js" which is kept...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.