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!

Usercontrol XP/NT

Status
Not open for further replies.

NaiDanac

Programmer
Mar 25, 2004
96
US
I'm getting some unusal behaviour now!

I have built a simple usercontrol in visual studio.net. I then embedded the usercontrol on a web page that is part of my intranet. When I navigate to that web page from an XP machine, the usercontrol downloads to my machine correctly. 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 get the usercontrol to download to the NT machine!

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
 
Are you sure that the control isn't being downloaded but there are no sizing constraints so XP is displaying it nicely and NT is mashing it up real small?

I really have no idea why this is happening, that's the first thing that comes to mind.

Yet another unchecked rambling brought to you by:
Oddball
 
Any idea how I can test the sizing contraints?
 
I tried:
Code:
<object id=Mycontrol classid=[URL unfurl="true"]http://myserver/myshare/control.dll#control.control1[/URL] width="100" height="100"></object>
but that didn't work either!
 
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