fakhravari
یک شنبه 18 تیر 1391, 12:40 عصر
با سلام
مراحل ارسال درخواست تا برگشت ان
<script language="javascript" type="text/javascript">
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_initializeRequest(onInitializeRequest);
prm.add_beginRequest(onBeginRequest);
prm.add_pageLoading(onPageLoading);
prm.add_pageLoaded(onPageLoaded);
prm.add_endRequest(onEndRequest);
function onInitializeRequest(sender, args) {
// if you want to abort the previous postback and continue new request
//use the following code
//if(prm.get_isInAsyncPostBack())
//{
// prm.abortPostBack();
//}
// if you want to cancel the new request and continue previous postback
//use the following code
//if(prm.get_isInAsyncPostBack())
//{
// args.set_cancel(true);
//}
alert('initializeRequest');
}
function onBeginRequest(sender, args) {
alert('beginRequest');
}
function onPageLoading(sender, args) {
alert('pageLoading');
}
function onPageLoaded(sender, args) {
alert('pageLoaded');
}
function onEndRequest(sender, args) {
alert('endRequest');
}
</script>
چگونه در یکی از function بخواهیم یک دستور از کد بهین اجرا بشه؟:متفکر:
مراحل ارسال درخواست تا برگشت ان
<script language="javascript" type="text/javascript">
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_initializeRequest(onInitializeRequest);
prm.add_beginRequest(onBeginRequest);
prm.add_pageLoading(onPageLoading);
prm.add_pageLoaded(onPageLoaded);
prm.add_endRequest(onEndRequest);
function onInitializeRequest(sender, args) {
// if you want to abort the previous postback and continue new request
//use the following code
//if(prm.get_isInAsyncPostBack())
//{
// prm.abortPostBack();
//}
// if you want to cancel the new request and continue previous postback
//use the following code
//if(prm.get_isInAsyncPostBack())
//{
// args.set_cancel(true);
//}
alert('initializeRequest');
}
function onBeginRequest(sender, args) {
alert('beginRequest');
}
function onPageLoading(sender, args) {
alert('pageLoading');
}
function onPageLoaded(sender, args) {
alert('pageLoaded');
}
function onEndRequest(sender, args) {
alert('endRequest');
}
</script>
چگونه در یکی از function بخواهیم یک دستور از کد بهین اجرا بشه؟:متفکر: