Export (0) Print
Expand All

Page.UpdateModel<TModel> Method (TModel)

.NET Framework 4.6 and 4.5

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

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

public virtual void UpdateModel<TModel>(
	TModel model
where TModel : class

Type Parameters


The type of the model.


Type: TModel

The model.

This method should only be called from a method that is specified by a data-bound control's UpdateMethod or InsertMethod property.

For a tutorial series on using model binding with Web Forms, see Model Binding and Web Forms.

.NET Framework

Supported in: 4.6, 4.5
© 2015 Microsoft