以下のコード (.Aspx.cs) があります。
StringBuilder strMarkup = new StringBuilder();
strMarkup.AppendFormat("<div id=" + "MyDiv" + "><table id= " + "sDetails" + ">" +
"<tr><td><input id= " + "lblStudentName" + " type=" + "text" + " value = " + "StudentName" + "/> </td>" +
"<td> <input id= " + "dispStudentName" + " type=" + "text" + " value = {0}/> </td>" +
"</tr>" +
"<tr><td><input id= " + "lblCourseName" + " type=" + "text" + " value = " + "StudentName" + "/> </td>" +
"<td> <input id= " + "dispCourseName" + " type=" + "text" + " value = {1}/> </td>" +
"</tr></table></div>", _studentName, _courseName);
上記のものをAjax UpdatePanelにロードしたい私の.aspxページは以下の通りです:
<asp:UpdatePanel ID="UpdateDetails" runat="server">
<ContentTemplate>
<asp:Panel ID="StudentDetialsPanel" runat= "server">
</asp:Panel>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID = "btnSubmit" EventName="" />
</Triggers>
</asp:UpdatePanel>
前もって感謝します