I'm just a newbie developer using C# (ASP.Net) I'm having trouble in finding the solution in my error:
'System.Data.SqlClient.SqlParameterCollection' does not contain a definition for 'AddWithValue' accepting first argument of type 'System.Data.SqlClient.SqlParameterCollection' could be found (are you missing a directive or an assembly reference?)
I am using parameters before, but never experienced this kind of error.
acesantos
0 Points
1 Post
Problem with 'System.Data.SqlClient.SqlParamterCollection'
Oct 08, 2010 03:20 AM|LINK
Hello guys,
I'm just a newbie developer using C# (ASP.Net) I'm having trouble in finding the solution in my error:
'System.Data.SqlClient.SqlParameterCollection' does not contain a definition for 'AddWithValue' accepting first argument of type 'System.Data.SqlClient.SqlParameterCollection' could be found (are you missing a directive or an assembly reference?)
I am using parameters before, but never experienced this kind of error.
Thanks in advance!
rivdiv
All-Star
16323 Points
2595 Posts
Re: Problem with 'System.Data.SqlClient.SqlParamterCollection'
Oct 08, 2010 03:50 AM|LINK
Can you post your code where you're using the AddWithValue method?
riswadkarhar...
Contributor
2458 Points
561 Posts
Re: Problem with 'System.Data.SqlClient.SqlParamterCollection'
Oct 08, 2010 03:58 AM|LINK
Hi,
Are you trying to add one SqlParameter collection to another using AddWithValue method?.
Please check the following link for the details of AddWithValue method:
http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlparametercollection.addwithvalue(v=VS.90).aspx
----------------------------------------------------------
Please mark as answer if the post helped you.