Hi, I would like to know how to pass parameters to asp.net web services. I am new to EXTJs so appreciate if you provide with sample code.

my requirement is much simple and standard, take search values and on button click fill data into grid. please advice if I am making any mistake seeing below code.

On button click how to make call to service with parameters?

Click event:
buttons: [{ text: 'Search', id: 'Search', listeners: {
click: function () {
var st = Ext.data.StoreManager.lookup('mystore');
st.proxy.extraParams = { 'param1': 'test', 'param2': 'test2' };
st.load();
}}}]

Store:
var store = new Ext.data.JsonStore({
autoLoad: true,
storeId: 'mystore',
model: 'Book',
proxy: new Ext.data.HttpProxy({
type: 'ajax',
method: 'POST',
url: "Service2.asmx/GetPeople",
headers: {'Content-type': 'application/json'},
writer: {type: 'json'},
reader: {type: 'json',root: 'd',idProperty: 'SEQ_NO'}
})
});

Grid:
var grid = Ext.create('Ext.grid.Panel', {
frame: true,
store: store,
columns: [
{ text: "SEQ_NO", width: 100, dataIndex: 'SEQ_NO' },
{ text: "column2", width: 180, dataIndex: 'column2' },
{ text: "column3", width: 115, dataIndex: 'column3' },
{ text: "column4", width: 100, dataIndex: 'column4' }
],
renderTo: 'example-grid',
width: 1230,
height: 200

});

Web Service:
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
[ScriptService]
public class Service : System.Web.Services.WebService
{
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json, UseHttpGet = true, XmlSerializeString = false)]
public List<Person> GetPeople(string param1, string param2)
{
string SProc = "PROC_NAME";
return Factory.GetPeopleController().GetPeople(SProc);
}
}