Done it...
I add the following client side script:
<script>
function buttonClick( eventobj )
{
if ( eventobj.ctrlKey )
{
window.open('Page2.aspx').focus();
}
else
{
window.open('Page1.aspx').focus();
}
}
</script>
then I added the following attribute in the code behind in the Page_Load
function:
Button1.Attributes.Add ( "onclick", "buttonClick(event)" );
"Dan Bass" <danielbass [at] postmaster [dot] co [dot] uk> wrote in message
news:ec**************@TK2MSFTNGP10.phx.gbl...
Is there a way to detect a <Ctrl> press + click in the event handler for
ASP.Net?
I've been asked for <Ctrl> + click to pop up one window and just click to
bring up another...
Thanks.
Dan.