Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Application with aspx AND winforms User Interface (Read 1459 times)
nlange
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Nov 26th, 2007
Application with aspx AND winforms User Interface
Nov 26th, 2007 at 10:33am
Print Post  
Hi,

we are currently developing a application which is become to have a rich client winforms user interface and a also a functional stripped web interface.
In this application we need a control to create, edit and display organization charts with the winform client. I think, that FlowChart.NET do a good job with this.
Via the web interface the users also have to view the organization charts and have to expand and collapse nodes, but will not edit or create anything. They only must have to possiblity to click on a node and the aspx-interface must receive this click event.

Now we like to use only on control an object model to fullfill both needs. It is possibel to this with flowchart.net or have we to work with NetDiagramm for the web interface?
What are the requirements for flowchart.net in an aspx-Page to work with view, expand/collapse and click? IE only? From which version on? 5.5? 6? 7?
We have users with windows 2000 and ie 5.5 Wink

.NET Framework 2.0 is on all machines.

Sorry for the long text i hope it is clear what was the question.

Regards
Nils lange
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Application with aspx AND winforms User Interf
Reply #1 - Nov 26th, 2007 at 11:17am
Print Post  
Hi,

You can do that with FlowChart.NET if you need only click events and expand/collapse functionality when displaying the diagram in a web page. To implement this, use an ASP.NET IMG control and set its URL to a web page that generated the diagram image dynamically. That web page should create a Diagram instance, load a diagram, and use the CreateImage method to export the diagram to jpeg. Finally, set the response type to image/jpeg and send the image bytes to the browser. For an example that shows this, check the WebApp sample project.

This approach will work for any browser and operating system, so the IE version will not be a problem.

The HtmlBuilder class used to generate the client-side image map has an ExpandBtnHyperlink property - use it to handle the click on the server (by setting the Expanded property of the clicked node) and return a new diagram image to the browser.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint