Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Client Side Script and Custom Control

Reply
Thread Tools

Client Side Script and Custom Control

 
 
=?Utf-8?B?SGFyb2xkcw==?=
Guest
Posts: n/a
 
      09-23-2004
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>
 
Reply With Quote
 
 
 
 
Girish Bharadwaj
Guest
Posts: n/a
 
      09-23-2004
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..


--
Girish Bharadwaj
http://msmvps.com/gbvb
"Harolds" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Client side script after client side validation with asp.net 2.0 Boss302 ASP .Net 0 11-21-2006 08:43 AM
Server-side script with input parameter from Client-side script Magnus Blomberg ASP .Net 3 04-14-2005 12:21 PM
get image side via client side script before file uplaod moondaddy ASP .Net 2 07-16-2004 04:50 AM
Help Needed!!! client-side script, server-side code Shawn Mehaffie ASP .Net 4 01-22-2004 05:02 AM
Adding custom client-side onClick handler with client-side validator controls Zoe Hart ASP .Net Web Controls 1 01-08-2004 10:45 PM



Advertisments