SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jun 2013
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to pass any value to one page to another page ?

    Hello friends,
    I make a simple project in Asp.NET. Tell me how i can pass any value one page to another page.

  2. #2
    SitePoint Mentor NightStalker-DNS's Avatar
    Join Date
    Jul 2004
    Location
    Cape Town, South Africa
    Posts
    2,873
    Mentioned
    44 Post(s)
    Tagged
    0 Thread(s)
    With a querystring just like you would any language. GET or POST methods

  3. #3
    SitePoint Member
    Join Date
    Jun 2013
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I use master page than where i use get or post method because which page i want to use access the value not have form so i can't able to use get or post method.

  4. #4
    Community Advisor ULTiMATE's Avatar
    Join Date
    Aug 2003
    Location
    Bristol, United Kingdom
    Posts
    2,160
    Mentioned
    46 Post(s)
    Tagged
    0 Thread(s)
    Another method would be to save that value as a session variable. Grab the value using your C# code, write the value to a session variable, then handle it on your next page and rewrite the variable to be empty and to immediately expire.

  5. #5
    SitePoint Member
    Join Date
    Dec 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Last edited by TechnoBear; Dec 26, 2013 at 09:09. Reason: Please wait 90 days for a real signature


Tags for this Thread

Bookmarks

Posting Permissions

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