Convert your Data Transfer Object to XML (XML Serialization and Deserialization)

Introduction When we need to transfer our object through internet or need to write in a file then it is necessary to convert it to XML. We can convert object to XML using XML Serialization. In this article we will discuss about how to convert object (It may be entity/ Data Container/ DTO) to XML.

Read More

Clearing all TextBoxes text from a Form using C#

When we develop any application form, then there will be a new button where we need to perform clear operation. We can clear all the TextBox texts from a Form or a Control like panel, tabe pages using following code foreach (Control c in this.Controls) { if (c is TextBox) { c.Text = string.Empty; }

Read More

Run your ASP.net Application without IIS. (using Cassini)

It is easy to run your asp.net web application without installing any web server. For running your application without IIS you have to use Cassini Desktop Adapter. Features of Cassini Desktop Adapter * Standalone Web Applications – now on the Desktop * 100% Embedded Web server * No Installation or GAC Required * No Administrator

Read More