|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
must click button twice for event to firethat get set to visible or invisible dependign on the menu optonthe user chooses. One control has another user control on it (child) and that use control can have one or more user controls on it (grand children). Problem: The link buttons on the child and grand children have to be clicked twice for the event handler to get called. Order doesn't matter. If I click button1 first and then button2, button2's event handler gets fired. If I click button1 first and then button1 again, button1's event handler gets fired. Order doesn't seem to make any difference, acts like the first click cocks the gun and the second click fires. Does this for all controls on the child and grand children. Any ideas what to look at? Thanks, Jon It has to do with the stage within the page’s lifecycle when you turned the
child controls visible (i.e. created them) and therefore their viewstate was saved and loaded upon the next postback. Can you post the logic of setting the controls visible indicating at which stage (at which event handling) do set them to visible? Show quoteHide quote "Jon Prisbe" wrote: > I have a web site with a default page and several user controls on the page > that get set to visible or invisible dependign on the menu optonthe user > chooses. > > One control has another user control on it (child) and that use control can > have one or more user controls on it (grand children). > > Problem: > The link buttons on the child and grand children have to be clicked twice > for the event handler to get called. Order doesn't matter. If I click button1 > first and then button2, button2's event handler gets fired. If I click > button1 first and then button1 again, button1's event handler gets fired. > Order doesn't seem to make any difference, acts like the first click cocks > the gun and the second click fires. Does this for all controls on the child > and grand children. > > Any ideas what to look at? > > Thanks, > Jon
DataMappingType in the DataSet Designer
One page - edit & insert return url value Display a record - several questions Show ***** only if have a password How do I debug apsx pages? using 'sender' object on event fires HyperLinkField and FindControl FormView - initial template problem traping event in child control |
|||||||||||||||||||||||