RenderNullModelMessage() 정적인 개인적인 메소드

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
리턴 void
예제 #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));
     }
 }
예제 #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));
     }
 }