[CLOSED] FileUploadField in class file

  1. #1

    [CLOSED] FileUploadField in class file

    I'm building a "file upload" window that I want to be able to use in several places inside my application...so I'm creating a FileUploadWindow.cs, inheriting from Ext.Net.Window and then programmatically putting my controls in a form.

    From doing similar things before, I know that since the control is rendered dynamically (using the X.render stuff), I can't use DirectMethods (or I suppose DirectEvents) on the control. If that is the case, how do you upload the file and save it server side without being able to use a DirectEvent (for either an upload button click or the FileSelected event)?

    Thanks!
    Jason
    Last edited by Daniil; Sep 26, 2011 at 2:45 PM. Reason: [CLOSED]
  2. #2
    Hi,

    We would suggest you to implement a custom control inheriting from Window.

    In a custom control you can define DirectMethods, please see:
    http://forums.ext.net/showthread.php?15060
  3. #3
    Perfect! Thanks...feel free to close this thread.
    Jason

Similar Threads

  1. Replies: 1
    Last Post: Jun 04, 2012, 2:34 PM
  2. [CLOSED] FileUploadField - cannot load twice the same file
    By voipswitch in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 16, 2011, 12:28 PM
  3. FileUploadField getting the selected file
    By miukarnain in forum 1.x Help
    Replies: 3
    Last Post: Apr 18, 2011, 9:57 AM
  4. copy a file using FileUploadField
    By Sameera in forum 1.x Help
    Replies: 2
    Last Post: Sep 08, 2009, 5:29 PM
  5. FileUploadField file name
    By Kamal in forum 1.x Help
    Replies: 2
    Last Post: Jun 29, 2009, 1:01 PM

Posting Permissions