Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

How to select row in Repeater when user clicks in any cell?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stefan - 14 Mar 2008 15:26 GMT
Hi,
I've got a repeater control, that has a checkbox in the first column, and
then a couple of columns with data after that.
What i want to achieve, is that the checkbox in the first column gets
selected if the user clicks in any cell in that row, WITHOUT a postback! Just
like if he clicked directly in the checkbox.

Any ideas on how to do this? Any links maybe? (If possible without ajax, but
if only possible with ajax i'm interested in suggestions as well. )

Thanks
bruce barker - 14 Mar 2008 16:32 GMT
simple. on <tr> just add a little javascript:

<tr onclick="this.getElementsByTagName('input')[0].checked=true;">

-- bruce (sqlwork.com)

> Hi,
> I've got a repeater control, that has a checkbox in the first column, and
[quoted text clipped - 7 lines]
>
> Thanks

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.