Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • How Do I Delete My Account? 68 posts 433 karma points
    Jul 22, 2015 @ 22:01
    How Do I Delete My Account?
    0

    Pass information from one page to another

    Hi again!

    I've a question considering passing information from one page to another. I'm sure there's several ways and I'm open for all of them.

    I've heard of passing parameters to the controllers, URL-paremeters, cookies/local storage and even though I know how to do it with cookies/local storage - I would like to do it with the backend.

    Thx for the help

  • How Do I Delete My Account? 68 posts 433 karma points
    Jul 25, 2015 @ 12:51
    How Do I Delete My Account?
    101

    I found the answer myself.

    I can simply link to "www.website.com/page" and add "?id=123" to the end of the URL for a total: "www.website.com/page?id=123" where 123 is the ID and should be dynamic.

    So thats how to set the url parameter. To get the value of the parameter (in this case the parameter "id" has the value "123") simply use this code: string ID = Request.QueryString["id"];. Now ID has the value of the query parameter "id" - in this case "123" and you can use it however you want in your code :)

Please Sign in or register to post replies

Write your reply to:

Draft