Javascript - Disable Right Click On Webpage?
Mar 21, 2011Possible Duplicate:
How do I disable right click on my web page .
is it possible to disable the right click on webpage's control like textbox, link etc. using Javascript.
Possible Duplicate:
How do I disable right click on my web page .
is it possible to disable the right click on webpage's control like textbox, link etc. using Javascript.
i want to disable right click of my web page in asp.net. it should be work in all the browsers....
View 7 RepliesI want to allow numbers only to be allowed for a textbox and I already do it onkeydown event by allow only numbers and prevent ctrl+V but I have two problems: if I make right click then paste so any char can be entered and I want a solution without disable right click by oncontextmenu="return false;" if I drag and drop any text it will be entered
View 2 RepliesIs there any javascript to disable "export to microsoft excel option" on right click in browser. though it can be done using web.config
View 1 RepliesWhen viewing the click in firebug, the call turns red (i.e. error) but I can't see the error because the page redirects.
So is it allowed to call a remote website (in my case, its a 1x1 image using a standard url like [URL]
How to show javascript alertbox on button click event in asp.net webpage if textbox1.text="" ?
View 3 RepliesI am working on a financial portal and I am having a problem..I don;t know what to call it so i mentioned it as an 'unknown to me' problem..I have a webpage..whenever I click on any button on my webpage, the request goes through..but nothing show up on the webpage..then If I click on another link and then again come back to previous link,then only I see the results of button_click..
e.g.
I have a currency conversion and investment form..so after filling up the form in following way and if I click on "INVEST" then nothing shows up..
so now if i click on any other link and go back to 'buy currency' link I see the result as 'investment successful'
I have a problem with disabling the tabcontainer.
The problem is that, if a user haven't selected anything, the whole tabcontainer must be disabled. If I disable the tabcontainer it in de codebind, the tabcontainer grayed out but the user can click the tabs.
I can disable one tab in javascript but how can I disable the whole tabcontainer?
I have a simple javascipt which enables/disables some checkboxes when another checkbox ticked/unticked. This works fine, however, in some instances when by page is loaded my code behind disables the same check boxes. When this happenes my original check box nolonger seems to have any influence in enableing or disabling - there is no error and all the elements seem to be found by the javascript - it just doesn't enable/disable the checkboxes.
View 5 RepliesI've a web page, and i want to disable all the controls in a page.
How do i do it at one shot..?
I don't want to set the enable property to 'false' for each control on the page.
I was looking for any way to create web page,so that user wont be able to copy content from my web page. i.e. User wont be able to select the any text present on the webpage. Let's assume i am working on asp.net
View 9 Repliesis there a way to disable all the all the buttons on the page at once.?
[code]....
i want to protect pages from back button of the browser when my customer logout. so i use Response.AppendHeader ("Cache-Control", "no-store"); to clear the cache of my pages to make it checks session each time. however, i also find that if i use some controls with autopost back and this no-cache flag will also cause problem to make the error "webpage has expired" when my users click back button when they have not logged out.
View 12 RepliesI hv a page datatable.aspx which contain's some imp data and i don't want user copy that data by using ctrl+V .I disable right click using java script bt ctrl+V allow them to copy that data..
View 1 Replieshow can we disable/hide pdf toolbar or buttons , which are at the right bottom corner of the webpage.
View 1 RepliesI'm using NumericUpDownExtender inside updatepanel which is inside repeater displays comments on article. I use NumericUpDownExtender as thumbs up/down and I need to disable it after first click so that no one can rate the comment more than once.
View 1 RepliesI have this below piece of code which fires on second time but not first time for me. I am using it as a login button checking for Username n password validations.
I don't want to use javascript:
[Code]....
I have ap age I wrote that is a dashboard, so I have the whole page refresh itself rather frequently so the data doesn't get stale. The guys in our dispatch though who are using have lot's of audible alerts, so they keep their volumes way up, and even if it is in the background, the page makes a noise every time it refreshes, and it is driving some of them nuts I guess.
View 1 RepliesI have a listbox which acts as a list of items. If you click on some item, it's contents are shown in the panel on the right (few textboxes etc.). I need to have a validation on these controls as all of them are required fields. And I do have it. The problem is that, even when the validators are not valid, user can click the listbox and change active index (that doesn't have impact on the panel on the right, as SelectedIndexChanged isn't fired). The validators are standard RequiredFieldValidator with their Display property set to "Dynamic". So, what I want is to disallow the user clicking on the listbox and changing the index untill all validators are Valid. What would be your solution for that? Is that even possible?
View 1 RepliesI have a master page containing menu items and if i click on any menu item then postback happens(it's not an asynchronous postback) that page loads in the content area. Now, if the page has taken some time to load and the user again clicks some other menu, then at some cases, it is crashing. So what i want to do is when postback is happening, I want to restrict the user to click anywhere on the master page or content page. We have achieved this on asynchronous postback.... But cant find a solution during postback.
View 3 RepliesI would like to add a clickable numberpad to a webpage if possible, so i can use this on a touch screen device. I have tried creating seperate buttons for each number and adding the number on click to the textbox, but it the page posts back after each click and if possible i would like to do this without the page refreshing after each click. Does anyone know of a way to do this?
View 4 RepliesI have a form with client side validation. I need to disable sumbit button on click to prevent duplicates
[Code]....
[Code]....
When I use this script all client side validations get skipped.
Is it possible to disable button and have the validation working?
i want the submit button be disable after user click one time , i meant i want 1 user has rights to submit onetime only in a day .
View 11 RepliesI'm trying to disable the onclick event on a ASP.NET gridview that has this in code-behind:
[Code]....
This is HTML markup generated:
[Code]....
I use the following jQuery code, but the mouse click would still postback, triggering the SelectedIndexChanged event on the server-side:
[Code]....
It seems the postback has occurred prior to the jQuery code kicked in. How can I prevent the postback?
Greetings everyone, i just wanna ask.. how do i disable the right click property in a telerik file explorer... what i want to achieve particularly is to restrict the user from deleting a file or folder.. i managed to hide the delete in toolbar but not in the right click..Below is the code i did for hiding the toolbar items.. but disabling the items in the right click.. that's my problem..
Private Sub HideToolBarButtons()
' Hides toolbar buttons
Me.FileExplorer1.ToolBar.Items.FindItemByValue("NewFolder").Visible = False
Me.FileExplorer1.ToolBar.Items.FindItemByValue("Delete").Visible = False
Me.FileExplorer1.ToolBar.Items.FindItemByValue("Upload").Visible = False
End Sub
Protected Overrides Sub OnLoadComplete(ByVal e As EventArgs)
MyBase.OnLoadComplete(e)
HideToolBarButtons()
End Sub