473,756 Members | 5,955 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DotNet Web Client UserControl Events

History: In VB6 I could create an OCX that had the ability to accept
paramenters from a web page <object> tag, do some work, then fire an event
back to VBScript or JavaScript on the web page where addition work may have
been done. This web page usercontol interaction was easy in VB6.

Using VB.Net I have been able to create the usercontrol for the web page and
have also been able to pass parameters in via the <object> tag.

I have not been able to figure out how to generate the event in the
usercontrol that would fire a JavaScript or VBScript function. When using
the RaiseEvent the event is not passed to the html page like it was in VB6.
It just disappears.

Please help with references or sample code

Thks
--
DonR
Nov 21 '05 #1
1 1484
Don,

The intellisence does not work for it.

registerstartup script
http://msdn.microsoft.com/library/de...cripttopic.asp

When it is a control you can use as well the

addatrittribute s
http://msdn.microsoft.com/library/de...butestopic.asp

I hope this helps

Cor

"DonR" <Do**@discussio ns.microsoft.co m>
History: In VB6 I could create an OCX that had the ability to accept
paramenters from a web page <object> tag, do some work, then fire an event
back to VBScript or JavaScript on the web page where addition work may
have
been done. This web page usercontol interaction was easy in VB6.

Using VB.Net I have been able to create the usercontrol for the web page
and
have also been able to pass parameters in via the <object> tag.

I have not been able to figure out how to generate the event in the
usercontrol that would fire a JavaScript or VBScript function. When using
the RaiseEvent the event is not passed to the html page like it was in
VB6.
It just disappears.

Please help with references or sample code

Thks
--
DonR

Nov 21 '05 #2

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

Similar topics

40
3179
by: Eitan | last post by:
Hello, I know Java-Applet (written for JBuilder). I would like to know about dotnet technology, pros and cons in comparation to Java-Applet technololgy. Can I write a program in dotnet, like Java-Applet, compile it, debug it, and put it as a class on an HTML (like Java-Applet). I would like to introduce to the dot net technology. Give me some samples, please, and a comparation to Java-Applet technology.
13
2952
by: bill | last post by:
I am trying to convince a client that dotNet is preferable to an Access project (ADP/ADE). This client currently has a large, pure Access MDB solution with 30+ users, which needs to be upgraded. I believe a dotNet solution is better, but I'm trying to be as convincing as possible -- and maybe I'm wrong! I would appreciate any input or references which could help me.
41
4319
by: JohnR | last post by:
In it's simplest form, assume that I have created a usercontrol, WSToolBarButton that contains a button. I would like to eventually create copies of WSToolBarButton dynamically at run time based on some initialization information obtained elsewhere. Basically, I'm going to create my own dynamic toolbar where the toolbarbuttons can change. I'm not using the VB toolbar because of limitations in changing things like backcolor (I can't get...
2
4924
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is being updated by some other process through remoting. When the page loads, I init the tree, and in my browser I can see the initialized tree. The problem is that every time that I receive update to tree from the remote process,
2
2418
by: Loic | last post by:
A Memory leak in the dotnet UserControl ? Hi All, I’ve tried to use the following “Host Secure, Lightweight Client-Side Controls in Microsoft Internet Explorer” sample (I’d like to use a C# User Control for a project): http://msdn.microsoft.com/msdnmag/issues/02/01/userctrl/ Everything seams working fine (the control is displayed, localhost is fully trusted, …), but using the Windows Task Manager, each time I’m reloading...
2
3393
by: gerry | last post by:
based on MSPress's ASP.NET 2.0 Applications Advaced Topics ( Table 12-3 p.472 ), and most events should be automatically wired up when @Control AutoEventWireup="true". ie. Page_InitComplete() {} should be invoked automatically without having to wire up the event as : Page.InitComplete+=new EventHandler(Page_InitComplete); It seems that this is only true for a fairly restricted set of events which does not include Page_InitComplete. I...
0
1045
by: urig | last post by:
Hi, I have a pages that contains: 1. A UserControl (that is composed of several DropDownLists). 2. A CustomValidator to validate the UserControl. I have successfully setup the CustomValidator to validate the UserControl on the server-side by using the ValidationProperty("") attribute on the UserControl.
10
2427
by: Benton | last post by:
Hi there, I have a UserControl with a couple of textboxes and a couple of buttons ("Save" and "Cancel"). The Click event for this buttons is in the UserControl's codebehind of course, so here's my question. Once the UserControl is dropped onto the container page, how can I perform some action on the codebehind of the container page from the codebehind of the UserControl? For instance, suppose that the UserControl is dropped inside one...
1
18835
by: =?Utf-8?B?S3lsZSBNLiBCdXJucw==?= | last post by:
I have a set of controls and logic that must be invoked from several pages within a web application as a popup dialog, so I intend to use a userControl contained in a panel extended with the modalPopupExtender to get this behavior. I want to deal with showing and hiding the popup in server-side code, so I've set the TargetControlID to a hidden (style=display:none;) button and not set the OkButton or CancelButton. The userControl has...
0
9456
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9275
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
10040
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9846
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8713
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 projectplanning, coding, testing, and deploymentwithout 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
7248
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
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3359
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2666
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.