Posted on: 4/9/2015 1:01:20 PM | Views : 650

Hi 
I hope you are having a nice day!
I have created a page and named it as database.cs, here is all codes that the page includes: 
using System; using System.Collections.Generic; //using System.Linq; using System.Web; using System.Data.SqlClient; using System.Data; using System.Drawing; /// <summary> /// Summary description for d_base /// </summary> public class database { public string cpath=""; public database() { } SqlCommand cmd; SqlConnection con = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\farhang.mdf;Integrated Security=True;User Instance=True"); SqlDataAdapter da = new SqlDataAdapter(); DataTable dt = new DataTable(); DataSet ds; string message = ""; public void conect() { con.Open(); } public void Dconect() { con.Close(); } ...

Go to the complete details ...