Click here to Skip to main content
15,890,897 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Can anyone please tell me how to draw the network diagram at run time using asp.net. Which graphic tool to use that can draw the switches as an object which has the basic functionality like onclick, onmouseover.
Posted

1 solution

Basically, you can use System.Drawing.Bitmap to render graphics on the server side and deliver it in HTTP response back to the user via a file and an anchor element, of directly on the fly, without storing a file anywhere on a disk.

Please see my past answer for more detail: Graphical Outputs on Web page[^].

—SA
 
Share this answer
 
Comments
pj.asp 23-May-13 0:57am    
But I don't want to view it as a bitmap image rather I need to show a switch as a rectangular object with interfaces shown as small rectangles on it. User can click on the entire switch or its interfaces individually and all the objects need to be created at run time once the network is discovered.
Sergey Alexandrovich Kryukov 23-May-13 1:49am    
Do you know what a bitmap is? You rectangles and other elements are nothing but bitmaps. Clicks are handled as usual.
—SA
pj.asp 23-May-13 4:27am    
Thanks for correcting...I have seen the links u told and tried using bitmap image. What I am getting is one complete image on which click event can be done. But I want to separately click individual rectangles placed on the main rectangle.Also how to handle click event on separate rectangular structure in asp.net.If you do have any link through which I can get some help kindly tell me.
Sergey Alexandrovich Kryukov 23-May-13 8:43am    
That makes sense. It all depends on how much of interactive behavior would you really need. Please see the comment by kuttikrishnan. This would be a reasonable alternative, if, say, your main interactive function would be moving elements on screen, or something like that. But for complex interactive behavior, flash could be more appropriate...
—SA
Thanks7872 23-May-13 0:59am    
↑voted..Good one..!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900