This is a multi-part message in MIME format.
------=_NextPart_000_000B_01C5C393.0065D650
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
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 ????????
End Sub
------=_NextPart_000_000B_01C5C393.0065D650
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2722" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DVerdana size=3D2>Does anyone knows how to assign the =
value of a=20
textbox to productDataSource.SelectParameters when a button is=20
clicked? I'm using VS 2005 and all the code I've found on =
the web=20
are samples of dropdown lists with code in the aspx page.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>Heres the subroutine where I'm=20
stuck.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier size=3D2> Protected Sub=20
btnSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) =
Handles=20
btnSearch.Click<BR> Dim search =
As=20
String<BR> Dim =
productDataSource As=20
New ObjectDataSource<BR> =20
productDataSource.TypeName =3D=20
"Customers"<BR> =20
productDataSource.SelectMethod =3D=20
"getItem"<BR> =20
productDataSource.SelectParameters =3D ????????<BR> =
End=20
Sub</FONT></DIV></BODY></HTML>
------=_NextPart_000_000B_01C5C393.0065D650--