Вы можете использовать определенный метод set.issubset
, определенный для наборов, такой что:
set([1, 2, 3, 4, 5, 6, 7, 8, 9]).issubset(set(factor_numbers))
Perhaps it is simply the order in which the TextBox controls are added to the EditItemTemplate? i.e. the order of the controls must match the order of the UpdateParameters...
Try swapping the position of txtHouseHoldName and txtAddress, does the address get passed into the sName parameter of your update method?
У меня есть сообщение в моем блоге с подробным обсуждением того, как работает Bind () на http: //www.aarongoldenthal , .
"how does the FormView know which UpdateParameter to populate with which EditTemplate TextBox when the Update button is clicked?"
I believe the simple answer is: it knows because of the Bind statements you put in the TextBox controls. E.g. txtAddress has "Bind("Address")" so when the update is called, it has a connection between txtAddress and parameter "Address"