dpant
dpant

Reputation: 2032

How to make asp.net web forms application faster?

My last project is a medium size asp.net web forms application. It is built using:

This time I believed I did my best in terms of architectural design, code and data transfer optimizations. I followed all advice I could to work with the database efficiently through linq to sql and I built layers (model, repository, service, presentation) to separate concerns and lightweight the code in the aspx code behind files.

The problem is: I've installed the application in various web hosting servers with the same pitiful result: the application is struggling to work... pages are loading like in slow motion...

In the past I would say 'OK, I didn't do all I could to speed things up' but in this case I really tried to apply the best practices...

Is there anything else I can do about it? Or is it just asp.net for really small projects only?

thank you.

Upvotes: 1

Views: 5691

Answers (2)

user3069097
user3069097

Reputation: 59

My first question is that when its slow. Did you try your project in Local area network. Please check first there. If there slow then you need to improve little bit. This slow performance depends on many things such as large data load, multiple logic on one page etc.

Please let me know.

Thanks Basit.

Upvotes: 0

Jason Evans
Jason Evans

Reputation: 29186

ASP.NET is fine for building large scale websites. As Brad mentioned, StackExchange sites are built using it, and StackOverflow is a very busy site indeed.

What you need to do first is measure performance; until you do that, you're just guessing at where the problem areas are.

So start with the browser - use a tool such as Firebug, or YSLOW, Google Chrome dev tools, whatever takes your fancy and run your site using the tool enabled. The tools can let you know how long things are taking to process eg requests, how long content is taking to download etc.

YSLOW will also give you some tips on anything it finds as being a bit slow e.g. you're making to many HTTP requests, you should consider minifying your CSS/JS files. You will get a general overview of how the site is performing and where problems could be.

To dig a bit deeper, use a tool like RedGate's ANTS Profiler, use the trial version and measure your website, and server side code, with that tool. There are other tools, though I'm not aware of any free ones.

Upvotes: 5

Related Questions