vb System.Web.UI.Control类(方法)实例源码

下面列出了vb System.Web.UI.Control 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:System.Web.U   
Option Explicit
Option Strict

Imports System.Web
Imports System.Web.UI

Namespace SimpleControlSamples
    Public Class InnerContent
        Inherits Control
        <System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.Demand, Name:="Execution")> _
        Protected Overrides Sub Render(output As HtmlTextWriter)
            
            If HasControls() And TypeOf Controls(0) Is LiteralControl Then
                output.Write("<H2>Your message : ")
                Controls(0).RenderControl(output)
                output.Write("</H2>")
            End If
        End Sub
    End Class
End Namespace 'SimpleControlSamples


问题


面经


文章

微信
公众号

扫码关注公众号