Detailsview updating newvalues

6854933580_2c8b688306_z

NOW..a couple things I did since pasting a) I noticed that I don't actually have a binding "title" in here which makes me wonder how the title was actually updating. If you look at the line I added in the code behind--like you suggested.didn't actually change the title to new value-it actually pulled the value from the edit field. Page Protected Sub Drop Down List1_Data Bound(By Val sender As Object, By Val e As System. b) Now, when I did change to a field that is in the page (URL) it actually did assign the value "New Value" to URL--but that contradicts what you said in the reply above that it wouldn't allow to insert a duplicate "newvalue" Here is my page: Here is my code behind: Imports System. Event Args) Dim my Drop Down List As Drop Down List my Drop Down List = CType(Details View1.

Details View Delete Event Ar gs) Handles Details View1.

sometimes its the Values collection, sometimes the New Values, and sometimes the Keys.

Add("blah Id", object); ...}I'm sure there's a logic to it, but I'm just getting used to it.

Set breakpoints at relevant stages in the code, and then look at things like e. Then it finds ptype and again it sets the Ptype property, effectively overwriting the previous value. Net finds the Ptype property with a capital P in the collection *later* and uses that value instead. Maybe a bit too technical, but IMO, it's interesting to look really deep into how things work in the . Good luck, Imar --------------------------------------- Imar Spaanjaars

File Name Catch ex As Exception File Upload Report. Message End Try End If End Sub Protected Sub Page_Load(By Val sender As Object, By Val e As System. The best way to find these kind of things out is by debugging. So, the code first finds Ptype, and sets the Ptype property on the painting.

This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. By joining today you can post your own programming questions, respond to other developers questions, and eliminate the ads that are displayed to guests. Actually--it didn't.only did it work, but it used the value and not the one from the newvalues I added.

You must have an account to comment. Please register or login here!