Question regarding component lifecycle

Last post 12-06-2009, 10:06 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  12-04-2009, 11:27 AM 57606

    Question regarding component lifecycle

    I am working on an application with which you can construct a fax by filling out a form and attaching one or more documents. On one particular form, one use case has the user attaching a document (with it automatically being uploaded) either one at a time or in mass. At some point the user either manually fills in the destination information (which does a postback to verify/validate the destination) or launches a modal popup form that exposes their server-side persisted contacts. Upon closure of that popup, the underlying form remains. Now although the original form UnLoad event was not called (the only place I call a dispose event on the control) nor was the Items collection force cleared, (and I haven't checked to see if the form OnLoad event has run) the AjaxUploader OnInit runs as assigned below?


    <CuteWebUI:UploadAttachments  OnInit="SendFaxUpload_OnInit"
     
    Do I assume that if the control OnInit event runs, that the control constructor was run? 
    What form event conditions cause the AjaxUploader  to initialize?
    Much as the default functionality (javascript api) can be overridden by returning false to a covered method, will any combination of return values to an exposed API call inhibit the constructor from initializing the control?
     
    K
  •  12-06-2009, 10:06 PM 57633 in reply to 57606

    Re: Question regarding component lifecycle

    kbenz:
    I am working on an application with which you can construct a fax by filling out a form and attaching one or more documents. On one particular form, one use case has the user attaching a document (with it automatically being uploaded) either one at a time or in mass. At some point the user either manually fills in the destination information (which does a postback to verify/validate the destination) or launches a modal popup form that exposes their server-side persisted contacts. Upon closure of that popup, the underlying form remains. Now although the original form UnLoad event was not called (the only place I call a dispose event on the control) nor was the Items collection force cleared, (and I haven't checked to see if the form OnLoad event has run) the AjaxUploader OnInit runs as assigned below?


    <CuteWebUI:UploadAttachments  OnInit="SendFaxUpload_OnInit"
     
    Do I assume that if the control OnInit event runs, that the control constructor was run? 
    What form event conditions cause the AjaxUploader  to initialize?
    Much as the default functionality (javascript api) can be overridden by returning false to a covered method, will any combination of return values to an exposed API call inhibit the constructor from initializing the control?
     
    K
     
    Are you trying to call Uploader server side event from client side event?
     
    This question is not clear to me.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML