Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Usercontrols without the .NET framework

Status
Not open for further replies.

NaiDanac

Programmer
Mar 25, 2004
96
US
I built a user control using VB.NET and have successufly embeded it on web page (Intranet).

When I visit that web page using a machine that does not have the .NET framework installed, it doesn't work. Can .NET usercontrols run without the .NET framework being installed?

Thank you
 
Thanks Rick. That explains why it would work on my XP machine (which has the .NET platform), but not on the NT machine (without the .NET platform). Do you think it would be better to then develop in VB 6 instead (if I don't want to force users to install the framework?)

Thanks for your help
 
I think the .Net framework will become more and more standard as time progresses. If this is an internal app (you mentioned an intranet) I would recommend talking to your network admins about getting the framework distributed.

-Rick

----------------------

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
Thanks again Rick.

I'm getting some unusal behaviour now!

On the NT machine, I've installed the .NET framework, and tried to test my embedded usercontrol. I was surprised that I still can't see it when it comes down!

I included it on the html page using:
Code:
<object id=Mycontrol classid=[URL unfurl="true"]http://myserver/myshare/control.dll#control.control1></object>[/URL]

I've obviously setup the virtual diretory to point to myshare. It's working correctly (as I was able to prove in XP)


By the way, the control only has one button ("Hello World!"), and when it is clicked, it does a msgbox("YES"). The above page works in XP (i.e. I see the control), but when I try to view it from I.E. 6.0 on the NT machine, all I see is a small box with a dot in the middle. It seems as if the control is not being downloaded. I don't believe it is a trust issue (in the I.E. settings, since the control is on the intranet, which allows activex code to come down!)

Does this have something to do with the way I'm programming the usercontrol (it's part of a web control library). The usercontrl is very very simple, with one button, and a msgbox as I stated earlier. It works in XP, but not on NT!

Should I be using a different project? Are there article you think are helpful in creating a usercontrol that will be embedded on web pages.

I'm trying to google on this, but have not been very successful.

Thanks again for all your help
 
OK, problem solved.

It turns out that my Intranet Security Zone settings were set to disable signed/un-signed .NET contorls from being downloaded/executed.

Once I enabled them, the control works beautifuly.

Thanks all for your help.

NaiDanac
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top