"jens Jensen" wrote: Hello, I have an image file name in a table that a let users modify via a Grid View/Detail View pair.Recently I was tasked with encrypting/decrypting some data that could be edited using ASP. Along with the details view control, the legacy code used a SQL Data Source to select and update everything.But the image is rendered in a templatefield 's i have a fileupload control .leting users upload a new picture and thus replace the old one.This will be solved when calling the Item Updating event.After setting the Details View’s Item Updating method, you will need to modify the SQL Data Source’s Update Command, Update Command Type, and Update Parameters.The event Item Updating is not fired when you enter on edit mode.
But I can't see why it wouldn't be bringing back the new textbox values.
Instead when setting the Update Parameters in the codebehind, the control will update the database with the parameter names entered.
For example [email protected], will be sent in the update to the record instead of null.
The legacy code in the SQL data source used a update statement with parameters.
Normally the details view control automatically detects whether to pass a null in the parameter.