473,401 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Client Side Script and Custom Control

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>
Nov 18 '05 #1
1 1242
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" <Ha*****@discussions.microsoft.com> wrote in message
news:94**********************************@microsof t.com...
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>

Nov 18 '05 #2

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

Similar topics

1
by: Vetrivel | last post by:
Application architecture : Develop interface between two existing systems, a. Enterprise CRM system b. Web based intranet system. Environment : Intranet Server : IIS and ASP. Script :...
8
by: Sue | last post by:
I have a datagrid populated with 6 visible read-only labels and several hidden fields. Below the datagrid, I have a table with various textboxes, dropdowns, etc. I've managed to decypher the...
2
by: giant food | last post by:
Hi, I'm writing an asp app. I have a text box with a validator and a submit button. Here is code from my .aspx file.... <asp:TextBox ID="txName" TextMode="SingleLine" Runat="server" />...
3
by: Lisa Calla | last post by:
Hi, I've been struggling with this for a few days. I've seen bits and pieces (how to set up custom validation), but I can't seem to understand how to get client side validation for my custom...
2
by: Andre | last post by:
I've set up a CustomValidator control which has both a client side and server side function associated with it. My server side function never seems to be called as long as I have the...
12
by: ShepardBerry | last post by:
This may be a dumb question, but I'm not finding anything specifically what I'm looking for. Still kind of new to .NET as well. What I'm trying to do that I know I could do in VB6.0/ASP is to...
6
by: Velislav | last post by:
Hi, I have a client script block, which is registered in my Page_Load. However a button may result in the need to change the script which I've registered. Obviously the OnClick event occurs...
4
by: Nathan Sokalski | last post by:
I am a beginner with AJAX, and have managed to learn how to use it when passing single parameters, but I want to return more than one value to the client-side JavaScript function that displays it....
6
by: Mike Chen | last post by:
We know in server code, we can check the page validated by using Page.IsValid where we put some validator controls on aspx page. I want to set some value after validating user input values on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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 project—planning, coding, testing,...

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.