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.
Here we will use XML Serialization & Deserialization for converting our object to XML and XML to Object.
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;
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 Privileges Required
* No XML / Configuration Files
* Cassini On-Demand