<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddFacultyForm.aspx.cs" Inherits="EDPFaculty.Pager.AddFacultyForm" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link href="../Scripts/jquery-easyui-1.3.2/themes/default/easyui.css" rel="stylesheet" type="text/css" />
<link href="../Scripts/jquery-easyui-1.3.2/themes/icon.css" rel="stylesheet" type="text/css" />
<script src="../Scripts/jquery-easyui-1.3.2/jquery-1.8.0.min.js" type="text/javascript"></script>
<script src="../Scripts/jquery-easyui-1.3.2/jquery.portal.js" type="text/javascript"></script>
<script src="../Scripts/jquery-easyui-1.3.2/jquery.easyui.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
var tmpUrl = "StudentForm.aspx";
var tmptitle = 'My Dialog';
AjaxGetDate(tmpUrl, tmptitle);
});
function AjaxGetDate(strUrl,strTitle) {
$.ajax({
url: strUrl,
cache: false,
success: function (data) {
var tmp = $('<div></div>').html(data);
data = tmp.find('#content').html();
tmp.remove();
OpenDialog(strTitle,data);
},
error: function (jqXHR, textStatus, errorThrown) {
alert(jqXHR.responseText);
}
});
}
function OpenDialog(strTitle,strContent) {
$('#dd').dialog({
title: strTitle,
width: 400,
height: 200,
closed: false,
cache: false,
modal: true,
content: strContent
});
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div id="dd"></div>
</form>
</body>
</html>