In my server side code I am dynamically building a table and and right now I am adding the following code to handle the row click.
tr.Attributes.Add('onclick', 'window.open('' + root + document.IPT_Name + '/' + document.IPT_Sub_Name + '/' + document.File_Name + '', 'mywindow', 'toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,copyhistory=no, resizable=yes')');
Is there any way to make this work only a left click and then add a different attribute to the right click to go to a different location?
You can detect it, but there are some browser specific issues you have to watch. Here is some code from http://www.quirksmode.org/js/events_properties.html
There’s also a plug-in for jQuery that lets you detect right mouse clicks: http://abeautifulsite.net/notebook/68