IsPostBack
I have a form that I have users submit information into a database from. Once they click on the button I need 3 actions to take place:
1. I need the form to clear upon successful submit.
2. I need the form the printout a status of the submit:
a. Successful = 'Record Submitted'
b. Duplicate record = 'Record Already exists'
c. Unsuccessful = 'Unsuccessful submit! Please try again'
I have the easy part done:
if (IsPostBack)
{
Message.InnerHtml = "Record Submitted";
}
Can someone help with the rest?
Thank you.
Sincerely,
Tim
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

oblivion_lurksRank #9,026 · 212 reputationPosted Apr 19, 2004, 4:49 AM EDT
timothy.farrell175 reputationPosted Apr 26, 2004, 9:54 AM EDT