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.

 All Forums
 Development Tools
 ASP.NET
 'System.Data.SqlClient.SqlParameterCollection'

Author  Topic 

neojapanese
Starting Member

13 Posts

Posted - 2006-03-03 : 22:48:28
why?
Compilation Error
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: BC30456: 'AddWithValue' is not a member of 'System.Data.SqlClient.SqlParameterCollection'.

Line 29: cmdSelect.Parameters.AddWithValue("@username", txtUsername.Text)

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2006-03-03 : 22:58:13
Just as your error message suggests there doesn't seem to be a member of the sqlparametercollection class called "AddWithValue".

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatasqlclientsqlparametercollectionmemberstopic.asp

Be One with the Optimizer
TG
Go to Top of Page
   

- Advertisement -