TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
sireesha siri
NA
9
2.4k
special case of use in web improvement?
Jan 23 2018 8:25 AM
Hi,
I end up utilizing exemption in web improvement notwithstanding for conditions that are not by any stretch of the imagination mistakes, not to mention uncommon ones - just rationale choices, approvals...
in a website page, I frequently compose code like so:
try
{
int
id;
if
(!
int
.TryParse(txtID.Text, out id))
throw
new
Exception(
"ID must be an integer"
);
if
(IdAlreadyExists(id))
throw
new
Exception(
"ID already exists in database"
);
//and so on...
}
catch
(Exception ex)
{
SetErrorLine(ex.Message);
}
I was thinking about whether this is extremely the right method for utilizing special cases and authorizing Business Logic in web advancement.
P.S.: I am utilizing asp.net, and clearly I could utilize ASP.NET validators for some of these and furthermore isolate UI from rationale, yet I'm endeavoring to make a point of the general thought.
Thanks and Regards
sireesha.
Reply
Answers (
1
)
How we Extract Image from pdf
Detect Ip and device viewer