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

  • Home
  • SEARCH
  • 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 3757640
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T10:02:17+00:00 2026-05-19T10:02:17+00:00

I have an ASP.NET website in which I have to perform a certain operation.

  • 0

I have an ASP.NET website in which I have to perform a certain operation. I have to displaying the ID’s from the DB on menu.aspx page in this format {1:2:3:4}. The above format is not a problem and can be just be written with

Response.Write("{");
for.. loop(until last ID)
{
Response.Write(query to fetch ID's) + ":";
}
Response.Write("}");

But here comes my question. I have to generate this ID when the user types the query within the URL somewhat like http://localhost/website/menu.aspx?search=yes

Note that I am saying that user will type this URL. I know that query string can pass the values from one form to another but this is a single web form and if I attach this ?search=yes, it should return the result. How can this be done?

This is somewhat similar to searching in Google. For eg: I can type www.google.com/search?Stack and I get the results

  • 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-19T10:02:18+00:00Added an answer on May 19, 2026 at 10:02 am

    The following example will work if there is a querystring parameter named “search” with any value (including blank).

    if (Request.QueryString["search"] != null) {
    
        Response.Write("{");
        for.. loop(until last ID) {
            Response.Write(query to fetch ID's) + ":";
        }
        Response.Write("}");
    }    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.Net website which has a remember me feature for Login page.
I have an ASP.net MVC website which is displaying numbers. Can I somehow determine
I have a asp.net web-service which I use from my ASP.NET website. I can
I have an ASP.Net hosted website which displays a list of results as a
I have an existing ASP.NET website which I would like to painlessly add CMS
I have an company asp.net website with textboxes which may contain several hundred words.
I have an asp.net website in my production server which running fine now. Now
We have a large ASP.Net website that has a single css stylesheet which is
I have a Silverlight web app which uses ASP.net Website administration tool for user
I have a website developed in ASP.NET and VB.NET which has a place for

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.