Click
here to login or sign-up
My ASP.NET server/composite controls were not getting events from child controls, but only on the real pages, they worked fine on test ones. It turned out that I had a master page enabled but didn't have an ID set for it, so it was auto generating it.
Just add this to your master pages code file:-
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
this.ID = "SomeName";
}
And child controls will start working as expected. I don't often do web development so this stumped me for quite a while...
Permalink 0 Comments Digg This!
CommentsYou must be logged in to post comments. Click here to login or signup.
Server:
echo - Your IP:
38.107.191.81 -
Copyright © 2010
Simon Soanes