UserControl::UpdateModel<TModel> Method (TModel)

.NET Framework (current version)
 

Updates the model instance by using values from the data-bound control.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

public:
generic<typename TModel>
where TModel : ref class
virtual void UpdateModel(
	TModel model
)

Parameters

model
Type: TModel

The model instance to update.

Type Parameters

TModel

The type of the model object.

Exception Condition
InvalidOperationException

The model instance was not updated successfully.

.NET Framework
Available since 4.5
Return to top
Show: