SlideShare a Scribd company logo
Dot Net Training
How To Optimize Asp.Net Application ?
Dot Net Training
In this article, we will walk via some performance improvement techniques in ASP.NET
Web Applications.
It’s universal that customer expects the good performance of a web application.
Basically, large-scale Web applications are deployed to load-balancing servers to
share traffic evenly across a number of application servers.
Additional application servers are added without making any further changes to the
application.
The application server might enhance Web application performance; however, there
are ways to improve performance on the developer side as well.
You can follow certain optimization techniques when you code that can reduce a lot of
performance issues. It is essential to know which parts code or code parts can be
optimized, and how you can measure improvements in performance.
Dot Net Training
Here we share a number of optimization techniques that you can use:
Discard objects from the caller method than in the called method.
Use connection pooling such that the connections can be re-used during requirement
of future requests to the database.

Delete white spaces and extra tags to reduce the size of your pages. Make limited
use of graphics and consider using compressed graphics.

Reduce page load times by minimizing the scripts.

Use cascading style sheets to avoid repeated sending of the same formatting
directives to the client.

Use short control names because they generate unique HTMLID names.

Minimize redundant processing by using Page.IsPostBack .

Use for each loop instead of a for loop if possible.

Avoid using ViewState to facilitate faster page loads.
Dot Net Training
Cache the Web pages or a portion if the page is large. Use data caching for improving
the application performance instead of fetching data from a file or database.
Data is stored in the memory of Datasets hence write efficient SQL queries or
procedures that fetch only the required information.
So not use Page.DataBind. Instead, code data bind on specific controls because the
page-level method calls the DataBind method of every control on the page that
supports data binding.
Use minimal, call to DataBinder.Eval because this method uses reflection to access
the arguments that are passed in and to return the results. For example, if a page has
a table of 50 rows and 10 columns, DataBinder.Eval will be named 500 times if you
use DataBinder.Eval on each column. Instead, use clear casting offers better
performance by keeping away the cost of reflection. Cast the Container.DataItem as a
DataRowView, as shown in the following code .
Dot Net Training
<ItemTemplate> <tr> <td><%# ((DataRowView)Container.DataItem) ["First_Name"]
%></td> <td><%# ((DataRowView)Container.DataItem) ["Last_Name"] %></td>
</tr></ItemTemplate>
You can achieve better performance with clear casting if you use a DataReader to
bind your control and use the special methods to retrieve your data. Cast the
Container.DataItem as a DbDataRecord.
<ItemTemplate> <tr> <td><%# ((DbDataRecord)Container.DataItem) .GetString(0)
%></td> <td><%# ((DbDataRecord)Container.DataItem) .GetInt(1) %></td>
</tr></ItemTemplate>
Dot Net Training
Disable useless session states because ASP.NET Manages a session state by default
and lessens the cost in memory when you don’t use it.
For example, if your pages are fixed or when you don’t require to store information
captured in the page.
<@%Page EnableSessionState=”false”%>
make read only session state for retrieving data
<@%Page EnableSessionState =”ReadOnly”%>
Turn off tracing unless needed.
<trace enabled=”false” requestLimit=”8″ pageoutput=”false” traceMode=”SortByTime”
localOnly=”true”>
Use SqlDataReader to visit the read-only data and not DataSet.
You can return multiple result sets by using dynamic SQL, it is preferable to utilize
stored procedures to get multiple result sets
Dot Net Training
Using gzip compression can reduce the number of bytes sent by the server. This helps
faster page loads and also cuts down on bandwidth usage.
If you got a bunch of .NET Web services running in one IIS Application and utilized by
another IIS application, the first call to Web services, in most cases, might be pretty
slow. To speed up the initial call, you can create the XmlSerializers DLL at compile
time.
Hope the above-mentioned points would help you to code at ease.
If you want to learn ASP.Net and perfect yourself in .NET training, then CRB Tech
Solutions would be of great help and support for you. Join us with our updated
program in ASP.Net course.
Stay tuned to CRB Tech reviews for more technical optimization and other resources.
Thank You..!
Dot Net Training
Ad

Recommended

How to optimize asp dot-net application
How to optimize asp dot-net application
sonia merchant
 
How to Boost WordPress Site Speed in 10 Steps
How to Boost WordPress Site Speed in 10 Steps
Lazylord
 
