By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,534 Members | 910 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,534 IT Pros & Developers. It's quick & easy.

Need help with productDataSource.SelectParameters

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.