我现在使用repeater控件显示留言信息,我需要在每条留言信息中添加一个删除和编辑按钮我以前是用Ajax实现的,我想肯定还有别的方法不如用javascript应该就能够实现。请问各位大侠不用ajax的话该怎么实现?先谢谢各位了!比如用这部分代码:<asp:Repeater ID="rptMessage" runat="server">
<ItemTemplate>
<div>
<div>留言内容:
</div>
<div><%# Eval("mContent")%></div>
<div>
<div style="float:left;">留言时间:<%#Eval("mTime")%></div>
<div><input id="iptDelete" value="删除" type="button" onclick="Validate('<%# Eval("ID") %>')"</div>
</div>
</div>
<div style="border-top:1px dashed #ccc;"></div>
</ItemTemplate>
</asp:Repeater>
<ItemTemplate>
<div>
<div>留言内容:
</div>
<div><%# Eval("mContent")%></div>
<div>
<div style="float:left;">留言时间:<%#Eval("mTime")%></div>
<div><input id="iptDelete" value="删除" type="button" onclick="Validate('<%# Eval("ID") %>')"</div>
</div>
</div>
<div style="border-top:1px dashed #ccc;"></div>
</ItemTemplate>
</asp:Repeater>
<asp:Button ID="Button1" runat="server" Text="删除"
OnClick="delete_Click" aid='<%# Eval("id") %>' />
void delete_Click(object sender, EventArgs e)
{
Button btn=(Button)sender;
string id=btn.Attributes["aid"];
}