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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:18:08+00:00 2026-05-12T05:18:08+00:00

I have a html form that I process with a aspx page. I want

  • 0

I have a html form that I process with a aspx page. I want to be able to go back to my html form if the validation on the aspx page returns false (I cannot use javascript to validate the html form). I can’t use Response.Redirect as I will lose the data initially entered on the html form.

The set-up is:

  • form.html (set action attribute of form tag to processform.aspx)
  • processform.aspx (get values from html form using Request.Form[“myvalue”])

if values are invalid, go back to form.html, otherwise Response.Redirect(“success.html”)

Perhaps I am just going about this the wrong way. Could anyone suggest a better method?

Please note: I cannot use javascript on the form.html, however I can use javascript on the processform.aspx page – although I would prefer an alternative if possible.

  • 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-12T05:18:08+00:00Added an answer on May 12, 2026 at 5:18 am

    You say that form.html can’t use any javascript on form.html – does that mean you can’t use Javascript at all in this solution?

    My answer would be to output a javascript snippet from your processform.aspx that simply calls history.go(-1).

    Example:

    if(valid) 
    {
        Response.Redirect("success.html", true);
    } 
    Response.Clear();
    Response.Write("<html><body><script>history.go(-1);</script></body></html>");
    Response.Flush();
    Response.End(); 
    

    If, however, you cannot use Javascript at all… the options are rather limited.

    RFC 2616 defines HTTP 204 “No Content” – you could attempt to send that, but this is a success status, and behaviour from browsers might vary. Theoretically, however, the content should stay the same. Users might be very confused, however, because there’s no visible feedback.

    If you could explain the reasoning behind these restrictions, perhaps we could produce a better solution.

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

Sidebar

Related Questions

I have a form on an HTML page with multiple submit buttons that perform
I have a basic HTML form that gets inserted into a server side div
I have a HTML form, and I have a Controller Action that accepts the
I have a site that has a simple HTML button in a form. All
There are some HTML based games (ie bootleggers.us) that have a simple login form
I have a form that validates the email address and I want to be
I have an HTML form - with PHP, I am sending the data of
If I have a HTML form with some embedded div s, and after the
Let's say I have an html form. Each input/select/textarea will have a corresponding <label>
Is it legal to have an HTML form with more than one hidden control

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.