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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:33:32+00:00 2026-05-31T04:33:32+00:00

Lets say I have three webpages – one for big cars, one for middle

  • 0

Lets say I have three webpages – one for big cars, one for middle sized cars, and one for little cars.

Each page is almost identical and consists of a form where you can select to filter a list of cars by colour etc and a submit button. On the client side the only difference is the title.

On the server side the only difference is in the where clause, for example:

... where car_type = "big" and color = %s, Response.Form['color']

But how can I save myself creating three different asp scripts for each page? How do I pass around which car_type I have?

I was thinking maybe by using a query string, but the query string data will be lost when the user presses the submit button.

Thanks,

Barry

  • 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-31T04:33:34+00:00Added an answer on May 31, 2026 at 4:33 am

    You’ve found one solution yourself. Might not be the best one, though. When programming you always want to minimize redundancy, to avoid code duplication, because it’ll invariably become a maintenance hassle, if not nightmare. So you really want to avoid creating three identical pages with just a tiny parameter difference.

    Why don’t you simply create one single page containing a select menu for the type of vehicle to search for? You could attach an onselect handler using Javascript to that menu which would reload the page if that’s necessary. (And it might not even be.) In some menu, you could have links pointing to this page (search.asp or whatever) containing the vehicle type like this:

    • search.asp?type=L
    • search.asp?type=M
    • search.asp?type=S

    Just an idea. Toy around with the code and that way you’ll learn a lot. ASP is an old technology but I think a very good one for learning web applications. Do read the docs to learn about the facilities it affords you to avoid duplicating code. Here’s a collection of things I found useful.

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

Sidebar

Related Questions

Lets say I have one row with three columns - some buttons on left
I have three tables, we'll call them table1, table2, and table3. Lets say each
Lets say I have random $variable and three arrays: $array1 = (one, two, three);
I'm planning to try contours on some image. Lets say I have three object
Lets say that I have three tables, customers, orders and orderDetails. I'm doing this:
Lets just say that I have three textboxes: TextBox1, TextBox2, TextBox3. Normally if I
Lets say I have a test class called ServiceTest with three test methods test1,
Let's say I have the following xml: <one> <two> <three> <three> foo </three> <four
Lets say I have three models/tables: operating_systems , words , and programming_languages : #
Lets say I have three django model classes - lets call them A, B

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.