次の文字列があります:
for(#some conditions){
##
result += "<tr><td>" + dc + "</td><td>" + al + "</td><tr>";
}
今、dc
私al
はaspx:grid
.
たとえば、結果の値は次のとおりです。
result = <tr><td>1111</td><td>23</td><td><tr><td>22222</td><td>43</td><tr>
今、次の形式でデータを表示したいgrid
dc al
1111 23
222222 43
今のところ、次のコマンドを使用してテキスト領域を埋めています。
<script type = "text/javascript">
function submit_a()
{
$.post("../AllocationValidator.aspx", { "data": escape(validatorXML), "scenarioID": scenarioID }, function (result) {
alert("Data Saved!");
$("#allocations").empty();
$("#allocations").html(result);
BodyLoad();
});
}
</script>
<div id = "allocations" style = "width: 650px; padding: 10px; border: 1px solid black;height: 150px; overflow:scroll;"></div>
私の質問はasp:grid
、データを表示するために実装する方法ですか?