自定义控件要引发loadpostdata方法,需要包含一个id为this.uniqueid的控件
writer.write("<input type=´hidden´ name=´" + me.uniqueid + "´>") 【程序编程相关:LSAT(Linux Security 】
可在控件组中加入一个hidden控件! 【推荐阅读:visual studio.net已检测】
【扩展信息:oracle这样才能删除干净!!】 或者干脆更简单的做法,把submit的name属性设置为me.uniqueidimports system.componentmodel
imports system.web.ui imports system.web.ui.webcontrols <defaultproperty("text"), toolboxdata("<{0}:login runat=server></{0}:login>")> public class login inherits system.web.ui.webcontrols.webcontrol implements ipostbackdatahandler public event checkerror as eventhandler private _user as string private _pass as string public function loadpostdata(byval postdatakey as string, byval postcollection as system.collections.specialized.namevaluecollection) as boolean implements system.web.ui.ipostbackdatahandler.loadpostdata _user = ctype(postcollection(me.uniqueid & ":user"), string) _pass = ctype(postcollection(me.uniqueid & ":pass"), string) if _user <> _pass then ... 下一页