Winform in Web Page

S

Scott Meddows

I'm trying to embed a winform control into an HTML page and I don't seem to be getting anywhere..

I've put the following object tag in the body of the HTML document

<object id="UpdateControl11"
classid="http://lafdev2/reportControl/TSG.RiskManagement.RiskManagementControl.dll#TSG.RiskManagement.RMMain" width=100%
height=100%>

When I open the web page there is just a box there with no control in it. I try to attach to the IExplorer process to debug and the
constructor is never called yet the assembly is in my download cache. Is there anything else that I need to do to create this
control? Also, can I use javascript and VB script to set properties on this object once it is in the web page?

Any help is appreciated.

Thanks
Scott
 
S

Scott Meddows

Yes, it works fine in a winform. The assembly doesn't reference any other assemblies (Except those in the framework) and it is
signed. I also have an entry for it to run with full trust (Corresponding to the key the assembly is signed with).

Yes, that link just brings up Whidbey stuff :(


Alvin Bruney said:
Is your windows control functioning correctly in a windows form? I used to
have a link, but it seems this link no longer works, you may trying
searching the site to see if you have more luck than me
http://www.gotdotnet.com/team/windowsforms/iesourcing.aspx

Also, can I use javascript and VB script to set properties on this object
once it is in the web page?
Yes.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
Scott Meddows said:
I'm trying to embed a winform control into an HTML page and I don't seem
to be getting anywhere..

I've put the following object tag in the body of the HTML document

<object id="UpdateControl11"
classid="http://lafdev2/reportControl/TSG.RiskManagement.RiskManagementControl.dll#TSG.RiskManagement.RMMain"
width=100%
height=100%>

When I open the web page there is just a box there with no control in it.
I try to attach to the IExplorer process to debug and the
constructor is never called yet the assembly is in my download cache. Is
there anything else that I need to do to create this
control? Also, can I use javascript and VB script to set properties on
this object once it is in the web page?

Any help is appreciated.

Thanks
Scott
 
S

Scott Meddows

Oh yeah, the assembly also get loaded into the download cache, so I know it's at least getting the assembly part...

Alvin Bruney said:
Is your windows control functioning correctly in a windows form? I used to
have a link, but it seems this link no longer works, you may trying
searching the site to see if you have more luck than me
http://www.gotdotnet.com/team/windowsforms/iesourcing.aspx

Also, can I use javascript and VB script to set properties on this object
once it is in the web page?
Yes.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
Scott Meddows said:
I'm trying to embed a winform control into an HTML page and I don't seem
to be getting anywhere..

I've put the following object tag in the body of the HTML document

<object id="UpdateControl11"
classid="http://lafdev2/reportControl/TSG.RiskManagement.RiskManagementControl.dll#TSG.RiskManagement.RMMain"
width=100%
height=100%>

When I open the web page there is just a box there with no control in it.
I try to attach to the IExplorer process to debug and the
constructor is never called yet the assembly is in my download cache. Is
there anything else that I need to do to create this
control? Also, can I use javascript and VB script to set properties on
this object once it is in the web page?

Any help is appreciated.

Thanks
Scott
 
S

Scott Meddows

Updated:

I receive the following error when I run the URL in the address bar of the browser..

An unhandled exception of type 'System.NullReferenceException' occurred in IEExec.exe
 
A

Alvin Bruney [MVP]

drumroll...............

it's time to see the code.
post some code that reproduces the problem
 

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

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top