473,385 Members | 2,162 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,385 software developers and data experts.

handling activex events

i have some old asp pages that uses activex controls. At the moment, my
company are converting all of these old asp pages to asp.net. So my question
is, there is a way to handle activex events in the asp.net code behind.
<SCRIPT FOR="WEBDECODER1" EVENT="onaction" LANGUAGE="VBScript">
dim myaction
dim sig, format, captureTime
set myaction= action1
sig = myaction.Signature
myform.submit
</SCRIPT>
I want to handle this event on the code behind of my aspx page. Is there a
way to do this ? If not, what's the best way to do this inside asp.net ?
Thanks.
Nov 18 '05 #1
1 2402
On 7/21/2004 10:51 AM, Felipe Garcia wrote:
i have some old asp pages that uses activex controls. At the moment, my
company are converting all of these old asp pages to asp.net. So my question
is, there is a way to handle activex events in the asp.net code behind.
<SCRIPT FOR="WEBDECODER1" EVENT="onaction" LANGUAGE="VBScript">
dim myaction
dim sig, format, captureTime
set myaction= action1
sig = myaction.Signature
myform.submit
</SCRIPT>
I want to handle this event on the code behind of my aspx page. Is there a
way to do this ? If not, what's the best way to do this inside asp.net ?
Thanks.


I think that script is client-side VBScript, meaning you want to keep
that there. That doesn't need to go in the code-behind (nor would you
want it to). You can still have <SCRIPT>s in your aspx for client-side
scripts (just make sure not to set runat=server). So you should be able
to leave this as-is, unless it isn't passing values back correctly to
the backend when the form is submitted.

Also, if you are populating form values in this script, and these fields
are ASP.NET controls on the backend, you'll need to reference their
..ClientID instead of what their ID is in the code-behind (ASP.NET
creates a different ID for the control in the HTML). Meaning you'd want
to add some ASP.NET code to the aspx above to spit out the
serverControl.ClientID in place of sig, for example.

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 18 '05 #2

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

Similar topics

3
by: klimontovich | last post by:
Hello! I'm trying to handle events raising by Microsoft ActiveX Spreadsheet control. I use following code to include this control into page: <object...
2
by: S.Kartikeyan | last post by:
Hello group, I have the follwing problem with microsoft web browser activex control. I have a fileopendialog control. I open different files in the IEActivex control based on the filename in the...
2
by: Bill | last post by:
I have a VB6 ActiveX EXE app that generates events that I would like to handle in a C# application. The events in the VB app are defined like: Public Event SometingHappened(what As String) ...
5
by: Sagaert Johan | last post by:
hi I have the following problem: I have a C# application that uses an activeX . I installed the application and the NET 1.1 Runtimes on a clean pc When running the application i discover...
12
by: scsharma | last post by:
Hi, I am working on creating a webapplication and my design calls for creating main webform which will have menu bar on left hand side and a IFrame which will contain all the forms that are shown...
0
by: Peter | last post by:
I have a VB6 program which can receive Keydown events on an ActiveX control. The ActiveX control can't fire keydown events so I put a picturebox below the ActiveX control. I write codes in...
0
by: swong4 | last post by:
Hi all, I am trying to use an ActiveX control on the server-side of an ASP.NET 2.0 application written in C#. The ActiveX control is a 3rd-party interface to a data feed used by my application...
23
by: Galen Somerville | last post by:
A VB6 ActiveX.exe raises an event which is seen by the VB6 App. Same setup in VB2005. The event to be raised is in form frmSweep. As in VB6, frmSweep is hidden when the events take place. I...
0
by: Itchy Ferret | last post by:
Yo I have exactly same problem as the below. Does anyone know a solution, pls? Thanks, Itchy. -------------------------------------------
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...

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.