S
syoung
Does anyone knows how to assign the value of a textbox to productDataSource.SelectParameters when a button is clicked? I'm using VS 2005 and all the code I've found on the web are samples of dropdown lists with code in the aspx page.
Heres the subroutine where I'm stuck.
Protected Sub btnSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSearch.Click
Dim search As String
Dim productDataSource As New ObjectDataSource
productDataSource.TypeName = "Customers"
productDataSource.SelectMethod = "getItem"
productDataSource.SelectParameters = ????????
End Sub
Heres the subroutine where I'm stuck.
Protected Sub btnSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSearch.Click
Dim search As String
Dim productDataSource As New ObjectDataSource
productDataSource.TypeName = "Customers"
productDataSource.SelectMethod = "getItem"
productDataSource.SelectParameters = ????????
End Sub