D
Dave
Hi
I am using .NET 2 with c# and want to retrieve a single value from my
stored procedure.
I currently have the following code:
---------------------------------------------------------------------------------------------------------------------------------
ConnectionStringSettings connectionSettings =
ConfigurationManager.ConnectionStrings["ConnectionString"];
SqlDataSource ds = new SqlDataSource();
ds.SelectCommandType = SqlDataSourceCommandType.StoredProcedure;
ds.SelectCommand = "GetCustomerName";
ds.SelectParameters.Add("traderId", TypeCode.Int32, "1");
ds.Select();
---------------------------------------------------------------------------------------------------------------------------------
Obviously this won't get my customer name
How do I get the actual value?
Thanks!
I am using .NET 2 with c# and want to retrieve a single value from my
stored procedure.
I currently have the following code:
---------------------------------------------------------------------------------------------------------------------------------
ConnectionStringSettings connectionSettings =
ConfigurationManager.ConnectionStrings["ConnectionString"];
SqlDataSource ds = new SqlDataSource();
ds.SelectCommandType = SqlDataSourceCommandType.StoredProcedure;
ds.SelectCommand = "GetCustomerName";
ds.SelectParameters.Add("traderId", TypeCode.Int32, "1");
ds.Select();
---------------------------------------------------------------------------------------------------------------------------------
Obviously this won't get my customer name

How do I get the actual value?
Thanks!