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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:28:43+00:00 2026-06-15T23:28:43+00:00

I am creating a website in c# where there are two forms. In form1.aspx

  • 0

I am creating a website in c# where there are two forms.
In form1.aspx i have a textbox and a Next page button which redirects to form2.aspx and in form2.aspx there is a Previous page button which redirects to form1.aspx. I want that when i click on previous page button, same previous value should b returned in text box on form1.aspx.

form1.aspx design view

<form id="form1" runat="server">
    <asp:Button ID="btnNext" runat="server" Text="NextPage" OnClick="btnNext_Click" />
    <asp:TextBox ID="TextBox1" runat="server" ></asp:TextBox>
</form>

form1.aspx code beind

    public partial class Form1 : System.Web.UI.Page 
    {
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnNext_Click(object sender, EventArgs e)
    {
        Response.Redirect("Form2.aspx");
    }
}

form2.aspx design page

<form id="form1" runat="server">
    <asp:Button ID="btnPrev" runat="server" Text="previous" OnClick="btnPrev_Click" />
</form>

form2.aspx code beind

    public partial class Form2 : System.Web.UI.Page
    {
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnPrev_Click(object sender, EventArgs e)
    {
        Response.Redirect("Form1.aspx");
    }
    }

I am sorry if this is a stupid question. But please help me out.

Thanks in advance
Regards,
Abhishek

  • 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-06-15T23:28:44+00:00Added an answer on June 15, 2026 at 11:28 pm

    If you do not want to create a session value for the same, you can alternately save required data into cookie, ONLY if it is not of much value, and then populate from cookies. Please note that do NOT save data in cookies, which can be used by other users of client computer to misuse your website. Here I do not think this could be a secure site and the data of too much value.

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

Sidebar

Related Questions

I am creating a website where there are two user intefaces. ONe for sellers
I'm creating a fairly simple website. There are two static pages (Home and Portfolio)
I have two questions about creating shadows like www.apple.com/ipodshuffle ... On the website, you'll
I'm currently creating a website for a social project in switzerland. And before there
I am working on creating website with Yii framework and I have a problem
I am creating a website with four textarea forms. Each form has a word
I am creating a website and the design have lots of background images so
I'm creating a PHP website which involves users signing up, and I'm wondering about
I setup my website to require unique email addresses (no two users can have
A website I'm creating lets users have a unique subdomain on the site eg;

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.