<script type="text/javascript">
$(document).ready(function(){
$("#Customers").change(function(){
//Using Load Method
$("#CustomerDetails").load("FetchCustomer.aspx?CustomerID=" + $('#Customers').val());
});
//Using getMethod
$.get("FetchCustomer.aspx",
{ CustomerID: "" + $('#Customers').val() + "" },
function(data){
$('#CustomerDetails').html(data);
});
//Using Ajax Method
$.ajax({
contentType : "text/html;charset=utf-8",
data:"CustomerID="+$('#Customers').val(),
url:"FetchCustomer.aspx",
dataType:"html",
success:function(data){
$('#CustomerDetails').html(data);
}
});
});
});
</script>
0 comments:
Post a Comment