473,836 Members | 1,560 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Embbed .NET Custom Control (ActiveX) into ASP .NET page

Hi All,

I'm trying to display .NET Custom Control (created using Inherited Control)
on an ASPX page, but no luck. I already registered the Control to Global
Assembly Cache through .NET Framework 1.1 Configuration. I have also put a
reference to the control on my ASP .NET project. The view that I get is only
a disabled text area.

Below is the code that I'm using:

<html>
<script language="JScri pt">
function ChangeText() {
simpleControl1. Text = text1.value;
}
</script>
<body>
<p>Simple Control
<br>
<br>
<object id="simpleContr ol1"
classid="http:b in/ActiveXDotNet.d ll#ActiveXDotNe t.SimpleControl " height="300"
width="300" VIEWASTEXT>
<param name="Text" value="Simple Control">
</object>
<br>
<br>
<input type="text" id="text1" NAME="text1">
<input type="button" value="Change Text" onclick="Change Text()"
ID="Button1" NAME="Button1">
</p>
</body>
</html>

Can anyone help me with the issue?

Regards,
Budhi
Sep 12 '06 #1
6 3528
You shouldn't GAC it. It shouldn't be strong named.
Instead it belongs in the web root of your web application so it can be
automatically downloaded.
Here's more info:

http://SteveOrr.net/articles/WinformControls.aspx

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"Budhi Saputra Prasetya" <Bu************ ******@discussi ons.microsoft.c om>
wrote in message news:26******** *************** ***********@mic rosoft.com...
Hi All,

I'm trying to display .NET Custom Control (created using Inherited
Control)
on an ASPX page, but no luck. I already registered the Control to Global
Assembly Cache through .NET Framework 1.1 Configuration. I have also put a
reference to the control on my ASP .NET project. The view that I get is
only
a disabled text area.

Below is the code that I'm using:

<html>
<script language="JScri pt">
function ChangeText() {
simpleControl1. Text = text1.value;
}
</script>
<body>
<p>Simple Control
<br>
<br>
<object id="simpleContr ol1"
classid="http:b in/ActiveXDotNet.d ll#ActiveXDotNe t.SimpleControl "
height="300"
width="300" VIEWASTEXT>
<param name="Text" value="Simple Control">
</object>
<br>
<br>
<input type="text" id="text1" NAME="text1">
<input type="button" value="Change Text" onclick="Change Text()"
ID="Button1" NAME="Button1">
</p>
</body>
</html>

Can anyone help me with the issue?

Regards,
Budhi

Sep 13 '06 #2
Hi Steve,

Thanks for the answer. It works fine now. Now I'm trying to sign my active x
control so it can execute certain program on the client's computer. The
ActiveX will be in the intranet, so there won't be any issue with public
domain. Any insight on this matter?

Regards,
Budhi

"Steve C. Orr [MVP, MCSD]" wrote:
You shouldn't GAC it. It shouldn't be strong named.
Instead it belongs in the web root of your web application so it can be
automatically downloaded.
Here's more info:

http://SteveOrr.net/articles/WinformControls.aspx

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"Budhi Saputra Prasetya" <Bu************ ******@discussi ons.microsoft.c om>
wrote in message news:26******** *************** ***********@mic rosoft.com...
Hi All,

I'm trying to display .NET Custom Control (created using Inherited
Control)
on an ASPX page, but no luck. I already registered the Control to Global
Assembly Cache through .NET Framework 1.1 Configuration. I have also put a
reference to the control on my ASP .NET project. The view that I get is
only
a disabled text area.

Below is the code that I'm using:

<html>
<script language="JScri pt">
function ChangeText() {
simpleControl1. Text = text1.value;
}
</script>
<body>
<p>Simple Control
<br>
<br>
<object id="simpleContr ol1"
classid="http:b in/ActiveXDotNet.d ll#ActiveXDotNe t.SimpleControl "
height="300"
width="300" VIEWASTEXT>
<param name="Text" value="Simple Control">
</object>
<br>
<br>
<input type="text" id="text1" NAME="text1">
<input type="button" value="Change Text" onclick="Change Text()"
ID="Button1" NAME="Button1">
</p>
</body>
</html>

Can anyone help me with the issue?

Regards,
Budhi


Sep 14 '06 #3
If it's signed I'm pretty sure it won't work in this embedded way you are
trying.
I also want to clarify that it isn't truly an ActiveX control you are
making, it is an embedded windows forms control.
ActiveX controls are based on COM, and while they have some similarities
there are also many differences between ActiveX controls and embedded
windows forms controls.

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"Budhi Saputra Prasetya" <Bu************ ******@discussi ons.microsoft.c om>
wrote in message news:6B******** *************** ***********@mic rosoft.com...
Hi Steve,

