Right-Clicking LinkButton Download to "Save Target As..."

Scott MacFarlane

I'm using the radbutton with the download icon to allow users to download files.

This works fine in most cases accept for mime types that the browser recognizes and opens directly
in the browser when the user would rather not open the file, but prefers to "Save As..." the file instead.

When I use a standard ASP.net hyperlink the user can either click to open or right click and select
"Save Target As..." and save it without opening it.

Is there any way to make the browsers work this way when using the radbutton as a download hyperlink?

Slav

The missing "Save Target As..." option in the context menu of the RadButton, set as LinkButton, is encountered on IE and is caused by browser behavior. On the other major browsers this functionality works as expected.

A possible fix would be to override the styles and to set display: inline to the span by configuring its CSS class rbText:

<style type="text/css">

.RadButton .rbText

{

display:inline!important;

}

</style>

Please keep in mind that it's very likely to cause incorrectly displayed and aligned text in the button with this modification.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.