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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:40:22+00:00 2026-05-11T10:40:22+00:00

I have some terribly written ASP.NET code that is just not working right (go

  • 0

I have some terribly written ASP.NET code that is just not working right (go figure). I’m charged with maintaining and bug fixing this code, but I can barely make head or high water of it

Unfortunately I don’t have the time to rewrite it.

If someone could help this would be great:

(the code): given to you here (some minimal obfuscation necessary): http://mastergeektheater.com/issues.txt

What it’s supposed to do: Receives an order from a shopping cart application, and creates a table of textboxes based on the quantity of said object ordered. Once the whole thing is validated (submit_Click()), then it reveals a div with further instructions and grays out the input fields so you can still see what was entered, but can’t affect anymore. Emails are sent to each inputted email address.

What it actually does: Receives the order, and correctly displays the inputs. On Submit, all of the ‘required field validators fire – if they are Vaild, then the comparison validators fire. SOMEWHERE AROUND HERE, it all goes south.’

All of the input areas in the table except the first user disappear. if the comparisons success, then it postsback, and the first user is there (greyed out) and the other users are gone. if the comparisons fail, then it doesn’t successfully postback, and stays on the input form, but all of the input fields except the first user still disappear

I know this is a little too specific to be a really well formed Stack Overflow question, but I’ve tried to break it down to things I think were wrong and I asked other questions that were more specific to try to fix it. Unfortunately, it hasn’t worked. The code got better, but the whole thing is still broken. At this point I’m desperate.

If anyone could help, it would be a huge lifesaver. Thanks in advance for all of you who pour through this terrible code (and terrible question) for even a minute…

  • 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-11T10:40:23+00:00Added an answer on May 11, 2026 at 10:40 am

    I guess the problem could be due to this line.

    Session['quantity'] =(null != Request['quantity1']) ? Request['quantity1'].ToString() : '1';

    Do you have a field (hidden/input) named quantity1 on the form?
    Is it being passed to querystring or as part of form item collection?

    It will be 1 (when the form posts back to itself) & hence the loop will only run once.

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

Sidebar

Ask A Question

Stats

  • Questions 91k
  • Answers 91k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer System.Windows.Browser has an HttpUtility class with HtmlEncode and HtmlDecode methods. May 11, 2026 at 6:14 pm
  • Editorial Team
    Editorial Team added an answer Use jQuery (as I've understood your actions are links to… May 11, 2026 at 6:14 pm
  • Editorial Team
    Editorial Team added an answer The reason Visual Studio adds "TextBox1" when you add it… May 11, 2026 at 6:14 pm

Related Questions

My team is working on a crappy old website and most of the pages
I've been writing a little application that will let people upload & download files
I've got an Active Directory synchronization tool (.NET 2.0 / C#) written as a
I have got two classes, one a subclass of the other (say Animal and

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.