Ben Thompson
Top achievements
Rank 1
Ben Thompson
asked on 18 Jun 2008, 12:35 AM
Downloaded "RadControls_for_ASP.NET_AJAX_Manual_2008.1.515.zip" and whilst the left hand panel of the CHM files ( for example: "telerik.aspnetajax.radupload.2008.Q1.chm") produces the Contents index in the left hand panel OK, nothing comes up in the right hand panel other than "Internet Explorer was unable to link to the Web page you requested. The page might be temporarily unavailable." messages. Bit frustrating this as I'm having great problems with the Upload in a DNN paradigm actually performing an upload, (although it works fine in a VS2005 non-DNN environment).
1. Anybody got any answers to the Help File issue?
2. In fact has anybody managed to install the source for Upload Control to work within a DNN Module. I must be leaving something out somewhere as nothing happens when the Upload Submit button is pressed. Filecount is always 0. Strange when it seems to work OK with a normal VS2005 project.
1. Anybody got any answers to the Help File issue?
2. In fact has anybody managed to install the source for Upload Control to work within a DNN Module. I must be leaving something out somewhere as nothing happens when the Upload Submit button is pressed. Filecount is always 0. Strange when it seems to work OK with a normal VS2005 project.
4 Answers, 1 is accepted
0
Ben Thompson
Top achievements
Rank 1
answered on 18 Jun 2008, 02:55 AM
==============vb.net==============================
'**************************
'* *
'* TELERIC FILE UPLOAD *
'* IN DotNetNuke Paradigm *
'**************************
'**********************
'* buttonSubmit_Click * "UPLOAD" Submit
'**********************
Private Sub buttonSubmit_Click(sender As Object, e As System.EventArgs) Handles buttonSubmit.Click
BindValidResults()
BindInvalidResults()
'Remove if you do not want to delete the files
'in the location where they have been saved
'DeleteFiles()
End Sub
'********************
'* BindValidResults * "UPLOAD" Binding
'********************
Private Sub BindValidResults()
Dim validFile As UploadedFile
Dim targetFolder As String
If RadUpload1.UploadedFiles.Count > 0 Then [ALWAYS ZERO!]
For Each validFile In RadUpload1.UploadedFiles
targetFolder = Server.MapPath(mstrFILES_UPLOADREPOSITORY)
validFile.SaveAs(Path.Combine(targetFolder, validFile.GetName()), True)
Next validFile
labelNoResults.Visible = False
repeaterValidResults.Visible = True
repeaterValidResults.DataSource = RadUpload1.UploadedFiles
repeaterValidResults.DataBind()
Else
labelNoResults.Visible = True
repeaterValidResults.Visible = False
End If
End Sub
'**********************
'* BindInvalidResults * "UPLOAD" Invalid results
'**********************
Private Sub BindInvalidResults()
If RadUpload1.InvalidFiles.Count > 0 Then
labelNoInvalidResults.Visible = False
repeaterInvalidResults.Visible = True
repeaterInvalidResults.DataSource = RadUpload1.InvalidFiles
repeaterInvalidResults.DataBind()
Else
labelNoInvalidResults.Visible = True
repeaterInvalidResults.Visible = False
End If
End Sub
'************** ' "UPLOAD" Delete Files
'* DeleteFiles * '
'*************** ' to prevent it from growing
Private Sub DeleteFiles()
Dim targetFolder As String
Dim targetDir As DirectoryInfo
Dim file As FileInfo
If mblnFLAGS_DELETEUPLOADS Then
targetFolder = Server.MapPath(mstrFILES_UPLOADREPOSITORY)
targetDir = New DirectoryInfo(targetFolder)
Try
For Each file In targetDir.GetFiles()
If(file.Attributes And FileAttributes.ReadOnly) = 0 Then
file.Delete()
End If
Next file
Catch e As IOException
End Try
End If
End Sub 'DeleteFiles
=================ASPX=====================
<td class="SubHead" style="width: 171px" valign="top">new stuff
</td>
<td valign="top">
<rad:radprogressmanager id="Radprogressmanager1" runat="server" />
<table width="754" border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="vertical-align: top; text-align: left;">
<span style="font-size:12px;">File extensions are ".jpg,.jpeg"</span>
<rad:radupload
id="RadUpload1"
runat="server"
Skin="Inox"
initialfileinputscount="3"
allowedfileextensions=".jpg,.jpeg,.gif" />
<rad:radprogressarea id="progressArea1" runat="server"></rad:radprogressarea>
<asp:button id="buttonSubmit" runat="server" cssclass="RadUploadButton" text="Upload" style="MARGIN-TOP: 6px" />
</td>
<td style="vertical-align: top; text-align: left;">
<div class="module" style="MARGIN-TOP: 20px; FLOAT: right; OVERFLOW: auto; WIDTH: 280px; HEIGHT: auto;">
<asp:label id="labelNoResults" runat="server" visible="True">No uploaded files</asp:label>
<asp:repeater id="repeaterValidResults" runat="server" visible="False">
<headertemplate>Uploaded valid files:<br /><br /></headertemplate>
<itemtemplate>
<%#DataBinder.Eval(Container.DataItem, "FileName")%>
(
<%#DataBinder.Eval(Container.DataItem, "ContentLength").ToString() + " bytes"%>
)<br /><br />
</itemtemplate>
</asp:repeater>
</div>
<div class="module" style="MARGIN-TOP: 5px; FLOAT: right; OVERFLOW: auto; WIDTH: 280px; HEIGHT: auto;">
<asp:label id="labelNoInvalidResults" runat="server" visible="True">No invalid files</asp:label>
<asp:repeater id="repeaterInvalidResults" runat="server" visible="False">
<headertemplate>Invalid files:<br /><br /></headertemplate>
<itemtemplate>
File:
<%#DataBinder.Eval(Container.DataItem, "FileName")%>
<br />
File Size:
<%#DataBinder.Eval(Container.DataItem, "ContentLength").ToString() + " bytes"%>
<br />
Mime-type:
<%#DataBinder.Eval(Container.DataItem, "ContentType").ToString()%>
<br /><br />
</itemtemplate>
</asp:repeater>
</div>
</td>
</tr>
=======================================
WebConfig Entries:
<
add verb="*" path="Telerik.RadUploadProgressHandler.aspx" type="Telerik.WebControls.RadUploadProgressHandler, RadUpload.Net2" />
<
add name="RadUploadModule" type="Telerik.WebControls.RadUploadHttpModule, RadUpload.Net2" />
0
Hello Ben,
Regarding the Help issue, I suggest you take a look at the following KB article (see Method 2). Please make sure that the CHM files are on a local drive and not on a network share. If the problem persists, I would like to ask you elaborate a bit more and tell us your OS so that we can check here.
The RadUpload problem may be caused by DNN's URL rewriting. You should try editing the SiteUrls.config and adding the following as the first rule:
<RewriterRule>
<LookFor>.*Telerik.RadUploadProgressHandler.aspx</LookFor>
<SendTo>~/Telerik.RadUploadProgressHandler.aspx</SendTo>
</RewriterRule>
Kind regards,
Dimitar Milushev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Regarding the Help issue, I suggest you take a look at the following KB article (see Method 2). Please make sure that the CHM files are on a local drive and not on a network share. If the problem persists, I would like to ask you elaborate a bit more and tell us your OS so that we can check here.
The RadUpload problem may be caused by DNN's URL rewriting. You should try editing the SiteUrls.config and adding the following as the first rule:
<RewriterRule>
<LookFor>.*Telerik.RadUploadProgressHandler.aspx</LookFor>
<SendTo>~/Telerik.RadUploadProgressHandler.aspx</SendTo>
</RewriterRule>
Kind regards,
Dimitar Milushev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Miles
Top achievements
Rank 1
answered on 03 Jan 2009, 02:38 PM
The KB link in this solution (for using the chm files) is no longer valid.
0
Hello Miles,
Please check the following links instead:
"Action canceled" error messages when opening the HELP files
Troubleshooting CHM files on Vista
Regards,
Daniel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Please check the following links instead:
"Action canceled" error messages when opening the HELP files
Troubleshooting CHM files on Vista
Regards,
Daniel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.