第一步:例如用戶控件放在MyList.Ascx,然后其Control指令是: 復(fù)制代碼代碼如下: <%@ Control Language="C#" AutoEventWireup="true" CodeFile="ViewComment.ascx.cs" Inherits="Control_ViewComment"%> 這時候已經(jīng)有了Inherits,自帶了ClassName就是其名稱,如果沒有,則必須創(chuàng)建ClassName屬性。 假設(shè)其有公共屬性ID。 第...
www.dbjr.com.cn/article/161...htm 2025-5-27