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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:56:51+00:00 2026-05-17T15:56:51+00:00

I have a GUI that contains several components (combo boxes, textboxes, etc) with their

  • 0

I have a GUI that contains several components (combo boxes, textboxes, etc) with their associated labels. When a button is pressed, the selection in each input component is validated, and if found to contain an invalid value, the label color changes to red and an error message appears. This works fine on its own.

The problem arises when invalid values are provided and then later fixed. When the user presses the button and the inputs are valid, I redirect the response to an asp using Response.Redirect, which then runs and opens a PDF report. When this happens, none of the code to change the labels back to their original color or to remove the error message runs. If I change Response.Redirect() to Server.Transfer() and the user goes back, it returns the page to its original state (removing the error messages), but I want to keep the valid data in each component.

What can I do to either remove the error messages when the user goes back or to retain the valid input from the user?

EDIT: Most of the controls are non-standard .NET controls and I’m working with VB.NET 2003.

  • 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-17T15:56:51+00:00Added an answer on May 17, 2026 at 3:56 pm

    What you need is a way to save data during transition. So the first time the validation is passed store the values into Session variables.

    Session ("TextBox1Value") = 'Something1'
    Session ("ComboBoxValue") = 'Something2'
    

    When you comeback to page all you have to do is:

    TextBox1.Text = Session("TextBox1Value")
    

    This will help to preserve values as long as the browser is open across multiple pages. Look at the link below for a simple example:

    http://www.java2s.com/Code/ASP/Session-Cookie/UsesessionvariablesVBnet.htm

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

Sidebar

Related Questions

I have a fat GUI that it getting fairly complex, and I would like
I have a large GUI project that I'd like to port to Linux. What
I have a Windows GUI application that's using the Qt framework (currently version 3.3.5,
We have a monolithic MFC GUI app that is nearing the end of it's
Does MSTest have standalone GUI similar to nUnit that lets me use it and
We have a large MS Access project that requires GUI functionality that is difficult
I have one thread that writes results into a Queue. In another thread (GUI),
I have an existing app with a command-line interface that I'm adding a GUI
I have a swing gui with a tabbed pane in the north. Several key
I'm working on a GUI in SDL. I've created a slave/master class that contains

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.