如果要获取repeater中客户端的某一控件的值,必须在该控件上加入runar="server" 如<input type="hidden" id="hidMenuID" value='<%# eval_r("MenuID") %>' runat="server"/> 后台获取先引用命名空间using System.Web.UI.HtmlControls; ,然后在ItemDataBound事件中获取 HtmlInputHidden hidMenuID = (HtmlInputHidden)e.Item.FindControl("hidMenuID");
转载于:https://www.cnblogs.com/scottpei/archive/2012/01/17/2324411.html