Drupal Caching For Dummies
Drupal Caching For Dummies
Gokul Nk
 
High performance coding practices code project
High performance coding practices code project
Pruthvi B Patil
 
Klmug presentation - Simple Analytics with MongoDB
Klmug presentation - Simple Analytics with MongoDB
Ross Affandy
 
Columnstore Customer Stories 2016 by Sunil Agarwal
Columnstore Customer Stories 2016 by Sunil Agarwal
Brent Ozar
 
Technology tips to ceo & architect
Technology tips to ceo & architect
Anandkumar R
 
Scaling Web Apps P Falcone
Scaling Web Apps P Falcone
jedt
 
GolfOuting2016
GolfOuting2016
Anna Schmalzriedt
 
B17 nl. 8docx
B17 nl. 8docx
Cathalijne Zoete
 
Lançamento Visalus expansão europeia (Portugal) para empreendedores
Lançamento Visalus expansão europeia (Portugal) para empreendedores
Pedro Henrique
 
Derechos de autor
Derechos de autor
daniela rodrigez
 
Moda e design
Moda e design
Eur&ca S.r.l.
 
Piano di branding per Xianyang: produzione vinicola, enoturismo e "Made in It...
Piano di branding per Xianyang: produzione vinicola, enoturismo e "Made in It...
Italo Loris Ligonzo
 
Lo storytelling è morto. Viva lo storytelling! (Alberto Maestri)
Lo storytelling è morto. Viva lo storytelling! (Alberto Maestri)
InSide Training
 
Beta Staff Detailed Profile 2015
Beta Staff Detailed Profile 2015
Beta Staff
 
Tips and Tricks For Faster Asp.NET and MVC Applications
Tips and Tricks For Faster Asp.NET and MVC Applications
Sarvesh Kushwaha
 
ASP.NET Quick Wins - 20 Tips and Tricks To Shift Your Application into High Gear
ASP.NET Quick Wins - 20 Tips and Tricks To Shift Your Application into High Gear
Kevin Griffin
 
ASP.NET Best Practices - Useful Tips from the Trenches
ASP.NET Best Practices - Useful Tips from the Trenches
Habeeb Rushdan
 
Asp.Net Tips
Asp.Net Tips
Susan Begonja
 
Tuga it 2016 improving your application performance
Tuga it 2016 improving your application performance
Nuno Caneco
 
10 performance and scalability secrets of ASP.NET websites
10 performance and scalability secrets of ASP.NET websites
oazabir
 
IEEE KUET SPAC presentation
IEEE KUET SPAC presentation
ahsanmm
 
Dev411
Dev411
guest2130e
 
Asp.net performance
Asp.net performance
Abhishek Sur
 
ASP.NET Scalability - DDD7
ASP.NET Scalability - DDD7
Phil Pursglove
 
ASP.NET Scalability - NxtGen Oxford
ASP.NET Scalability - NxtGen Oxford
Phil Pursglove
 
Application Performance Tuning Techniques
Application Performance Tuning Techniques
Ram Nagesh
 
Fullstack LX - Improving your application performance
Fullstack LX - Improving your application performance
Nuno Caneco
 
ASP.NET 4.0 Demo
ASP.NET 4.0 Demo
Abhishek Sur
 

More Related Content

Viewers also liked (8)

GolfOuting2016
GolfOuting2016
Anna Schmalzriedt
 
B17 nl. 8docx
B17 nl. 8docx
Cathalijne Zoete
 
Lançamento Visalus expansão europeia (Portugal) para empreendedores
Lançamento Visalus expansão europeia (Portugal) para empreendedores
Pedro Henrique
 
Derechos de autor
Derechos de autor
daniela rodrigez
 
Moda e design
Moda e design
Eur&ca S.r.l.
 
Piano di branding per Xianyang: produzione vinicola, enoturismo e "Made in It...
Piano di branding per Xianyang: produzione vinicola, enoturismo e "Made in It...
Italo Loris Ligonzo
 
Lo storytelling è morto. Viva lo storytelling! (Alberto Maestri)
Lo storytelling è morto. Viva lo storytelling! (Alberto Maestri)
InSide Training
 
Beta Staff Detailed Profile 2015
Beta Staff Detailed Profile 2015
Beta Staff
 
Lançamento Visalus expansão europeia (Portugal) para empreendedores
Lançamento Visalus expansão europeia (Portugal) para empreendedores
Pedro Henrique
 
