// returns the data back to the default address is determined whether the added class selector (Actives)
At the same time the implementation of the method of delivery ID address to the background // selected default address
<b class='<%#(int)Eval("is_default")==1?"actives":""%>' onclick="Setaddress(<%#Eval("address_id")%>);"></b>
// data uploaded to the background method
function Setaddress(id){
console.log("123")
$.post("/newHome/address_list.aspx?act=setdefault",{
address_id:id,
},function (data){
console.log($.parseJSON(data))
if (data.status == 1) {
window.location.reload (); // refresh the page
}
},'json');
}