C# Class WebFormsLab.Products

Mostrar archivo Open project: Microsoft-Web/HOL-ASPNETWebForms

Protected Properties

Property Type Description
Label1 global::System.Web.UI.WebControls.Label
ValidationSummary1 global::System.Web.UI.WebControls.ValidationSummary
categoriesGrid global::System.Web.UI.WebControls.GridView
minProductsCount global::System.Web.UI.WebControls.DropDownList
productsGrid global::System.Web.UI.WebControls.GridView

Public Methods

Method Description
GetCategories ( [ minProductsCount ) : IQueryable
GetProducts ( [ categoryId ) : IEnumerable
UpdateCategory ( int categoryId ) : void

Protected Methods

Method Description
Page_Load ( object sender, EventArgs e ) : void

Method Details

GetCategories() public method

public GetCategories ( [ minProductsCount ) : IQueryable
minProductsCount [
return IQueryable

GetProducts() public method

public GetProducts ( [ categoryId ) : IEnumerable
categoryId [
return IEnumerable

Page_Load() protected method

protected Page_Load ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

UpdateCategory() public method

public UpdateCategory ( int categoryId ) : void
categoryId int
return void

Property Details

Label1 protected_oe property

Label1 control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Label Label1
return global::System.Web.UI.WebControls.Label

ValidationSummary1 protected_oe property

ValidationSummary1 control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.ValidationSummary ValidationSummary1
return global::System.Web.UI.WebControls.ValidationSummary

categoriesGrid protected_oe property

categoriesGrid control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.GridView categoriesGrid
return global::System.Web.UI.WebControls.GridView

minProductsCount protected_oe property

minProductsCount control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.DropDownList minProductsCount
return global::System.Web.UI.WebControls.DropDownList

productsGrid protected_oe property

productsGrid control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.GridView productsGrid
return global::System.Web.UI.WebControls.GridView