Javascript - Disabling Paste Option From The Context Menu?

Nov 10, 2010

I have one asp.net application, in which i have to disable or make it as read only to the Paste option from the context menu. But i searched in internet. I didn't get one exact method.

View 2 Replies


Similar Messages:

AJAX :: Htmleditor Paste Plain Text From Context Menu

Mar 21, 2011

I am having the issue where I want people to paste plain text and not any word formatting.

Obout_theo gave the code below, which made the normal ctrl + V paste in plain text the whole time. Which is perfect for my need.

BUT, most users use paste from the context menu and this pastes in word format. Does anyone know the answer to this problem?

[Code]....

View 5 Replies

Data Controls :: Cut Copy Paste GridView Rows With Right Click Context Menu Using JQuery

Dec 23, 2015

I have gridview (vb.net,sql server 2005 table). i need to add right click menu option to cut,copy,paste from the gridview to another gridview ....

View 1 Replies

Web Forms :: Display A Context Sensitive Menu Using Menu Control?

Jul 28, 2010

I know that the code depicted below will not work but I am including it to convey the idea of what I wish to accomplish. I want to use a different SiteMap to construct the menu on the displayed page for each of three different classes of service (COS).

I set a session variable named "COS" at the login and want to test its value prior to rendering each page. I want to display a menu based upon the appropriate COS. Here is my first stab at it but I know that I cannot include <asp:...> controls within the "case" statements. Can anyone suggest methods of doing this? I know C# and can use that but I do not know how to select the proper sitemap within the <menu> control. I am also using a CSS in my production version.

[Code]....

View 2 Replies

Web Forms :: Append Right Click Menu To A Textbox (Context Menu)

Jul 17, 2015

How to append right click menu to a textbox in asp.net c#?

View 1 Replies

Web Forms :: Context Menu On Treeview?

Jul 10, 2010

Has anyone successfully implemented a node specific context menu on a treeview in any web project?I have populated context menu on specific treenode and able to get the treenode tagname, but i am not able to select the tree node while i right click on the treenode.My code is as follows:

