views:

804

answers:

1

Hi All,

Am creating a web based application using ASP.NET v2.0. I have an urgent requirement in my project - to have a control in my web page that would allow the users to enter text or copy paste image from the clipboard (say a snapshot).

In order to achieve the same i have tried using the windows clipboard class in web forms and retrived the clipboard image and stored the same in Sql Server DB. On click of the button, the corresponding image is fetched and displayed to the end user.

All this works fine when running thro' IDE. When i host my web app in IIS, am not able to achieve the same. Pasting the image from the clipboard on a button click doesn't work.

Any ideas?? Thanks!

A: 

You can't use the windows clipboard class directly on a web application.

You could have the user copy some data from the clipboard to an input control and post that data through a postback or an AJAX. Or you could get the data from the clipboard with a client tool like a custom ActiveX control.

My guess is that when it works through the IDE, the information is getting through a "back door". Since everything is happening on the same system, the correct information happens to be in the Windows clip board.

jrcs3