Literal
Literal Example
Hello World!!
@inherits ControlComponent
<asp.Literal @ref="this.literal"
Text="Hello World!!" />
<br />
<br />
<asp.Button Text="Change Literal Text"
OnClick="this.ButtonClick" />
@code {
private Literal literal;
protected void ButtonClick(object sender, EventArgs e)
{
literal.Text = "Welcome to Blazor.WebForm!!";
}
}
Literal Metadata
Name | Type | Kind |
---|---|---|
Attributes | IReadOnlyDictionary | Parameter |
ClientIDMode | ClientIDMode | Parameter |
ID | String | Parameter |
Mode | LiteralMode | Parameter |
Text | String | Parameter |
Visible | Boolean | Parameter |
OnDataBinding | EventHandler | Event |
OnDisposed | EventHandler | Event |
OnInit | EventHandler | Event |
OnLoad | EventHandler | Event |
OnPreRender | EventHandler | Event |
OnUnload | EventHandler | Event |