Hi,
I have two methods. In one i would like to create a string from a
stored procedure to pass to the second which populates a datagrid.
private void method()
{
string sqlString = "spDataForDatagrid"; // the stored procedure
BindDataGrid(sqlString);
}
private void BindDataGrid(string sqlString)
{
// Bind data to DataGrid
}
This obviously passes the string in it's literal "spDataForDatagrid"
form. How do I reference the the actual stored procedure so the string
passed is "SELECT ..... FROM ...... etc"?
Many thanks.