473,503 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to embed javascript in an ASP.NET 2.0 web page?

My application has several check boxes included one labeled "All" and
another labeled "None." How can I incorporate javascript that will detect
that the "All" or "None" checkbox was changed and then change which other
check boxes are checked without making a round trip to the server?

Thanks,

Keith
Oct 3 '06 #1
2 3872
use ScriptManager.RegisterClientScriptBlock for asp.net 2.0 or
Page.RegisterClientScriptBlock. here is an msdn link to help

http://msdn2.microsoft.com/en-us/library/btf44dc9.aspx

Keithb wrote:
My application has several check boxes included one labeled "All" and
another labeled "None." How can I incorporate javascript that will detect
that the "All" or "None" checkbox was changed and then change which other
check boxes are checked without making a round trip to the server?

Thanks,

Keith
Oct 3 '06 #2
[edit]ClientScriptManager.RegisterClientScriptBlock... my bad.

Darren Kopp wrote:
use ScriptManager.RegisterClientScriptBlock for asp.net 2.0 or
Page.RegisterClientScriptBlock. here is an msdn link to help

http://msdn2.microsoft.com/en-us/library/btf44dc9.aspx

Keithb wrote:
My application has several check boxes included one labeled "All" and
another labeled "None." How can I incorporate javascript that will detect
that the "All" or "None" checkbox was changed and then change which other
check boxes are checked without making a round trip to the server?

Thanks,

Keith
Oct 3 '06 #3

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

Similar topics

2
1904
by: Phil | last post by:
Hi, I want to access the features of a plugin without actually embedding it into a page. Is this possible? Eg The code to embed the object into a page is: <OBJECT...
1
1275
by: JavaScriptJon | last post by:
Has anyone ever had problems with changing the src of an embed after the page has loaded?. I have had this problem 2 times now and in result have had to actually reinitialise the embed on the...
2
1357
by: Jianwei Sun | last post by:
Hi, Dear guru, I have a question on embed a javascript into the master page. I put the following line <link runat="server" type="text/javascript" href="~/column.js" /> under the head, but...
8
2436
by: jalexa9898 | last post by:
I am asking because I wrote some flex that was put in xml and I want to embed it in some html is this hard to do?
3
4768
by: abrtlt | last post by:
I would like to have a web page in which, when the user clicks on any of several specific elements, a specific audio file is played, without reloading the page. The specific audio file name is...
3
2558
by: Anil Gupte | last post by:
I want to embed using an embed tag or object tag (like YouTube or others do) to embed a video file in a web page. I want to know if there is an event related to the video being done playing. Also...
5
2158
by: elbin | last post by:
Hello, first to say that I am a total beginner in Javascript but I know some programming (python in particular) and am able to understand methods/parameters and so on. Here's my problem: I am...
2
8047
dream party
by: dream party | last post by:
Inserting a Flash (SWF, FLV) file into HTML web page is already an old and familiar thing to all of us. It is a rather non-flexible thing that just to edit some options in the template. However, I...
0
7204
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
7091
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7282
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,...
1
6998
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7464
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
5586
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,...
0
4680
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1516
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
391
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.