javascript:__doPostBack problems

S

Steve Richter

ok, I admit I dont know what I am doing ...

When a user clicks on a <tr> in a <table> I want the page to be posted
back to the server with info as to what row was clicked.

<tr style="background-color:ffecd8"
onmouseover="this.style.backgroundColor='#ffdcff';"
onmouseout="this.style.backgroundColor='#ffecd8';"
onclick="javascript:__doPostBack('row1')">

this works, the page comes back to the server and my code runs again.

only problem is, I dont know where the arguments from
__doPostBack('row1') are stored. When I run the page in trace mode I
do see that the __EventTarget of the Form Collection contains my
posback argument.

How do I access __EventTarget from the Form Collection in my .aspx code
behind code?

I assume Page.GetPostBackClientEvent is part of the answer, but I dont
understand the documentation of that method. Or is that method only
for server controls?

the question is, how do I use __doPostBack to pass arguments back to my
..aspx page?

thanks,

-Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top