473,385 Members | 1,973 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

qualifiers and click in server ASP.Net


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.
Nov 18 '05 #1
2 859
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.

Nov 18 '05 #2
Dan,

Client side window.event object provides property ctrlKey. Should be good
for you.

Eliyahu

"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.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: DanielESFA | last post by:
Hey guys :) This is a bit of a funny one... We're four guys working on the same project, everybody using KDevelop and g++ on Linux. Three of us are using Mandrake, with g++ 3.4.3 and 3.4.1....
1
by: Joe Saliba | last post by:
hello, i would like to know please if there's any mean to change delimeters (, or ;) and text qualifiers in a file in a i/o file written in vb ex: open #1 for ... write #1 ... thx *** Sent...
12
by: Charlie Zender | last post by:
Hi, I am unable to compile a large body of code with extremely pedantic compile time checks activate, so that warnings cause errors. With GCC 3.3.1, I do this with gcc -std=c99 -pedantic...
7
by: Lucas Tam | last post by:
Hi all, Does anyone know of a GOOD example on parsing text with text qualifiers? I am hoping to parse text with variable length delimiters/qualifiers. Also, qualified text could run onto...
2
by: John | last post by:
Hello! When I compile the following code, I get this error message "error: passing ... discards qualifiers" and I don't understand why. Could anybody help me? Thank you! John
0
by: jmarr02s | last post by:
I wish to supply text qualifiers to the following date time stamp function, Expr1: FormatDate(Now()) in my query, using fField1: Chr(34) & & Chr(34)...How must I write this? Next, I export the...
17
by: Pietro Cerutti | last post by:
i Group, to my understanding, defining a function parameter as "const" means that the function is not going to change it. Why does the compiler says "return discards qualifiers from pointer...
4
by: Andre | last post by:
Hi All, When I compile the following piece of code with gcc, I get 3 "warning: initialization discards qualifiers from pointer target type" messages which refer to the 3 lines marked in the...
1
by: sumsin | last post by:
Is there any difference between 'qualifiers and modifiers? Or both are synonyms, because in general they are used interchangeably. Which is the standard word from language perspective? What are...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.