locked
Help with FileUpload Custom Server Control RRS feed

  • Question

  • User56700650 posted

    I'm very new to custom controls and would like to create a custom file upload control.
    I have been creating custom webparts for a while and am comfortable with CreateChildControls method as I just add an instance of a server control (aka FileUpload) to this.Controls().
    However, I'm not sure how I can accomplish this in Render.

    Any help would be much appreciated.

     

    Tuesday, June 17, 2008 8:47 AM

Answers

  • User-16411453 posted

     Render renders the contents of CreateChildControls and OnInit. but you need to use OnInit because it handles events for you easier.

    In void Render , use RenderContents() 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, June 17, 2008 4:37 PM