Solved

Need to "draw" line (mouse click/drag) on a graphic displayed on ASP.NET page and save changed graphic.

Posted on 2008-06-18
7
596 Views
Last Modified: 2013-11-26
Hello Experts!  I've searched this one up and down and can't find an easy solution.

1.  When the ASP.NET 2.0 page is loaded it will display a default graphic (how - I don't care).

2.  The user of the page must be able to use their mouse (pointing device) to click and drag to form lines.  I mean the same as drawing a "freehand" type of line on a piece of paper - NOT click point A then move mouse to point B and click again and have a straight line between the two points.

3.  The default graphic is now modified (unless you have a better idea) and must be saved in the DB (I can handle that).  When the next user opens the page they are presented with the default graphic.  When the returning user opens the page they are presented with their modified graphic.

Please let me know if any of this doesn't make sense.  The solution has to work within a MasterPage and live pleasantly with AJAX 1.0.  I'll be on tonight watching for Q and A.  I'm looking for quick and dirty on this one.  Thanks in advance!
0
Comment
Question by:sjd01032
  • 5
  • 2
7 Comments
 
LVL 15

Expert Comment

by:Solar_Flare
ID: 21818734
this is going to be difficult - I have been considering doing client side design in asp.net and I think it will take far more time than I have free...


basically you would need to write javascript that handles the mouse movement and mouse clicks (you will probably have to support only 1 browser to get this working nicely) to actually capture and render the drawing. You also need to dynamically add a whole lot of hidden inputs to the form which represent the path of the lines etc - upon postback you would capture these values to be able to recreate the path of the lines.

you would be better off using a java applet, flash or silverlight to do this.
0
 
LVL 15

Expert Comment

by:Solar_Flare
ID: 21818771
also, have a look at http://www.xdraw.org/

I don't know if it supports freehand drawing, but it may be of help

0
 

Author Comment

by:sjd01032
ID: 21820901
Thanks for the link.  Unfortunately it's not working - maybe too early in the morning :)

I've been told that my predecessor had a working prototype that used something found on CodeProject.  I looked there and the www.asp.net site with no luck.  Of course my brilliant predecessor didn't bother to use source control and his manager has no idea what he was doing.  I'm guessing about 25% of this is true, but my point is that I'll take what I can get - be it a cheap widget or some free source.

Thanks again!
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

Author Comment

by:sjd01032
ID: 21830122
All I need to do is "draw" a line where the mouse is clicked and dragged over an image - and then save the image with the line (or scribble).  I don't need anything fancy - no colors, no straight lines, etc.  Any help would be really appreciated!
0
 

Author Comment

by:sjd01032
ID: 21856332
Should I be in a different EE category?
0
 

Author Comment

by:sjd01032
ID: 21883740
Maybe an ActiveX solution?
0
 

Accepted Solution

by:
sjd01032 earned 0 total points
ID: 22064417
Wahoo!  There's no way to draw in ASP.NET.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question