Combining .NET with Classic ASP
xcgeek | Posted 1:22pm 27. May 2005 Server Time |
I have a rather large classic asp app that I can't really upgrade yet (not enough time and knowledge) I want to replace my java applet charts with a WebChart control for .net which produces images (saves the hastle of users needing the java runtime, etc). I can easily write an aspx file to get the chart to do what I want - the question is what is the best way to get that chart into the classic app. I thought about calling the aspx file with the Msxml2.ServerXMLHTTP object and screen scaping the image tag out, but this seems a bit of a hack. Can anyone think of a more elegant way of calling the .net code and returning the image (can be streamed if nessesary), or tag.
Thanks |
Informant | Posted 4:44pm 27. May 2005 Server Time |
you could either just redirect the user to that page or you could also load it through a Iframe.
xcgeek | Posted 5:50pm 27. May 2005 Server Time |
The chart image has to be loaded in the main classic page so an iframe could work - I suppose this would use less resources than a screen scrape (I would have to do more work obscuring the querysting url so that people couldn't dig around and look at other users charts.) With the screen scrape method, the aspx url and querystring would be completely hidden so that's not as much an issue.
cameliano | Posted 0:04am 29. May 2005 Server Time |
aaa
Informant | Posted 7:24pm 29. May 2005 Server Time |
alright xc here is the ultimate answer:
http://www.codeproject.com/vb/net/MusaExposingCOM.asp
xcgeek | Posted 8:28am 30. May 2005 Server Time |
Wow, that is almost embarrasingly easy. What amazes me is that MS doesn't promote this functionality more. All this time I thought the only way of using .net was to upgrade everything. I also have a huge vb app that I can't really upgrade at this time, but if I want to add .net functionality, all I have to do it use this method. And the fact it can be accessed in asp as well, is perfect.
Thanks Informant
Reply to Post Combining .NET with Classic ASP
|
|
|