Escape Javascript???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hash4sp
    New Member
    • Aug 2007
    • 55

    Escape Javascript???

    Hello !

    I have a problem with the escaped charactes which I am sending to an aspx page. This is an escaped (javascript) %u0646%u062A%u0 627%u0626%u062C %20%u0627%u0644 %u062 8%u062D%u062B which i sent to the server side aspx page. But it changes back to the original character ven it reach there.... is there any way to retain the escaped characters untill i send it to the database. I tried using HTTPUtility.url Encode etc.. but it didnt worked for me...

    Will be thankful for ur suggestions...

    Regards
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Why not encode/decode on the server-side?

    Comment

    • hash4sp
      New Member
      • Aug 2007
      • 55

      #3
      Originally posted by acoder
      Why not encode/decode on the server-side?
      hi acoder !

      thanx for ur reply... bt this piece of code worked for me..

      Code:
       aParam = HttpUtility.UrlEncodeUnicode(aParam)
      cheers !

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        I see HttpUtility is some .NET class. Glad you managed to solve your problem.

        Comment

        Working...