P
Paul
This gets a little complex, so bear with me.
I've created an ASP.NET page that creates a variety of controls
dynamically. It creates a data source, a form view, a list box, a drop
down list, a button and some other sundry stuff on the fly.
The problem is this:
The SelectedIndexChanged events for the list boxes fire at strange
times. For example, when the list box changes, it re-populates the
drop down box. But when something is selected in the drop down box,
the select event for the original list box gets fired too, even though
it didn't get touched on this post back.
I presume the issue has to do with page life cycle and where and how I
dynamically create the controls. I've tried both PageLoad and
PageInit. PageLoad has the problem above. WIth PageInit, I actually
lose the form view.
Can anyone give me any insight?
I've created an ASP.NET page that creates a variety of controls
dynamically. It creates a data source, a form view, a list box, a drop
down list, a button and some other sundry stuff on the fly.
The problem is this:
The SelectedIndexChanged events for the list boxes fire at strange
times. For example, when the list box changes, it re-populates the
drop down box. But when something is selected in the drop down box,
the select event for the original list box gets fired too, even though
it didn't get touched on this post back.
I presume the issue has to do with page life cycle and where and how I
dynamically create the controls. I've tried both PageLoad and
PageInit. PageLoad has the problem above. WIth PageInit, I actually
lose the form view.
Can anyone give me any insight?