|
-
Jun 8th, 2002, 12:18 PM
#1
Thread Starter
Member
.NET Framework components in browser!?
Are components created as Windows Control Library in .NET (.NET Framework components) runnable from a browser (Internet Explorer 6 or Netscape etc) just like old ActiveX components are?
-
Jun 8th, 2002, 01:16 PM
#2
-
Jun 8th, 2002, 06:46 PM
#3
Thread Starter
Member
Thanks for your reply and answer, but just so I've got this right, there's no way to run your DLL localy without a web server that you know of?! With other word you must have a web server installed?
-
Jun 8th, 2002, 10:40 PM
#4
Addicted Member
I don't know if this is what you need, but look at this example. I will try to answer your questions, but I've never actually written a .NET program in IE.
-
Jun 9th, 2002, 11:13 AM
#5
yuou can run it locally as long as the html file has the dll's location on the local drive..basically just change the url to file://c:\whatever.dll
and that should work
-
Jun 9th, 2002, 12:30 PM
#6
Thread Starter
Member
Hmm mabey I'm doing something wrong here, but it doesn't seem to work for me.
Here's my html code:
<html>
<body>
<object id=t
classid="file://c:\test78\WindowsControlLibrary3.dll"
height=300 width=300 VIEWASTEXT>
</object>
</body>
</html>
This doesn't seem to work though..
This very simple DLL (used only for this test) is coded in C# and is using no more than a Button and another .NET Framework component (dll) coded in VB.NET.
-
Jun 9th, 2002, 12:49 PM
#7
Thread Starter
Member
One more thing, I tried the c# example you posted earlier and it seemed to work when I uploaded it to www.brinkster.com. Later I tried to paste the c# code (cbutton.cs) in my own project to build my own dll. This also worked when uploading it to the server (didn't work locally). But when I used another Windows Control Library component created in VB.NET and drawed it to the designer and compiled, it wouldn't run on the homepage! How come? Do I have to include the other dll in the html file aswell or something? Mabey I need to create a setup project of some sort?
Last edited by ikk; Jun 9th, 2002 at 12:54 PM.
-
Jun 10th, 2002, 11:10 AM
#8
ok here is a question...why?
Why run your component in a browser if it is going to be local application..You are really wasting your time. If you are going to make a local application, you need to write a standard windows forms application.
It just doesnt make sense to be limiting yourself to scripting to control this component if it is running locally..
-
Jun 10th, 2002, 11:38 AM
#9
Thread Starter
Member
Well it's not supposed to run locally when the project is done. I'd like to run it locally just for test purposes, but you can just aswell test it in a application so that's not such a big deal. But since I didn't get it to work on the server side either when creating a Windows Control Library in C# which uses a DLL (also a windows control library) coded in VB.NET. Mabey you can't run VB.NET Dll's from a browser!? I've never got a single vb.net windows control library to run from a browser neither. I really need a solution to this otherwise I must replan my whole work. It's a pretty big project and it needs to run from a browser and all parts should be of component type or similar. Atleast the end dll/program MUST run from a webbrowser. So if this doesn't work I may be forced to switch back to old VB6, and that's something I really would like to avoid.
-
Jun 10th, 2002, 11:48 AM
#10
well then I just don't know..Im out of ideas
-
Jun 10th, 2002, 11:51 AM
#11
Thread Starter
Member
ok Thank you very much for trying to help me though!! If you stumple upon some examples or something of this character PLEASE try to remember me and post it here The example you posted earlier, was that c# scripting? Are there no such thing as VB.NET scripting?
-
Jun 10th, 2002, 11:57 AM
#12
well the code was c#..nothing scripting..what i meant by scritping was if you wanted to control the component in a browser outside the component, you would have been limited to vbscript or javascript.. Which was why i was wondering why I was wondering if you wre always going to run that component locally in which case windows form desktop app would have been better, but since you said it is a internet app, never mind what i said before.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|