Drawing lines on C Sharp web application

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • poifull
    New Member
    • Sep 2010
    • 3

    Drawing lines on C Sharp web application

    Hi,

    Does anyone out there knows how to draw lines with mouse on a C Sharp web application? I only found window application codes on Google. I need guidance. Please provide me with sample full source code if can. Thanks!
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    You're going to need to make heavy use of javascript I would say. (Unless you plan on making like a silverlight/activeX application)
    Find yourself a good javascript drawing library, then work with the mousemove and mouseclick events to support your drawing.

    Comment

    • poifull
      New Member
      • Sep 2010
      • 3

      #3
      thanks for your reply. i'm new to C#. how do i use javascript in C#?

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        You use javascript on the webpage. The C# code only runs on the server, not on the client

        Comment

        • poifull
          New Member
          • Sep 2010
          • 3

          #5
          can javascript get image dpi?

          Comment

          • Plater
            Recognized Expert Expert
            • Apr 2007
            • 7872

            #6
            I do not know exactly what you are refering to (height and width? yes)
            But any values you want, you could read in the C# backend code and write to hidden input fields in your page, then access them in javascript to use for the drawing

            Comment

            Working...