Web Forms :: Disable Right Click On Webpage?
Feb 14, 2010i 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 disable right click of my web page in asp.net. it should be work in all the browsers....
View 7 RepliesPossible 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 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 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 RepliesI 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'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 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 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 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 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 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 RepliesWhen a user clicks a button on a web form, i have some validation statments:
if x = 1
"goto www.google.com"
else
"goto www.espn.com"
How can this be done? I have read about the webbrowser.vavigate, but its not supported in asp?
I want to disable right click on my website and would like to display a popup window on right click, along with the person's IP address who right clicked on my website, how to accoplish that ?
Till now i have added this script on my master page which disable right on I.E but doesn't popup any message window and it works in mozilla and shows popup. why message is not poping up in I.E ?
<script type="text/javascript">
var message = "Right Click Have Been Disabled!";
function clickIE() { if (document.all) { alert(message); return false; } }
function clickNS(e) {
if
(document.layers || (document.getElementById && !document.all)) {
if (e.which == 2 || e.which == 3) { alert(message); return false; }
}
}
if (document.layers)
{ document.captureEvents(Event.MOUSEDOWN); document.onmousedown = clickNS; }
else { document.onmouseup = clickNS; document.oncontextmenu = clickIE; }
document.oncontextmenu = new Function("return false")
</script>
and how to add feature of displaying I.P address of person who right clicked ?
Situation:
1) Click on 'Check' button and the button will disable
2) Run a processing code(for checking) and once it is done, navigate to a new page(NewPage2).
Here are 2 code situations (1):
[Code]....
and if I do this way (2),:
[Code]....
it will navigate to NewPage2.aspx, but during the execution of the processing code, ButtonCheck control will not be disabled as the Click Event has not finished, and I want it to disable during the checking process. If the 1st option is executed, it will throw to me "Response is not available in this context."? HttpContext is null for (1). In my opinion, I think that the navigation does not recognise the response object as it is in a thread and has exited out of the buttoncheck event. But I'm still not sure why.
how to disable the button and run processing code during the click event and be able to navigate to a new page?
Every time we click on a button. the Page_Load will fire first.
For my case, I have some controls added programmatically to the GridView, when the button click, the Page_Load event fire, my controls just go away.
i have used a button in gridview.i want after a single click all the button become disable..
View 9 RepliesI am new to asp.net and im doing a web page in which i have a teeview in my detailview.I add nodes to treeview in detailview itemscreated event and its working fine ,adding nodes accordingly except when i click on the node of treeview the nodes are added again. how to disable the click event of treeview.
how can we disable/hide pdf toolbar or buttons , which are at the right bottom corner of the webpage.
View 1 RepliesEverytime i click a button on my webpage al my variable get erased.I am creating a game page where you can add usernames to a string array but everytime i click a buttom my array gets erased :(
View 2 Repliesi have one gridview in which their is on linkbutton and one textbox
i want to enable or disable textbx on click event of linkbutton for particular row
.aspx code
[Code]....
.cs code
[Code]....
i am able to find textbox in gridview in RowDataBound event but how to perform action on click event on textbox for individual row
I have a textbox control i disabled view state at page and control level.i entered a value in the text box and click a button there is a postback,no business logic in the button click event.The values in the testbox are persisting though i disabled at the control level and page level.
View 5 RepliesI make one texbox and one button. What i want to realize is that people fill the message into textbox and then click button. The content of that message will automatically send to my email address.
View 13 Replies