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 an application which obtains data in JSON format from one of our
I have an application which consists of 2 pages. One of those pages generates
I have a Java web application which stores some data in the session. The
i have one application which is build using VB.NET now i required to add
I have one desktop application which was implemented in C#. This app uploads file
The problem: we have one application that has a portion which is used by
My application is viewbased application in which I have one button. On click of
I have a Java application which requires certain software (one of them being Perl)
I have a one page web application, which means alot of javascript. External scripts
I have a winform application which contains a window resizable but one requirement is

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.