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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:23:38+00:00 2026-05-31T13:23:38+00:00

On the previous page, the user is going to click a button from a

  • 0

On the previous page, the user is going to click a button from a gridview. Each button click will produce a different result on the next page. I want to display text that will put information from a database into the header text. For example, if the user clicks the button next to the “03/04/2012 – 03/11/2012”, I want the header on the next page to say: “Please enter data for 03/04/2012 – 03/11/2012”.

Is this possible? Is this even recommended or am I better off using an asp:label control?

  • 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-31T13:23:38+00:00Added an answer on May 31, 2026 at 1:23 pm

    Yes, this is possible and perfectly acceptable.

    Use an embedded code block (sometimes called gator tags) <%=...%> in your markup. The = operator is equivalent to calling Response.Write, so it just outputs the value of whatever you give it inline.

    <h2>Please enter data for <%=DateRange%></h2>
    

    In this example, DateRange would be a property on your next page. If you’re getting this date range data from a database as you say, then you would need to store it when you click on the grid view button and then retrieve it on the next page.

    There is nothing wrong with doing it like this, but storing it in a database seems like overkill just to get the value on the next page. You can use one of the following instead:

    • Querystring
    • Session variables
    • Server.Transfer

    A quick google search turned up this page which shows examples of all of these methods.

    Regardless of which method you use, gator tags can still be used to set the value of the H2 on the next page.

    Also, if you are using Asp.Net 4, then you can use <%: %>. It’s Like <%= %> But it HtmlEncodes the output automatically.

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

Sidebar

Related Questions

I want to expire my previous page when end user clicks on LogOut or
I have a JSF Page which gets few inputs from the User, I want
I am trying to send user to previous page history.go(-1). This works fine in
I have a page that, depending on input from a previous page, lists a
I'm trying to refresh a page without sending POST from the previous time. I've
I am saving personal information in PHP page.when user click submit it saves but
I am triggering jqgrid reload on button click and also resetting the page value
Is there a way I can get the previous page the user was at
So I have a loop going that pulls posts onto the page. Each post
I am trying to make next/previous page with ajax left/right arrows keys working (like

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.