473,387 Members | 1,532 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

HTML/ASP Form Paste

Hi!

I'm using ASP and HTML for a form. I'm having a major issue with users
copying from MS Word or Work Perfect into my text boxes. What I want to
do is top this with either html, javascript, or asp.

Any ideas?

Andrew J Durstewitz
ASP,ASP.NET Developer

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #1
7 1809
I assume you mean stop, not top, and if so, you won't be able to tell the
source of the copied text. What are the issues?

Ray at work

"Andrew Durstewitz" <ad******@yahoo.com> wrote in message
news:eH**************@TK2MSFTNGP12.phx.gbl...
Hi!

I'm using ASP and HTML for a form. I'm having a major issue with users
copying from MS Word or Work Perfect into my text boxes. What I want to
do is top this with either html, javascript, or asp.

Any ideas?

Andrew J Durstewitz
ASP,ASP.NET Developer

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #2
People are copying a pasting from word and it crashes the asp engine.
Since a bullet it alot of the time a non-ascii text character when
people copy and past them it kills the sql query. But if I write a
character cleaner it would take too much processor time. That's why I
was looking for a way to do this by just not allowing users to past into
text boxes.

DEVBuilder.org, http://www.DEVBuilder.org
ASP,ASP.NET,VB.NET,PHP,Java,and SQL Support, all in one place.
Jul 19 '05 #3
On 03 Dec 2003 20:14:24 GMT, Andrew Durstewitz <ad******@yahoo.com>
wrote:
People are copying a pasting from word and it crashes the asp engine.
Since a bullet it alot of the time a non-ascii text character when
people copy and past them it kills the sql query. But if I write a
character cleaner it would take too much processor time. That's why I
was looking for a way to do this by just not allowing users to past into
text boxes.


It would help to know what you're doing with the pasted text that
causes a crash. I have no issues here, and all I do is escape a few
characters like single quotes.

Jeff
Jul 19 '05 #4
It's getting inserted into a database.

DEVBuilder.org, http://www.DEVBuilder.org
ASP,ASP.NET,VB.NET,PHP,Java,and SQL Support, all in one place.
Jul 19 '05 #5
Are you sure it's not just a ' issue. Any character that goes into a
textbox should be fine. Is this a "rich" textbox?

Ray at work

"Andrew Durstewitz" <ad******@yahoo.com> wrote in message
news:3f***********************@news.frii.net...
It's getting inserted into a database.

DEVBuilder.org, http://www.DEVBuilder.org
ASP,ASP.NET,VB.NET,PHP,Java,and SQL Support, all in one place.

Jul 19 '05 #6
I know it's not a ' issue because of have
Replace(strStuff, "'","''") on all of the text boxes.

I'm wondering if it has anything to do with that I'm running asp on a
ChiliSoft and MySQL. I have orderd new servers from rackspace with
windows 2003. I'm hoping this issue will go away.

Andrew

DEVBuilder.org, http://www.DEVBuilder.org
ASP,ASP.NET,VB.NET,PHP,Java,and SQL Support, all in one place.
Jul 19 '05 #7
Hi,

Why dont you use a Rich-Text box rather than a textarea, like the compose page in Yahoo or Hotmail. It would give more flexibility to the user. And u can form the HTML and store it into the database or in a textfile.

If you need that code let me know.

Bhaskardeep Khaund
Jul 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: TinyTim | last post by:
I'm a newbie at ASP & HTML. It seems that when you use server side code and you're going to return a customized HTML form with several fields and labels, you have to do an extensive amount of...
2
by: Holger Butschek | last post by:
Hi folks, first of all, I'm absolutly new to javascript. I have designed a html-form and am trying to path parameters with the suffix of i.e. ?Seminartitel=hallowelt in the url. In the head...
5
by: ojvm | last post by:
ok. thanks again for the time spend reading this. this code adds 2 controls in html form but it places in top of the form. i want this control1 control2 control1 control2 control1 ...
4
by: ALESSANDRO Baraldi | last post by:
Good evening. Few day ago i ask about this Object. A very kindly replay of Sthepen Lebans give me the solution to use ClipBoard to synthesise the Conversion, but i've some truble. My scene: ...
2
by: Jon Booth | last post by:
I am using ascx controls to build headers and footers for my wbe application. 3 questions 1) How do I set it so that when I create a new web form created inherits from my SecurePage class and...
17
by: Lloyd Sheen | last post by:
This IDE is driving me nuts. I needed another button so I copied an existing one, changed the Text and the id and position by drag and drop. Well then I run and get the following: Control...
2
by: John | last post by:
Hi A client has provided an html sample page to be used as "template" for an asp.net enquiry form to maintain their intended look and feel. Info from the asp.net form is to be emailed on...
11
by: nAmYzArC | last post by:
Hi all, On our site we have a section that allows users to copy and paste or drag and drop the contents of (pretty much any) webpage into a Div. I need to get access to the clipboard data. To do...
0
by: arindams | last post by:
I've a form where an webrowser contains a html file. I want to copy a selective portion of the html content and paste that content in an excel 2007 file where it will be pasted as a normal text (not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.