Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Ajax Uploader
»
Server side validation in ashx or controller in MVC 2
Server side validation in ashx or controller in MVC 2
Last post 09-26-2010, 9:09 PM by
cutechat
. 1 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
09-19-2010, 4:30 PM
64084
indiankarma.com
Joined on 04-06-2005
Posts 53
Server side validation in ashx or controller in MVC 2
Reply
Quote
In the sample there are comments that tell me to run server side validation in the ashx and the controller action, what is recommended?
Paul
Post Hope
09-26-2010, 9:09 PM
64197
in reply to
64084
cutechat
Joined on 07-22-2004
Posts 2,332
Re: Server side validation in ashx or controller in MVC 2
Reply
Quote
Hi,
In ashx , you can throw an exception , the browser javascript will show alert for that message.
If you validate the file in controller action , you can do more logic for the UI.
Regards,
Terry