You are a Web developer for CareerRide. The data is stored in a Microsoft SQL Server 2005 database on a server named CareerPC and the Database name is TestDB. There is one GridView control on the page that you want to fill with table name Employee. Suppose that SqlConnection object is conObj and SqlCommand Object object is cmdObj. Which important properties of command object you will initialize to achieve this task?
1.cmdObj.CommandType = Text; cmdObj.Connection = conObj; cmdObj.CommandText = "select * from Employee";
2.cmdObj.CommandConnection = conObj; cmdObj.CommandText = "select * from Employee";
3.cmdObj.CommandType = CommandType.Text; cmdObj.Connection = conObj; cmdObj.CommandText = "select * from Employee";
4.None of the above.
Posted Date:-2022-02-01 12:07:22