i am trying to do a project with asp.net and i want to know is it true too use Application for caching the contents of website?
for example I used a method with 100 line code and the method connected to database and did a lot of things… and finally it returns a string which length of it is 10000 chars.. is it true to save this string in asp.net application and use this application till the program is working instead of do the method every time? or i have to do this method every time when users check my website?
You should probably use the word ‘smart’ instead of ‘true’.
You can do what you write. You can also simply use static classes to store your “cache”. In my opinion it is the easiest way to do that.