L
lukasz
I need a table with clickable cells, where clicking a cell executes
server-side code in an event handler, which in turns reloads the page,
keeping its state & view. I'd preferably solve it by simply generating HTML
code in the page's OnLoad; I can add javascript events for clicking cells:
<TD OnMouseDown="javascript:set(123)">...</TD>
but how to post an event from javascript to server??
I tried another attempt with creating own web control, but in its Render()
method I did same outputting of HTML table with javascript events, and again
I don't know how to link javascript code with my control's code. Anyone can
help?
server-side code in an event handler, which in turns reloads the page,
keeping its state & view. I'd preferably solve it by simply generating HTML
code in the page's OnLoad; I can add javascript events for clicking cells:
<TD OnMouseDown="javascript:set(123)">...</TD>
but how to post an event from javascript to server??
I tried another attempt with creating own web control, but in its Render()
method I did same outputting of HTML table with javascript events, and again
I don't know how to link javascript code with my control's code. Anyone can
help?