-
Catch usercontrol event in web page
I created a usercontrol with one button.
*********************
Option Explicit
Public Event onBeforeAdd()
Public Sub Command1_Click()
RaiseEvent onBeforeAdd
End Sub
************************
In html:
************************
<HTML><HEAD>
<SCRIPT language="VBScript">
sub xx_onBeforeAdd()
msgbox "fired!"
end sub
</SCRIPT>
</HEAD>
<BODY>
<OBJECT id="xx" style="LEFT: 0px; TOP: 0px" classid="clsid:6EC82592-BC4B-480D-83FA-C53AABA401E1"
VIEWASTEXT>
<PARAM NAME="_ExtentX" VALUE="8467">
<PARAM NAME="_ExtentY" VALUE="6350"></OBJECT>
</BODY></HTML>
***********************
The problem is that I can not get the messege box when I click the button
of the control on web page. However, things work if I put the control in
a vb form.
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks