protected override void AttachChildControls() { this.coupons = (Common_Coupon_CouponList)this.FindControl("Common_Coupons_CouponsList"); this.txtCoupon = (TextBox)this.FindControl("txtCoupon"); this.status = (SmallStatusMessage)this.FindControl("status"); this.btnAddCoupon = ButtonManager.Create(this.FindControl("btnAddCoupon")); this.btnAddCoupon.Click += new EventHandler(this.btnAddCoupon_Click); new HyperLink(); if (!this.Page.IsPostBack) { this.BindCoupons(); } }
protected override void AttachChildControls() { this.coupons = (Common_Coupon_CouponList) this.FindControl("Common_Coupons_CouponsList"); this.txtCoupon = (TextBox) this.FindControl("txtCoupon"); this.status = (SmallStatusMessage) this.FindControl("status"); this.btnAddCoupon = ButtonManager.Create(this.FindControl("btnAddCoupon")); this.btnAddCoupon.Click += new EventHandler(this.btnAddCoupon_Click); new HyperLink(); if (!this.Page.IsPostBack) { this.BindCoupons(); } }