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
Sanjay Sharma
1.3k
413
27.4k
Why static method avoided in web application
Sep 23 2019 11:17 PM
I learned ( How I don't know) that static method should be avoided in web application.
Let suppose a DAL layer is like the code as bellow -
namespace
XXX.DAL
{
public
static
List<CompanyMaster> GetAllCompanies()
{
// code return collection of CompanyMaster
}
}
so can anyone help me why should I avoid desgin of static here. I search google but do not find anything good stuff around this.
Reply
Answers (
2
)
How to validate and use only 25MB file Upload in Jquery
What is the use of IsPostBack Method??