Piano di branding per Xianyang: produzione vinicola, enoturismo e "Made in It...
Piano di branding per Xianyang: produzione vinicola, enoturismo e "Made in It...
Italo Loris Ligonzo
 
Lo storytelling è morto. Viva lo storytelling! (Alberto Maestri)
Lo storytelling è morto. Viva lo storytelling! (Alberto Maestri)
InSide Training
 
Beta Staff Detailed Profile 2015
Beta Staff Detailed Profile 2015
Beta Staff
 

Similar to How To Optimize Asp.Net Application ? (20)

Tips and Tricks For Faster Asp.NET and MVC Applications
Tips and Tricks For Faster Asp.NET and MVC Applications
Sarvesh Kushwaha
 
ASP.NET Quick Wins - 20 Tips and Tricks To Shift Your Application into High Gear
ASP.NET Quick Wins - 20 Tips and Tricks To Shift Your Application into High Gear
Kevin Griffin
 
ASP.NET Best Practices - Useful Tips from the Trenches
ASP.NET Best Practices - Useful Tips from the Trenches
Habeeb Rushdan
 
Asp.Net Tips
Asp.Net Tips
Susan Begonja
 
Tuga it 2016 improving your application performance
Tuga it 2016 improving your application performance
Nuno Caneco
 
10 performance and scalability secrets of ASP.NET websites
10 performance and scalability secrets of ASP.NET websites
oazabir
 
IEEE KUET SPAC presentation
IEEE KUET SPAC presentation
ahsanmm
 
Dev411
Dev411
guest2130e
 
Asp.net performance
Asp.net performance
Abhishek Sur
 
ASP.NET Scalability - DDD7
ASP.NET Scalability - DDD7
Phil Pursglove
 
ASP.NET Scalability - NxtGen Oxford
ASP.NET Scalability - NxtGen Oxford
Phil Pursglove
 
Application Performance Tuning Techniques
Application Performance Tuning Techniques
Ram Nagesh
 
Fullstack LX - Improving your application performance
Fullstack LX - Improving your application performance
Nuno Caneco
 
ASP.NET 4.0 Demo
ASP.NET 4.0 Demo
Abhishek Sur
 
Владимир Бронников (Senior .NET Developer, Perfectial) “Performance optimizat...
Владимир Бронников (Senior .NET Developer, Perfectial) “Performance optimizat...
DataArt
 
Microsoft asp.net online training
Microsoft asp.net online training
training3
 
Microsoft asp.net online training
Microsoft asp.net online training
training13acutesoft
 
Cache
Cache
ANANDKUMARPATHAK
 
Scaling asp.net websites to millions of users
Scaling asp.net websites to millions of users
oazabir
 
Asp.net
Asp.net
Yaswanth Babu Gummadivelli
 
Tips and Tricks For Faster Asp.NET and MVC Applications
Tips and Tricks For Faster Asp.NET and MVC Applications
Sarvesh Kushwaha
 
ASP.NET Quick Wins - 20 Tips and Tricks To Shift Your Application into High Gear
ASP.NET Quick Wins - 20 Tips and Tricks To Shift Your Application into High Gear
Kevin Griffin
 
ASP.NET Best Practices - Useful Tips from the Trenches
ASP.NET Best Practices - Useful Tips from the Trenches
Habeeb Rushdan
 
Tuga it 2016 improving your application performance
Tuga it 2016 improving your application performance
Nuno Caneco
 
10 performance and scalability secrets of ASP.NET websites
10 performance and scalability secrets of ASP.NET websites
oazabir
 
IEEE KUET SPAC presentation
IEEE KUET SPAC presentation
ahsanmm
 
Asp.net performance
Asp.net performance
Abhishek Sur
 
ASP.NET Scalability - DDD7
ASP.NET Scalability - DDD7
Phil Pursglove
 
ASP.NET Scalability - NxtGen Oxford
ASP.NET Scalability - NxtGen Oxford
Phil Pursglove
 
Application Performance Tuning Techniques
Application Performance Tuning Techniques
Ram Nagesh
 
Fullstack LX - Improving your application performance
Fullstack LX - Improving your application performance
Nuno Caneco
 
Владимир Бронников (Senior .NET Developer, Perfectial) “Performance optimizat...
Владимир Бронников (Senior .NET Developer, Perfectial) “Performance optimizat...
DataArt
 
