RenderNullModelMessage() static private method

static private RenderNullModelMessage ( System.Web.UI.HtmlTextWriter writer, string viewName, string dataSource, Type presenterType, Type modelType ) : void
writer System.Web.UI.HtmlTextWriter
viewName string
dataSource string
presenterType System.Type
modelType System.Type
return void
Ejemplo n.º 1
0
 protected override void RenderWhenModelIsNull(System.Web.UI.HtmlTextWriter writer)
 {
     if (IsEditing || IsPreviewing)
     {
         NullModelHelper.RenderNullModelMessage(writer, ViewPath, DataSource, PresenterFactory.GetPresenter <TModel>().GetType(), typeof(TModel));
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Method called when it is time to render the control but the Model is null. By default causes the control to render nothing unless in Page Editor or Preview mode.
 /// </summary>
 protected virtual void RenderWhenModelIsNull(HtmlTextWriter writer)
 {
     if (IsEditing || IsPreviewing)
     {
         NullModelHelper.RenderNullModelMessage(writer, AppRelativeVirtualPath, DataSource, PresenterFactory.GetPresenter <TModel>().GetType(), typeof(TModel));
     }
 }