Code snippet:
<asp:SqlDataSource ID="sdsPress" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
DeleteCommand="DELETE FROM [pressReleases] WHERE [Id] = @Id"
InsertCommand="INSERT INTO [pressReleases] ([UserId],
[PressTitle], [PressDescription], [CompanyName], [CompanyLocation],
[DateAdded], [Flagged]) VALUES (@UserId, @PressTitle, @PressDescription,
@CompanyName, @CompanyLocation, <% =Date.now() %>, 0)"
... @CompanyName, @CompanyLocation, GetDate(), 0)"
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression
"Cirene" <cir...@nowhere.com> wrote in message
news:u2adMKks...@TK2MSFTNGP05.phx.gbl...
"Mark Fitzpatrick" <mark...@fitzme.com> wrote in message
news:uNNNNyks...@TK2MSFTNGP02.phx.gbl...