views:

73

answers:

0

basically, i have a Comments.ascx and a Comment.ascx file, and do the typical For Each loop to display comments using both files...

Now, as you'd expect, the Comments.ascx contains the header stuff, like this...

<table>

...

</table>

and in the middle (the Comment.ascx file), i have the typical...

<TR><TD>....</TD></TR>

type stuff, now all i want to do is, using ajax, update a comment, say to make it editable...

html syntax doesn't allow me to put a div tag between the TABLE and the TR elements, since this is the area i want the update to occur.

I don't want to update the entire comments panel, just one comment. and i can't put the div inside the TD's either, as there are too many of them...

i can do this...

<tr><td>...
<div...>

' stuff goes here, including another full table to get things working like you used to.

</div>
</td></tr>

but it feels like im creating more tables then i need too, and it requires a redesign to get things working again

is there a better way to do this? can you target a TD or TR instead of a DIV in the ajaxOptions? or is there a better way?