I'm not sure -- I've never bothered to use the Request.Form collection, because (as you have done in your code) you can access the page's controls directly.
Anyway, it looks like your code says "If the author is present, then if the author is not present then write an error message."
So it looks like a simple logic error to me. You can never write an error message with this code, because if the first condition is satisfied, the second condition will never be satisfied.
-Van
(Old dog learning new tricks...)
|