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?&nbsp;&nbsp; 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>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2>Heres the subroutine where I'm=20
stuck.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2>&nbsp;&nbsp;&nbsp; Protected Sub=20
btnSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) =
Handles=20
btnSearch.Click<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim search =
As=20
String<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim =
productDataSource As=20
New ObjectDataSource<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
productDataSource.TypeName =3D=20
"Customers"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
productDataSource.SelectMethod =3D=20
"getItem"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
productDataSource.SelectParameters =3D ????????<BR>&nbsp;&nbsp;&nbsp; =
End=20
Sub</FONT></DIV></BODY></HTML>

------=_NextPart_000_000B_01C5C393.0065D650--

Re: Need help with productDataSource.SelectParameters by syoung

syoung
Tue Sep 27 18:43:23 CDT 2005

This is a multi-part message in MIME format.

------=_NextPart_000_001B_01C5C393.51E5F140
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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 ????????
End Sub
------=_NextPart_000_001B_01C5C393.51E5F140
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>It&nbsp;is=20
ObjectDataSoure.SelectParameter</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<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?&nbsp;&nbsp; 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>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2>Heres the subroutine where I'm=20
stuck.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2>&nbsp;&nbsp;&nbsp; Protected Sub=20
btnSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) =
Handles=20
btnSearch.Click<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim =
search As=20
String<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim =
productDataSource As=20
New ObjectDataSource<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
productDataSource.TypeName =3D=20
"Customers"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
productDataSource.SelectMethod =3D=20
"getItem"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
productDataSource.SelectParameters =3D ????????<BR>&nbsp;&nbsp;&nbsp; =
End=20
Sub</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_001B_01C5C393.51E5F140--