﻿
 function LoadHotelRotator(RotatorId,pageSize,currentPage)
 {
    var root = location.protocol + '//' + location.host;
    jQuery.ajax({
    type: "post",
    url: root + "/ExecuteUserControl.aspx",
    data: "uc=hotelRotator&pageSize="+pageSize+"&RotatorId="+RotatorId+"&currentPage="+currentPage,
    dataType: "html",
    success: function(msg) {
        $("#hotelRotatorWrapper").html(msg);
    },
    error: function (xhr, ajaxOptions, thrownError){
        $("#hotelRotatorWrapper").html("Hata Oluştu.");
    }
    });
 }
 
  function LoadTourRotator(RotatorId,pageSize,currentPage)
 {
    var root = location.protocol + '//' + location.host;
    jQuery.ajax({
    type: "post",
    url: root + "/ExecuteUserControl.aspx",
    data: "uc=tourRotator&pageSize="+pageSize+"&RotatorId="+RotatorId+"&currentPage="+currentPage,
    dataType: "html",
    success: function(msg) {
        $("#tourRotatorWrapper").html(msg);
    },
    error: function (xhr, ajaxOptions, thrownError){
        $("#tourRotatorWrapper").html("Hata Oluştu.");
    }
    });
 }
