Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. get value from url

get value from url

Scheduled Pinned Locked Moved ASP.NET
helpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    ptvce
    wrote on last edited by
    #1

    i can send a value to other form with this code: Response.Redirect("~/Default2.aspx?Mode=" + TextBox1.Text); but i can not get it in default2.aspx. can any body help me?

    S N 2 Replies Last reply
    0
    • P ptvce

      i can send a value to other form with this code: Response.Redirect("~/Default2.aspx?Mode=" + TextBox1.Text); but i can not get it in default2.aspx. can any body help me?

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      You should get values in the second Page This Technique is called passing value in QueryString Make sure that TextBox1.Text is havinf somw value in 2 page use request object to get the value this.Request.QueryString["Mode"] It will return its value

      Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... " Check My Blog

      1 Reply Last reply
      0
      • P ptvce

        i can send a value to other form with this code: Response.Redirect("~/Default2.aspx?Mode=" + TextBox1.Text); but i can not get it in default2.aspx. can any body help me?

        N Offline
        N Offline
        ncsubbu
        wrote on last edited by
        #3

        You are passing the value by request query string.In default2.aspx you should use string str=request.querystring["Mode"];

        your's subbu

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups