pho3nix_
3 Apr 2008, 4:54 AM
Hi People,
I have a problem with my code, i trying get xml data from a url using .aspx and querystring but i don't want pass all items like
http://localhost/datastore/data.aspx?table=article&type=list
i want use a params in httpproxy
My Javascript code:
myDataStore = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({
url: strServername + '/DataStore/Data.aspx',
baseParams: {
'Table': 'Article',
'Type': 'List'
},
method: 'GET'
}),
reader: new Ext.data.XmlReader ({record: 'CmsArticle'}, columns)}
);
And i server side i use a Request.QueryString("Table") to get a value Article but my querystring is type of Nothing
How to resolve this?
I have a problem with my code, i trying get xml data from a url using .aspx and querystring but i don't want pass all items like
http://localhost/datastore/data.aspx?table=article&type=list
i want use a params in httpproxy
My Javascript code:
myDataStore = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({
url: strServername + '/DataStore/Data.aspx',
baseParams: {
'Table': 'Article',
'Type': 'List'
},
method: 'GET'
}),
reader: new Ext.data.XmlReader ({record: 'CmsArticle'}, columns)}
);
And i server side i use a Request.QueryString("Table") to get a value Article but my querystring is type of Nothing
How to resolve this?