Thanks for the answer. It works fine now. Now I'm trying to sign my active
x
control so it can execute certain program on the client's computer. The
ActiveX will be in the intranet, so there won't be any issue with public
domain. Any insight on this matter?

Regards,
Budhi

"Steve C. Orr [MVP, MCSD]" wrote:
>You shouldn't GAC it. It shouldn't be strong named.
Instead it belongs in the web root of your web application so it can be
automaticall y downloaded.
Here's more info:

http://SteveOrr.net/articles/WinformControls.aspx

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"Budhi Saputra Prasetya" <Bu************ ******@discussi ons.microsoft.c om>
wrote in message
news:26******* *************** ************@mi crosoft.com...
Hi All,

I'm trying to display .NET Custom Control (created using Inherited
Control)
on an ASPX page, but no luck. I already registered the Control to
Global
Assembly Cache through .NET Framework 1.1 Configuration. I have also
put a
reference to the control on my ASP .NET project. The view that I get is
only
a disabled text area.

Below is the code that I'm using:

<html>
<script language="JScri pt">
function ChangeText() {
simpleControl1. Text = text1.value;
}
</script>
<body>
<p>Simple Control
<br>
<br>
<object id="simpleContr ol1"
classid="http:b in/ActiveXDotNet.d ll#ActiveXDotNe t.SimpleControl "
height="300"
width="300" VIEWASTEXT>
<param name="Text" value="Simple Control">
</object>
<br>
<br>
<input type="text" id="text1" NAME="text1">
<input type="button" value="Change Text" onclick="Change Text()"
ID="Button1" NAME="Button1">
</p>
</body>
</html>

Can anyone help me with the issue?

Regards,
Budhi



Sep 15 '06 #4
what is the different between activeX controls and windows control library ?
"Steve C. Orr [MVP, MCSD]" <St***@Orr.netw rote in message
news:e8******** ******@TK2MSFTN GP06.phx.gbl...
If it's signed I'm pretty sure it won't work in this embedded way you are
trying.
I also want to clarify that it isn't truly an ActiveX control you are
making, it is an embedded windows forms control.
ActiveX controls are based on COM, and while they have some similarities
there are also many differences between ActiveX controls and embedded
windows forms controls.

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"Budhi Saputra Prasetya" <Bu************ ******@discussi ons.microsoft.c om>
wrote in message
news:6B******** *************** ***********@mic rosoft.com...
>Hi Steve,

Thanks for the answer. It works fine now. Now I'm trying to sign my
active x
control so it can execute certain program on the client's computer. The
ActiveX will be in the intranet, so there won't be any issue with public
domain. Any insight on this matter?

Regards,
Budhi

"Steve C. Orr [MVP, MCSD]" wrote:
>>You shouldn't GAC it. It shouldn't be strong named.
Instead it belongs in the web root of your web application so it can be
automatical ly downloaded.
Here's more info:

http://SteveOrr.net/articles/WinformControls.aspx

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"Budhi Saputra Prasetya"
<Bu********** ********@discus sions.microsoft .com>
wrote in message
news:26****** *************** *************@m icrosoft.com...
Hi All,

I'm trying to display .NET Custom Control (created using Inherited
Control)
on an ASPX page, but no luck. I already registered the Control to
Global
Assembly Cache through .NET Framework 1.1 Configuration. I have also
put a
reference to the control on my ASP .NET project. The view that I get
is
only
a disabled text area.

Below is the code that I'm using:

<html>
<script language="JScri pt">
function ChangeText() {
simpleControl1. Text = text1.value;
}
</script>
<body>
<p>Simple Control
<br>
<br>
<object id="simpleContr ol1"
classid="http: bin/ActiveXDotNet.d ll#ActiveXDotNe t.SimpleControl "
height="300"
width="300" VIEWASTEXT>
<param name="Text" value="Simple Control">
</object>
<br>
<br>
<input type="text" id="text1" NAME="text1">
<input type="button" value="Change Text" onclick="Change Text()"
ID="Button1" NAME="Button1">
</p>
</body>
</html>

Can anyone help me with the issue?

Regards,
Budhi


