Click to See Complete Forum and Search --> : In need of suggestion about a web based application


blueharbor
July 5th, 2005, 03:57 PM
In this application , the target is to draw a line in the client web. The value of x,y dimension has been stored in a table of sql server 2000 in advance. Some simple functions for the line is also required such as zoom and check the value of certain point with the onclicking of the mouse.

As far as I know, the asp can fetch the data from the sql server and then response.write them to a HTML format stream.

I have only worked on asp before , and do not know have to transfer the data to a line in the web client or export them in server side ? I have experience in writing graphics program with Visual C++ , but have no idea about this case.

I want to switch to the Visual Studio.net now , I prefer the solution method with it.
Your advice will be greatly appreciated !

hspc
July 5th, 2005, 04:28 PM
Ok..It's late now ..So i'll be in hurry :rolleyes:
You can create graphics using an in-memory Bitmap...Draw on it using data from SQL then write the bitmap into the response stream..
Or another solution is to make server side code generate JavaScript code that makes the drawing on the client using this library (http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm)

blueharbor
July 7th, 2005, 03:50 AM
Ok..It's late now ..So i'll be in hurry :rolleyes:
You can create graphics using an in-memory Bitmap...Draw on it using data from SQL then write the bitmap into the response stream..

It's a good idea ,but in this case , it will be very hard to fulfill certain tasks that the client can zoom or check the x,y coordinates value by clicking the point on the line.

Or another solution is to make server side code generate JavaScript code that makes the drawing on the client using this library (http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm)

It's a great website , thx a lot. I will try to learn more.

hspc
July 7th, 2005, 04:21 AM
Since you have experience in VC++ graphics..It can be a good idea to make an ActiveX control using ATL and embed it in the page..This will give you good control over the image..

blueharbor
July 7th, 2005, 08:34 AM
Since you have experience in VC++ graphics..It can be a good idea to make an ActiveX control using ATL and embed it in the page..This will give you good control over the image..

I have some questions about this idea ,sorry for my ignorance.
The ActiveX seems shall be run in the client side ?
If so , how about the platform-independent ? Can it be applied in some clients with non-ie browser?

mmetzger
July 7th, 2005, 08:55 AM
If you want non-IE dependant, look at using a Java applet or perhaps a Flash movie that gets its data from the server.

hspc
July 8th, 2005, 02:59 AM
Yes
As mmetzger said you should use something other than ActiveX for X-browser support.
But this depends on your target audience..(by the way..Netscape made a plugin that helps to run ActiveX inside netscape browser)
you can wirte your code code in C++ and wrap it in an ActiveX for IE and a plugin for Mozilla,firefox etc.

blueharbor
July 9th, 2005, 03:21 AM
After some investigation of the website hspc recommended , I prepare to use sql-server to store the data , and use asp to regenerate the html stream including the functions of JavaScript for displaying the line , and send it to the client.
With this mode , I have a new question.
If the client user want to see another line or just add another line for compare , he should reload the page. right? Then a lot of the common things will transfer through the net again. It will increase the net band consumption. Is there anyway to increase the interactive of the client web interface without increase the band consumption.

hspc
July 9th, 2005, 05:55 AM
you can use the technique used by some web chat applications
they post and recieve data in a hidden IFrame element..
So you don't need to reload the whole page
But I think this will be hard to implement in your case.