Posts Tagged ‘MVC’

ASP.NET MVC: How to use Apache’s log4net logging framework

This blog post will give an short overview of the steps needed to integrate the Apache log4net logging framework to an ASP.NET MVC 3 Web application. For simplicity, we are starting from a new ASP.NET MVC 3 Web application and choose the “Internet Application” template to have some default controllers and views. To include the […]

Read more…

ASP.NET MVC 3: How to stream files to clients

Streaming files to the client is very easy using ASP.NET MVC 3: The following code snippet shows an exemplary controller action “Download” that streams data to the client. If the client requests this action (e.g. by using the link [YOUR_CONTROLLER]/Download) the browser will (depending on it’s settings) start downloading the data or open the download […]

Read more…