what are the ways to improve performance in .net
application?

Answer Posted / rajneesh

all above is fine

. Avoid round-trips to server. Perform validation on
client.
. Save viewstate only when necessary.
. Employ caching.
. Leave buffering on unless there is a dire need to disable
it.
. Use connection pooling.
. Use stored procedures instead of in-line SQL or dynamic
SQL.

use ajax toolkit..
outputcache object
Boxing and UnBoxing.
String Builder
‘as’ versus type casting
Control overflow checking
Using readonly versus const
Try to do most of burdan in client side and less server side

user datareader compare dataset if dataset not need.
user try,catch,finally(for close connection)

now new concept in 2.0,3.0,3.5 for performance
Partial class
Generic class
Generic collection
anonymous method
lambda express
var
extension method


Rajneesh Hajela
Gwalior(M.P.)

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is http only cookie?

727


Why cyclomatic complexity is important?

754


Define the term Web Garden?

713


What is the mvc model?

751


What are the advantages and limitations of query string?

794


What is caching? Explain.

728


Explain what does wsdl stand for?

726


What is advantage of code behind coding in ASP.NET?

758


What are session cookies?

746


What is .net framework and what are the main components of it?

571


What are navigation controls? How many navigation controls are there in ASP.NET 4.0?

717


If iam developing an application that must accomodate multiple security levels though secure login and my asp.net web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users?

744


What is the usie of activex control in .net?

731


How can you implement encapsulation in asp.net?

12014


What is the purpose of using MVC programming pattern in ASP.NET?

759