Microsoft asp.net online training
Microsoft asp.net online training
training3
 
Microsoft asp.net online training
Microsoft asp.net online training
training13acutesoft
 
Scaling asp.net websites to millions of users
Scaling asp.net websites to millions of users
oazabir
 
Ad

More from Pooja Gaikwad (12)

Building A Search Page with Elasticsearch and .NET- II
Building A Search Page with Elasticsearch and .NET- II
Pooja Gaikwad
 
Learning .NET Attributes
Learning .NET Attributes
Pooja Gaikwad
 
Forms authentication in asp dot net
Forms authentication in asp dot net
Pooja Gaikwad
 
Owin and katana overview
Owin and katana overview
Pooja Gaikwad
 
Top 15 asp dot net interview questions and answers
Top 15 asp dot net interview questions and answers
Pooja Gaikwad
 
Dot Net Certification Course Pune
Dot Net Certification Course Pune
Pooja Gaikwad
 
An Overview ASP.NET vNEXT - CRB Tech
An Overview ASP.NET vNEXT - CRB Tech
Pooja Gaikwad
 
Importance of msil in dot net
Importance of msil in dot net
Pooja Gaikwad
 
A simplest way to reconstruct .Net Framework - CRB Tech
A simplest way to reconstruct .Net Framework - CRB Tech
Pooja Gaikwad
 
History of-silverlight-versions-and-its-features-CRB-Tech
History of-silverlight-versions-and-its-features-CRB-Tech
Pooja Gaikwad
 
Exploring MVVM, MVC, MVP Patterns - CRB Tech
Exploring MVVM, MVC, MVP Patterns - CRB Tech
Pooja Gaikwad
 
.Net framework-garbage-collection
.Net framework-garbage-collection
Pooja Gaikwad
 
Building A Search Page with Elasticsearch and .NET- II
Building A Search Page with Elasticsearch and .NET- II
Pooja Gaikwad
 
Learning .NET Attributes
Learning .NET Attributes
Pooja Gaikwad
 
Forms authentication in asp dot net
Forms authentication in asp dot net
Pooja Gaikwad
 
Owin and katana overview
Owin and katana overview
Pooja Gaikwad
 
Top 15 asp dot net interview questions and answers
Top 15 asp dot net interview questions and answers
Pooja Gaikwad
 
Dot Net Certification Course Pune
Dot Net Certification Course Pune
Pooja Gaikwad
 
An Overview ASP.NET vNEXT - CRB Tech
An Overview ASP.NET vNEXT - CRB Tech
Pooja Gaikwad
 
Importance of msil in dot net
Importance of msil in dot net
Pooja Gaikwad
 
A simplest way to reconstruct .Net Framework - CRB Tech
A simplest way to reconstruct .Net Framework - CRB Tech
Pooja Gaikwad
 
History of-silverlight-versions-and-its-features-CRB-Tech
History of-silverlight-versions-and-its-features-CRB-Tech
Pooja Gaikwad
 
Exploring MVVM, MVC, MVP Patterns - CRB Tech
Exploring MVVM, MVC, MVP Patterns - CRB Tech
Pooja Gaikwad
 
.Net framework-garbage-collection
.Net framework-garbage-collection
Pooja Gaikwad
 
Ad

Recently uploaded (20)

ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
jutaydeonne
 
Q1_TLE 8_Week 1- Day 1 tools and equipment
Q1_TLE 8_Week 1- Day 1 tools and equipment
clairenotado3
 
English 3 Quarter 1_LEwithLAS_Week 1.pdf
English 3 Quarter 1_LEwithLAS_Week 1.pdf
DeAsisAlyanajaneH
 
IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT Kharagpur Quiz Club
 
University of Ghana Cracks Down on Misconduct: Over 100 Students Sanctioned
University of Ghana Cracks Down on Misconduct: Over 100 Students Sanctioned
Kweku Zurek
 
Great Governors' Send-Off Quiz 2025 Prelims IIT KGP
Great Governors' Send-Off Quiz 2025 Prelims IIT KGP
IIT Kharagpur Quiz Club
 
K12 Tableau User Group virtual event June 18, 2025
K12 Tableau User Group virtual event June 18, 2025
dogden2
 
Aprendendo Arquitetura Framework Salesforce - Dia 02
Aprendendo Arquitetura Framework Salesforce - Dia 02
Mauricio Alexandre Silva
 
