Как FormView EditTemplate обновляет значения в ObjectDataSource UpdateParameters под капотом?

Вы можете использовать определенный метод set.issubset, определенный для наборов, такой что:

set([1, 2, 3, 4, 5, 6, 7, 8, 9]).issubset(set(factor_numbers))
5
задан Leo Nix 19 April 2009 в 02:38
поделиться

3 ответа

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?

1
ответ дан 15 December 2019 в 01:10
поделиться

У меня есть сообщение в моем блоге с подробным обсуждением того, как работает Bind () на http: //www.aarongoldenthal , .

1
ответ дан 15 December 2019 в 01:10
поделиться

"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"

2
ответ дан 15 December 2019 в 01:10
поделиться
Другие вопросы по тегам:

Похожие вопросы: