If you go with the flow, you probably won't get stuck, but the moment you try to go against the grain you end up with a hand full of thorns.

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.

I have a Details View with a Drop Down List in an Edit Item Template, I know, pretty cool right?

detailsview updating newvalues-53detailsview updating newvalues-69

This method uses the ‘Extract Values From Cell’ method to grab values from the Details View control.

This method isn’t exactly well documented on MSDN, so it’s not obvious at first that the passed parameter, IOrdered Dictionary dictionary, is being used as a referenced parameter, not as a copy. NET framework] The method, Get Values, used is identical to what is covered at the article written at David Fowler’s blog.

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.

After you've created a layout with a data control of your choice and eventually bound them to some datasource, you almost always want to get that data back out of them(and why wouldn't you, its your data).

One thing you'll learn about developing webpages is that its like petting a porcupine (yikes).I'm new at this and I'm sure I'm overlooking something simple here.I'll post the ASP code, hopefully someone can help me with this one. So, I guess I should have know the answer to why the following does not work.Basically, the scenario I have is that I have a foreign key column in my Grid View that I want to show as a Drop Down List of values.Instead when setting the Update Parameters in the codebehind, the control will update the database with the parameter names entered.