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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:00:06+00:00 2026-05-10T20:00:06+00:00

I am constructing a search page with a textbox and a button for now,

  • 0

I am constructing a search page with a textbox and a button for now, and probably a dropdown to filter results later on. I have my button’s PostBackUrl set to my search page (~/search.aspx). Is there an easy way to pass the value in the text box to the search page?

  • 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. 2026-05-10T20:00:06+00:00Added an answer on May 10, 2026 at 8:00 pm

    If you have the PostBackUrl set on your button, then the search box field on your first page, and any other form fields on that page, are already being posted to your search page. The trick is getting access to them in the code-behind for your search.aspx page.

    if (Page.PreviousPage != null) {     TextBox SourceTextBox =          (TextBox)Page.PreviousPage.FindControl('TextBox1');     if (SourceTextBox != null)     {         Label1.Text = SourceTextBox.Text;     } } 

    That is one way. There are some shortcuts too, such as using the PreviousPageType directive at the top of your search.aspx page:

    <%@ PreviousPageType VirtualPath='~/SourcePage.aspx' %>  

    More details on how to use that, as well as the first method, can be found here:

    http://msdn.microsoft.com/en-us/library/ms178139.aspx

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

Sidebar

Related Questions

I have a search page which performs an ajax call then generates results (dynamic
I'm constructing an ecommerce application in Symfony, and I have a page which lists
I have a specialized search engine that passes search criteria from the Search page
I have page designed in Django that has its own search engine. What I
I have a task to format some custom search results. I can get the
I'm constructing a JFileFilter on a JFileChooser, however an error occurs where I have
I am constructing a search function in a class to be used by several
I'm constructing a simple search form for our support ticket database using Lucene.Net, and
I have to search in two tables that are in a parent-child relation (1:n)
I need help in constructing RegEx for the search function on my website. I

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.