Re: generated jscript link and urlencode
- From: "Christoph Wienands" <christoph.wienands@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 5 Oct 2005 11:20:37 -0400
Hey Greg,
"greg" <info@xxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:eSzuz1VyFHA.3720@xxxxxxxxxxxxxxxxxxxxxxx
>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
.
- References:
- generated jscript link and urlencode
- From: greg
- generated jscript link and urlencode
- Prev by Date: Re: Having problem getting private members using reflection.
- Next by Date: Re: how to add a tooltip a the datagrid header?
- Previous by thread: generated jscript link and urlencode
- Next by thread: RE: datalist radio group
- Index(es):
Relevant Pages
|