How to make div Center:
No need to use align= center because align is not supported by div
Just take a dive and make its width 90% or as you want then use
Just Consider we have following records in a object named CR_NonDPC_ConfigDTO
PCName : PC
MotherBoard : ASROK 945 GCM
Processor : Pantium
HDD : HDD 160 GB
RAM : DDR-2 1 GB
Cassing : NULL
ExtraConfig : CD ROM ASUS
Sometimes we need to run *.sql script from our application for installing data base. SqlCommand is not right for running installation script because installation script consists of DDL and GO command. Here we use smo library for executing *.sql script.
Use Asp.net Session from Class Library (or Class Library Project)
Add First we need to add System.Web as a reference on our project. Continue reading
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.
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
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. Continue reading
If it is necessary to select distinct record from Data Table, then we can use following method.
public DataTable SelectDistinct(DataTable SourceTable, string FieldName)
DataTable dt = new DataTable();
dt = SourceTable.Clone();
This article is provide a basic idea how we can send Emails from a C# Windows Application.
Here I have described how we can send mail with Attachment and HTML body.
There is no built in method for converting list to data table in C#.
So we can implement following method for converting List to DataTable in C#. Continue reading