XML Handling Part 2- The XMLDocument class, Creating an XML
Date posted: 10.08.2013
Comments : 0
In the previous article we talked about XML. We found out what XML is and how we can read its contents using XmlTextReader. We are now ready to look into XMLDocument, a more modern way to take control of an XML file. We will also learn how to create a new XML file.
The XmlDocument
If you have read the last article you must be getting familiar with XMLs. We succeeded...
XML Handling Part 1 - Introduction, Reading an XML
Date posted: 13.07.2013
Comments : 0
XML files show up in most applications lately, so it's a good idea to know how to make proper use of them. This is the first part of my XML articles which carries an introduction on XML files and guides you how to read its contents. In the next article we will go through further XML operations such as editing
What is XML?
XML is a file...
A simple guide to Unit Testing
Date posted: 30.06.2013
Comments : 0
Testing is a part of every developers life. No matter how experienced a programmer you are, there are always times when, out of pressure or by mistake, something will go wrong. Sooner or later you will have to test your code to ensure that everything works according to plan. So, how can unit testing make our lives easier? Unit Testing is a tool that allows developers to easily test their source...
Public vs Protected vs Private
Date posted: 30.05.2013
Comments : 3
Encapsulation is regarded as one of the pillars of Object Oriented Programming. In a few words it is a mechanism that restricts parts of a project from accessing some of its components. .Net framework contains three access modifiers. Public, protected and private. Once we take a short look at what these modifiers do, we will focus on why and how we should use them.
Access modifiers
Since...
Multiple Language Website
Date posted: 16.05.2013
Comments : 0
More than 50% of the web's sites have English content. English can easily be regarded as the internet language since most users, no matter where they are from, can understand what an English page is about. There may also be websites that apart from English wish to have content in their own language or offer more optional languages to the user. A worldwide website is bound to fail unless every...
Secure your website
Date posted: 02.05.2013
Comments : 1
When was the last time you heard a website was hacked? Well, probably what you have heard of concerned some major properly secure website and the people who got access to it were no rookies. However this is no excuse for you to stand there waiting for a novice hacker to play around with your website. Let's go through a few of the most common and easy to handle techniques.
Getting...
Asynchronous programming in .NET 4.5
Date posted: 21.04.2013
Comments : 0
Asynchronous programming has been a part of Microsoft's applications for a long time. However things tend to mature. .NET 4.5, released in August 2012, brought up C# 5 and VB 2012. And along came a new way of creating asynchronous methods. Instead of using multithreading or similar techniques, we now have access to an easier way using the key words async and await. Since a reader asked me,...
AJAX -Introduction and Overview
Date posted: 08.04.2013
Comments : 0
Imagine yourself being a web developer a few years ago. Suppose you had a page full of data, among which there was one small part which had to be refreshed. There was only one way to do this. The server had to post the whole of the page back to the client. That was no good at all. Not only did you have to wait for the server to create the page all the way from the begining and send it back, but...
How many online visitors are there?
Date posted: 04.04.2013
Comments : 1
One thing you can add to your website in order to show that it is a respectful place to spend some time, is a visitor counter. A person knowing that there are more visitors viewing your site will feel more confortable to post your forum or listen to what you have to say.
Getting Started
Let's see what we have to do in order to create a visitor counter. When...
Sending emails using C#
Date posted: 28.03.2013
Comments : 2
Everybody knows what an email is. You write an email body, set a subject, pick your recipient, press the Send button and your email is off. However there are emails that can be automatically generated. Most probably you are at times recieving commercial emails, emails asking you to confirm your email address does exist, a site administrator would get emails by visitors filling in some sort of contact...