Javascript 从EXTJS组合框从JSON存储检索url参数
从C#中的代码隐藏页面检索EXTJS中combobox的JSON存储的URL部分的参数时遇到问题。以下是存储中的代码:Javascript 从EXTJS组合框从JSON存储检索url参数,javascript,c#,extjs,combobox,datastore,Javascript,C#,Extjs,Combobox,Datastore,从C#中的代码隐藏页面检索EXTJS中combobox的JSON存储的URL部分的参数时遇到问题。以下是存储中的代码: 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_
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']
});
下面的代码在我的代码隐藏页面中:
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);
}
字符串w
提供了以下输出:
/代理/ReturnJSON.aspx
但是,所有其他字符串返回null
如何从数据存储中检索rm\u color\u视图
?请尝试以下操作:
string s = Request.QueryString("view")