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 web api and why to use it?

555


What is mvc in angular?

559


What is state management react?

505


Which namespace is used by ado.net?

562


Explain what is viewstate?

543






What is loop in asp.net?

582


What is is post back property in asp net?

533


What are the advantages and disadvantages of session?

658


What is event bubbling?

601


What is the life cycle of an asp.net page?

524


What is authorization in asp.net?

573


What is asynchronous call?

584


Define view state.

548


What are the cookies types in asp.net?

555


We are using Jscriopt validations and at clint site javascript is not running that time validation would work? if yes then how it would behave?

1404