May 2008 - Posts

Video Clouds

This is cool, another use for the idea of tag clouds but this time with videos check it out here

Posted by Adel Khalil with no comments
Filed under:

Configuring ASP.NET Email Notification for Health Monitoring

ASP.NET provide a very conveniant way for health monitoring notifications, that will allow you to setup an email prvider to catch web events and send email messages when any arise.

all you need is to configure your web application to send emails, also have a configured SMTP Virtual Server on your running IIS6.

<configuration>
  <system.web>
    <healthMonitoring enabled="true" heartbeatInterval="0">
      <providers>
        <add 
          name="MailProvider" 
          type="System.Web.Management.SimpleMailWebEventProvider"
          to="healthmonitor@mycompany.com"
          from="healthmonitor@mycompany.com"
          buffer="false"
          subjectPrefix="Web Event Notification"
          />
      </providers>
      <rules>
        <add 
          name="MailEventProviders" 
          eventName="All Events" 
          provider="MailProvider"
          profile="Default" 
          minInstances="1" 
          maxLimit="10000000" 
          minInterval="00:01:00"
          custom="" 
          />
      </rules>
    </healthMonitoring>
  </system.web>
</configuration>
This way any web even that fires you will get notification email at your configured address.
More on Health Monitoring
.csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; }
 
.csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; } .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; }
Posted by Adel Khalil with 1 comment(s)
Filed under: , ,

Suppressing JavaScript Error Messeges - Application/Page Level

if you having problem with Ajax Extensions, Ajax Toolkit controls..etc generating bad JavaScript code that cause the message "Error On Page" to appear on the status bar of your browser then you can't solve this by resolving the error or wrappe the whole thing in try/catch blocks.

What you need is suppress the error on a whole page, specific or on master page to simulate application level effect using this snippet in the HEAD section.

 

<SCRIPT language="JavaScript">

function silentErrorHandler() {

return true;

}

window.onerror=silentErrorHandler;

</SCRIPT>

 

Happy Coding..

Posted by Adel Khalil with no comments

RockScroll for Visual Studio

Scott Hanselman refers to this internal tool he helped get it out from Micrsoft very cool, check it out at Scott's post or download from here.

Posted by Adel Khalil with no comments
Filed under: