Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
wleonard
Starting Member
30 Posts |
Posted - 2011-03-04 : 17:28:26
|
| Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0266: Cannot implicitly convert type 'System.Web.UI.WebControls.SqlDataSourceCommandType' to 'System.Data.CommandType'. An explicit conversion exists (are you missing a cast?)Source Error: Line 20: command.Connection = myConnection;Line 21: command.CommandText = "sp_GetMainCategory_sort_pg1";Line 22: command.CommandType = SqlDataSourceCommandType.StoredProcedure;Line 23: }Line 24: } Source File: w:\originalpartsgroupSEO\CustomerReview\Default.aspx.cs Line: 22 Will Leonard |
|
|
sunitabeck
Master Smack Fu Yak Hacker
5155 Posts |
Posted - 2011-03-04 : 20:16:22
|
Line 20: command.Connection = myConnection;Line 21: command.CommandText = "sp_GetMainCategory_sort_pg1";Line 22: command.CommandType = SqlDataSourceCommandType.StoredProcedure;Line 23: }Line 24: } |
 |
|
|
|
|
|