|
-
July 5th, 2005, 03:57 PM
#1
In need of suggestion about a web based application
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 !
Last edited by blueharbor; July 5th, 2005 at 04:04 PM.
-
July 5th, 2005, 04:28 PM
#2
Re: In need of suggestion about a web based application
Ok..It's late now ..So i'll be in hurry 
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
-
July 7th, 2005, 03:50 AM
#3
Re: In need of suggestion about a web based application
 Originally Posted by hspc
Ok..It's late now ..So i'll be in hurry 
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.
 Originally Posted by hspc
Or another solution is to make server side code generate JavaScript code that makes the drawing on the client using this library
It's a great website , thx a lot. I will try to learn more.
Last edited by blueharbor; July 7th, 2005 at 03:56 AM.
-
July 7th, 2005, 04:21 AM
#4
Re: In need of suggestion about a web based application
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..
-
July 7th, 2005, 08:34 AM
#5
Re: In need of suggestion about a web based application
 Originally Posted by hspc
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?
-
July 7th, 2005, 08:55 AM
#6
Re: In need of suggestion about a web based application
If you want non-IE dependant, look at using a Java applet or perhaps a Flash movie that gets its data from the server.
-
July 8th, 2005, 02:59 AM
#7
Re: In need of suggestion about a web based application
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.
-
July 9th, 2005, 03:21 AM
#8
Re: In need of suggestion about a web based application
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.
Last edited by blueharbor; July 9th, 2005 at 03:24 AM.
-
July 9th, 2005, 05:55 AM
#9
Re: In need of suggestion about a web based application
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|