如何在vb中获取触发事件的按钮

时间:2016-12-31 10:32:29

标签: vb.net

尝试更改触发当前事件的按钮的颜色。 enter image description here

将这个复制到多个按钮但是如果我可以摆脱btnPos7.colour等并将其更改为类似(触发按钮).color那么我可以创建一个大功能。

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucEducation.ascx.cs" 
                ClassName="aaa" Inherits="ucEducation" %>
<div class="container">
    <div class="row">
        <div class="col-md-4">
            <p>Degree (required)<asp:DropDownList ID="ddlDegree" 
                 class="form-control" required runat="server"></asp:DropDownList></p>
        </div>
        <div class="col-md-4">
            <p>College (required)<asp:DropDownList ID="ddlCollege" 
                class="form-control" runat="server"></asp:DropDownList></p>
        </div>
        <div class="col-md-4">
            <p>Year (required)<asp:DropDownList ID="ddlYear"
                class="form-control" runat="server"></asp:DropDownList></p>
        </div>
    </div>
</div>

0 个答案:

没有答案