.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

Hidden question marks appear in copy/paste

Posted By:      Posted Date: September 14, 2010    Points: 0   Category :ASP.Net
Hi, I'm running into a really weird issue: when a user copies text from another file and pastes into an ASP textbox, question marks occasionally appear. For example, copying text from one file ("P/U FILE5") pastes correctly into the ASP textbox, displaying as "P/U FILE5" However, in the database, the text is stored as "P?/?U FILE?5"So by way of checking and converting the textbox string to a byte array, I see byte values like this: "80 63 47 63 85 70 73 76 69 83 63 53" which means that when I actually look at the VALUE of the textbox string, it's actually sticking question marks in there. But they don't appear anywhere in the textbox! Any idea of how to fix this?

View Complete Post

More Related Resource Links

Copy/paste broken in SSMS 2008 R2

After uninstalling an SSMS addin (from Red Gate), my copy/paste functionality in SSMS broke -- don't know if it's correlated.  As documented in the bug https://connect.microsoft.com/SQLServer/feedback/details/126743/copy-paste-stop-working-in-sql-2005 it seems that paste is working fine, because it works when I copy from other programs.  When I paste from SSMS, though, I can't paste anywhere.  It's as though SSMS clears the clipboard and that's all she wrote. Anyone else seeing this problem? -matthew

Copy/Paste Fails in Management Studio

After opening Management Studio and doing some editing it is possible to copy/paste things in the query editor. After a while (working in another app) I come back to Management Studio and I can't copy/paste anything anymore. If I try to copy from the results window I get an error message that the clipboard operation did not succeed. If I try to copy from the query editor window it just doesn't copy. I can copy/paste in other apps without a problem.   I have seen this problem described in other forums so I'm not alone but I have 3 other computers where this problem does not occur. The one machine with the problem is hyper-threading. I wonder .... Any other ideas? It is not the clipboard getting full but I can't rule out much else.

Image copy/Paste on a asp.net webpage

  Hi All,            I need a help, in my project I have a requirement, which is I have to copy image from MS-Word and paste it on webpage directly. So that copied image should be display on webpage and save into server automatically. It can be possible using windows applications., but now the same functionality has to implement in asp.net web applications. Any help much appreciated. J Hint:  using javascript Clipboard functionality we may achieve it, but could get correct solution for this . :( Thanks, Naidu 

Remove Word Style once copy and paste content to Rich text Editor in sharepoint 2010

Hi Guys, I have page layout for Users to add content for Page.I have site column for page content on field type HTML with Richtextmode="FUll Html". Now when user cut and paste content from Word document in this Field it carry word document style. how can i control this content on Page layout with CSS. Please adviseThanks Ron

Copy paste of url in new browser window should take me to Login Page

Hi,            I got one situation that if i paste the url in my current browser window to new browser window iam able to view the related page in new window instead i should redirect to my Login Page, can anyone help please its very much needed for me With Regards, Damodharam B V  

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.

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.


VS2010 What happened to ctrl-V !! Ever since moving to VS2010 Copy / Paste functions are not workin


It is hit and miss and mostly miss when I atempt to cut and paste code from one place to another. Please help! I will use CTRL-V after cutting some code to paste it and it does nothing but move the currsor to the beginning of the line. I thought perhaps I had accedently changed the shortcut setting, but a revue of tools\options\keyboard\shortcuts verifed that CTRL-V should be pasting. I am sure you can imagine how debilitating this can be. I hope someone knows what is going on as I can find no information anywhere about it.


When editing a SSIS package in Visual Studio, copy-paste actions have annoying behaviours.


Currently, I'm in a project with high use of SSIS packages.

I've setup a package with many Sequence Containers in order to group Tasks and have these groups to execute modularly before continuing in the next group.

There are Tasks that are very similar, so I just copy-paste them and then change properties.

The problem is that, when I do the "paste", the Task rectangle is always placed in a left-bottom location relative to the currently existing Tasks and Sequence Containers (instead of below the coordinates of the mouse after the right click, as one would expect).

It was already annoying when I didn't use Sequence Containers, because I had to scroll around just to pick the Task in the strange place to where it was copied and put it in the right place.

But it started to be worse with Sequence Containers. Although it really detects the coordinates of the mouse and puts the Task inside a Sequence Container if I right-click over an empty space of the container, it continues to place the Task in a very far left-bottom place relative to the remaining objects. It causes the Sequence Container to stretch until its border contorns the Task in that strange place. I have to 1) move the Task object to the right place and 2) resize the Sequence Container borders to its original status.

