Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Building Controls / July 2003

Tip: Looking for answers? Try searching our database.

Calling .NET Assembly from JavaScript...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
arc - 22 Jul 2003 19:14 GMT
I have a requirement to call .NET assembly (Custom component) from thin
client Page (ASPX).
This Assembly talks only TCP/IP with an external server and hence cannot
interact over HTTP.
That's the reason I am trying to make a call from the Client Script so that
the information could be captured from screen, sent to the Assembly
and is fired by the Client Script itself because the Assembly as such is
dumb

Is there a way to perform this? Or should it be done only by a Thick Windows
Client?
Here is a sample code within which I would like to make a call to this
Assembly.

<%@ Register TagPrefix="UITemplate" TagName="TTop" Src="include/top.ascx" %>
<%@ Page language="c#" Codebehind="UpdateProfile.aspx.cs"
AutoEventWireup="false" Inherits="XXX.UpdateProfile" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML dir="ltr">
<HEAD>
 <title>XXX</title>
 <meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
 <meta content="C#" name="CODE_LANGUAGE">
 <meta content="JavaScript" name="vs_defaultClientScript">
 <meta content="http://schemas.microsoft.com/intellisense/ie5"
name="vs_targetSchema">
 <script language="javascript">
  function validateProfile()
   {
          //////Call to Assembly - ServerConnector
   }
</HEAD>
</HTML>

Regards,
 Arc
Steve B. [Labo.Net] - 24 Jul 2003 15:44 GMT
The only way I see is to build a COM component with Dotnet, and embed it
into the page.
Note that security zones may need to be changed, or assembly strongly named
and signed

Steve

> I have a requirement to call .NET assembly (Custom component) from thin
> client Page (ASPX).
[quoted text clipped - 32 lines]
> Regards,
>   Arc

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.