K
kw
I have a Microsoft.Web.UI.WebControls.TabStrip and a
Microsoft.Web.UI.WebControls.MultiPage. On the MultiPage are a few
pageviews. On each pageview is a System.Web.UI.WebControls.LinkButton.
Because the LinkButton's are inside the MultiPage, they don't appear in
codebehind. So I added them manually, ie:
protected System.Web.UI.WebControls.LinkButton _SearchByX;
and added:
private void InitializeComponent(){
this.Load += new System.EventHandler(this.Page_Load);
this._SearchByX.Click+=new EventHandler(_SearchByX_Click);
and finally:
private void _SearchByX_Click(object sender, EventArgs e){
Debug.Writeline("event fired");
So, I run the web app and go to the form containing this usercontrol. I
click on the 'Search' button (_SearchByX) and neither the page load fires
nor the event.
Any clues why this happens?
Thanks!
Microsoft.Web.UI.WebControls.MultiPage. On the MultiPage are a few
pageviews. On each pageview is a System.Web.UI.WebControls.LinkButton.
Because the LinkButton's are inside the MultiPage, they don't appear in
codebehind. So I added them manually, ie:
protected System.Web.UI.WebControls.LinkButton _SearchByX;
and added:
private void InitializeComponent(){
this.Load += new System.EventHandler(this.Page_Load);
this._SearchByX.Click+=new EventHandler(_SearchByX_Click);
and finally:
private void _SearchByX_Click(object sender, EventArgs e){
Debug.Writeline("event fired");
So, I run the web app and go to the form containing this usercontrol. I
click on the 'Search' button (_SearchByX) and neither the page load fires
nor the event.
Any clues why this happens?
Thanks!