1
我正在使用jTable進行我的CRUD操作。但現在我想用JTable中創建對話框形式
如何使用jTable上傳文件在Asp.Net MVC中創建對話框?
How do i upload file using jTable create dialog?
<div id="PersonTable" style="width: 580px; margin: auto;"></div>
<script type="text/javascript">
$(document).ready(function() {
//Prepare jtable plugin
$('#PersonTable').jtable({
title: 'The Campus List',
actions: {
listAction: '/Home/CampusList',
deleteAction: '/Home/DeletePerson',
updateAction: '/Home/UpdatePerson',
createAction: '/Home/CreatePerson'
},
paging: true,
fields: {
CampusId: {
key: true,
create: false,
edit: false,
list: true
},
CampusName: {
title: 'CampusName',
width: '15%'
},
CampusCode: {
title: 'CampusCode',
list: true
},Image: { } // for uploading file
}
});
//Load person list from server
$('#PersonTable').jtable('load');
});
</script>