ControllerStandardDataItemClassCreateSetViewBag Method |  |
Puts ViewBag values. If value null then put following values:
| Name | Description |
|---|
| ViewBag.DataGridView | Reads from AppModule object |
| ViewBag.Toolbar | Reads from method CreateGetToolbar |
| ViewBag.HasListHeader | Puts default value off (false) |
| ViewBag.ContentName | Puts default value CreateContent |
More values puts by method
FormSetViewBag
and method
SetViewBagList
Namespace:
SOWIWeb.Helper
Assembly:
SOWIWeb.Helper (in SOWIWeb.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntaxprotected virtual void CreateSetViewBag()
Protected Overridable Sub CreateSetViewBag
Examples
This example change the content by ContentName.
Required file "_CreateContentPartialQualiAssessment.cshtml" exist in View directory
protected override void CreateSetViewBag()
{
ViewBag.ContentName = "_CreateContentPartialQualiAssessment";
base.CreateSetViewBag();
}
See Also