J
jobs
Cannot find column [@phone_nbr].
Am I missing something here...
SelectCommand="SELECT [ssn], [phone_nbr], [Description], refid
FROM [Callers_vw] "
FilterExpression="phone_nbr like @phone_nbr + '%'"
<FilterParameters>
<asp:ControlParameter PropertyName="text" Name="phone_nbr"
ControlID="textbox1" Type="string" />
</FilterParameters>
btw, i tried FilterExpression="phone_nbr = @phone_nbr'"
and it resulted in the same error.
If I move the sql code out of the filterexpress and to select it
works, but I can't seem to get all rows returned if nothing is
filtered via the textbox.
Here's what I want to do. If nothing is in the textbox return all
rows, otherwise attempt to filter. For whaterver reason, I am learning
that vb.net's nothing does not equate to sql servers dbnull or isnull
logic.
Thanks for any help or information!
Am I missing something here...
SelectCommand="SELECT [ssn], [phone_nbr], [Description], refid
FROM [Callers_vw] "
FilterExpression="phone_nbr like @phone_nbr + '%'"
<FilterParameters>
<asp:ControlParameter PropertyName="text" Name="phone_nbr"
ControlID="textbox1" Type="string" />
</FilterParameters>
btw, i tried FilterExpression="phone_nbr = @phone_nbr'"
and it resulted in the same error.
If I move the sql code out of the filterexpress and to select it
works, but I can't seem to get all rows returned if nothing is
filtered via the textbox.
Here's what I want to do. If nothing is in the textbox return all
rows, otherwise attempt to filter. For whaterver reason, I am learning
that vb.net's nothing does not equate to sql servers dbnull or isnull
logic.
Thanks for any help or information!