Upload large files to Web API with Javascript

We can upload large files to a REST Web API with JavaScript using FormData. Below JavaScript code snippet uploads the file selected using a standard HTML file input tag. Update the maxAllowedContentLength in web.config as per the requirement. The below snippet shows the maxAllowedContentLength set to accept upto 2GB of data. Below code snippet is…

This configuration section cannot be used at this path

In ASP.NET web.config, when you want to use a configuration which is locked at a parent level in a machine/server, you need to explicitly unlock it to use web.config for your site. Typical error would be like, “This configuration section cannot be used at this path. This happens when the section is locked at a parent…

Email Verification for Newsletters, Mailing Lists in ASP.NET

It is very important to verify an email id when subscribing for newsletters, mailing lists, etc. If you don’t verify email id, you could end up with many dead email ids. So the process of subscribing for newsletters, mailing lists should include email verification. You can do it as following…. Verify email id using regular…

WebMatrix

IntroductionA Simple to use integrated tool for web-development that uses asp.net framework and includes everything that is needed to get a website developed from scratch on air. It is a very nice tool for developers developing small websites. Major Important components1. IIS Express, a development web server completely compatible with production web server2. ASP.NET, a…