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 7566825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:30:40+00:00 2026-05-30T14:30:40+00:00

I have two pages, let’s call them receipts.com and business.receipts.com. Both link to a

  • 0

I have two pages, let’s call them “receipts.com” and “business.receipts.com”. Both link to a page on a different domain via Response.Redirect(“http://receipts2.com/default.aspx?mode=”)
where the “mode”-parameter is the referring page.

The recieving page should look in the query string, and choose a different CSS class according to the “mode”-parameter.

How is this accomplished? And is this the right way to do it?

  • 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-30T14:30:41+00:00Added an answer on May 30, 2026 at 2:30 pm

    Instead of swapping class names you can use the same class and different stylesheets.
    There are two ways to handle stylesheets: client side and server side.

    On the client side, you can parse the query string and disable stylesheets using: (document.getElementsByTagName("link")[i]).disabled = true;

    On the server side, you can use themes or simply add a placeholder around the style declarations and show/hide them using codebehind that looks at Response.QueryString["mode"]:

    <asp:PlaceHolder ID="placeHolder1" runat="server" Visible="false">
       <link rel="stylesheet" href="/alternate.css" media="all" />
    </asp:PlaceHolder>
    

    and code behind in a master page somewhere:

    if(Response.QueryString["mode"] == "blah")
    {
      placeHolder1.Visible = true;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two websites: http://example.com http://example.com/sub I have a page, let's say: http://example.com/sub/page1 Is
I now have two asp.net pages. When I click on a link on page
I have three pages on my site. Let's call them home, page2, and page3.
Let suppose i have two html pages p1 & p2 and it uses different
I have two special users on my site. Let's call them user1 and user2.
Let's say we have two flash objects on the same html page. I want
I have two pages, on the first page after an event happens I change
I have two pages that inherit from one master page, First.aspx or second.aspx. Navigation
I have two pages one is the main page and the another one is
Let's say that I have two html pages that are identically designed, but have

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.