This
one really has me stumped. I have a registration form (just html) that
posts to an aspx page. This aspx page contains no html at all, just c#
code that gets the form elements, writes them to a database table, and
redirects the user to a thank-you (or error) page when its done.
But what is happening is that when the form is submitted, most
often the data is getting written to the database twice. Wheni debug the
form, I find that each statement within the Page_Load function is
getting executed twice, one after the other.
I tried adding a boolean value at the end of page_load, and then
testing against that at the beginning, however because the interpreter
is not completing Page_Load once, then rerunning it, this does not
work.
I find it strange that running each statement twice b ...
Go to the complete details ...