Edititemtemplate not updating
In this posting I will show you how to use strongly typed Form View to save data that user modified.Update mechanism for strongly typed controls is similar to select one.I'm pretty sure I need to change my Update Command of the sql Data Source that feeds my Grid View, and/or add code to my dropdown box's but I'm at a loss of how to do that.Here is the template field of my Grid View: "UPDATE [Activity] SET [Name] = @Name, [Category] = @Category WHERE [Id] = @original_Id AND [Name] = @original_Name AND (([Category] = @original_Category) OR ([Category] IS NULL AND @original_Category IS NULL))"I've seen similar questions asked many times, but can't seem to find one that's exactly my problem.Try turn of the ID's of the buttons (Item Templates) in the gridview and let ASP.
NET 3.5 Basics section of the Wrox Programmer to Programmer discussions.When I update a record, I can change the [Name] of the activity (because it's a default textbox generated by the Grid View), and the record is updated fine.But the value of the ddl box is not inserted into the record. NET 4.5 introduced how to use strongly typed controls to display data.Using strongly typed presentation layer templates is not the only thing that model binding is good for. NET MVC we know how convenient it is when model binders are also able to update our objects when they are modified.
Search for edititemtemplate not updating:
My intention here is you to show you simply how we get changed data back to our web form.