vkdixit
04-27-2009, 06:38 AM
Hi,
Actually i want to create a connection class after that i want use it in .aspx page.
my code is:
conn.cs page:
class conn
{
public void connect()
{
public string str;
str = "initial catelog=xx;data sourse=yy;uid=aa;pwd=aa";
}
}
default.aspx page:
using system,data.sqlclient;
sqlconnection con;
sqlcommand cmd;
page_load()
{
conn obj=new conn(); //create instance...
?
?
?
}
Actually i want to create a connection class after that i want use it in .aspx page.
my code is:
conn.cs page:
class conn
{
public void connect()
{
public string str;
str = "initial catelog=xx;data sourse=yy;uid=aa;pwd=aa";
}
}
default.aspx page:
using system,data.sqlclient;
sqlconnection con;
sqlcommand cmd;
page_load()
{
conn obj=new conn(); //create instance...
?
?
?
}