473,398 Members | 2,404 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,398 software developers and data experts.

Event catching

There is a Table. When user clicks on a row of this table,
i need to recognize the clicked row on Server. It works
perfect with a Button control, but Table does not support
onClick event. What should i do?
Nov 17 '05 #1
2 1114
PJ
I suppose you could use an onclick event on a <tr> element. Create a
linkbutton control anywhere in the page and set it's display style to none
<asp:linkbutton id="btnRow" runat="server" style="display:none">

on the row onclick event call __doPostBack for the button
<tr onclick="javascript:__doPostBack('btnRow','')">
"Vadim" <va****@indications.co.il> wrote in message
news:03****************************@phx.gbl...
There is a Table. When user clicks on a row of this table,
i need to recognize the clicked row on Server. It works
perfect with a Button control, but Table does not support
onClick event. What should i do?

Nov 17 '05 #2
Thanks!
I have already tried it. But there is another problem: i
build this Table dynamically on Server, so how can i
append this "<asp:linkbutton>" to <td>, i mean:
newRow.Cells[0].innerHTML = ?

-----Original Message-----
I suppose you could use an onclick event on a <tr> element. Create alinkbutton control anywhere in the page and set it's display style to none<asp:linkbutton id="btnRow" runat="server" style="display:none">
on the row onclick event call __doPostBack for the button
<tr onclick="javascript:__doPostBack('btnRow','')">
"Vadim" <va****@indications.co.il> wrote in message
news:03****************************@phx.gbl...
There is a Table. When user clicks on a row of this table, i need to recognize the clicked row on Server. It works
perfect with a Button control, but Table does not support onClick event. What should i do?

.

Nov 17 '05 #3

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

Similar topics

18
by: Christopher W. Douglas | last post by:
I am writing a VB.NET application in Visual Studio 2003. I have written a method that handles several events, such as closing a form and changing the visible status of a form. I have some code...
2
by: rgilmore | last post by:
Our app uses the EventLog class to write errors to the event log. Sometimes the app runs unattended for days, and if errors are occurring, the event log can fill up, causing the app to have no way...
1
by: melinda | last post by:
If I have 2 classes ("A" and "B") that inherit from the same base class, and both override an event handler method HandleMyEvent(..), class "A" has a hashtable of one or more class "B"'s. When...
2
by: Dominic | last post by:
Hi guys, I'm not sure if this question belongs to FAQ, but I couldn't find a concrete answer. I created a Datagrid control using ItemTemplate, but it's NOT a in-place editing datagrid. One of...
0
by: Jon | last post by:
I have a reproducible problem. In my application I have handlers for both the AppDomain.CurrentDomain.UnhandledException event and the Applciation.ThreadException events. Up until now these...
4
by: Guy Noir | last post by:
Hello. OK, Thanks to the help I have the remote debugging worked out. Here is my next hurdle. I have a service that is supposed to be catching Event Log written events. ...
2
by: Eric Lilja | last post by:
Hello, consider this complete program: #include <iostream> #include <string> using std::cout; using std::endl; using std::string; class Hanna {
0
by: Conrad | last post by:
Greetings, For user actions on a wxWidget that trigger multiple events for that wxWidget, is the order those events are processed in undefined, and therefore arbitrary from one platform (ie...
13
by: andypb123 | last post by:
Hello, The onchange event fires in IE6 in a SELECT element when scrolling through the list with the up and down arrows on the keyboard. In Firefox it only fires after you hit the enter key, which...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.