HELP Retrieving the url parameter from a JSON store from a EXTJS ComboBox

Posted by Newbie on Stack Overflow See other posts from Stack Overflow or by Newbie
Published on 2008-12-11T15:03:12Z Indexed on 2012/09/29 21:38 UTC
Read the original article Hit count: 193

Filed under:
|
|

I am having a problem retrieving the parameters from the url section of a json store for a combobox in EXTJS from my code behind page in c#. The following is the code in the store:

var ColorStore = new Ext.data.JsonStore(
                    {
                        autoLoad: true,
                        url: '/proxies/ReturnJSON.aspx?view=rm_colour_view',
                        root: 'Rows',
                        fields: ['company', 'raw_mat_col_code', 'raw_mat_col_desc']
                    });

And the following code is in my code behind page:

protected void Page_Load(object sender, EventArgs e)
        {
            string jSonString = "";
            connectionClass.connClass func = new connectionClass.connClass();
            DataTable dt = func.getDataTable("sELECT * from rm_colour_view");
            //Response.Write(Request.QueryString["view"]);
            string w = Request.Params.Get("url");
            string z = Request.Params.Get("view");
            string x = Request.Params.Get("view=");
            string c = Request.Params.Get("?view");
            string s = Request.QueryString.Get("view");
            string d = Request.Params["?view="];
            string f = Request.Form["ColorStore"];
            jSonString = Serialize(dt);
            Response.Write(jSonString);
        }

The string w has gives the following output:

/proxies/ReturnJSON.aspx

but all the others strings return null...

How can

rm_colour_view

from the datastore then be retrived???

Any help would be appreciated!

Thanks

© Stack Overflow or respective owner

Related posts about combobox

Related posts about extjs