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
591 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Foreword (May 2015) This web page has appeared at Google.  It's definitely worth considering! https://www.google.com/about/careers/students/guide-to-technical-development.html How to Know You are Making a Difference at EE In August, 2013, one …
Foolproof security solutions has become one of the key necessities of every e-commerce or Internet banking website. If you too own an online shopping site then its vital for you to equip your web portal with customer security features that can allow…
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 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.

762 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now