Currently, to avoid the step 2 abov

VS2010 - copy/paste XAML UTF-16 loses characters


I have some (generated) XAML which uses UTF-16 characters (in some of the text); however when I copy/paste the XAML from one VS2010 instance to another the UTF characters get mapped to UTF8 characters; e.g., left and right double quote chars turn into quote chars. This of course is disasterous when the characters occur within an attribute value!

How can I preserve UTF-16 text when pasting into a VS2010 window? (The original file is *loaded* into the VS2010 project and works fine there. I'm trying to isolate a problem by selectively excising parts of the XAML and to do this I use copy/paste into another VS2010 instance containing some XAML boilerplate to try out small segments from the original.)


Bill Cohagan

Table Copy Paste Fuctionality issue in Rich Text Box


Hello Team,

I'm working with Rich Text Box in WPF. When I'm trying to Copy a table from MS Word (which does not have borders) and Paste it on Rich text box it looses it's formatting. Instead of table two lines are comming.

Steps to Produce :

1. Open a Ms Word Document and Insert a table(Say 4x4).

2. Apply Design for that table-any  Light Shading - Accent 5 or Accent 4...

3. Copy the table and Paste it on RichTextBox.

Observe the result. It's giving two lines instead of Table which I've copied

This is Urgent requirement for me. Please, Give a solution for this problem


Copy/Paste Role in BIDS looses setup


Hi All,

I'm trying to make a bunch of roles that are all very similar.  When I try to copy/paste on a role in BIDS, the new role seems to be missing all it's values on the Cubes, Cell Data, and Dimension Data tabs.  Am I doing something wrong here?

The duplicate role function works fine in SQL management studio, but I prefer to do everything from BIDS so I can retain source control.  If the copy/paste function doesn't work in BIDS, is there an easy way to make changes in SMS and bring them back to BIDS in a way that retains source control?

I'm using SQL 2008.


How do I implement a Copy/Paste graphics code(similar to paint)?



Im clueless about how to solve it!

Issue with ASP.net and copy and paste


I am working on a ASP.net web form and every time I copy a label it automatically puts a new CSS style to it. I am in visual web developer 2008. Anyone have any idea what setting I have accidently hit that is causing the label to not copy correctly and making a style sheet automatically?

Copy/Paste enable using a FrameworkElement


I'm sure this question has been asked a million times before but I haven't found the magic Google words for it. 

I have build a control based on FrameworkElement.  This control has the ability to cut and paste information if the control has part of it selected. (Its a waveform and the selection is a marked of section of that waveform)  What I would like to know is how to have this control enable/disable the Cut/Paste menu items automagically like the Textbox does. 

Thus if I have a text box in focus and the Copy MenuItem bound to ApplicationCommands.Copy, the MenuItem is enabled/Disabled if text is selected or not.  This is done without me binding directly.    So how can I get this sort of behavior in my Framework control?



Some basic MVC question

  1. In regular asp net I can run (debug) the application but I can either "view in browser" that gives me the option to view the application and write code on same time.

In MVC I can't find this option.

  1. What is the basic DATA MODEL for working with SQL DB.

I mean with no any framework (entity framework, Sub sonic, Link to SQL etc')

I look for basic application that works with data but with no fw.

  1. What is the popular DB framework that working with data.
  2.  I am looking on  mvc series


C# Soup To Nuts  (the best series ever)


I watch some of the MVC video, seems that the music store is good but I have to wait to the other part.

Does any one know and recommend   a Microsoft MVC tutorial?





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