J
J. Muenchbourg
while inserting new records into SQL, i'm using the folloinwg
sqlstatement>
Dim MySQL as string = "Insert into roster (pname, pnotes, thedate)
values (@pname, @pnotes, @thedate)"
the sql parameter I'm using is >
cmd.Parameters.Add(New SQLParameter("@thedate", thedate.text))
but i get an error : Syntax error converting datetime from character
string when trying to insert. the textbox syntax I'm using for the
textbox control is >
<asp:textbox id="thedate" runat="server"/>
not sure where to change the text coming from the textbox into a
"datetime" data type, as with old asp, you could use a poundsign
(something like "# thedate #") to make it a date object.
thanks for your help
JMuenchbourg
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
sqlstatement>
Dim MySQL as string = "Insert into roster (pname, pnotes, thedate)
values (@pname, @pnotes, @thedate)"
the sql parameter I'm using is >
cmd.Parameters.Add(New SQLParameter("@thedate", thedate.text))
but i get an error : Syntax error converting datetime from character
string when trying to insert. the textbox syntax I'm using for the
textbox control is >
<asp:textbox id="thedate" runat="server"/>
not sure where to change the text coming from the textbox into a
"datetime" data type, as with old asp, you could use a poundsign
(something like "# thedate #") to make it a date object.
thanks for your help
JMuenchbourg
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!