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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Passing query strings between multiple ascx contols contained within Master page

Passing query strings between multiple ascx contols contained within Master page

Scheduled Pinned Locked Moved ASP.NET
databasehelpquestion
3 Posts 3 Posters 1 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.
  • S Offline
    S Offline
    Suj_78
    wrote on last edited by
    #1

    Guys, I am having nightmare in figuring out how i can pass the initial search phrase from the seach page to subsequent ascx controls, i can see it appearing on the first ascx control contained in master page, when i load the subsequent ascx control it gets lost, i need to capture the search phrase on first page and keep passing it to as QueryString to other subsequent pages by appending it to the URL of the page. Can anyone help? Thanks

    happy coding!

    J F 2 Replies Last reply
    0
    • S Suj_78

      Guys, I am having nightmare in figuring out how i can pass the initial search phrase from the seach page to subsequent ascx controls, i can see it appearing on the first ascx control contained in master page, when i load the subsequent ascx control it gets lost, i need to capture the search phrase on first page and keep passing it to as QueryString to other subsequent pages by appending it to the URL of the page. Can anyone help? Thanks

      happy coding!

      J Offline
      J Offline
      Jesse Squire
      wrote on last edited by
      #2

      If you are attempting to pass this value around different pages of your application, then you would have to rewrite all urls that the data is relevant to so that they include the query string argument. Unless I misunderstand your intent, what you're actually trying to do is take a value from the query string and treat it as a piece of shared state, across multiple pieces of content in your application. I would recommend that you consider using the ASP.NET Session object, unless your environment makes that prohibitive for some reason. Hope that helps a bit. :)

      --Jesse

      "... the internet's just a big porn library with some useful articles stuck in." - Rob Rodi

      1 Reply Last reply
      0
      • S Suj_78

        Guys, I am having nightmare in figuring out how i can pass the initial search phrase from the seach page to subsequent ascx controls, i can see it appearing on the first ascx control contained in master page, when i load the subsequent ascx control it gets lost, i need to capture the search phrase on first page and keep passing it to as QueryString to other subsequent pages by appending it to the URL of the page. Can anyone help? Thanks

        happy coding!

        F Offline
        F Offline
        farazsk11
        wrote on last edited by
        #3

        make sure that within your application where ever you are redirecting to some other page you url with query string is not overwritten. make sure you are passing the query string parameter as well.

        Faraz Shah Khan MCP, MCAD.Net Blog

        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