Here we will use jQuery for Row insertion and deletion.
Adding New row:
Consider we have following HTML table with ID=”tbl” Continue reading
By default saving changes on a table is is blocked. When we want to change or alter any Table Then it shows following message
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();