C#.net ajax 範例
<asp:ScriptManager ID="ScriptManager" runat="server" />
<asp:UpdatePanel ID="UpdatePanel2" UpdateMode="Conditional" runat="server" >
<ContentTemplate>
<fieldset>
<legend>UpdatePanel content</legend>
<!-- Other content in the panel. -->
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
<table style="width: 1024px" align="center" >
<tr>
<td>
<nobr>
<table class="table table-bordered" id="maintable" rules="ALL" class="table" style="width: 100%; max-width: 1024px; border-color: black;" align="center">
<tr style=" display: none;">
<td style="width: 10%;"></td>
<td style="width: 10%;"></td>
<td style="width: 10%;"></td>
<td style="width: 10%;"></td>
<td style="width: 10%;"></td>
<td style="width: 10%;"></td>
<td style="width: 10%;"></td>
<td style="width: 10%;"></td>
<td style="width: 10%;"></td>
<td style="width: 10%;"></td>
</tr>
<asp:Label ID="Label2" runat="server" ></asp:Label>
</table>
</td>
</tr>
</table>
<input type="checkbox" checked="checked" />
<input id="ch" type="checkbox" />
<input type="checkbox" checked="checked" />
<asp:TextBox ID="TextBox23" runat="server"></asp:TextBox>
<asp:Button ID="Button2" runat="server" Text="Button"/>
<iframe id="iframesun" runat="server" style="width:100%;height:944px"></iframe>
</fieldset>
</ContentTemplate>
</asp:UpdatePanel>