Hi All;
$.get("CallBack.aspx", { nm: StateTx, nm2: StateTx2 }, function(data) {
$.each(data, function() {
$('[id$=DropDown1]').append("<option value=" + this['I3D'] + ">" + this['prmv'] + "</option>");
});
});
İe 8
Mozilla Firefox
my problem ie8 last item undefined. how do fix ?
Amain cm2 = new Amain();
DataTable dt = cm2.Getdt(str, str3);
StringBuilder sb = new StringBuilder();
sb.Append("[");
foreach (DataRow item in dt.Rows)
{
sb.Append("{");
sb.Append("\"prmv\":\"");
sb.Append(item[0].ToString());
sb.Append("\"" + "},");
}
sb.Append("]");
Context.Response.ContentType = "application/json";
Context.Response.ContentEncoding = Encoding.UTF8;
Context.Response.Write(sb.ToString());
Context.Response.End();