locked
fileupload in a server control? RRS feed

  • Question

  • User-334574633 posted

    Hello,

    I cant seem to get the uploaded file inside my server control dll file, first i create a controls httpupload and a button, the sends it to the client inside CreateChildControls(), question is, where do i capture the respons? What function do i override to get the actual posted file??

    Below is the createchildcontrol function that i use to create the upload form for the user.

    FileUpload mUpload;
    Button mButton;

    protected override void CreateChildControls()
    {
    this.Controls.Clear();

    this.mUpload =
    new FileUpload();
    this.mUpload.ID =
    "fileInput";
    this.Controls.Add(mUpload);

    this.mButton = new Button();
    this.mButton.ID = "btnFileUpload";
    this.mButton.Text = "Upload";
    this.Controls.Add(mButton);
    }

    Here i need to capture the uploaded file somehow.

    Patrick

    Saturday, May 31, 2008 12:44 PM

Answers

All replies