![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Sqldatasource Update Hi, I'm having trouble updating an Oracle database table using SqlDataSource and a Gridview when I include a date field. It works fine without the date field, but when I put the date field in, I get errors. What is the syntax and/or method to update a date field? How is the date formatted from the Gridview's textbox to the UpdateComand of the SqlDataSource? <asp:SqlDataSource ID="EditGrid" runat="server" ConflictDetection="ComareAllValues" ConnectionString="<%$ ... %>" UpdateCommand='Update EditTable set active_flag = :ACTIVE_FLAG, edit_dt = to_date(":EDIT_DT", "MM/DD/YYYY HH:MI:SS PM") where edit_id = riginal_EDIT_ID and active_flag = riginal_active_flag and edit_dt = riginal_EDIT_DT'><UpdateParameters> <asp:Parameter Name="ACTIVE_FLAG" Type="String" /> <asp:Parameter Name="EDIT_DT" Type="DateTime" /> <asp:Parameter Name="original_ACTIVE_FLAG" Type="String" /> <asp arameter Name="original_EDIT_DT" Type="DateTime" /></UpdateParameters> </asp:SqlDataSource> |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Sqldatasource Update Mike, Try your question in the newsgroup Microsoft.public.dotNet.framework.AdoNet There are guys active with experience in development with Oracle Cor |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| VB.NET: dynamically change SqlDataSource SelectCommand and re-exec | .NET General | |||
| How to reset the SelectCommand of a SqlDataSource on the client(JavaScript)? | .NET General | |||
| GridView not Updating Through SqlDataSource | .NET General | |||
| newbie question on SqlDataSource object | .NET General | |||
| Windows update error 80070103 - Beta 2 Vista NVIDIA Driver Update | Vista General | |||