, 당신은 지금 당신의 과정을 어떻게 설명해주십시오. 데이터베이스 우리 응용 프로그램 서버 사이의
- 연결 :
는 프로세스가 예를 들어, 너무 오래 걸릴 몇 가지 이유가있다.
- 데이터베이스를 검색하거나 업데이트하기 위해 코드를 작성하는 방법.
- 데이터베이스 연결에 어떤 공급자를 사용합니까?
- 업데이트 할 항목이 많습니다. 어떤 종류의 데이터입니까?
및 그 이상. jQuery를 아약스 샘플에 대한
(이것은 jQuery를 기능 Ajax 호출입니다) :
<script type="text/javascript">
//this is for handling the button click event
$(function() {
$("#btnTest").click(function() {
//this is to call the function if click was initiated
AjaxTest();
});
};
function AjaxTest() {
//this is variable to collect data
var _ajaxData= { firstName: "John", lastName: "Smith", email: "[email protected]" };
//this is the main ajax function, it basically send the collected data
//to AjaxProcessPage.aspx and response back
$.post("AjaxProcessPage.aspx", _ajaxData, function (data) {
if (data.status == "ok") {
alert("Data is ok");
};
});
}
</script>
<body>
<input type="button" name="btnTest" id="btnTest" />
</body>
설명은 주석에, 이것은 기본적으로 클라이언트 측이다. AjaxProcessPage.aspx로 데이터가 전송되면 해당 페이지에 프로세스를 삽입 할 수 있습니다. http://api.jquery.com/jQuery.post/
음, 당신은 SQL 프로파일 러에서 추적하고 볼 필요가 : 자세한 내용은 내가 사용하는 jQuery를 약 $ .post() 함수에 대한 http://api.jquery.com/category/ajax/
: jQuery를 아약스에 대한 자세한 내용은
당신의 SQL이 30 초에서 25를 얻는다면 : P –