Posts

3 Ways to Send Emails with dynamic content in ASP.NET

To send email from asp.net application, we have followed various approaches in past 1. Create & design HTML file, Use place holder to find and replace. Pros: If you are sending one type of email. Easy to test the layout in different browsers. Cons: if you are sending multiple types of email but for email format or layout is same. Difficult to maintain Performance slow, due to disk read operation. Difficult to Test in different browser with dynamic data. 2. Create XSLT file, transform by passing your custom object. Pros: if you know xslt and only one type of email you want to send. Cons: Xslt knowledge is required Difficult to maintain, If you have to send multiple type of dynamic email content with same email format or layout. Very difficult to debug. Some Performance hit. 3. Create two asp.net User controls, one master user control & one is child user control. Master user control will be similar to asp.net master page. To keep email outer email body template in one location. ...

Tips & Trick to improve your productivity

To boost my skill & productivity, I read open source code, VS IDE short cut, NUnit,Modifying Class template. etc. For all small work I create batch file. 1. Backup my Db. 2. Automate build for dev to test server. 3. web service prox generation. 4. IIS reset & clean Asp.net cache. etc. Here are some more good links. blog.interviewstreet.com 8-reasons-for-re-inventing-wheel-as projecteuler

Automated white-box testing of .NET applications using PEX Framework

The PEX Framework is a Visual Studio 2010 Powertool for automated white-box testing of .NET applications. Implemented as a Visual Studio add-in, PEX was developed by Microsoft Research and can be downloaded here . Once installed, PEX lets you automatically generate test suites with high code coverage. Unlike other unit testing tools, PEX suggests fixes to potential bugs it detects in your code. PEX is capable of performing an analysis on your application's code, searching for boundary conditions, generating test cases, searching for assertion failures and ultimately reducing maintenance costs. In this article, I examine the PEX Framework and show how you can integrate it with Visual Studio to create better unit tests with high code coverage. Andre Marion : Pex is definitely intriguing. What is Microsoft doing in the way of trying to catch up and develop tools like the Ruby community has, such as Rspec, Sinatra, Rake, Cucumber, Rails, etc... More Info Links: downloads Article By Jo...

ASP.NET Open Source Projects

I have used bloggerEngine.Net for blog and DotNetNuke for CMS. I found this is very good. List of other open source Blogs site Blogsa.net - A blog engine in Asp.net dasBlog BlogEngine.NET SubText - A blogging engine in ASP.NET Owlpal - Web Content System AtomSite (formerly BlogSvc) - Built using ASP.NET MVC. Oxite - Built using ASP.NET MVC. Content Management Systems DotNetNuke Kooboo CMS N2CMS Umbraco sharpcms Mojoportal Orchard CMS http://wiki.asp.net/page.aspx/388/aspnet-open-source-projects/

Check the firewall on the server & open port

You can do this by running the following command in a prompt : netsh firewall show portopening If you get an empty list, no firewall is on, if you see a list, check that there is a line containing the correct port : standard it is 21234 To open the port, run the following command : netsh firewall add portopening TCP 21234 CCNET

A critical error has occurred.Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

I solved this problem by changing the event name. There was two classes having same event name. Both class is used in two user control. And two user control placed on one page. This was creating problem. My System environment: Win Server 2008 R2 IIS 7 - 64 bit VS 2010 .Net 3.5

AnkhSVN is a Subversion SourceControl Provider for Visual Studio

AnkhSVN is a Subversion SourceControl Provider for Visual Studio. The software allows you to perform the most common version control operations directly from inside the Microsoft Visual Studio IDE. http://help.collab.net/index.jsp?topic=/com.collabnet.doc.anksvn_001/action/ankh_getting_started.html http://ankhsvn.open.collab.net/ankhsvn/contributing#source http://ankhsvn.open.collab.net/ankhsvn/features