This example has a text box that accepts user input, which is a potential security threat. NET Web pages validate that user input does not include script or HTML elements.
For more information, see Script Exploits Overview.
On 'document library' it works quite good, but in 'generic list' I have a litle problem, when user changed attachment in this event (delete old one, and inserts new one). At this moment, I work in another company, where is no sharepoint, and... I worked with sharepoint over 2.5 years, and I don't want to waste more my time for this technology.
I have something like that: Item adding being a synchronous event nor the list item and attachments are committed in database.
A List View Update Event Args object is passed to the event handler, which enables you to determine the index of the current item.
This event need to work on 'document library' and 'generic list' with attachments.event when an Update button (a button with its Command Name property set to "Update") within the control is clicked, but before the Form View control updates the record.This allows you to provide an event-handling method that performs a custom routine, such as HTML encoding the values of a record before updating it in the data source, whenever this event occurs.Event recievers are common in Sharepoint development so its better to understand the data available in each events.
Sometimes as a developer we jump into coding before thinking about contextual data availability.A Details View Update Event Args object is passed to the event handler, which allows you to determine the index of the record being updated and to indicate that the update operation should be canceled.