PDA

View Full Version : Why my store can not pass params ?



daniel_82
8 Feb 2010, 8:42 PM
I got a following store, it can not pass params to '/POS/Json/GetSupplier.aspx' page when I reload it.
On the GetSupplier.aspx page I use Request.Form["strName"] to get the params value.
But WHY all I get is null value.


var storeSupplier = new Ext.data.Store
(
{
//where to get data from
proxy: new Ext.data.HttpProxy
(
{
url: '/POS/Json/GetSupplier.aspx'
}
),
//analysis Json
reader: new Ext.data.JsonReader
(
{
root: 'data',
id: 'Supplier',
fields:
[
'Supplier', 'Name'
]
}
),
remoteSort: true
}
);
storeSupplier.load();

storeSupplier.reload({
params: { start: 0, limit: 25, strCode: '%', strName: '%', strActive: '1' }
});


Very strange.:s

daniel_82
9 Feb 2010, 2:05 PM
anyone know what's wrong with my code?
i am waiting online:))