Calling dot.net code/assembly from a webpage ?



Hello,

Suppose I have an html website.

Is it possible to call some dot.net code... for example asp.net assemblies
from a html page ?

I have seen some tricks:

1. Use a script. Like javascript or vbscript or something like that.

2. Link to an image which is really an image generator, like a hit counter.

Some further questions:

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

Is it necessary to make an asp.net form application or can it be formless ?

Finally the most difficult question:

Is it possible to first call an asp.net application to check if the webusers
should be allowed access to the html page ?

(This would probably need a html replacement file with a script calling the
asp.net thingy which when access is allowed would redirect the user to the
real html page... but the real html page location would need protected
access (?) so maybe the asp.net thingy would need to load the html page and
display it or something ? <- that could be a solution. )

So then all links would have to be modified ?

For example:

www.mywebsite.com/CheckForAccessAsp.Net.Thingy?Load=MyWebPage.html
www.mywebsite.com/CheckForAccessAsp.Net.Thingy?Load=MyOtherPage.html

Other ideas/solutions are welcome, I am looking for an add on solution to my
current html-only website. Re-making my html website in an asp.net
application seems a bit overkill. I just want to extend the html website
with some asp.net functionality, etc.

Can you give some examples ?

Especially some examples of javascript or vbscript calling the asp.net
thingy would be great, since I am mostly new to that.

Bye,
Skybuck.


.



Relevant Pages

  • Re: calling .dll from HTML
    ... I understand you can take an HTML page and change ... Sub Page_Load ... > not a programming language, IIS will serve just these files). ... >> could easily port his HTML website into ASP.Net in about 5 minutes. ...
    (microsoft.public.dotnet.general)
  • .net assemblies in cab file
    ... I am deploying a .net assemblies with it's dependent assemblies and a ... .inf (all in a cab file) on a TOMCAT Server. ... Here is the HTML Page excerpt: ...
    (microsoft.public.dotnet.general)
  • Re: Graphics.GetHdc causes InvalidOperationException
    ... assemblies with MS strongkey is not enough. ... assemblies which come from MS aren't signed with their key? ... Here is the code of my test control: ... Then it is put inside a user control, which is then embedded in an HTML: ...
    (microsoft.public.dotnet.security)
  • Re: processing a form
    ... the onSubmit="" thingy didn't work with me. ... does it need a specific html or js version to work? ... Prev by Date: ...
    (comp.lang.javascript)
  • Re: WebBrowser control: execute file downloading ?
    ... and I think there is some My thingy as well:) ... Tom Shelton ... What I want is executing the code within the html page, ...
    (microsoft.public.dotnet.languages.vb)