Gert Verhoeven

.NET Developer in C#, ASP.NET, DotNetNuke, ... at Ordina Belgium
posts - 5, comments - 7, trackbacks - 0

My Links

News

Archives

Post Categories

ASP.NET

General .NET

May 2007 Entries

ASP.NET : Disable Left Click But Enable Right Click
Sometimes in your web application you will have a link to a file on the server. Problems occur when the user clicks on the link and opens the file in the browser. If the user wants to save the file he will get an error. To force the user to dowload the file you can disable the left click but keep right clicking enabled. To make the script accessible on all web pages I declared the script in the default.aspx file <head id="Head" runat="server"> <script language="javascript"> function noLeftClick()...

Posted On Wednesday, May 16, 2007 2:11 AM | Feedback (3) | Filed Under [ ASP.NET ]

Powered by: