OutputSubView() public method

Output the subview to the client, this is either a relative path "SubView" which is relative to the current /script/ or an "absolute" path "/home/menu" which is actually relative to ViewDirRoot
public OutputSubView ( string subviewName ) : string
subviewName string
return string
示例#1
0
 protected void Render(BrailBase view){
     lock (sync){
         if (UseCollapseBlock){
             view.OutputSubView("partStart",
                                new Dictionary<string, object>
                                {{"this", this}, {"wiki", myapp.files.ReadXml("route.xml?$wiki")}});
         }
         if (ViewName.hasContent()){
             view.OutputSubView(ViewName);
         }
         else if (null != RenderObject){
             RenderObject.Render(view);
         }
         else{
             InternalRender(view);
         }
         if (UseCollapseBlock){
             view.OutputSubView("partEnd", new Dictionary<string, object>{{"this", this}});
         }
     }
 }
 /// <summary>
 /// Pendent
 /// </summary>
 /// <param name="name"></param>
 /// <param name="writer"></param>
 public void RenderView(string name, TextWriter writer)
 {
     parent.OutputSubView(name, writer, ContextVars);
 }