Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 862683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:10:57+00:00 2026-05-15T09:10:57+00:00

I have one application in which I want to pass data between Pages (Views)

  • 0

I have one application in which I want to pass data between Pages (Views) without sessions. Actually I want to apply some settings to all the pages using query string.
For example if my link is like “http://example.com?data=test1“, then I want to append this query string to all the link there after and if there is no query string then normal flow.

I was thinking if there is any way that if we get the query string in any link for the web application then some application level user specific property can be set which can be used for subsequent pages.

Thanks,
Ashwani

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T09:10:57+00:00Added an answer on May 15, 2026 at 9:10 am

    You can get the query string using the

    Request.Url.Query
    

    and on your links to the other page you can send it.

    Here is an idea of how you can find and change your page:

    public abstract class BasePage : System.Web.UI.Page
    {
        protected override void Render(System.Web.UI.HtmlTextWriter writer)    
        {
            System.IO.StringWriter stringWriter = new System.IO.StringWriter();
    
            HtmlTextWriter htmlWriter = new HtmlTextWriter(stringWriter);
    
            // now you render the page on this buffer
            base.Render(htmlWriter);
    
            // get the buffer on a string
            string html = stringWriter.ToString();
    
            // manipulate your string html, and search all your links (hope full find only the links)
            // this is a simple example of replace, THAT PROBABLY not work and need fix         
            html = html.Replace(".aspx", ".aspx?" + Request.Url.Query);
    
            writer.Write(html);
        }
    }
    

    I do not suggest it how ever, and I think that you must find some other way to avoid to manipulate all your links…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one application which uses the standard .NET forms authentication cookie, now I
I have an application which may only have one instance of itself open at
We have an application that generates simulated data for one of our services for
We have one web application (sharepoint) that collects information from disparate sources. We would
I'm writing a structural modeling tool for a civil enginering application. I have one
I have an application with one form in it, and on the Load method
I have dropdown list control in one of my application and when I add
We have an application that has one or more text console windows that all
I have several web application projects in one solution. When I start debugging one
I have a .Net desktop application with a TreeView as one of the UI

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.