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
604 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 

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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
asp.net mvc5 6 33
async questions 5 48
PowerShell:  foreach where object notmatch? 17 77
How does this modal gets closed? 6 41
A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

734 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