Detailsview itemupdating event example
You can also indicate whether the exception was handled in the event handler by setting the Exception Handled property. If it's bound via Linq Data Source, Sql Data Source or Object Data Source I suggest you have a look at the Updating Event.There you have access to the object via the Event Args. New Object or something like that You can cast this property into the corresponding type and make your changes.The Item Updating event is raised when an Update button within a Details View control is clicked, but before the update operation. NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. Is there another option I could look into to insert the date on an updatecommand eg can it by inserted from the updatecommand "Update Command="UPDATE Main SET Line_Manager_Comments = @Line_Manager_Comments, Date_Authorised = Date. Click the button below this post to show your appreciation! Details View control is a data-bound control that renders a single record at a time.
Click the button below this post to show your appreciation!As an alternative, you can take advantage of AJAX to page through records.When you take advantage of AJAX, only the control and not the entire page is updated when you navigate to a new page of records. Hi Imar, I have some sort of result by adding Date_Authorised = Get Date() on the command control. When I try pressing F10 to advance the code nothing happens in the browser and I am not returned VWD. Click the button below this post to show your appreciation! From here I can insert a new Name but the Your_Age column is not updated via the Details View1_Item Inserting method.