Thursday 12 January 2012

ASP.Net | Creating Objects | Neha Sharma

Hiii All,


Here now i am going to tell you how you can use your Connection Class on your application's every page ,so that you can enter data in to table.

Now the situation is juzt like you have your connection but dont have ryt method to use that,
so create an object on desired page like default.aspx.cs,add two namespaces:

using System.Data;
using System.Data.SqlClient;


Now above page_load event write this code"

myconn conn=new myconn();

this line will fetch all objects from your class myconn.

So i think it's not tough or not even a bit difficult .

Enjoy programming.....

---------
Thanks

1 comment:

Which Game Engine you should choose | Neha Sharma

Unity3D and Unreal Engine are only 2 Game engine which executes an indispensable position in Game Industry. The choice of the engine must ...