[]
        
(Showing Draft Content)

C1.Web.Mvc.Component

Component Class

Defines the base class for C1 MVC components.

Inheritance
Component
Implements
Namespace: C1.Web.Mvc
Assembly: C1.Web.Mvc.dll
Syntax
public abstract class Component : IHtmlString

Constructors

Name Description
Component(HtmlHelper)

Creates one Component instance.

Properties

Name Description
ChildComponentsCreated

Gets or sets a boolean value indicates whether child components are created.

ClientComponent

Gets a value which represents the client control constructor with the complete namespace.

Components

Gets the child components.

HasScripts

Gets a boolean value indicates whether current component has the scripts which need to be rendered.

Id

Gets or sets the component id.

UrlHelper

Gets the url helper.

Methods

Name Description
CreateChildComponents()

Creates child components.

EnsureChildComponents()

Ensure the child components created.

OnPreRender()

This method is performed before rendering.

RegisterStartupScript(HtmlTextWriter)

Registers the start-up script.

Render(HtmlTextWriter)

Render the component result to the writer.

RenderScripts(HtmlTextWriter, bool)

Render the scripts.

SerializeOptions()

Serialize the control to a Json string.

ToHtmlString()

Returns an HTML-encoded string.

Extension Methods