Client Side Script and Custom Control

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>
 
G

Girish Bharadwaj

What does your control render itself as? You can access it via the
"ID".blah() calls as long as that is supported by the rendered type..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top