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
594 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Thoughout my experience working on eCommerce web applications I have seen applications succumbing to increased user demand and throughput. With increased loads the response times started to spike, which leads to user frustration and lost sales. I ha…
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…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
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…

822 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