Getting url parameter from JSON store from EXTJS ComboBox
I have a problem getting parameters from JSON store url section for combo box in EXTJS from my code by page in C #. Below 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 the 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 line w
has the following output:
/proxies/ReturnJSON.aspx
but all other lines return null
.
How do I get rm_colour_view
from the data store?
0
Newbie
source
to share