Jwalin Khatri

Archive for March 2008

Optimize your page for UpdatePanel

Posted by: jwalin on: March 26, 2008

Than’s to Miron 
The Update Panel response contain the new html for the specific location that needs to be update and the complete new ViewState for the whole page. So, one more thing we can to optimize the UpdatePanel is to compress the ViewState before it been sent to the client. We don’t need to do [...]

Don’t run production ASP.NET Applications with debug=”true” enabled

One of the things you want to avoid when deploying an ASP.NET application into production is to accidentally (or deliberately) leave the <compilation debug=”true”/> switch on within the application’s web.config file.

Doing so causes a number of non-optimal things to happen including:
1) The compilation of ASP.NET pages takes longer [...]

In web.config file put the following code to send an email
<healthMonitoring>
<providers>

<add name=“ApplicationMailEventProvider“ type=“System.Web.Management.SimpleMailWebEventProvider,System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a“ from=noreply@company.com to=jkhatri@company.com” bodyHeader=“Error raised to ApplicationCriticalMailEventProvider“ subjectPrefix=“ERROR:“ buffer=“true“ bufferMode=“Critical Notification“ maxEventLength=“4096“ maxMessagesPerNotification=“1“/> </providers><rules>

<add name=“Application Request Processing Errors“ eventName=“Request Processing Errors“ provider=“ApplicationMailEventProvider“ profile=“Default“/>

<add name=“Application Infrastructure Errors“ eventName=“Infrastructure Errors“ provider=“ApplicationMailEventProvider“ profile=“Critical“/>

</rules>
</healthMonitoring>
</system.web>


Blog Stats

  • 15,017 hits

  • jwalin: Follow the following steps 1]. open you Page in NOTEPAD. 2]. find the tag 3]. Replace the "body" like body oncontextmenu=”return false;" 4]. Sav
  • cytocine: Halu , how to put that , i mean where to put the part ?? i really dont know i hope you can help me out thanks..
  • elmerdolor: Halu , how to put that , i mean where to put the part ?? i really dont know i hope you can help me out thanks..