Hurricane Helene Application Documents Checklists
Hurricane Helene Application Documents Checklists
Mebane Rash
 
Pests of Maize: An comprehensive overview.pptx
Pests of Maize: An comprehensive overview.pptx
Arshad Shaikh
 
Values Education 10 Quarter 1 Module .pptx
Values Education 10 Quarter 1 Module .pptx
JBPafin
 
THE PSYCHOANALYTIC OF THE BLACK CAT BY EDGAR ALLAN POE (1).pdf
THE PSYCHOANALYTIC OF THE BLACK CAT BY EDGAR ALLAN POE (1).pdf
nabilahk908
 
INDUCTIVE EFFECT slide for first prof pharamacy students
INDUCTIVE EFFECT slide for first prof pharamacy students
SHABNAM FAIZ
 
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
Ronisha Das
 
June 2025 Progress Update With Board Call_In process.pptx
June 2025 Progress Update With Board Call_In process.pptx
International Society of Service Innovation Professionals
 
CRYPTO TRADING COURSE BY FINANCEWORLD.IO
CRYPTO TRADING COURSE BY FINANCEWORLD.IO
AndrewBorisenko3
 
Photo chemistry Power Point Presentation
Photo chemistry Power Point Presentation
mprpgcwa2024
 
Peer Teaching Observations During School Internship
Peer Teaching Observations During School Internship
AjayaMohanty7
 
Vitamin and Nutritional Deficiencies.pptx
Vitamin and Nutritional Deficiencies.pptx
Vishal Chanalia
 
Paper 107 | From Watchdog to Lapdog: Ishiguro’s Fiction and the Rise of “Godi...
Paper 107 | From Watchdog to Lapdog: Ishiguro’s Fiction and the Rise of “Godi...
Rajdeep Bavaliya
 
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
ENGLISH_Q1_W1 PowerPoint grade 3 quarter 1 week 1
jutaydeonne
 
Q1_TLE 8_Week 1- Day 1 tools and equipment
Q1_TLE 8_Week 1- Day 1 tools and equipment
clairenotado3
 
English 3 Quarter 1_LEwithLAS_Week 1.pdf
English 3 Quarter 1_LEwithLAS_Week 1.pdf
DeAsisAlyanajaneH
 
IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT KGP Quiz Week 2024 Sports Quiz (Prelims + Finals)
IIT Kharagpur Quiz Club
 
University of Ghana Cracks Down on Misconduct: Over 100 Students Sanctioned
University of Ghana Cracks Down on Misconduct: Over 100 Students Sanctioned
Kweku Zurek
 
Great Governors' Send-Off Quiz 2025 Prelims IIT KGP
Great Governors' Send-Off Quiz 2025 Prelims IIT KGP
IIT Kharagpur Quiz Club
 
K12 Tableau User Group virtual event June 18, 2025
K12 Tableau User Group virtual event June 18, 2025
dogden2
 
Aprendendo Arquitetura Framework Salesforce - Dia 02
Aprendendo Arquitetura Framework Salesforce - Dia 02
Mauricio Alexandre Silva
 
Hurricane Helene Application Documents Checklists
Hurricane Helene Application Documents Checklists
Mebane Rash
 
Pests of Maize: An comprehensive overview.pptx
Pests of Maize: An comprehensive overview.pptx
Arshad Shaikh
 
Values Education 10 Quarter 1 Module .pptx
Values Education 10 Quarter 1 Module .pptx
JBPafin
 
THE PSYCHOANALYTIC OF THE BLACK CAT BY EDGAR ALLAN POE (1).pdf
THE PSYCHOANALYTIC OF THE BLACK CAT BY EDGAR ALLAN POE (1).pdf
nabilahk908
 
INDUCTIVE EFFECT slide for first prof pharamacy students
INDUCTIVE EFFECT slide for first prof pharamacy students
SHABNAM FAIZ
 
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
GREAT QUIZ EXCHANGE 2025 - GENERAL QUIZ.pptx
Ronisha Das
 
CRYPTO TRADING COURSE BY FINANCEWORLD.IO
CRYPTO TRADING COURSE BY FINANCEWORLD.IO
AndrewBorisenko3
 
Photo chemistry Power Point Presentation
Photo chemistry Power Point Presentation
mprpgcwa2024
 
