Hi, I am developing a web application project. For now I am doing the search function whereby I am required to call data stored in MS SQL Server 2008 and bind to grid View. In the Common_DDL page, there is a class that is responsible for connecting to the database.
I input in my code as followed:
C#
public DataSet
Get_ItemCatalogueRecords()
{
SqlCommand cmd_ItemCatalogue = new
SqlCommand();
cmd_ItemCatalogue.CommandText = "[VRM].[GET_ItemCatalogueRecords]";
cmd_ItemCatalogue.CommandType = CommandType.StoredProcedure;
cmd_ItemCatalogue.Parameters.Clear();
DataSet ds_ItemCatalogue =
getDataSet(cmd_ItemCatalogue);-->Sometimes this sentence isin error state.
return ds_ItemCatalogue;
}
Krishna GaradRank #191 · 12.8K reputationPosted Jan 23, 2011, 6:09 PM EST
Becky Bloomwood110 reputationPosted Jan 23, 2011, 7:34 PM EST
Krishna GaradRank #191 · 12.8K reputationPosted Jan 23, 2011, 7:37 PM EST
http://www.c-sharpcorner.com/UploadFile/Blogs/4190/
Suthish NairRank #92 · 22.8K reputationPosted Jan 24, 2011, 1:27 AM EST
Becky Bloomwood110 reputationPosted Jan 24, 2011, 3:23 PM EST
Suthish NairRank #92 · 22.8K reputationPosted Jan 24, 2011, 8:17 PM EST
Becky Bloomwood110 reputationPosted Jan 24, 2011, 9:04 PM EST
Thanks.