This is a migrated thread and some comments may be shown as answers.

Not Displaying Properly

1 Answer 66 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Jeffrey
Top achievements
Rank 1
Jeffrey asked on 11 Jan 2009, 10:10 PM
I have a sharepoint site with a web part using the Upload control. On my test server it works fine.

On my live server the upload control only displays the add and delete button at the bottom of the control with no text. The file selection and remove input/buttons do not appear at all.

I have checked I have the skin uploaded and when I change the css it changes the layout.

I also made a non sharepoint page and added a rad control pointing to the dll in the gac and this worked fine on the live server.

From this I can assume my dll in the gac is working and the skins for the control are working but I am not sure why it doesn't display the entire control.

I looked at the html it produces on both servers and they match and now I have notice that a javascript function is missing on my life server. I am not sure why this script is on my test server but not my live server.

Any info that may lead me in the right direction will be appreciated.

Thanks

Missing Javascript from live server below

<script type="text/javascript">  
          
window['FileUpload2'] = new RadUploadNameSpace.RadUpload([  
'FileUpload2',  
'form1',  
'en-US',  
 false,  
 true,  
 0,  
 2,  
 true,  
 false,  
 ['.xml'],  
 27,  
'',  
'',  
'',  
'',  
'',  
''  
]);  
    </script> 


1 Answer, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 12 Jan 2009, 01:59 PM
Hi Jeffrey,

The code that is missing in the production server is the RadUpload client-side initialization script. This is the code that creates the RadUpload client-side object and runs the creation of the file inputs.

RadUpload for ASP.NET "Classic" renders the scripts together with the control HTML. Does your page have some special rendering (overriding the Render method)?

Best,
Erjan Gavalji
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Upload (Obsolete)
Asked by
Jeffrey
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Share this question
or