vb System.Web.UI.Design.WebControls.DataGridDesigner.GetErrorDesignTimeHtml类(方法)实例源码

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

作者:VB.NET开发    项目:System.Web.UI.Design.WebControl   
Protected Overrides Function GetEmptyDesignTimeHtml() As String
    Dim emptyText As String

    ' Check the CanEnterTemplateMode property to
    ' specify which text to display if ItemTemplate 
    ' does not contain a value.
    If CanEnterTemplateMode Then
        emptyText = _
            "<b>Either the Enabled property value is false " + _
            "or you need to set the ItemTemplate for this " + _
            "control.<br>Right-click to edit templates.</b>"
    Else
        emptyText = _
            "<b>You cannot edit templates in this view.<br>" + _
            "Switch to HTML view to define the ItemTemplate.</b>"
    End If

    Return CreatePlaceHolderDesignTimeHtml(emptyText)
End Function


问题


面经


文章

微信
公众号

扫码关注公众号