Opening new window using shortcut key
-
hai, currently i m using asp.net 2.0 (C#) i m trying to open a new popup window (or window) so as to display the project developer name and his information. But this has to be popup'ed only when user press some key combinations (say.. ctrl+d). i tried this by assigning accesskey to a button and redirected. but while i hide that button the shortcut does'nt work.. is there any other way to achieve it? help me.... - Karan
-
hai, currently i m using asp.net 2.0 (C#) i m trying to open a new popup window (or window) so as to display the project developer name and his information. But this has to be popup'ed only when user press some key combinations (say.. ctrl+d). i tried this by assigning accesskey to a button and redirected. but while i hide that button the shortcut does'nt work.. is there any other way to achieve it? help me.... - Karan
Hi How do you hide the button? if you set Visible to false the button's does not be inserted into page you should hide the button using javascript code and css property.
Mohammad Khansari
-
Hi How do you hide the button? if you set Visible to false the button's does not be inserted into page you should hide the button using javascript code and css property.
Mohammad Khansari
-
how to do this? i found we can hide the button using
document.getElementById('Button1').style.visibility='hidden';
but i need to use this in page load in ASCX page. how to use it.
It's better to use display stead of visibility insert following code in Page_Load hide the button
this.Button1.Style.Add("display", "none");
show the button
this.Button1.Style.Add("display", "inline");
hope to be useful for you
Mohammad Khansari