Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a web part which contains FileUpload asp.net control , i want to replace FileUpload asp.net control with Upload Multi Files Sharepoint control.

Is there a way to reference this control in my project?

Best regards

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

The Multi Files UploadControl (UploadCtl) is a Activex Control defined in the STSUPLD.dll, which in turn gets installed during the Microsoft Office 2010 setup (refer to this page for more info)

You can use the object in your webpart:

<OBJECT id=idUploadCtl name=idUploadCtl CLASSID=CLSID:07B06095-5687-4d13-9E32-12B4259C9813 WIDTH='100%' HEIGHT='350px'></OBJECT>

and, some hidden fields to config the control

    <INPUT TYPE=hidden NAME="PostURL" id=PostURL VALUE="the page recive the files you upload" />        
    <INPUT TYPE=hidden NAME="Confirmation-URL" id="Confirmation-URL" VALUE="after upload the control will redriect to this url." />
    <INPUT type=hidden name="putopts" id=putopts value="true">
    <input TYPE="hidden" NAME="VTI-GROUP" VALUE="0">
    <input TYPE="hidden" NAME="Cmd" VALUE="Save">
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.