CodeSmith Community
Your Code. Your Way. Faster!

Admin UC can't fire Load And Init Event!

Latest post 06-29-2007 10:27 AM by mike123. 5 replies.
  • 03-08-2007 4:04 AM

    • lin2000y
    • Top 100 Contributor
    • Joined on 11-14-2005
    • Posts 49
    • Points 1,163

    Admin UC can't fire Load And Init Event!

    when i add a page_load to the enitityUC in admin, but i didn't fire? i try to find the reason but no use...

    the msdn said that these is a method named InitializeAsUserControl to ensure the UC fire the Load and Init Event, I try but still no use!

    Filed under:
    • Post Points: 35
  • 03-08-2007 11:29 AM In reply to

    Re: Admin UC can't fire Load And Init Event!

    Those events are part of the Control (or webcontrol) class, so I find it difficult to see how it wouldn't fire, since as soon as you add those controls to a container they get wired up automatically.

    Robert Hinojosa
    -------------------------------------
    Member of the Codesmith Tools, .netTiers, teams
    http://www.nettiers.com
    -------------------------------------
    • Post Points: 60
  • 03-08-2007 3:03 PM In reply to

    • lin2000y
    • Top 100 Contributor
    • Joined on 11-14-2005
    • Posts 49
    • Points 1,163

    Re: Admin UC can't fire Load And Init Event!

    Yes when i move it into a brand new page even a UC i created by hand,it fire! But when the UC is loaded by the MultiFormView dynamicly using the MultiBindableTemplate just like the EntityEdit page, it do nothing!

     thanks!!

    • Post Points: 5
  • 03-08-2007 10:21 PM In reply to

    • lin2000y
    • Top 100 Contributor
    • Joined on 11-14-2005
    • Posts 49
    • Points 1,163

    Re: Admin UC can't fire Load And Init Event!

    is there anybody know about this?

    thank!

    • Post Points: 35
  • 06-27-2007 9:14 AM In reply to

    Re: Admin UC can't fire Load And Init Event!

    Hello All,

    Did anybody  figure it out what prevents Admin UC fire events and how to work around? I have this problem using last version of NetTiers. Please advice, it's a really blocker for me.

    Filed under: , ,
    • Post Points: 35
  • 06-29-2007 10:27 AM In reply to

    • mike123
    • Top 10 Contributor
    • Joined on 02-25-2005
    • Toronto, Ontario
    • Posts 734
    • Points 17,040

    Re: Admin UC can't fire Load And Init Event!

    If you take a look at the MultiformView control implementation (serving great deal by providing ability to reference external FormView template that would be used in the two way databinding), it loads usercontrol just to be able to reference FormView, so the UserControl itself woudn't participate in the page life cycle execution.

     

    Mike Shatny
    --------------------------------------------------------------
    Member of the .netTiers team http://www.nettiers.com
    --------------------------------------------------------------

    • Post Points: 5
Page 1 of 1 (6 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems