Dot Net Arcane

Showing posts with label SQL. Show all posts
Showing posts with label SQL. Show all posts

Monday, 5 March 2012

SQL Connection



Connected Procedure : -

SqlConnection con = new SqlConnection("Pass the Connection String here");

SqlCommand com = new SqlCommand("select * from table3", con);

con.Open();

SqlDataReader dr = com.ExecuteReader();

GridView1.DataSource = dr;

GridView1.DataBind();

con.Close();
Posted by Kumkum at 11:13 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Adonet, Asp.Net, C#, Connected Procedure, Connection Approach, ExecuteReader, SQL
Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ▼  2012 (10)
    • ▼  March (10)
      • SQL Connection
      • How to Send a Mail in Asp Dot Net
      • File Handling In Asp Dot Net : Insert Into File
      • Use of File upload Control in Asp Dot Net
      • How to get IP address by Hostname from Domain name...
      • Auto Complete Extender In Asp Dot Net
      • How To Use Image Map Control In Dot Net
      • How to Compress the File using Dot Net Application
      • How To Decompress File Using Dot Net Application
      • Introduction Of Asp Dot Net

About Me

Kumkum
View my complete profile
Simple theme. Powered by Blogger.