P
Patrick.O.Ige
I have a simple textbox control
<asp:TextBox ID="calendar" runat="server" CssClass="textbox"></asp:TextBox>
( Would be changing it to a calendar control) on a page .I want the user to
type in a date e.g 2/06/2008 and
hit submit
The parameter is being sent to an oracle Db.
My select statement looks like below:
Select dt,a,b from Mytable where (to_char(DT, 'D/MM/YYYY') LIKE concpdt)
My Control Parameter looks like below
<asp:ControlParameter ControlID="calendar" Name="pdt" PropertyName="Text"
Type="String" />
I have tried to format the date string like below:
but no luck
String.Format("{0/MM/YYY},calendar.text.ToString())
and added the parameter in the ObjectDataSource_Selecting event but no
LUCK.
Any ideas?
<asp:TextBox ID="calendar" runat="server" CssClass="textbox"></asp:TextBox>
( Would be changing it to a calendar control) on a page .I want the user to
type in a date e.g 2/06/2008 and
hit submit
The parameter is being sent to an oracle Db.
My select statement looks like below:
Select dt,a,b from Mytable where (to_char(DT, 'D/MM/YYYY') LIKE concpdt)
My Control Parameter looks like below
<asp:ControlParameter ControlID="calendar" Name="pdt" PropertyName="Text"
Type="String" />
I have tried to format the date string like below:
but no luck
String.Format("{0/MM/YYY},calendar.text.ToString())
and added the parameter in the ObjectDataSource_Selecting event but no
LUCK.
Any ideas?