javascript:__doPostBack problems

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steve Richter

    javascript:__doPostBack problems

    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="backgrou nd-color:ffecd8"
    onmouseover="th is.style.backgr oundColor='#ffd cff';"
    onmouseout="thi s.style.backgro undColor='#ffec d8';"
    onclick="javasc ript:__doPostBa ck('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('r ow1') 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.GetPostBac kClientEvent 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

Working...