Sep 15 '06 #5
I don't have time to detail all the differences, but what it boils down to
from a browser perspective is that ActiveX controls have all or nothing
permissions, while embedded windows forms controls run inside the security
context of the .NET framework and also Internet Explorer. This makes them
much safer for users and much more configurable so they can be given
permission to do only what they need to do and nothing more so they can't be
so easily misused and/or hacked.
ActiveX controls are one of the leading sources of Spyware, Adware, and
other annoyances that have infiltrated the Internet over the last several
years. It's time for them to go away.
..NET controls are much more secure. Of course now we developers must deal
with the layers of security to achieve the functionality we need. Not so
great for us, but it is very good for the Internet in general.

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"Seth Bourne" <se*****@yahoo. comwrote in message
news:O4******** ******@TK2MSFTN GP05.phx.gbl...
what is the different between activeX controls and windows control library
?
"Steve C. Orr [MVP, MCSD]" <St***@Orr.netw rote in message
news:e8******** ******@TK2MSFTN GP06.phx.gbl...
>If it's signed I'm pretty sure it won't work in this embedded way you are
trying.
I also want to clarify that it isn't truly an ActiveX control you are
making, it is an embedded windows forms control.
ActiveX controls are based on COM, and while they have some similarities
there are also many differences between ActiveX controls and embedded
windows forms controls.

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"Budhi Saputra Prasetya" <Bu************ ******@discussi ons.microsoft.c om>
wrote in message
news:6B******* *************** ************@mi crosoft.com...
>>Hi Steve,

Thanks for the answer. It works fine now. Now I'm trying to sign my
active x
control so it can execute certain program on the client's computer. The
ActiveX will be in the intranet, so there won't be any issue with public
domain. Any insight on this matter?

Regards,
Budhi

"Steve C. Orr [MVP, MCSD]" wrote:

You shouldn't GAC it. It shouldn't be strong named.
Instead it belongs in the web root of your web application so it can be
automaticall y downloaded.
Here's more info:

http://SteveOrr.net/articles/WinformControls.aspx

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"Budhi Saputra Prasetya"
<Bu********* *********@discu ssions.microsof t.com>
wrote in message
news:26***** *************** **************@ microsoft.com.. .
Hi All,

I'm trying to display .NET Custom Control (created using Inherited
Control)
on an ASPX page, but no luck. I already registered the Control to
Global
Assembly Cache through .NET Framework 1.1 Configuration. I have also
put a
reference to the control on my ASP .NET project. The view that I get
is
only
a disabled text area.

Below is the code that I'm using:

<html>
<script language="JScri pt">
function ChangeText() {
simpleControl1. Text = text1.value;
}
</script>
<body>
<p>Simple Control
<br>
<br>
<object id="simpleContr ol1"
classid="http :bin/ActiveXDotNet.d ll#ActiveXDotNe t.SimpleControl "
height="300 "
width="300" VIEWASTEXT>
<param name="Text" value="Simple Control">
</object>
<br>
<br>
<input type="text" id="text1" NAME="text1">
<input type="button" value="Change Text" onclick="Change Text()"
ID="Button1 " NAME="Button1">
</p>
</body>
</html>

Can anyone help me with the issue?

Regards,
Budhi



Sep 15 '06 #6
The old ActiveX controls download the binary (DLL or OCX files), it's like
the application downloaded and then run it from the client. does the .net
custom control have the similar architecture ?

"Steve C. Orr [MVP, MCSD]" <St***@Orr.netw rote in message
news:eT******** ******@TK2MSFTN GP03.phx.gbl...
>I don't have time to detail all the differences, but what it boils down to
from a browser perspective is that ActiveX controls have all or nothing
permissions, while embedded windows forms controls run inside the security
context of the .NET framework and also Internet Explorer. This makes them
much safer for users and much more configurable so they can be given
permission to do only what they need to do and nothing more so they can't
be so easily misused and/or hacked.
ActiveX controls are one of the leading sources of Spyware, Adware, and
other annoyances that have infiltrated the Internet over the last several
years. It's time for them to go away.
.NET controls are much more secure. Of course now we developers must deal
with the layers of security to achieve the functionality we need. Not so
great for us, but it is very good for the Internet in general.

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"Seth Bourne" <se*****@yahoo. comwrote in message
news:O4******** ******@TK2MSFTN GP05.phx.gbl...
>what is the different between activeX controls and windows control
library ?
"Steve C. Orr [MVP, MCSD]" <St***@Orr.netw rote in message
news:e8******* *******@TK2MSFT NGP06.phx.gbl.. .
>>If it's signed I'm pretty sure it won't work in this embedded way you
are trying.
I also want to clarify that it isn't truly an ActiveX control you are
making, it is an embedded windows forms control.
ActiveX controls are based on COM, and while they have some similarities
there are also many differences between ActiveX controls and embedded
windows forms controls.

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"Budhi Saputra Prasetya"
<Bu********** ********@discus sions.microsoft .comwrote in message
news:6B****** *************** *************@m icrosoft.com...
Hi Steve,

