search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

how to have the 'Select, Update and Insert' statements in the aspx.cs file ? [rather than the aspx file]

Asked by Tony P.
14 years ago.

<asp:SqlDataSource ID="SqlDataSourceDetail" runat="server" ConnectionString="<%$ ConnectionStrings:daypilot >"
SelectCommand="SELECT [id], [name], [eventstart], [eventend], [allday] FROM [event] WHERE ([id] = @id)"
UpdateCommand="UPDATE [event] SET [name] = @name, [eventstart] = @eventstart, [eventend] = @eventend, [allday] = @allday WHERE [id] = @id"
InsertCommand="INSERT INTO [event] ([name], [eventstart], [eventend], [allday]) values (@name, @eventstart, @eventend, @allday)"
>

I would like to know is it possible to move these to aspx.cs file. protected void DayPliotCalendar1_EventSelect(object sender, EventSelectEventArgs e). Is there a update + insert EventArgs.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.