|
我在JS把数据添加进Grid,后台应该如何取得?
var TopicRecord = Ext.data.Record.create([
{ name: 'ID', type: 'string',id:true },
{ name: 'FileName', type: 'string' },
{ name: 'FilePath', type: 'string' },
{ name: 'FileSize', type: 'int' },
{ name: 'FileExtension', type: 'string' },
{ name: 'FileCreationDate', type: 'date' },
{ name: 'FileModificationDate', type: 'date' },
{ name: 'FileIndex', type: 'int' },
{ name: 'FileId', type: 'int' },
{ name: 'Percent', type: 'int' },
{ name: 'Status', type: 'string' },
{ name: 'btnlook', type: 'string' },
{ name: 'btndelete', type: 'string' }
]);
var myNewRecord = new TopicRecord({
ID: file.id,
FileName: file.name,
FilePath: '',
FileSize: file.size,
FileExtension: file.type,
FileCreationDate: file.creationdate,
FileModificationDate: file.modificationdate,
FileIndex: file.index,
FileId: file.index,
Percent: 0,
Status: file.filestatus,
btnlook:'',
btndelete:''
}, file.id);
storeFiles.add(myNewRecord);
其中storeFiles是Grid的store.
在asp.net后台应该如何取得这些数据?
|
|