Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are some Performance [Dos/Don'ts] in C# -ASP.NET

I am finalizing one of my projects and taking a look over the whole project looking for mistakes, bugs and performance mistakes. I am using MVC. I caught one Don't and that is:

Never put a RenderPartial within a loop. it will drastically slow down your whole server.

like image 781
user161433 Avatar asked Aug 31 '09 23:08

user161433


1 Answers

Never store a WebControl to Session.

Because it has a reference to the Page object, it ends up storing every control to session.

like image 77
womp Avatar answered Oct 13 '22 00:10

womp