Posts

Implementing Solutions that Leverage Microsoft Sync Framework to Provide Synchronization

Microsoft Sync Framework to Provide Synchronization Video

asp file upload error

Recently I struggled for file upload in asp web site. I did some fix but in beginning I am not able to understand the reason. After going through this below line, I am able to understand the reason Q1. I want to let my users specify the destination directory to which the files will be uploaded. I included &ltINPUT TYPE="TEXT" NAME="PATH"&gt in the form, and my upload script looks like this: . However this does not seem to work. A. You cannot use the Form collection before calling Save because it is not yet populated. The right way to do it is to upload the files to a temporary directory and then copy or move them to the specified destination directory as follows: n = Upload.Save "c:\upload" For Each File in Upload.Files File.Copy Upload.Form("Path") & "\" & File.ExtractFileName Next %> I got hint from aspupload site. www.aspupload.com/faq

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