创建一个web user control

1.创建文件

添加,然后选择web user control

 

 

 

2.添加控件

在工具栏搜索button,然后拖动三个button上去

 

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="LISABackButton.ascx.cs" Inherits="CMSWebParts_LISA_General_LISABackButton" %>
<asp:Button ID="Button1" runat="server" Text="Button" />
<asp:ImageButton ID="ImageButton1" runat="server" />
<asp:LinkButton ID="LinkButton1" runat="server">LinkButton</asp:LinkButton>

 

posted @ 2017-11-09 14:22  ChuckLu  阅读(318)  评论(0编辑  收藏  举报