Detailsview updating newvalues

Instead when setting the Update Parameters in the codebehind, the control will update the database with the parameter names entered.

For example ‘@Parameter’, will be sent in the update to the record instead of null.

That is, get the value from the dropdownlist, and set it in the event.

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.

Most of the data controls have events ending in ing and ed e.g. In most of the event handlers of the ing events it is easy to get the values from the event args.The code below shows me the values in the Drop Down List, but when I update it with the “edit” of the Grid View row, the value does not get saved.Here is the code and what it looks like running: Notice that even though I’m using Bind rather than eval, the value does not stick.Right now you must be asking yourself how can you get those dictionaries filled out just as if you were bound to a Datasource control?The good news is you CAN do it(this is what this blog post is all about right? This is probably one of the worst things you can do.

Search for detailsview updating newvalues:

detailsview updating newvalues-66detailsview updating newvalues-53

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “detailsview updating newvalues”