How to Set Default Language in Web.config
Last Updated on Sunday, 5 May 2013 01:46 Written by Rodolfo Hernandez Wednesday, 8 May 2013 12:00
Having an asp app available in multiple languages is very good to reach a good audience. However you might want to set a default language so that it can be changed later by visitors. In this article I will give you a step by step guide on How to Set default language in web.config.
1. Open the web.config file of your application.
Learn MoreHow to Block IP Addresses in web.config
Last Updated on Tuesday, 30 April 2013 01:54 Written by Rodolfo Hernandez Monday, 6 May 2013 12:00
If you want to restrict website access to certain IP address, you have to do it in the web.config file. The Web.config allows you to restrict access to a page, directory, all sub directories, or even the whole website. In this article I will give you a step by step guide on how to blog IP addresses in web.config
1. Open the web.config file of your project.
Learn MoreHow to Send Emails Using a Template in ASP.net
Last Updated on Saturday, 23 February 2013 02:41 Written by David Bauernschmidt Tuesday, 5 March 2013 12:00
Over the years sending email in asp.net has gotten easier and easier but the requirements have gotten more complex. I want to show you how to using the system.net.mail reference to send emails using templates. I have a client that wants someone to fill out their information and have all that data placed into an email and sent to them. By taking advantage of email templates inside of asp.net this becomes a lot easier to manage. I could just create an html page and highlight everything between the body tags and use that to build a very large string and use that to replace text and to send it. There are a couple of problems with this choice.
Learn MoreHow to Create or Modify PDF Form in ASP.net
Last Updated on Saturday, 23 February 2013 02:41 Written by David Bauernschmidt Monday, 4 March 2013 12:00
It seems like regularly something comes up in the programming world that is requested by a client that should be easy, ends up proving to take more time, more money or both. So it is nice to find a solution to a problem that IS easy. This article is to show you how easy it is to use ASP.net web form to open up a PDF, set a value on a form and then send it back to the user’s browser. I have attached the project below if you want to download it. The first thing you need to do is go download iTextSharp.dll. I will be using visual basic (vb) for this project.
Learn MoreHow to Conditionally Load Google Analytics in a Web Application
Last Updated on Wednesday, 27 February 2013 08:44 Written by David Bauernschmidt Saturday, 2 March 2013 12:00
If you are a developer that uses Google Analytics in your ASP.net web applications then you know that loading up the Google Analytics in your web page should not happen when you are building the application. In the past I have always just commented out the section for Google Analytics until publishing the site. Then I would go in and uncomment the lines. This works if you do not forget to uncomment the lines in production. (This happened to me).
I decided that there had to be a better way to automatically do this. After searching the internet and pulling together prior knowledge of how an asp.net web site works I decided to use the web.config to help me. First add the following lines to your web.config production transformation file. (See here if you do not understand the transformation idea).
Learn More
Recent Comments