473,396 Members | 1,599 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Embedding windows user control in IE

Hi, I created a simple user control. The object tag in the .aspx is:

<OBJECT id="test" widht="100" height="100"
classid="bin/MyDLLName.dll#MyDLLName.MyControlName" VIEWASTEXT>
</OBJECT>

However, the object doesn't show up. I get a '403' in the IIS log. My
intranet security is set to full trust (i am running this locally).

Any ideas about how this is supposed to work? I'm having trouble finding
documentation for any of this.
Nov 18 '05 #1
6 1590
Hi Marina,

Not my forte at all, but I recall a lecture at MS which mentioned that the
page must be trusted, not the site and that you need to restart your browser
once you add the new trust to it. Might be going a bit daft there
though..........

That aside, your syntax might be a bit off:

<OBJECT id="test" widht="100" height="100"
classid="HTTP:MyDLLName.dll#MyDLLName.MyControlNam e" VIEWASTEXT>
</OBJECT>

Notice the HTTP in front of the DLL, also you cant reference the bin
directory directly and the virtual directory you deploy the DLL to must only
have script permissions against it.

Hope that helps.......(of course I could be way off on every corner here as
I never do these)

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
----------------------------------------------------------------------------
------------------------------------
<blatant plug>
Professional .NET for Java Developers with C#- ISBN: 1-861007-91-4
Professional Windows Forms - ISBN: 1861005547
Professional JSP 2nd Edition - ISBN: 1861004958
Professional JSP - ISBN:
1861003625
Beginning JSP Web Development - ISBN: 1861002092
</blatant plug>
----------------------------------------------------------------------------
------------------------------------

"Marina" <so*****@nospam.com> wrote in message
news:OQ**************@TK2MSFTNGP10.phx.gbl...
Hi, I created a simple user control. The object tag in the .aspx is:

<OBJECT id="test" widht="100" height="100"
classid="bin/MyDLLName.dll#MyDLLName.MyControlName" VIEWASTEXT>
</OBJECT>

However, the object doesn't show up. I get a '403' in the IIS log. My
intranet security is set to full trust (i am running this locally).

Any ideas about how this is supposed to work? I'm having trouble finding
documentation for any of this.

Nov 18 '05 #2
I believe CLASSID param takes a hexidecimal 16 digit key, with a param name
which points to the path.
<object classid ="clsid:longstringhere">
<param name="path here">
</object>

if you google for object tag you will find more info i am sure

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Marina" <so*****@nospam.com> wrote in message
news:OQ**************@TK2MSFTNGP10.phx.gbl...
Hi, I created a simple user control. The object tag in the .aspx is:

<OBJECT id="test" widht="100" height="100"
classid="bin/MyDLLName.dll#MyDLLName.MyControlName" VIEWASTEXT>
</OBJECT>

However, the object doesn't show up. I get a '403' in the IIS log. My
intranet security is set to full trust (i am running this locally).

Any ideas about how this is supposed to work? I'm having trouble finding
documentation for any of this.

Nov 18 '05 #3
John

What I posted wasn't actually what I had, it was finding the file, just not
giving access to it.

You did nail it right on the head though, when you said that you can't put
it in the bin directory. All I had to do was move it out of there, adjust
the classid appropritely, and it worked! (or at least it showed up, good
enough for me!).

Thanks so much, I just wish there was more documentation available. It is
either non existant or extremely difficult to find, I searched for hours and
could not find an example or a discussion of this.

Thanks!

"John Timney (Microsoft MVP)" <ti*****@despammed.com> wrote in message
news:uB**************@TK2MSFTNGP10.phx.gbl...
Hi Marina,

Not my forte at all, but I recall a lecture at MS which mentioned that the
page must be trusted, not the site and that you need to restart your browser once you add the new trust to it. Might be going a bit daft there
though..........

That aside, your syntax might be a bit off:

<OBJECT id="test" widht="100" height="100"
classid="HTTP:MyDLLName.dll#MyDLLName.MyControlNam e" VIEWASTEXT>
</OBJECT>

Notice the HTTP in front of the DLL, also you cant reference the bin
directory directly and the virtual directory you deploy the DLL to must only have script permissions against it.

Hope that helps.......(of course I could be way off on every corner here as I never do these)

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
-------------------------------------------------------------------------- -- ------------------------------------
<blatant plug>
Professional .NET for Java Developers with C#- ISBN: 1-861007-91-4
Professional Windows Forms - ISBN: 1861005547
Professional JSP 2nd Edition - ISBN: 1861004958 Professional JSP - ISBN:
1861003625
Beginning JSP Web Development - ISBN: 1861002092
</blatant plug>
-------------------------------------------------------------------------- -- ------------------------------------

"Marina" <so*****@nospam.com> wrote in message
news:OQ**************@TK2MSFTNGP10.phx.gbl...
Hi, I created a simple user control. The object tag in the .aspx is:

<OBJECT id="test" widht="100" height="100"
classid="bin/MyDLLName.dll#MyDLLName.MyControlName" VIEWASTEXT>
</OBJECT>

