Re: Calling dot.net code/assembly from a webpage ?




Skybuck Flying wrote:
Is it possible to call some dot.net code... for example asp.net assemblies
from a html page ?
1. Use a script. Like javascript or vbscript or something like that.
Server side? You would have to use asp (i.e. Serevr side Javascript)
and access the .NET code as a COM object, but then you might as well
just write an ASPX page.
Client side? You could use AJAX technologies to call a server side ASPX
script.

Is it possible to use javascript to call a dot.net assembly or asp.net
application ?
See above

Is it necessary to make an asp.net form application or can it be formless ?
It can be formless. It is fairly simple to convert an HTML page to a
ASPX page. You can return anything you want. I have ASPX that returns
images and RSS Feeds (XML).

Is it possible to first call an asp.net application to check if the webusers
should be allowed access to the html page ?
Standard HTML pages don't use the ASPX security model. To do this you
need to modify the IIS configuration to forward HTML pages to the .NET
runtimes (just like ASPX pages) instead of handling them itself.

So then all links would have to be modified ?
Not necessarily.

--
Marc

.



Relevant Pages

  • Re: Attempt to de-mystify AJAX
    ... Access to a web server (I think that even most M$ O/S's have one ... A javaScript enabled web browser. ... Set the onReadyStateChange handler to our processChange() function ... > anything that produces output through the web server - a static HTML ...
    (comp.databases.pick)
  • Re: More sale items - better format
    ... Hi, first of all, in web design the designer doesn't get to specify ... I was reading through my HTML ... books but that looks like a dead end neither VBScript or JavaScript ... advertising server. ...
    (rec.models.scale)
  • Re: How to automatically send an email in html
    ... >code in the html will automatically send an email to inform me. ... >user's computer has sendmail, ... Javascript off in their browser settings. ... from your web server. ...
    (comp.security.misc)
  • Re: How do web templates separate content and logic?
    ... and the server was written in lisp. ... for "cross between html, javascript, and python.") The big idea was: ... Javascript code to use the XML to do something interesting ...
    (comp.lang.python)
  • Re: LWP questions
    ... > might happen in a real browser that would create user visible content ... When LWP requests a page from a server, it is no different than any ... If the HTML returned contains JavaScript, it is up to you to provide ... LWP is good at getting the raw HTML from the server. ...
    (comp.lang.perl)