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="JScript">
function ChangeText() {
simpleControl1.Text = text1.value;
}
</script>
<body>
<p>Simple Control
<br>
<br>
<object id="simpleControl1"
classid="http:bin/ActiveXDotNet.dll#ActiveXDotNet.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="ChangeText()"
ID="Button1" NAME="Button1">
</p>
</body>
</html>
Can anyone help me with the issue?
Regards,
Budhi 6 3482
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******************@discussions.microsoft.com>
wrote in message news:26**********************************@microsof t.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="JScript">
function ChangeText() {
simpleControl1.Text = text1.value;
}
</script>
<body>
<p>Simple Control
<br>
<br>
<object id="simpleControl1"
classid="http:bin/ActiveXDotNet.dll#ActiveXDotNet.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="ChangeText()"
ID="Button1" NAME="Button1">
</p>
</body>
</html>
Can anyone help me with the issue?
Regards,
Budhi
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******************@discussions.microsoft.com>
wrote in message news:26**********************************@microsof t.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="JScript">
function ChangeText() {
simpleControl1.Text = text1.value;
}
</script>
<body>
<p>Simple Control
<br>
<br>
<object id="simpleControl1"
classid="http:bin/ActiveXDotNet.dll#ActiveXDotNet.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="ChangeText()"
ID="Button1" NAME="Button1">
</p>
</body>
</html>
Can anyone help me with the issue?
Regards,
Budhi
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******************@discussions.microsoft.com>
wrote in message news:6B**********************************@microsof t.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 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******************@discussions.microsoft.com> wrote in message news:26**********************************@microso ft.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="JScript">
function ChangeText() {
simpleControl1.Text = text1.value;
}
</script>
<body>
<p>Simple Control
<br>
<br>
<object id="simpleControl1"
classid="http:bin/ActiveXDotNet.dll#ActiveXDotNet.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="ChangeText()"
ID="Button1" NAME="Button1">
</p>
</body>
</html>
Can anyone help me with the issue?
Regards,
Budhi
what is the different between activeX controls and windows control library ?
"Steve C. Orr [MVP, MCSD]" <St***@Orr.netwrote in message
news:e8**************@TK2MSFTNGP06.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******************@discussions.microsoft.com>
wrote in message
news:6B**********************************@microsof t.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 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******************@discussions.microsoft.co m> wrote in message news:26**********************************@micros oft.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="JScript"> function ChangeText() { simpleControl1.Text = text1.value; } </script> <body> <p>Simple Control <br> <br> <object id="simpleControl1" classid="http:bin/ActiveXDotNet.dll#ActiveXDotNet.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="ChangeText()" ID="Button1" NAME="Button1"> </p> </body> </html>
Can anyone help me with the issue?
Regards, Budhi
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**************@TK2MSFTNGP05.phx.gbl...
what is the different between activeX controls and windows control library
?
"Steve C. Orr [MVP, MCSD]" <St***@Orr.netwrote in message
news:e8**************@TK2MSFTNGP06.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******************@discussions.microsoft.com> wrote in message news:6B**********************************@microso ft.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 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******************@discussions.microsoft.com > wrote in message news:26**********************************@micro soft.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="JScript"> function ChangeText() { simpleControl1.Text = text1.value; } </script> <body> <p>Simple Control <br> <br> <object id="simpleControl1" classid="http:bin/ActiveXDotNet.dll#ActiveXDotNet.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="ChangeText()" ID="Button1" NAME="Button1"> </p> </body> </html>
Can anyone help me with the issue?
Regards, Budhi
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.netwrote in message
news:eT**************@TK2MSFTNGP03.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**************@TK2MSFTNGP05.phx.gbl...
>what is the different between activeX controls and windows control library ?
"Steve C. Orr [MVP, MCSD]" <St***@Orr.netwrote in message news:e8**************@TK2MSFTNGP06.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******************@discussions.microsoft.comw rote in message news:6B**********************************@micros oft.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 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******************@discussions.microsoft.co m> wrote in message news:26**********************************@micr osoft.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="JScript"> function ChangeText() { simpleControl1.Text = text1.value; } </script> <body> <p>Simple Control <br> <br> <object id="simpleControl1" classid="http:bin/ActiveXDotNet.dll#ActiveXDotNet.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="ChangeText()" ID="Button1" NAME="Button1"> </p> </body> </html>
Can anyone help me with the issue?
Regards, Budhi > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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.
**************************************************...
|
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?
|
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...
|
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...
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
| |