hi all,
i have a procedure that adds unique rows into a sql server table...
my problem is after hitting the button, the data is entered without any problems, but if i then hit the refresh button (F5), the same (but unique... increment of 1 on ID) data is entered again, giving me a second row.
things i have tried:
1) cleared out the form data, for example,
but that didn't work
2) checked to ensure that the data is not already there, for example,
but that didn't work
3) tried to see if it was a postback problem, for example
but that didn't work...
I just can't figure it out, please help... i would appreciate any help. thanx in advance.
-a8le
i have a procedure that adds unique rows into a sql server table...
my problem is after hitting the button, the data is entered without any problems, but if i then hit the refresh button (F5), the same (but unique... increment of 1 on ID) data is entered again, giving me a second row.
things i have tried:
1) cleared out the form data, for example,
VB.NET:
lastName.text = ""
but that didn't work
2) checked to ensure that the data is not already there, for example,
VB.NET:
if lastName(param).Count > 0 then...
don't do add procedure
else
do add procedure
end if
but that didn't work
3) tried to see if it was a postback problem, for example
VB.NET:
if not page.ispostback then....
but that didn't work...
I just can't figure it out, please help... i would appreciate any help. thanx in advance.
-a8le