how to decode?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Asha (Asha_at_discussions.microsoft.com)
Date: 08/03/04


Date: Tue, 3 Aug 2004 02:59:01 -0700

greetings, attach below are javascripts, if you notice there is a keyword called escape which encodes the entire file and pass onto another fill to be decoded.
here are my implementation for javascript to encode and vb.net to decode it. the problem that i'm facing is that it wont decode the value pss in from javascript. although i'm able ot display it, but lots of encoded value. how can i decode this rpoblem?

                <SCRIPT language="JavaScript">

                function btnDownload_onClick()
                {
                document.frmTempateSubmit.hdnDataGridDownload.value = escape(document.all.item("dgDS2Excel").outerHTML);
                document.frmTempateSubmit.target = "_new";
                document.frmTempateSubmit.method = "post";
                document.frmTempateSubmit.action = "SCTemplateSubmission.aspx";
                document.frmTempateSubmit.submit();
                }

                </SCRIPT>

        Dim str As String
        Try
            Str = Request.Form("hdnDataGridDownload")
        Catch ex As Exception
        End Try

        Dim sw As New System.IO.StreamWriter("C:\datt temp\temp.htm", True)
        Dim losf As New LosFormatter

        sw.WriteLine(str)
        sw.WriteLine(System.Web.HttpUtility.HtmlDecode(System.Web.HttpUtility.HtmlDecode(str)))

        sw.Close()



Relevant Pages

  • Re: [PHP] echo text - anti-spam-spider measure
    ... More reliable methods involve using javascript to write out the ... Everybody knows that the spammers *could* decode HEX or even the JS ... evidence is that the obfuscation is very effective at reducing spam ...
    (php.general)
  • Re: Decoding html pages
    ... just one method for javascript: ... (I am not fully understand how it works and it requires a few dummy js files for few javascripts) ... "Gregor Kofler" wrote in message ... it is still possible to decode it. ...
    (comp.lang.javascript)
  • Re: Passing base64 encoded string from C# to javascript
    ... > -I am trying to decode the encoded text to get the orginial text. ... > -the problem is that instead of hebrew characters i see other ... How is decoding made using JavaScript? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: post request + read resulting data
    ... Chris Smith wrote: ... You probably need to decode that and figure ... I think the JavaScript doesn't affect the form. ... A friend of mine asked me to do this for him, ...
    (comp.lang.java.programmer)
  • Re: DVB-H and MPE-FEC
    ... I tried to decode a codeword from the MPEFEC Frame received on the ... Are you receiving an actual DVB-H signal ... But you've already seen that the Schifra library correctly encodes then ... decodes RS codewords, so it is likely that the RS decoder is receiving ...
    (alt.radio.digital)