Peer Teaching Observations During School Internship
Peer Teaching Observations During School Internship
AjayaMohanty7
 
Vitamin and Nutritional Deficiencies.pptx
Vitamin and Nutritional Deficiencies.pptx
Vishal Chanalia
 
Paper 107 | From Watchdog to Lapdog: Ishiguro’s Fiction and the Rise of “Godi...
Paper 107 | From Watchdog to Lapdog: Ishiguro’s Fiction and the Rise of “Godi...
Rajdeep Bavaliya
 

How To Optimize Asp.Net Application ?

  • 2. Dot Net Training In this article, we will walk via some performance improvement techniques in ASP.NET Web Applications. It’s universal that customer expects the good performance of a web application. Basically, large-scale Web applications are deployed to load-balancing servers to share traffic evenly across a number of application servers. Additional application servers are added without making any further changes to the application. The application server might enhance Web application performance; however, there are ways to improve performance on the developer side as well. You can follow certain optimization techniques when you code that can reduce a lot of performance issues. It is essential to know which parts code or code parts can be optimized, and how you can measure improvements in performance.
  • 3. Dot Net Training Here we share a number of optimization techniques that you can use: Discard objects from the caller method than in the called method. Use connection pooling such that the connections can be re-used during requirement of future requests to the database.  Delete white spaces and extra tags to reduce the size of your pages. Make limited use of graphics and consider using compressed graphics.  Reduce page load times by minimizing the scripts.  Use cascading style sheets to avoid repeated sending of the same formatting directives to the client.  Use short control names because they generate unique HTMLID names.  Minimize redundant processing by using Page.IsPostBack .  Use for each loop instead of a for loop if possible.  Avoid using ViewState to facilitate faster page loads.
  • 4. Dot Net Training Cache the Web pages or a portion if the page is large. Use data caching for improving the application performance instead of fetching data from a file or database. Data is stored in the memory of Datasets hence write efficient SQL queries or procedures that fetch only the required information. So not use Page.DataBind. Instead, code data bind on specific controls because the page-level method calls the DataBind method of every control on the page that supports data binding. Use minimal, call to DataBinder.Eval because this method uses reflection to access the arguments that are passed in and to return the results. For example, if a page has a table of 50 rows and 10 columns, DataBinder.Eval will be named 500 times if you use DataBinder.Eval on each column. Instead, use clear casting offers better performance by keeping away the cost of reflection. Cast the Container.DataItem as a DataRowView, as shown in the following code .
  • 5. Dot Net Training <ItemTemplate> <tr> <td><%# ((DataRowView)Container.DataItem) ["First_Name"] %></td> <td><%# ((DataRowView)Container.DataItem) ["Last_Name"] %></td> </tr></ItemTemplate> You can achieve better performance with clear casting if you use a DataReader to bind your control and use the special methods to retrieve your data. Cast the Container.DataItem as a DbDataRecord. <ItemTemplate> <tr> <td><%# ((DbDataRecord)Container.DataItem) .GetString(0) %></td> <td><%# ((DbDataRecord)Container.DataItem) .GetInt(1) %></td> </tr></ItemTemplate>
  • 6. Dot Net Training Disable useless session states because ASP.NET Manages a session state by default and lessens the cost in memory when you don’t use it. For example, if your pages are fixed or when you don’t require to store information captured in the page. <@%Page EnableSessionState=”false”%> make read only session state for retrieving data <@%Page EnableSessionState =”ReadOnly”%> Turn off tracing unless needed. <trace enabled=”false” requestLimit=”8″ pageoutput=”false” traceMode=”SortByTime” localOnly=”true”> Use SqlDataReader to visit the read-only data and not DataSet. You can return multiple result sets by using dynamic SQL, it is preferable to utilize stored procedures to get multiple result sets
  • 7. Dot Net Training Using gzip compression can reduce the number of bytes sent by the server. This helps faster page loads and also cuts down on bandwidth usage. If you got a bunch of .NET Web services running in one IIS Application and utilized by another IIS application, the first call to Web services, in most cases, might be pretty slow. To speed up the initial call, you can create the XmlSerializers DLL at compile time. Hope the above-mentioned points would help you to code at ease. If you want to learn ASP.Net and perfect yourself in .NET training, then CRB Tech Solutions would be of great help and support for you. Join us with our updated program in ASP.Net course. Stay tuned to CRB Tech reviews for more technical optimization and other resources.