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

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Disable "Paste" lable on read only textbox.

Posted By:      Posted Date: September 09, 2010    Points: 0   Category :WPF
Hi, I am new to C# .NET. I am facing very small problem. i.e. I made a text box with readonly option. Now this text box is not allowing to paste,ok its working fine. But when i give mouse right click paste lable is enable. Can you guide me how to disable this lable. With Regards Srinubabu

View Complete Post

More Related Resource Links

Disable copy paste in textbox without Javascript




Can you somebody help me in disabling copy paste in the textbox without using Javascript for an web application?




disable COPY/Paste function on a textbox

Hi, I want to make disable COPY/Paste function on a textbox. DO u know how to do it if so please let me know asap? And it is required to be done at client side. The text box can be HTML or ASP:TextBox. Please reply asap.

How to disable textbox causing validation?

Hello I was running into a strange problem: If I left a textbox blank (in some instances) the textbox would not give up the focus (I could not even close the form).  I learnt later that this was because the text in the textbox was causing validation to fail.  I would have to type in some value (Satisfy validation) before i could close the form. This is problematic for me and I don't want the textbox to behave this way (I do not awnt front end validation).  I desire to have validation done ONLY on the back end.     I thought that I could solve this problem by changing the 'CausesValidation' property in the textbox to false.  This worked!  However it introduced a new problem.  The binding no longer worked on the Textbox.  That is, whatever value I typed in the textbox would not make it to the data set. What is the correct way in solving this problem???  I want validation to be shut off however I still (obviously) need to keep binding in tact...      

read string and lable value from sql server by class

hi,i want to create multi language cms project,i don't like use resourse component visual studio.please help me to create class for resourcestring and use for lable and string value.and cms user can add new language by xml and webform anybody help to me

How to read the value of textbox in table1 of subreport

I have a report which has subreport in it. the textbox5 has a countrows() function hooked and i want to =sum(Subreport1.table1.textbox5.value), is it possible. subreport control is pointing to childreport.rdlchildreport.rdl has - Table1 and textbox5 Thank you very much for the info.

Unable to enter the product key in the Convert License Type page (textbox is read-only)

We installed both WSS and MOSS SP2 and had planned to follow the manual fix for the known issue that the patch unexpectedly activates a trial expiration.  However, the textbox to enter the product key is read-only.  We have tried accessing this page using the normal administrator credentials as well as the farm account; no success.The SP2 issue and manual fix is detailed here, http://support.microsoft.com/default.aspx/kb/971620We were able to experience this problem on a farm running the Feb 2007 cummulative patch (version so it's not related to the SP.  But running the SP increasing the need to find the fix.Any help is appreciated,J. Aqui

Read a multilined textBox line by line

Hi, I am trying to read a multilined textBox line by line into a List<String> but with the code below the compiler says that "'System.Environment' does not contain a definition for 'Newline' String getLine = ""; List<String> getLines = new List<String>(); string[] mylines = TextBox6.Text.Split(Environment.Newline); for (int i = 0; i < mylines.Length; i++) { getLine = mylines[i].ToString(); getLines.Add(getLine); }  

Running Client Script to Read TextBox Value from AJAX PopupControl Extender


I used PopupControl Extender to display row details from a gridview, and need to update the two textboxes, but the changed value in the textboxes did not get picked up when click the update button on the popup window, so I need to get client side javascript to read the new changed value from these text boxes. However, I tried a few way, none worked for me, not sure what is wrong.

1. Add a javascript function in the .aspx file and use onclientclick of the linkbutton control to call the function, I got error of "Microsoft JScript runtime error: Object required".


<script language="javascript" type="text/javascript">
     function newTextValue(textbox) 
      var text = document.getElementById("TextBox1").Value;

<asp:TextBox ID="TextBox1" runat="server"  Text='<%# Bind("GalleryTemplateName") %>' Height="20px" Width="230px"
                    style="text-align: left"></asp:Text

Read only error trying to copy and paste rows of records from Excel spreadsheet


I'm using Sharepoint 2010 and trying to open a list in Edit in Datasheet View. The list opens but when I try to paste lines into the sheet I get a Read-only error and it doesn't accept my paste. I removed all required fields.

I'm using XP and IE8

This function was working in SharePOint 2007.


How to disable resize grip on multiline textbox?


I cannot seem to find what should be a simple setting to keep my multiline textbox to the height/width or row/column settings without the resize grip or ability to resize. How do I prevent resizing?

How to disable a validator that associates with a disabled textbox?


 Hi there,

If a control is disabled (enabled = false), will the validator controls associated with it automatically know not to carry out validation?

i have a checkbox and a textbox, if the checkbox is checked, the textbox is enabled, and has to have a value, where i used a required field validator.

but if the checkbox is not checked, textbox is then disabled, however, the validator controls still seem to be trying to validate the disabled textbox.

so is there a way to disable validator according to textbox's state? such as textbox.enable = true? seems like causevalidation method requires multiple button, however i only need one...


thanks in advance!

Disable 'Read Only' for a document accessed via url?


Hi everyone,

My workflow launches an email that includes the location of a document to be edited.  However, when I click on that link, the document launches as a "Read-Only" document.  Anyway I can have the link in the email launch the document so that it can be edited?


Textbox Editable GridView in ASP.NET

This article describes how I made a fully editable gridview in C# using ASP.NET 2. The idea is that the GridView looks and works like an Excel spreadsheet. You see all the cells in the table, and you can edit any of the cells you like, and they are automatically updated (i.e. saved to the database). This is very often how people expect data tables to work in web pages, and I've often seen people clicking in vain on un-editable gridview cells, somehow expecting to edit them, and not understanding that they need to click an Edit button at the end of the row.

Highlighting Rows with TextBox OnFocus

In another article I explained that how you can make the rows of the GridView control clickable and highlight them when they are clicked. In this article I will explain that how you can highlight the GridView rows when you focus on the TextBox which is contained inside the GridView control.

Custom Editing Behavior for DataGridView TextBox Columns

For various reasons I'm using a DataGridView instead of a ListView, and while configuring the DataGridView to look like a ListView wasn't much of a problem, there's one thing that got on my nerves, which is the behavior of textbox cells in edit mode: It is much too easy to leave the edit mode accidentally, simply by pressing the cursor keys at the wrong time. For example when the text caret is positioned behind the last character of the textbox cell content, and you press the right arrow key

Editable Gridview with Textbox, CheckBox, Radio Button and DropDown List

This is an example of an editable gridview containing different ASP.NET controls. When user wants to edit values in gridview, she/he can use these controls to edit existing values in Gridview Edit Mode.

Using the Code

watermark textbox using Ajax control

This is pretty simple compared to jquery. Since we need refer a dll only. we dont want any script for this. we just include that reference into our website.
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