G
Guest
How do I access the properties of my custom control in client side script?
i.e.:
<%@ Register TagPrefix="custom" Namespace="MyNamespace.MyControl"
Assembly="MyNamespace.MyControl, Version=1.6.0.1, Culture=neutral,
PublicKeyToken=68358b8147b5eae4" %>
....
<HTML>
<HEAD>
....
<script id=clientEventHandlersVBS language=vbscript>
<!--
Sub window_onbeforeprint
'''''''''''''here is an examble of what I might want to do'''''''''''''''
MyCont.Visible = false
End Sub
-->
</script>
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<custom:mycontrol id=MyCont runat="server" ForeColor="Black"
BackColor="White" Width="500px"></custom:mycontrol>
....
</body>
</HTML>
i.e.:
<%@ Register TagPrefix="custom" Namespace="MyNamespace.MyControl"
Assembly="MyNamespace.MyControl, Version=1.6.0.1, Culture=neutral,
PublicKeyToken=68358b8147b5eae4" %>
....
<HTML>
<HEAD>
....
<script id=clientEventHandlersVBS language=vbscript>
<!--
Sub window_onbeforeprint
'''''''''''''here is an examble of what I might want to do'''''''''''''''
MyCont.Visible = false
End Sub
-->
</script>
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<custom:mycontrol id=MyCont runat="server" ForeColor="Black"
BackColor="White" Width="500px"></custom:mycontrol>
....
</body>
</HTML>