<script type="text/javascript">
function dream() {
$.ajax({
url: "http://localhost:8080/Registration.aspx/GetData",
type: "POST",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (data) {
$('#responseContent').text(data.d);
}
});
}
dream();
</script>