C
Chris Kennedy
I have a composite control which dynamically adds controls depending on how
it is intialised from an XML file. This all works well with web controls. I
want to be able to add an htmlinputfile server control. This best I got so
far is a literal e.g.
fileid = "<input type='submit' id='submit1'
onserverclick='SubmitButton_Click'>"
Controls.Add(New LiteralControl(fileid ))
It triggers its event but when I use the httpFileCollection in that event,
there are no files in there and the count reads 0. Can anyone help? The
enctype is right. My main theories are that this control is nested within a
form on the parent page but is being interpreted as a standard html input
rather than a server on as it inserted after the creation of the parent
page. Can anyone point me in the right direction of dynamically adding HTML
server control
it is intialised from an XML file. This all works well with web controls. I
want to be able to add an htmlinputfile server control. This best I got so
far is a literal e.g.
fileid = "<input type='submit' id='submit1'
onserverclick='SubmitButton_Click'>"
Controls.Add(New LiteralControl(fileid ))
It triggers its event but when I use the httpFileCollection in that event,
there are no files in there and the count reads 0. Can anyone help? The
enctype is right. My main theories are that this control is nested within a
form on the parent page but is being interpreted as a standard html input
rather than a server on as it inserted after the creation of the parent
page. Can anyone point me in the right direction of dynamically adding HTML
server control