CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Jul 2005
    Posts
    4

    Arrow 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.

  2. #2
    Join Date
    Apr 2002
    Location
    Egypt
    Posts
    2,210

    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
    Hesham A. Amin
    My blog , Articles


    <a rel=https://twitter.com/HeshamAmin" border="0" /> @HeshamAmin

  3. #3
    Join Date
    Jul 2005
    Posts
    4

    Re: In need of suggestion about a web based application

    Quote 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.
    Quote 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.

  4. #4
    Join Date
    Apr 2002
    Location
    Egypt
    Posts
    2,210

    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..
    Hesham A. Amin
    My blog , Articles


    <a rel=https://twitter.com/HeshamAmin" border="0" /> @HeshamAmin

  5. #5
    Join Date
    Jul 2005
    Posts
    4

    Arrow Re: In need of suggestion about a web based application

    Quote 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?

  6. #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.

  7. #7
    Join Date
    Apr 2002
    Location
    Egypt
    Posts
    2,210

    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.
    Hesham A. Amin
    My blog , Articles


    <a rel=https://twitter.com/HeshamAmin" border="0" /> @HeshamAmin

  8. #8
    Join Date
    Jul 2005
    Posts
    4

    Question 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.

  9. #9
    Join Date
    Apr 2002
    Location
    Egypt
    Posts
    2,210

    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.
    Hesham A. Amin
    My blog , Articles


    <a rel=https://twitter.com/HeshamAmin" border="0" /> @HeshamAmin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured