if (!string.IsNullOrVoid("success")) {
message.Text = "You submission was
completed successfully.";
}There you have it. An infallible way of assuring users and superiors that your code works perfectly.Wednesday, 10 January 2007
The Secret to Success
While testing and debugging an admin page in .NET 2.0 today, I was curious as to why a message confirming the submission had succeeded was being displayed before any submit action was taken. Perhaps something was being updated when the page loads. Perhaps it wasn't checking Page.IsPostBack. I then found the server side code block that displays the message:
Subscribe to:
Post Comments (Atom)