Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Passing a string between asp.net pages

  • 18-06-2007 09:44AM
    #1
    Registered Users, Registered Users 2 Posts: 8,643 ✭✭✭


    I have the following value that is required to be passed onto the next asp.net page

    eJy1V1mTokwW/SsVNY9GN7tKB+UXySpooogg+saSbCKIoCy/flCrq2tq6uGbmRhfhBN3OzfPzSS5v9pT9nJDlyop8rdX4if++oJyvwiSPHp7tbbyj+nrXzNuG18QEk3kXy9oxkFUVW6EXpLg7XU6JigqdAkioEKaCXyPCSiG8mhEESzyKfQ649Zgg6qHMcGQE2aMD9h7xtmQ8CfJYb9fh9AXP3bzesa5fsmr+oxmSQJnOez9lTuhiyrOCIIkKYqmGWY8nkymHPaEOeyP//p6f6qGctskmEn0ZesV2koZCTe7E48LHe5sOw+1ffXGYXcLLnBrNCNxfIKPiekLzv6i2F8MzmEPnDvfw4FTcR1iEyRFMxz2GeKGzlyGxnUz9l7OxxuH2nORo8FiYPnxzGF/qju7+Qz/9CMGbkPsAeW2zoyrk9Pnqqa/aPYXMfTjgXNV7dbXarbnsPcnzndvtxkAQBBMcx7ndi4I0EEqUsDzN7B9mHDIT2b4wOL+//ACWVRckjo+3Uv9V4DD7qVgj4WccWYS5UOyC3oZtJNXb69xXZ9/YVjTND8b6mdxibChYBzDWWwwCKok+sfr0wsFah4W/5Gb4OZFnvhulvRuPUgEojougpeP2r4Ls93cIxHYRhJ+DKF++ASd/7gjOEUwQ0zs+6CfmP2dLF+LvVTujyp2iXuCL4Fm3AaF6K4I9GJt1LfXf/yZBDGJUFX/Nwl/J/sc4Xc8282uaGYFmnme0Ls69dLVirYmfKBWXgBN6q6Dz5Yc9lHhe/nPtfrUk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zffKfQSq9lA==

    I have tried to use the Server.HtmlEncode with no joy.

    As I am sure the some of the charcaters are causing the problem.

    Can anyone off some advice please.

    Thanks


Comments

  • Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭Evil Phil


    How are you passing it onto the next page?


  • Registered Users, Registered Users 2 Posts: 8,643 ✭✭✭Trampas


    Sticking it into the URL.

    I tried HttpUtility.UrlEncode and seem to encode but the error I am getting is that the server can't be found.
    
    http://machinename/folder/PageName.aspx?Param=" & strString
    
    

    I am using the page for a redirection onto my machine so can development on my machine and not the dev server.

    I have tried to post it in the body of the form
    
    <form id="form1" runat="server" method="post">
        <div>
            <input type="hidden" name="hidPaRes" runat="server" value="HelloWorld" />
        </div>
        </form>
    
    
    Dim paRes As String = Request.Form("hidPaRes")
    
    

    and I am getting noting back.

    The Request.Form is running on my machine and the html is on another server but that shouldn't be a problem


  • Registered Users, Registered Users 2 Posts: 8,643 ✭✭✭Trampas


    Got it working


  • Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭Evil Phil


    What did you do?


  • Registered Users, Registered Users 2 Posts: 8,643 ✭✭✭Trampas


    I did was remove the runat="server" from the form and auto submit the form with javascript


  • Advertisement
Advertisement