However, the object doesn't show up. I get a '403' in the IIS log. My
intranet security is set to full trust (i am running this locally).

Any ideas about how this is supposed to work? I'm having trouble finding
documentation for any of this.


Nov 18 '05 #4
I believe that applies to ActiveX control. For .NET controls, it should be
[DLLName]#[Fully qualified class name]

"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
news:u9**************@TK2MSFTNGP10.phx.gbl...
I believe CLASSID param takes a hexidecimal 16 digit key, with a param name which points to the path.
<object classid ="clsid:longstringhere">
<param name="path here">
</object>

if you google for object tag you will find more info i am sure

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Marina" <so*****@nospam.com> wrote in message
news:OQ**************@TK2MSFTNGP10.phx.gbl...
Hi, I created a simple user control. The object tag in the .aspx is:

<OBJECT id="test" widht="100" height="100"
classid="bin/MyDLLName.dll#MyDLLName.MyControlName" VIEWASTEXT>
</OBJECT>

However, the object doesn't show up. I get a '403' in the IIS log. My
intranet security is set to full trust (i am running this locally).

Any ideas about how this is supposed to work? I'm having trouble finding
documentation for any of this.


Nov 18 '05 #5
you need to change your iis security (mappings) to allow downloads of a
dll. you should make a seperate download directory, rather than use your
apps bin.
-- bruce (sqlwork.com)


"Marina" <so*****@nospam.com> wrote in message
news:OQ**************@TK2MSFTNGP10.phx.gbl...
Hi, I created a simple user control. The object tag in the .aspx is:

<OBJECT id="test" widht="100" height="100"
classid="bin/MyDLLName.dll#MyDLLName.MyControlName" VIEWASTEXT>
</OBJECT>

However, the object doesn't show up. I get a '403' in the IIS log. My
intranet security is set to full trust (i am running this locally).

Any ideas about how this is supposed to work? I'm having trouble finding
documentation for any of this.

Nov 18 '05 #6
Thanks for the correction. Didn't know which one she meant.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Marina" <mz*******@hotmail.com> wrote in message
news:uN****************@TK2MSFTNGP12.phx.gbl...
I believe that applies to ActiveX control. For .NET controls, it should be
[DLLName]#[Fully qualified class name]

"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
news:u9**************@TK2MSFTNGP10.phx.gbl...
I believe CLASSID param takes a hexidecimal 16 digit key, with a param

name
which points to the path.
<object classid ="clsid:longstringhere">
<param name="path here">
</object>

if you google for object tag you will find more info i am sure

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Marina" <so*****@nospam.com> wrote in message
news:OQ**************@TK2MSFTNGP10.phx.gbl...
Hi, I created a simple user control. The object tag in the .aspx is:

<OBJECT id="test" widht="100" height="100"
classid="bin/MyDLLName.dll#MyDLLName.MyControlName" VIEWASTEXT>
</OBJECT>

However, the object doesn't show up. I get a '403' in the IIS log. My intranet security is set to full trust (i am running this locally).

Any ideas about how this is supposed to work? I'm having trouble finding documentation for any of this.



Nov 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Roose | last post by:
With some googling I have found these resources: http://docs.python.org/ext/win-dlls.html http://www.python.org/doc/faq/windows.html I have a large Win32/MFC/C/C++ application that has an...
5
by: Victor Fees | last post by:
I have an XML string in a database that I would like to display using XSLT. All of that works like a champ, but I can't figure out how to embed the XML inside an ASPX page. For example, I have...
2
by: Lyn | last post by:
I am trying to embed a picture into a Bound Object Frame (Me!Photograph) with the following code which is based on MS article http://support.microsoft.com/?id=158941: strPathname =...
2
by: Aaron | last post by:
I've been making some Windows Forms UserControls and embedding them in HTML pages. This is working great...except if I try and use a 3rd party control on my UserControl. Has anybody played with...
2
by: Martin Eyles | last post by:
I would like to embed a windows controls or smart client controls in a web page, in a similar way to which a java applet or a flash applet or an active x control is embedded. I read something...
2
by: Dursun | last post by:
Is it possible to embed Visio into a Windows Form in VB.NET? So that we can have the end user draw free form graphics and save them within a single Windows application that we developed. Thank you...
0
by: Budhi Saputra Prasetya | last post by:
Hi, I still have the same problem with embedding Windows Control. I'll just requote what I posted last time: I managed to create a Windows Form Control and put it on my ASP .NET page. I...
3
by: Ollie Riches | last post by:
How do I embed a *.flv file (Flash Video) into an aspx page similar to embedding windows media player active x control? Cheers Ollie Riches
5
by: Anil Gupte | last post by:
How do I embed Windows Media Player so I can control it with VB code. I am familiar with embedding in a web page like this: *************** <embed src="Test.asx" width=320 height=300...
0
Pittaman
by: Pittaman | last post by:
Hello, We're developing an application (.NET 2.0) that let's users drop documents in the application and allows users to show some document types "embedded". For example, a textfile would appear...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.