比如说,在Listview的<InsertItemTemplate>使用了RegularExpressionValidator控件,现在怎么获取RegularExpressionValidator的ID
------解决方案--------------------------------------------------------
给你看个类似的吧<asp:Repeater ID="Train" runat="server" onitemcommand="Train_ItemCommand">
<ItemTemplate>
<asp:LinkButton ID="link" CommandName="sel" runat="server" CommandArgument='<%#Eval("TID") %>'><%#Eval("T_Name")%></asp:LinkButton>
</ItemTemplate>
</asp:Repeater>
后台
protected void Train_ItemCommand(object source, RepeaterCommandEventArgs e)
{
if (e.CommandName == "sel")
{
string temp = e.CommandArgument.ToString();
}
}