spmcmorrow
asked on
ASP .NET 2.0 SQL Select Command Problem
I have the following code:
Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim DSflgasgiveaway As SqlDataSource
Dim SelectArgs As SqlDataSourceCommandEventA rgs
DSflgasgiveaway.Connection String = ConfigurationManager.Conne ctionStrin gs("flgasg iveawayCon nectionStr ing1").ToS tring
DSflgasgiveaway.SelectComm andType = SqlDataSourceCommandType.T ext
DSflgasgiveaway.SelectComm and = "Select * from flgasgiveaway WHERE ItemCode = @itemcode"
DSflgasgiveaway.SelectPara meters.Add ("itemcode ", txtCode.Text)
Dim rowsaffected As Integer = 0
Try
rowsaffected = DSflgasgiveaway.Select()
Catch ex As Exception
End Try
End Sub
I have the following errro message when i hover my mouse over the select statement:
'Argument not specified for parameter 'arguments' of Public Function Select(arguments As System.Web.UI.DataSourceSe lectArgume nts) As System.Collections.IEnumbe rable'
What am I missing?????
Thanks in advance!
Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim DSflgasgiveaway As SqlDataSource
Dim SelectArgs As SqlDataSourceCommandEventA
DSflgasgiveaway.Connection
DSflgasgiveaway.SelectComm
DSflgasgiveaway.SelectComm
DSflgasgiveaway.SelectPara
Dim rowsaffected As Integer = 0
Try
rowsaffected = DSflgasgiveaway.Select()
Catch ex As Exception
End Try
End Sub
I have the following errro message when i hover my mouse over the select statement:
'Argument not specified for parameter 'arguments' of Public Function Select(arguments As System.Web.UI.DataSourceSe
What am I missing?????
Thanks in advance!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER