Selected value not updating detailsview

The property can also be used to select an item in the list control by setting it with the value of the item.This property cannot be set by themes or style sheet themes.i want to update both fields using the detailsview. in the dropdownlist suppose there 5 items and in that one of the item should be matching to the "label" value .My problem: when clicking on the edit button, the modified text in the textbox is effectively updated in the table, but instead of updating the chosen value of the dropdownlist, the field in the table becomes empty (old value is updated by nothing). Close() ' i put here all possible items in the dropdownlist If Details View1. Edit Then sql = "select foto_na from fotos" comd = New Sql Command(sql, m Connection) dtreader = comd. if the user has clicked "edit" and when u display dropdownlist how will the user know what was the "selected" value.

Then By Example: Name = "Joe" Age = 30 Email = "[email protected]" Alternate Email = "[email protected]" In my Details View, I wish edit ONLY the Name and Email fields. We were unable to reproduce it with the instructions provided.

If multiple items are selected, the value of the selected item with the lowest index is returned.

If no item is selected, an empty string ("") is returned.

If we were to remove a field from the Grid View - say Quantity Per Unit - when updating the data the data Web control would not set the Object Data Source's Quantity Per Unit Update Parameters value.

="DELETE FROM [Customers] WHERE [Customer ID] = @original_Customer ID AND [Company Name] = @original_Company Name AND [Contact Name] = @original_Contact Name AND [Contact Title] = @original_Contact Title AND [Address] = @original_Address AND [City] = @original_City AND [Region] = @original_Region AND [Postal Code] = @original_Postal Code AND [Country] = @original_Country AND [Phone] = @original_Phone AND [Fax] = @original_Fax"="INSERT INTO [Customers] ([Customer ID], [Company Name], [Contact Name], [Contact Title], [Address], [City], [Region], [Postal Code], [Country], [Phone], [Fax]) VALUES (@Customer ID, @Company Name, @Contact Name, @Contact Title, @Address, @City, @Region, @Postal Code, @Country, @Phone, @Fax)"="UPDATE [Customers] SET [Company Name] = @Company Name, [Contact Name] = @Contact Name, [Contact Title] = @Contact Title, [Address] = @Address, [City] = @City, [Region] = @Region, [Postal Code] = @Postal Code, [Country] = @Country, [Phone] = @Phone, [Fax] = @Fax WHERE [Customer ID] = @original_Customer ID AND [Company Name] = @original_Company Name AND [Contact Name] = @original_Contact Name AND [Contact Title] = @original_Contact Title AND [Address] = @original_Address AND [City] = @original_City AND [Region] = @original_Region AND [Postal Code] = @original_Postal Code AND [Country] = @original_Country AND [Phone] = @original_Phone AND [Fax] = @original_Fax"From your description, it almost sounds like the update event is not being fired.

242

Leave a Reply