asp.net design question

hello experts,
i am developing an asp.net application.  i am new to asp.net and need to know how to get started implementing my conceptual design.  first, when the user opens a browser and navigates to the web app he will be presented with a login screen.  upon successfull login the application is going to present the user with a spreadsheet embedded into the page in the browser.  below the spreadsheet will be a button that when clicked will try to locate on the client's box a program called AccuTerm.  once an accuterm session has successfully been initialized the application will pass data from the embedded spreadsheet to the accuterm session using accuterm's api. so basically there will be a server side component that posts the spreadsheet data to the users browser and a client side component that will consume the spreadsheet data.  is it possible to manipulate the clients computer i.e. accuterm through asp.net?
thanks
comppgmrAsked:
Who is Participating?
 
b1xml2Commented:
Tools --> Internet Options --> Security --> Trusted Site
1. Uncheck the "Require server verification..." check box
2. Add your web site to the list of trusted sites. e.g. http://myservername
3. Click OK
4. In security tab, click on Custom Level.
5. Set everything to enable.
6. Click OK

try out the instantiation of the object
0
 
b1xml2Commented:
Unless it is within an intranet, and the client is loading an approved ActiveX Component (meaning it will have installed it, or you have added in the HTML attributes the location for the cab files) and the appropriate "loosening" of security is effected, the plain answer is NO.

Any manipulation within a client's computer cannot and should not be able to take place without the knowledge and consent of the end-user. Otherwise, the browser has a major security breach.
0
 
rohanbairat3Commented:
Yes I agree with b1xml2.

 The client side component cannot run on a browser for your kind of purpose. But what you can do it write a windows app. which will do the things for you. A smart Client or a regular rich client can get the task done. The user has to go thru your S/w instead of Browser.

-Rons
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

 
comppgmrAuthor Commented:
the application is within an intranet.  all users will have the accuterm application. the web browser is really the only option that I have at this point.  can i do something like vbscript on the client side to do what i have proposed?
0
 
rohanbairat3Commented:
You need to write an ActiveX component in that case.... You need to install this component on each machine... I am myself looking for solutions to download ActiveX automatically from broswer. I have an ActiveX component that reads video stream from a WEB CAM ...

So its possible... but i cant help u with the installation part...

-Rons
0
 
raterusCommented:
http://msdn.microsoft.com/msdnmag/issues/02/01/UserCtrl/default.aspx

Here is an article on using client-side .net programs from within a webpage.  I've never done this though, but I feel that is what you should be concentrating on right now, if you must do this in a webpage.
0
 
b1xml2Commented:
If the software mentioned has COM interfaces, which it should, you can instantiate it client-side. What you can do is use VBScript as oppose to Javascript. COM Automation does not always work well with Javascript as it does with VBScript



e.g.
Dim oSoftware
Set oSoftware = CreateObject("Yadda.dada")

You get the appropriate progid. Check with the software vendor
0
 
comppgmrAuthor Commented:
b1xml2,
I tried your example but it did not launch the AccuTerm application.  Below is the code that I put in the html section of the WebForm1.aspx.  What do you think could be the problem?

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="CommissionGrid.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
  <HEAD>
    <title>Commission Plan</title>
    <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
    <meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
    <meta content="VBScript" name="vs_defaultClientScript">
    <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
    <script language="vbscript" id="clientEventHandlersVBS">
sub button1_onclick()
    Dim oApp As AccuTerm
    oApp = CreateObject("AccuTermClasses.AccuTerm")
    MsgBox(oApp.ProductName)
end sub
    </script>
  </HEAD>
  <body MS_POSITIONING="GridLayout">
    <form id="Form1" method="post" runat="server">
      <asp:button id="Button1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 8px" runat="server"
        Text="Button"></asp:button>&nbsp;
    </form>
  </body>
</HTML>
0
 
b1xml2Commented:
permissions, set the permissions appropriately to allow the instantiation of the ActiveXObject
0
 
b1xml2Commented:
Next to launch it
============
<input type="button" onclick="button_onclick()" language="vbscript" value="Button" />
0
 
comppgmrAuthor Commented:
do i do that in ie?
0
 
comppgmrAuthor Commented:
ok, ill try that and report back.  thanks for such a prompt response.
0
 
b1xml2Commented:
change to
Sub Button_OnClick()
...
End Sub
0
 
comppgmrAuthor Commented:
i made the changes you suggested but the status bar in ie says Error in page and nothing happens.  here is the modified code:

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="CommissionGrid.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
  <HEAD>
    <title>Commission Plan</title>
    <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
    <meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
    <meta content="VBScript" name="vs_defaultClientScript">
    <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
    <script language="vbscript" id="clientEventHandlersVBS">
      Sub Button_OnClick()
          Dim oApp As AccuTerm
          oApp = CreateObject("AccuTermClasses.AccuTerm")
          MsgBox(oApp.ProductName)
      End Sub
    </script>
  </HEAD>
  <body MS_POSITIONING="GridLayout">
    <form id="Form1" method="post" runat="server">
      <input type="button" onclick="button_onclick()" language="vbscript" value="Button" />
    </form>
  </body>
</HTML>
0
 
b1xml2Commented:
change your VBScript
=============
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

    <script language="vbscript" id="clientEventHandlersVBS">
      Sub Button_OnClick()
          Dim oApp
          Set oApp = CreateObject("AccuTermClasses.AccuTerm")
          MsgBox(oApp.ProductName)
      End Sub
    </script>

0
 
b1xml2Commented:
ignore the DocType thingy!
0
 
b1xml2Commented:
If you want more robust code

Sub Button_OnClick()
      On Error Resume Next
      Dim oApp
      Set oApp = CreateObject("AccuTermClasses.AccuTerm")
      If oApp Is Nothing Then
            MsgBox("ActiveX Component Could Not Be Created")
      Else
            MsgBox(oApp.ProductName)
      End If
      
End Sub
0
 
comppgmrAuthor Commented:
i am still getting the "Error in page" message.  what is wierd is that i can put just a messagebox command in the sub and it will show the messagebox but as soon as i try to create an object it does nothing.  also am i putting this code in the correct spot?  in vs.net for a webform there are two tabs(Design and HTML).  i am putting this code in the HTML tab code.  I also tried it using excel.

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="CommissionGrid.WebForm1"%>
<HTML>
  <HEAD>
    <title>Commission Plan</title>
    <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
    <meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
    <meta content="VBScript" name="vs_defaultClientScript">
    <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
    <script language="vbscript" id="clientEventHandlersVBS">
      Sub Button_OnClick()
        On Error Resume Next
        Dim oApp
        Set oApp = CreateObject("Excel.Application")
          If oApp Is Nothing Then
            MsgBox("ActiveX Component Could Not Be Created")
          Else
            MsgBox(oApp.Name)
          End If
      End Sub
    </script>
  </HEAD>
  <body MS_POSITIONING="GridLayout">
    <form id="Form1" method="post" runat="server">
      <input type="button" onclick="Button_OnClick()" language="vbscript" value="Button">
    </form>
  </body>
</HTML>
0
 
b1xml2Commented:
have you done the permissions thingy and access the page you just created from a web server??? (local one of course)
0
 
comppgmrAuthor Commented:
b1xml2,
i got it to work.  turns out i had the class name wrong in the createobject method.  it took me a while to figure that out as it was named something different in the object browser than what was actually required.  thanks for your help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.