Imports System.Collections.GenericImports System.ComponentModelImports System.TextImports System.WebImports System.Web.UIImports System.Web.UI.WebControlsNamespace Web.Controls ''' <summary> ''' Represents a button to prevent duplicate submissions. ''' When the user clicks the button after the button is grayed out, can not click again until reload the page or jump. ''' </summary> <DefaultProperty("Text")> _ <ToolboxData("<{0}:ClickOnceButton runat=server></{0}:ClickOnceButton>")> _Public Class ClickOnceButton Inherits System.Web.UI.WebControls.Button ''' <summary> ''' The default constructor. ''' </summary> Public Sub New() Me.ViewState("afterSubmitText") = "Submitting, please wait ..." MyBase.Text = "ClickOnceButton" Me.ViewState("showMessageBox") = False Me.ViewState("showLoadingLayer") = False Me.ViewState("warningText") = "Sure to submit it?" End Sub ''' <summary> ''' Gets or sets the click of a button, the button on the display text. ''' </summary> <Bindable(True), Category("Appearance"), DefaultValue("Submitting, please wait ..."), Description("After the submission instructions click the button on the display text.")> _ Public Property Afte
自己写的一个按钮控件 点击时在界面出现一个loading遮罩层
最新推荐文章于 2024-08-02 16:29:51 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)