|
-
Aug 3rd, 2003, 03:55 AM
#1
Thread Starter
Lively Member
VB.net DLLs in ASP.NET
Hi,
In a controlled corporate environment, I'm looking to place VB.NET controls onto an ASP.NET webpage ..
I've been able to place a reference to the object, but it displays as a 'blank' text box (not my control) .... Can anybody provide a good example of this?
Thanks,
Tim
-
Aug 3rd, 2003, 07:44 PM
#2
Thread Starter
Lively Member
Interesting .. I've found by adding the .NET class, it didn't work, i.e.
Code:
<object id="simpleControl1" classid="http:SimpleControl.dll#Microsoft.Samples.WinForms.Cs.SimpleControl.SimpleControl" height="300" width="300" VIEWASTEXT>
<param name="Text" value="Simple Control">
</object>
but by setting the control project to register for COM interop, then adding the class id, it works: e.g.
Code:
<OBJECT classid="clsid:0C1A4C6F-5D33-31A3-8E36-918A76DD9518" VIEWASTEXT>
Surely the .NET object reference would have been more relevant to ASP.NET! Will keep investigating, but if anybody else has a tip please let me know...
Cheers,
Tim
-
Aug 4th, 2003, 08:08 AM
#3
problem 1 : No // in your http
http://blah
problem 2 no web site listed to get that dll from
http://mysite.com/control.dll#blah.blah.blah
-
Aug 4th, 2003, 05:46 PM
#4
Thread Starter
Lively Member
Thanks Cander,
And to think I copied that from the Microsoft help site ...
ASP.NET did seem to recognise that the class existed but didn't render it properly ..
If I place the following into the form, It puts up an unknown object reference:
Code:
<OBJECT id="simpleControl2" style="WIDTH: 714px; HEIGHT: 300px" height="300" width="714" classid="http://localhost/FocusDespatch/FocusDespatchOCX.DLL#FocusDespatchOCX.FDispatch" VIEWASTEXT>
</OBJECT>
If I place the following into the form, it places a 'blank' text box:
Code:
<OBJECT id="simpleControl1" height="300" width="714" classid="FocusDespatchOCX.FDispatch" VIEWASTEXT>
</OBJECT>
It also recognises the object (I think?) because it adds the data component ...
Code:
<OBJECT id="simpleControl1" style="WIDTH: 714px; HEIGHT: 300px" height="300" width="714" data="data:application/x-oleobject;base64,IGkzJfkDzxGP0ACqAGhvEzwhRE9DVFlQRSBIVE1MIFBVQkxJQyAiLS8vVzNDLy9EVEQgSFRNTCA0LjAgVHJhbnNpdGlvbmFsLy9FTiI+DQo8SFRNTD48SEVBRD4NCjxNRVRBIGh0dHAtZXF1aXY9Q29udGVudC1UeXBlIGNvbnRlbnQ9InRleHQvaHRtbDsgY2hhcnNldD13aW5kb3dzLTEyNTIiPg0KPE1FVEEgY29udGVudD0iTVNIVE1MIDYuMDAuMjgwMC4xMTcwIiBuYW1lPUdFTkVSQVRPUj48L0hFQUQ+DQo8Qk9EWT4NCjxQPiZuYnNwOzwvUD48L0JPRFk+PC9IVE1MPg0K" classid="FocusDespatchOCX.FDispatch" VIEWASTEXT>
</OBJECT>
Any ideas? If it can recognise and render the object using the class id, but recognise and not render using the class name - is there something wrong here??
Cheers,
Tim
Last edited by tgoodmannz; Aug 4th, 2003 at 06:17 PM.
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
|