PDA

View Full Version : How to use Proxy to get data in .NET



hieu79vn
24 Apr 2012, 7:57 AM
Hello

I would like to use Proxy to get data in .NET. Could you tell me how I do it? If you have a specific example, it's wonderful, if not, please give me the architecture of this model.

Thank you very much.

scottmartin
24 Apr 2012, 8:26 PM
Perhaps this would be of interest?
http://www.ext.net/

Regards,
Scott.

ganesh_pagar
25 Apr 2012, 12:38 AM
Ext.Ajax.request( {
url : 'http://localhost:8080/ExtJSTest/rest/company',
//specify method name if requires like
//method:'GET'

success : function(response,request) {
var json = response.responseText;
//some times response needs to decode .. plz check code how to decode response

// here data get loaded in store
companystore.loadData(json);

//here data get loaded in store
employeestore.loadData(json);
},

failure: function(response, request) {
alert('Server side failure with status code ');
}


});

hieu79vn
25 Apr 2012, 12:42 AM
Thank you for your answer.
Could you please explain more about
'http://localhost:8080/ExtJSTest/rest/company'

'company' is a directory or an aspx page?

and how can you input the parameter

Thank you

ganesh_pagar
25 Apr 2012, 2:04 AM
Company is the name of class.

hieu79vn
25 Apr 2012, 5:28 AM
How surprising it is!
so 'company' is the name of 'company.js' and what do you put in this class? Really I dont understand.

Thank you