如何将文本和图像粘贴到文本框或文本区域中? [英] How to paste text and images into a textbox or a text area??

查看:174
本文介绍了如何将文本和图像粘贴到文本框或文本区域中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正面临一个使用ASP.NET创建网页的项目,该项目
应该允许页面的用户从
复制文本和/或图像 他/她的计算机并将其粘贴到页面内的控件中.
当用户点击提交"按钮时,该页面将被发布到
服务器以及发布的文本和图像将保存在
和SQL Server表.
有没有简单的方法可以做到这一点?还是有任何简单的Web控件
可以执行此任务?
到目前为止,我通过Internet浏览并找到了各种编辑器,但
我没有找到任何可以像使用写字板一样工作的版本.
有人知道吗?非常感谢.

I am facing a project to create a web page using ASP.NET that
should allow the user of the page to copy text and/or images from
his/her computer and paste them into the control within the page.
When the user hit the submit botton, the page will be posted to
the server and the text and images posted will be saved in
and SQL server table.
Is there any simple way to do this? or is there any simple web control
that can perform this task?
So far I browse through the internet and found various editor but
I haven''t found any version that allow me to work as if I am using wordpad.
Does anyone have the information? thanks a lot.

推荐答案

您无法在Web HTML编辑器中获得写字板或单词的效果,并且无法直接存储图像从html编辑器中获取该文件,您需要用户首先上传这些文件.

您可以使用.NET控件FreeTextBox(Google)或尝试在Google中为此使用一些jQuery插件.
You can''t get the effect of wordpad or word in a web html editor, and to store the image you can''t directely get that from the html editor, you need those files to be uploaded by the user first.

You can use .NET control FreeTextBox (Google) or try for some jQuery plugin for this in google.


这篇关于如何将文本和图像粘贴到文本框或文本区域中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