Thanks for the answer. It works fine now. Now I'm trying to sign my
active x
control so it can execute certain program on the client's computer. The
ActiveX will be in the intranet, so there won't be any issue with
public
domain. Any insight on this matter?

Regards,
Budhi

"Steve C. Orr [MVP, MCSD]" wrote:

You shouldn't GAC it. It shouldn't be strong named.
Instead it belongs in the web root of your web application so it can
be
automatical ly downloaded.
Here's more info:
>
http://SteveOrr.net/articles/WinformControls.aspx
>
--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
>
>
"Budhi Saputra Prasetya"
<Bu******** **********@disc ussions.microso ft.com>
wrote in message
news:26**** *************** *************** @microsoft.com. ..
Hi All,

I'm trying to display .NET Custom Control (created using Inherited
Control)
on an ASPX page, but no luck. I already registered the Control to
Global
Assembly Cache through .NET Framework 1.1 Configuration. I have also
put a
reference to the control on my ASP .NET project. The view that I get
is
only
a disabled text area.

Below is the code that I'm using:

<html>
<script language="JScri pt">
function ChangeText() {
simpleControl1. Text = text1.value;
}
</script>
<body>
<p>Simple Control
<br>
<br>
<object id="simpleContr ol1"
classid="htt p:bin/ActiveXDotNet.d ll#ActiveXDotNe t.SimpleControl "
height="30 0"
width="300 " VIEWASTEXT>
<param name="Text" value="Simple Control">
</object>
<br>
<br>
<input type="text" id="text1" NAME="text1">
<input type="button" value="Change Text" onclick="Change Text()"
ID="Button 1" NAME="Button1">
</p>
</body>
</html>

Can anyone help me with the issue?

Regards,
Budhi
>
>
>




Sep 19 '06 #7

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

Similar topics

0
2713
by: Ivan | last post by:
I have the SystemMonitor ActiveX control on a form and I try to register a custom performance counter. I expect that after registering the counter with the OS, the user would be able to add it through this System Monitor ActiveX control on the form. Yet, the Add dialog of this ActiveX does NOT contain the already registered counter. Does anyone know what might be wrong? Code snippet follows at the end. BTW if I have the code that registers...
6
3694
by: Vinay | last post by:
Hi all, Can we create an ActiveX (.OCX) control in ATL project type? Is project type for creation of .OCX file can only be ActiveX MFC type? If yes, Could you suggest me some Links? My Requirement: To create an ActiveX control that could be include in a web Page. This control has a DataGrid on it. Iam unable to do so in MFC ActiveX projects. Im using VS 6.0.
2
1801
by: Mehr H | last post by:
I have been working on this for several days and am still have had no success in achieving this. Pleae help. It seems that documentation for this is very limited. I have looked in several books and they all seem to say either nothing about this or that this is "out of the scope of this book", even "Professional ASP.NET". I have a ActiveX component that I'd like to expose through a .NET wrapper so in the case that a client browses to my...
3
22859
by: EJ1003 | last post by:
Hello I would like to create Activex Control uisng C# and use it in ASP.Net webform. User Control is not solving my requirement so I am going for Activex Control. Please guide me on this, how to do it, if any sample is provided will be of great help Thanks EJ
2
1733
by: Fernando Lopes | last post by:
Hey there! Someone knows how can I get and show an embbed resource image? I'm developing a web custom control and this control have some images and I want to put all these images like a embbed resource. Tks. Fernando Lopes
0
1037
by: Simon Prince | last post by:
Hi I have created a .NET "Windows Custom Control" which is used an ASPX Web Form. It is referenced with the code, from a ASPX page. ************************************************** <object id="myComponent" classid="http:#"
1
1232
by: Raed Sawalha | last post by:
i have activeX packed in CAB file and need to attach it to page so when user get into the page i prompt him/her to extract the contents into local H.D. Any Suggestions?
2
3435
by: Lionel | last post by:
Hi, I've created a C# custom control that references some ActiveX controls. I need to host this control on a form that also hosts the same ActiveX controls. So I add the custom control and the individual ActiveX's to the toolbox & when I try to host the user control on the form using the toolbox, the VS.NET interop kicks in generates Ax*** wrappers for these.
0
1576
vekipeki
by: vekipeki | last post by:
Does anyone know if there is a way to set a custom mouse cursor for an ActiveX control in .Net? I am adding some mouse functionality to an existing ActiveX control, and would like to change the cursor shape according to the current state. It's a Windows Forms app, with an ActiveX control wrapped in the (automatically generated) class (derived from AxHost). Although AxHost is derived from Windows.Forms.Control, the public Cursor property does...
0
9671
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10551
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9376
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7793
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6979
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5650
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4458
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4020
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3116
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.