function ShowContextMenu() { var obj = window.event.srcElement; if(obj.tagName == "SPAN") { showhide('ctl00_menuHover','true',obj.tagName);//function to show/hide menu } }
<asp:treeview id="trvMenu" runat="server" datasourceid="SiteMapDataSource1" xmlns:asp="#unknown">
CollapseImageToolTip="Collapse" ExpandImageToolTip="Expand" ShowLines="True" oncontextmenu="Javascript:ShowContextMenu();return false;">

View 2 Replies

Web Forms :: Add A Context Menu In The Panel?

Jun 30, 2010

I have a Treeview in a panel of asp.net 3.5 page. I need to add a context menu in this panel. so i can sort the order of Trrview. How can we add context menu (right clickmenu) in asp.net 3.5.

View 1 Replies

JQuery :: Showing Context Menu In ContentEditable Div?

Nov 6, 2010

have a contentEditable div with following text for example:

[Code]....

Now for example if user clicks on 'm' in word document I want to show a context menu containing few text choices. That context menu will be contained in a div element. I want to replace the word "document" with the option(text) selected by user from context menu. In my view I have to find absolute position of click to show context menu and then I have to find space elements before and after the caret position and then replace the selection with option selected from context menu. how I can do it using JavaScript and jQuery? one part of my question is about context menu and other the more important is how i can detect the word on wchich user has clicked on in contentEditable div or in text area on the other hand.

actually i want to make a similar transliteration application like google's. the process of script onversion from roman to Urdu has been done however i m facing lot of problems in user interface development on the web. google transliteration application can be found here.

View 3 Replies

When Right Click There Is No Properties Option In Popup Menu?

Apr 2, 2010

For Testing x509 certificate.I expanded the Default Website node in IIS 7.5.When i right click there is no properties option in popup menu.How to include it?

View 1 Replies

Web Forms :: How To Get Context Menu When Right Click On GridView Column

Oct 20, 2010

When i right click on Gridview Column,Context Menu will be displayed.

When i click any of them in context menu it will display new aspx page.

Is it Possible w/o Java script?

View 3 Replies

JQuery :: Context Menu When Right Click On Gridview Selected Row?

Nov 3, 2010

I have a requirement that

When i select a row in Gridview,it will High light the row and when Right click on selected

Row,It will open Context Menu.

In that menu i want to do Add new row delete row etc.

View 1 Replies

Display The Context Menu On Right Click Of Link Button?

Nov 17, 2010

I want to display the context menu on right click of link button in asp.net. I want this in javascript.

I could find javascript event of right click.

View 1 Replies

Web Forms :: Display Context Menu On Right Click Of TreeView?

Sep 20, 2015

how can i create treeview node at runtime by right clicking on node?

View 1 Replies

Data Controls :: Add Context Menu For GridView Cell

May 7, 2015

How to use context menu for each cell and calendar in grid view?

View 1 Replies

Javascript Disabling Postback?

Jun 3, 2010

I have an ASP.NET checkbox, and I want to run some javascript before it posts back.

Something like:

<asp:CheckBox ID="chkSelected" runat="server" AutoPostBack="True" OnCheckedChanged="chkSelected_CheckedChanged" />

but I want to run a JS confirm dialog when the user click it, and if they were UNCHECKING it, I'd like to ask them if they're sure, and if so, postback and run my serverside code. If they say No, don't postback at all.

View 2 Replies

SQL Server :: New Database Diagram Menu Option Is Missing?

Nov 10, 2010

On a home PC I have SQL Server 2005 installed. If I go to SQL server management studio and select my database, I can then right click on the "Database Diagrams" folder and then select "New Database Diagram" from the popup menu. I can then generate a database diagram. However on my PC at work if I follow the same steps as above, the popup menu does not show an option for "New Database Diagram". Instead my choices are "Working with SQL Server 2000 diagrams" and "Refresh". So why is the "New Database Diagram" menu option missing? Also what is odd is that the popup selection reads "Working with SQL Server 2000 diagrams" when in fact I am using SQL Server 2005 not 2000? Does anyone know why my option to create a database diagram is missing?

View 1 Replies

Forms Data Controls :: How To Add Context Menu In Gridview Rows

Mar 1, 2010

how can I add context menu in gridview rows

View 2 Replies

Forms Data Controls :: How To Display Context Menu On Gridview

Oct 15, 2010

in my web page gridview is there

how to select row with out using select command ,how i can select row and right click event

in right click event context menu display is there possible using server side coding r we can use client side programming

View 3 Replies

Programmatically Removing A Header Context Menu Filter From RadGrid?

Jul 13, 2010

I've got a repeater I've bound to column names that are filtered, as they're applied (using sessions currently, I might change this to loop through the columns looking for filters now that I really know how the grid works).

I've got a button next to each filtered column name that is to remove the filter from the RadGrid.

<asp:Repeater ID="repCorpFilters" runat="server" OnItemCommand="repFilters_ItemCommand">
<HeaderTemplate>
Current Filters:
</HeaderTemplate>
<ItemTemplate>

[Code]....

View 2 Replies

Disable File Menu Control (Print Option) Of Browser?

Jan 26, 2011

How to disable File Menu Control (Print option) of Browser in asp.net

View 5 Replies

How To Disable Print And Save As Option In The File Menu Of A Browser

Feb 15, 2011

I have a requirement to disable save as and print options of file menu of the browser in which my portal opens.For this i have used javascript code which clears the clipboard text.Because of this when my pplication is opened then copy paste wont work on the system.Iam calling this method on load of a startup page and afer clearing the clipboard text iam opening my home page through javascript with no menu bar just like a modal popup iam trying ot open.This is working fine for some browsers but IE7 and firefox users are unable to load the applicatio because of this javascript function.Can anyone suggest me how to overcome this or how to disable save as and print option.My final aim is user shouldnt be able to save or print my application data...

View 5 Replies

Validation Controls Don't Work When Disabling Javascript

Feb 1, 2010

I am testing my web site to allow people to navegate despite having the javascript feature disabled but the asp validation control dont work in this mode.

I am working with master pages and I have the the text box I want to validate inside a panel to enable my nextbutton to work like enter like this:

[Code]....

View 4 Replies

Javascript - Disabling A Label From Client Side?

Feb 2, 2011

I have a webform that has a lot of controls and a submit button. When a user submits clean data, there is an asp.net label control that displays a "form submitted successfully" message. My problem is that after this successful submission, if the same user enters some invalid value for some fields on the same form and clicks on the submit button, the page still displays the success message along with the asp.net error message for that field (By using the asp.net validation control). My question is how do I get rid of the success message in this scenario? (In this case all I want to display is the client side validation error message). I am not that familiar with javascript.

<asp:Button ID="btnAddActivity" Text="Add Activity" runat="server" onclick="btnAddActivity_Click" ValidationGroup="vgSetup" OnClientClick=" return changeLabel();"/>
<asp:Label ID="lblMessage" visible="false" ForeColor="red" runat="server"></asp:Label>
function changeLabel()
{
document.getElementById('<%= lblMessage.ClientID %>').innerHTML = "";
return;
}

Here is the markup for the label and button .I tried calling a javascript function on the OnClick event .This disables the success message, but the validation error messages are displayed after a post back.I want to display the validation error messages without a post back.

View 1 Replies

Dropdown List Value When Enabling And Disabling Through Javascript?

Sep 14, 2010

I am using a asp.net Drop down list control which is disabled using javascipt, when I am trying to retrieving the value server side the default value is being set on postback.

It is a Web Project and Iam using VS2008.

View 4 Replies

AJAX :: HTMLEditor - Pasting Word Content As Plain Text Using The Context Menu

Mar 16, 2010

I am having an issue with the HTML editor when using the context menu to paste content from word. Basically I want to paste the content as plain text which i have been able to do when using the Ctrl +V key by using the captureInDesign method, but unable to do this when selecting paste from the context menu. Is this possible using the AJAX control kit 3.0.30930?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved