passing long string through pages

Results 1 to 3 of 3

Thread: passing long string through pages

  1. #1
    tabsquare Guest

    Default passing long string through pages

    I am trying to pass a long string that may contain the " character and the &#039; character.<BR>Now, I have tried to pass it through pages using hidden fields, but since the string may contain the characters above, when I submit that string again, it will be splitted by these characters. EX:<BR><BR>&#060;input type="hidden" value="sometext sometext " sometext text"&#062;<BR><BR>the value string will be splitted by the middle " character and so only part of the string will be submitted. this is the same for the &#039; character.<BR><BR>How can I resolve this? what is the best method to pass long strings that may contain all kind of characters through pages?<BR>session or application?<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: passing long string through pages

    In the hidden input field make sure you use<BR>Server.HTMLEncode() around you value.<BR><BR>i.e.<BR>&#060;input type="hidden" value="Server.HTMLEncode(your value)"&#062;<BR><BR>that will do the trick :)

  3. #3
    tabsquare Guest

    Default RE: passing long string through pages

    Hi, thanks a lot! <BR>I have made a bit of confusion.....I already knew server.HTMLEncode but my brain wasn&#039;t thinking in the right way.<BR>I thougt I would then have had to un-encode it.<BR>Works great! Thanks a lot

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts