Need help with productDataSource.SelectParameters

  • Thread starter Thread starter syoung
  • Start date Start date
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
 
It is ObjectDataSoure.SelectParameter

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top