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

Configuring web.config for Radpload

3 Answers 121 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
chris
Top achievements
Rank 2
chris asked on 24 Sep 2008, 03:36 PM
It seems I'm having what is known as a blonde moment ...

I am using the RadUpload control RadUpload.Net2, Version=2008.1.415.20
and am getting confussed over what should actually be referenced in the web.config file.

I know I have to add references to the http handlers for the upload progress and also into the http modules. but am getting mixed up with the version numbers and public key token values.

I currently have the following:

<

httpHandlers>

<

remove path="*.asmx" verb="*"/>

<

add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>

<

add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>

<

add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>

<

add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.1.415.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>

<

add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2008.1.415.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>

<

add path="Telerik.RadUploadProgressHandler.aspx" verb="*" type="Telerik.WebControls.RadUploadProgressHandler, RadUpload.Net2, Version=2008.1.415.20, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

</

httpHandlers>

<

httpModules>

<

add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

<

add name="RadUploadModule" type="Telerik.WebControls.RadUploadHttpModule, RadUpload.Net2, Version=2008.1.415.20, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

</

httpModules>

Could some one please point me in the right direction as to what the text should
actually read.

thanks in advance
Chris

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 24 Sep 2008, 03:46 PM
Hello chris,

If you are using RadUpload classic (from the RadUpload.Net2 assembly) you need to specify its version not the version of Telerik.Web.UI. You can check this help topic for more info.
All the best,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
chris
Top achievements
Rank 2
answered on 24 Sep 2008, 10:37 PM
Oh Ok thanks

Further on from that I've been looking at the examples on the live demos and have tried  mocking up the RadUpload in Grid example.
 http://demos.telerik.com/aspnet/prometheus/Controls/Examples/Integration/RadUploadInAjaxifiedGrid/DefaultCS.aspx?product=grid

I've added the additional folders to the app (~/AuthorsImages; ~/Images and ~/Thumbnails) I've then created the sql connection and added tables Authors and Images to the database. Not sure if I've got all the required fields however also falling over on trying to evaluate the image url on the item template for the grid.
<img src='AuthorsImages/<%# DataBinder.Eval(Container.DataItem, "AuthorImageName") %>' alt="" />
Could you possibly pass on the table definitions with primary/foreign keys etc as this may well sort the image url bit.

Also the example\shows a href link from the grid item image passing a link to a new page with the id passed as a session parameter
<a href="ShowImageCS.aspx?id=<%# Eval("ID") %>">

any chance you could pass on the aspx and vb codes for this also

Chris
0
Peter
Telerik team
answered on 02 Oct 2008, 09:12 AM
Hello Chris,

For your convenience I have prepared an isolated project of the example which you refer to. You just need to add the Telerik.Web.UI assembly in the bin and build the application. Please, find the sample attached to this thread and give it a try.


Greetings,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Upload (Obsolete)
Asked by
chris
Top achievements
Rank 2
Answers by
Atanas Korchev
Telerik team
chris
Top achievements
Rank 2
Peter
Telerik team
Share this question
or