hi kathy,
There is an error in ur code if u notice.
System.Data.SqlClient.SqlDataAdapter SqlCmd=new System.Data.SqlClient.SqlDataAdapter("Select * From Person Where Username='" +
UserName.Text + "' And Password = '" +
Password.Text + "'");
SqlCmd.Fill( ds );
The error which u get
'System.Data.SqlClient.SqlDataAdapter' is a 'type', which is not valid in the given context.
explains that sqldataadapter is a type.u have not created an object for the type and the type sqldataadapter cannot be used as such.
Secondly,
The name 'SqlCmd' does not exist in the current context.
U have used SqlCmd here but u have not delcared it.
Hope you understand.
Thanks
Regards
Exelio
Exelio
Junior Poster in Training
57 posts since Aug 2006
Reputation Points: 10
Solved Threads: 0
Use parameters in SQL query, do not use direct insertion in query.
ManicCW
Junior Poster in Training
95 posts since Nov 2005
Reputation Points: 13
Solved Threads: 11