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
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