Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 19th, 2004, 03:19 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default how to get event for header checkbox of datagrid

how to get event for header checkbox of datagrid
i need help???

Ahmed Ali
Software Developer
__________________
Ahmed Ali
Senior Software Developer
 
Old February 20th, 2004, 04:08 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Have you asigned the OnClick attribute of the checkbox control to a method?
 
Old February 21st, 2004, 06:03 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

you mean client Script method
i need an event for header checkbox,
also
i already can do template column with a button to do an event but when i replaced it with checkbox and autopostback=true ItemCommand event is not fired as before .

also i can use addhandler method with item checkboxs but i can't access the header checkbox!!

is there a comment

Ahmed Ali
Software Developer
 
Old February 22nd, 2004, 10:50 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Only buttons in a item template will fire the ItemCommand event.

In the markup for the checkbox, have you specified a server side event handler for the checkbox's OnClick event?

By using the ItemCreated handler you can access the controls in the header when it is created. Inside the handler, check for the item type so you know when this handler is called when the header is created. Then you can look for the checkbox that you need to modify and add a handler to if for your OnClick method.

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old February 22nd, 2004, 03:26 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

checkbox only event when it is checked :D
i do it with img buttons

Ahmed Ali
Software Developer
 
Old April 10th, 2007, 10:45 AM
Registered User
 
Join Date: Apr 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Do u mean call the event by img button??
Quote:
quote:Originally posted by alyeng2000
 checkbox only event when it is checked :D
i do it with img buttons

Ahmed Ali
Software Developer
Eng.Dody
Software developer





Similar Threads
Thread Thread Starter Forum Replies Last Post
CheckBox onClick event sams ASP.NET 1.0 and 1.1 Professional 3 August 29th, 2007 03:02 AM
CheckBox in Header of a DataGrid for ChkAll/Unchk su C# 0 December 5th, 2006 01:24 PM
Event handling for dynamically generated Checkbox manish.sharma04 BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 1 March 10th, 2006 05:37 AM
Clicking on a datagrid header badgolfer ASP.NET 1.0 and 1.1 Basics 1 November 5th, 2004 03:42 PM
header text in datagrid msrnivas .NET Web Services 1 March 4th, 2004 01:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.