.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Asad Ali
Post New Web Links

disable browser keys & menu functions

Posted By:      Posted Date: September 03, 2010    Points: 0   Category :ASP.Net
 
I ran across a few links on making an asp.net app fullscreen with javascript.    But I'd also like to keep users withing my app unless they log out.    How do you disable ctrl-esc, ctrl-c, window, selection & right mouse click?    Are there any other keys you can use to prevent a user from either copying data from a browser window or closing it?     That would also mean eliminating or suppressing the upper right hand minimize & close buttons in browser windows and the file menu.     If the code is specific to internet explorer then I'd also have to check whether their browsing from a firefox browser, unless the code would be the same for both.    


View Complete Post


More Related Resource Links

Disable Master Page Menu

  
Dear all, How can I disable the master page menu? The following line does not work. this.Master.findcontrol("menu1").visible=false;  Moreover, if this line is put before the function database processing (Code Behind) in the button click, would the menu bar become invisible during function database processing? I think it is different from web application and intranet application.

How can I disable the LWin and RWin keyboard keys?

  
I would like to modify my application to prevent the user from launching the start menu while my application is running.  Is there a logical, simple, sensible means of doing this from a Windows Form?  My application is built in Visual Studio 2005 using the C# language.  Thanks for any assistance you can offer on this matter.

how to disable back button of your browser

  
i want to know how can i restrict any user to access any webpage after logging out

Is it possible to disable context menu items based on the selection on Treeview

  
I will have some sort of nodes for a treeview as follows Root |-> some.txt(A text file which was added at runtime) |->Child(child for some.txt) |-> child1(child for child) I designed my context menu with some options as New and Remove What i need is when i righclick on Root, child or child i would like to disable the Remove option

how to disable Editing of word documents in browser

  

guys,

Environment:
sharepoint 2010
installed Office Web app


i installed office word apps and integrated it with sharepoint 2010 and all the office documents now open in the browser. but this also give the qualified users permissions to edit the word document in the browser, something that i dont want to do right now. can someone tell me how i can disable the "Edit in Browser" button that shows up on the word documents after it open in the browser.

thanks
sameer

 


How to assign shortcut keys for menu item of asp.net menu control

  
I am using asp.net menu control. In window application we assign shortcut key through '&' sign for accessing menu item but in asp.net this is not working and there is not any property for access key for menu items. please give me any suggestion.

how to disable mouseover event of menu

  
hi i have a menu which i have bind with database dynamically on page load .i want that when i click on parent item of menu then only the subitem should display,mean i dont want the submenu visible on mouseover.it should be disable.should be enable only on click .i have try many logic for it but i was not sucesful please give me the proper code  

Disable Ribbon menu

  

Hi, i want to disable the ribbon menú in my application. Its posible? or i need to delete it in the master page?

 

Thanks


how to disable menu mouseover event in asp.net

  

hi ,i want to diasble menu mouseover event .and the submenu should only be shown on clicking the parent menu.

for that i have written code as 

 protected override void Render(HtmlTextWriter writer) {

 

      StringBuilder stringBuilder = new StringBuilder();

       StringWriter stringWriter = new StringWriter(stringBuilder);

 

       HtmlTextWriter htmlWriter = new HtmlTextWriter(stringWriter);

       base.Render(htmlWriter);

 

       string html = stringBuilder.ToString();

       //html = html.Replace("onmouseover="(Menu_HoverStatic(this))"","onclick="(Menu_HoverStatic(this)""));

       html = html.Replace("onmouseover=\"Menu_HoverStatic(this)\"", "onclick=\"Menu_HoverStatic(this)\""); 

 

       writer.Write(html);

 

}


give me a correct code .


Where are sessions stored? can users disable sessions on their browser?

  

It was just a thought that came to my mind and I didn't have an answer for it, are sessions stored on the client side or server side? can a user disable sessions? What if the shopping cart is built using sessions, the user won't be able to use it?


I know cookies are stored on the client side and many users disable cookies so I don't use them, but how about the sessions?


How to assign shortcut keys for menu item of asp.net menu control

  

Hi,

I am using asp.net menu control. In window application we assign shortcut key through '&' sign for accessing menu item but in asp.net this is not working and there is not any property like access key for menu items. please give me any suggestion.

 

Thanks

Nitin Munjani


Is it possible to disable all javascript functions which are set to work after a certain time, after

  

Is it possible to disable all javascript functions which are set to work after a certain time, after update panel asynchronous postback


as you alread know you can set certain functions to get executed after a certain time with setTimeout method


i want to disable all setTimeout method setuped functions after update panel asynchronous postback


is this possible


thank you




disable back button of browser so that a user can't go on previous pages after signout

  

hi All

i am working in asp.net 2.0 with vb.net.

i want to disable back button of browser so that a user can't go on previous pages after pressing signout hyperlink.

i applied this code in load  event of page that i want to disable on back button of browser but it is not ing please help me in detail as soon as possible.

 

Response.Cache.SetCacheability(HttpCacheability.NoCache)

Response.Cache.SetExpires(Now.AddSeconds(-1))

Response.Cache.SetNoStore()

Response.AppendHeader(
"Pragma", "no-cache")

 

 

 

 


How to disable context menu command

  

Hi,

Tim's blog post discusses commands in the rehosted designer.  This post has been very helpful.  Now what I'm trying to do is to customize the context menu that appears for activity designers.  I used the idea from the blog post to capture the designer's cut command PreviewCanExecute:

<UserControl.CommandBindings>
                <CommandBinding Command="sapv:DesignerView.CutCommand"  CanExecute="CommandBinding_CanCutExecute" PreviewCanExecute="CommandBinding_PreviewCanCutExecute"/>
    </UserControl.CommandBindings>

 

private void CommandBinding_CanCutExecute(object sender, CanExecuteRoutedEventArgs e)
        {
            //Doesn't do anything, but we need to subscribe to the CanExcute handler in order to get PreviewCanExecute handler called.
        }

        private void CommandBinding_PreviewCanCutExecute(object sender, CanExecuteRoutedEventArgs e)

Enable/Disable "New Folder" ribbon menu in document library in sharepoint 2010

  

I am new to sharepoint 2010. I want to disable "New Folder" server ribbon menu under document library only if I am at level greater than 2 in document library. If level is <=2 "New Folder" ribbon menu should be enabled. How I should achive this enable/disable feature of existing "New Folder" menu item?    


Disable Back and Forward button in the IE and Mozilla browser

  

Hi every body

I want to disable back and forward button in the IE and Mozilla when my application (which is a WPF, XBAP project in the .Net 4.0) is deployed in a browser.

The main form is a System.Windows.Window. Please help me how can id do that.

Thanks


Disable Browser Back Button Using Javascript ASP.NET

  

 Hi... Am using following script, disable back browser, it works well, only in Chrome, if i try ie it says .. Webpage has expired,   any simple method is there? but it should suitable for browsers !

<script type = "text/javascript" >
    function disableBackButton() {
           window.history.forward();
    }
    setTimeout("disableBackButton()", 0);
</script>

<body onunload="disableBackButton()">
CodeBehind:
Protected Overloads Overrides Sub OnPreRender(ByVal e As EventArgs)
        MyBase.OnPreRender(e)
        Dim strDisAbleBackButton As String
        strDisAbleBackButton = ""
        ClientScript.RegisterClientScriptBlock(Me.Page.[GetType](), "clientScript", strDisAbleBackButton)
End Sub


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend