VB Scripting CreateObject Client Side Object

G

Guest

This may be a dumb question, but I'm not finding anything specifically what
I'm looking for. Still kind of new to .NET as well.

What I'm trying to do that I know I could do in VB6.0/ASP is to create a
client side object set some properties and have it run some code. I know
that in VB6/asp it was fairly straight forward by creating an ActiveX
control, register it and then VBScripting the CreateObject("xxx.xxxx")
command and it worked from the client side. I'm not finding the "similar"
functionality. I'm sure I'm probably just missing it, but any help would be
greately appreciated.
 
K

Kevin Spencer

An HTML document is an HTML document, regardless of what server-side
technology had anything to do with creating it. An ActiveX Control in an
ASPX page is therefore the same as an ActiveX Control in an ASP page, which
is the same as an ActiveX Control in an HTML page.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 
G

Guest

Yeah, but I don't have the ActiveX control. I'm in a shop completly .NET and
I need to create the client side "control".

Stepping back, basically what I'm trying to do is to launch an application
from a browser with some command line parameters. I need to be able to
provide my customers with some script(java/vbscript) to be able to set some
properties and/or pass some command line parameters to an application on the
clients machine. My initial thought was to be able to create and object that
would set some properites and launch via shell my application with the
properties. Maybe I'm just looking at it from the wrong perspective. But
haven't found anything different than what I descrbed before. Hope this
makes sense.
 
G

Guest

Well then, your best bet is do develop a custom winform user control and
embed it within your html. This is similar to active x but you will have to
write all of your client code (including the database stuff) within the
custom winform control. Beware of security issues
 
G

Guest

Yes but wouldn't that run at the server? I already have a "Thick" or "Smart"
client application that I'm trying to run from a browser button. The custom
control would run everything at the server wouldn't it?
 
K

Kevin Spencer

Yes but wouldn't that run at the server? I already have a "Thick" or
"Smart"
client application that I'm trying to run from a browser button. The
custom
control would run everything at the server wouldn't it?

Not necessarily. We have to assume that there was some reason for using an
ActiveX Control on the client originally. Usually, this is because of some
requirement that necessitates execution on the client instead of the server.

I think you may be a bit mixed up about what ASP.net can do. It can do
precisely what ASP can do, only in a different way. All a Server Control
does is process on the back end, and render HTML on the front end.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 
G

Guest

You're right I'm confused. Maybe just with some .NET stuff. OK, so since I
don't have the ActiveX control built but I need something to run something on
the client and be launched by a button on the Web Browser what do I use? I
guess maybe it's just concept I'm not getting here?

What I need to do is launch my application which resides on the client, from
a web browser(HTML page) and pass it some variable information. Can I do
that?

Shepard
 
K

Kevin Spencer

Well, Shepard, let's have a look at your requirements:
I need something to run something on
the client and be launched by a button on the Web Browser

Based on those requirements, I could build almost anything. Can you be more
specific about your business requirements? What exactly is this thing
supposed to DO?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 
G

Guest

OK, I have a client application that pulls credit reports. It's distributed
throughout the US and is very basic data entry but resides on the clients
desktops. I also have some business partners that have web sites that want
to use our application to pull their Credit Reports for their consumers.
They would like lauch my application and have it filled with the data from
their web(app) site as to order the reports without any intervention by the
end user. So in essence the end users who has already put in the data for
the customer would push a button on the browser window and that would launch
my application on the client machine and would populate the required data
from the browser into my application. I didn't see a direct method to be
able to do that so I began to think that I could use something like an
ActiveX object that would set properties and launch (w/ command line
parameters) my app. However being that I can't seem to figure out how to
equal this functionality in .NET ie. (ActiveX CreateObject("xxx.xxx") )

I'm am at a loss on how to approach this. I am open to any alternative
route, but the main thing is that the credit reporting app resides on the
client machine and needs to be called from a browser/website.

Hope this makes sense.

Shepard
 
K

Kevin Spencer

Hi Shepard,

Yes, that does sound like a job for an ActiveX control. Once you have
written one, it's not difficult to add it to any web page, regardless of
whether it is HTML, ASP, or what-have-you.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 
G

Guest

OK, So here's the 1Mil question. Is it possible to write one in .NET or do I
have to go back to VB6? I can't seen to find anywhere in .NET where I can do
it but as I said earlier I'm still new to .NET.

Thanks for your help
Shepard
 
K

Kevin Spencer

Hi Shepard,

In .Net, you would create an embedded Windows Form, but it would require the
..Net platform on the client. If you're more familiar with VB6, by all means,
use that to create the ActiveX control.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 
B

bruce barker

also if written in .net, it would not be able to start the client app,
unless the user changed the .net security setting. a .net hosted control (or
smart app) run in a sandbox simular to java applets.

also for this active/x control to be safe, you must check that the page its
running on is hosted from your site, and that it only does what it is
supposed to.

if you can get your client s to trust your site, you can just use client
script to start the app using the wsh object.


-- bruce (sqlwork.com)


| Hi Shepard,
|
| In .Net, you would create an embedded Windows Form, but it would require
the
| .Net platform on the client. If you're more familiar with VB6, by all
means,
| use that to create the ActiveX control.
|
| --
| HTH,
|
| Kevin Spencer
| Microsoft MVP
| .Net Developer
| Neither a follower nor a lender be.
|
| | > OK, So here's the 1Mil question. Is it possible to write one in .NET or
| > do I
| > have to go back to VB6? I can't seen to find anywhere in .NET where I
can
| > do
| > it but as I said earlier I'm still new to .NET.
| >
| > Thanks for your help
| > Shepard
| >
| > "Kevin Spencer" wrote:
| >
| >> Hi Shepard,
| >>
| >> Yes, that does sound like a job for an ActiveX control. Once you have
| >> written one, it's not difficult to add it to any web page, regardless
of
| >> whether it is HTML, ASP, or what-have-you.
| >>
| >> --
| >> HTH,
| >>
| >> Kevin Spencer
| >> Microsoft MVP
| >> ..Net Developer
| >> Neither a follower nor a lender be.
| >>
message
| >> | >> > OK, I have a client application that pulls credit reports. It's
| >> > distributed
| >> > throughout the US and is very basic data entry but resides on the
| >> > clients
| >> > desktops. I also have some business partners that have web sites
that
| >> > want
| >> > to use our application to pull their Credit Reports for their
| >> > consumers.
| >> > They would like lauch my application and have it filled with the data
| >> > from
| >> > their web(app) site as to order the reports without any intervention
by
| >> > the
| >> > end user. So in essence the end users who has already put in the
data
| >> > for
| >> > the customer would push a button on the browser window and that would
| >> > launch
| >> > my application on the client machine and would populate the required
| >> > data
| >> > from the browser into my application. I didn't see a direct method
to
| >> > be
| >> > able to do that so I began to think that I could use something like
an
| >> > ActiveX object that would set properties and launch (w/ command line
| >> > parameters) my app. However being that I can't seem to figure out
how
| >> > to
| >> > equal this functionality in .NET ie. (ActiveX
| >> > CreateObject("xxx.xxx") )
| >> >
| >> > I'm am at a loss on how to approach this. I am open to any
alternative
| >> > route, but the main thing is that the credit reporting app resides on
| >> > the
| >> > client machine and needs to be called from a browser/website.
| >> >
| >> > Hope this makes sense.
| >> >
| >> > Shepard
| >> >
| >> >
| >> > "Kevin Spencer" wrote:
| >> >
| >> >> Well, Shepard, let's have a look at your requirements:
| >> >>
| >> >> > I need something to run something on
| >> >> > the client and be launched by a button on the Web Browser
| >> >>
| >> >> Based on those requirements, I could build almost anything. Can you
be
| >> >> more
| >> >> specific about your business requirements? What exactly is this
thing
| >> >> supposed to DO?
| >> >>
| >> >> --
| >> >> HTH,
| >> >>
| >> >> Kevin Spencer
| >> >> Microsoft MVP
| >> >> ..Net Developer
| >> >> Neither a follower nor a lender be.
| >> >>
| >> >> message
| >> >> | >> >> > You're right I'm confused. Maybe just with some .NET stuff. OK,
so
| >> >> > since
| >> >> > I
| >> >> > don't have the ActiveX control built but I need something to run
| >> >> > something
| >> >> > on
| >> >> > the client and be launched by a button on the Web Browser what do
I
| >> >> > use?
| >> >> > I
| >> >> > guess maybe it's just concept I'm not getting here?
| >> >> >
| >> >> > What I need to do is launch my application which resides on the
| >> >> > client,
| >> >> > from
| >> >> > a web browser(HTML page) and pass it some variable information.
Can
| >> >> > I
| >> >> > do
| >> >> > that?
| >> >> >
| >> >> > Shepard
| >> >> >
| >> >> > "Kevin Spencer" wrote:
| >> >> >
| >> >> >> > Yes but wouldn't that run at the server? I already have a
| >> >> >> > "Thick"
| >> >> >> > or
| >> >> >> > "Smart"
| >> >> >> > client application that I'm trying to run from a browser
button.
| >> >> >> > The
| >> >> >> > custom
| >> >> >> > control would run everything at the server wouldn't it?
| >> >> >>
| >> >> >> Not necessarily. We have to assume that there was some reason for
| >> >> >> using
| >> >> >> an
| >> >> >> ActiveX Control on the client originally. Usually, this is
because
| >> >> >> of
| >> >> >> some
| >> >> >> requirement that necessitates execution on the client instead of
| >> >> >> the
| >> >> >> server.
| >> >> >>
| >> >> >> I think you may be a bit mixed up about what ASP.net can do. It
can
| >> >> >> do
| >> >> >> precisely what ASP can do, only in a different way. All a Server
| >> >> >> Control
| >> >> >> does is process on the back end, and render HTML on the front
end.
| >> >> >>
| >> >> >> --
| >> >> >> HTH,
| >> >> >>
| >> >> >> Kevin Spencer
| >> >> >> Microsoft MVP
| >> >> >> ..Net Developer
| >> >> >> Neither a follower nor a lender be.
| >> >> >>
| >> >> >> message
| >> >> >> | >> >> >> > Yes but wouldn't that run at the server? I already have a
| >> >> >> > "Thick"
| >> >> >> > or
| >> >> >> > "Smart"
| >> >> >> > client application that I'm trying to run from a browser
button.
| >> >> >> > The
| >> >> >> > custom
| >> >> >> > control would run everything at the server wouldn't it?
| >> >> >> >
| >> >> >> >
| >> >> >> > "ShepardBerry" wrote:
| >> >> >> >
| >> >> >> >> This may be a dumb question, but I'm not finding anything
| >> >> >> >> specifically
| >> >> >> >> what
| >> >> >> >> I'm looking for. Still kind of new to .NET as well.
| >> >> >> >>
| >> >> >> >> What I'm trying to do that I know I could do in VB6.0/ASP is
to
| >> >> >> >> create
| >> >> >> >> a
| >> >> >> >> client side object set some properties and have it run some
| >> >> >> >> code.
| >> >> >> >> I
| >> >> >> >> know
| >> >> >> >> that in VB6/asp it was fairly straight forward by creating an
| >> >> >> >> ActiveX
| >> >> >> >> control, register it and then VBScripting the
| >> >> >> >> CreateObject("xxx.xxxx")
| >> >> >> >> command and it worked from the client side. I'm not finding
the
| >> >> >> >> "similar"
| >> >> >> >> functionality. I'm sure I'm probably just missing it, but any
| >> >> >> >> help
| >> >> >> >> would
| >> >> >> >> be
| >> >> >> >> greately appreciated.
| >> >> >> >>
| >> >> >>
| >> >> >>
| >> >> >>
| >> >>
| >> >>
| >> >>
| >>
| >>
| >>
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top