Groups | Blog | Home
all groups > dotnet ado.net > september 2005 >

dotnet ado.net : Need help with productDataSource.SelectParameters



syoung
9/27/2005 6:40:58 PM
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 =3D "Customers"
productDataSource.SelectMethod =3D "getItem"
productDataSource.SelectParameters =3D ????????
syoung
9/27/2005 6:43:15 PM
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 =3D "Customers"
productDataSource.SelectMethod =3D "getItem"
productDataSource.SelectParameters =3D ????????
AddThis Social Bookmark Button