1

C# のコード ビハインド ページから EXTJS のコンボボックスの 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_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);
}

文字列whas により、次の出力が得られます。

/proxies/ReturnJSON.aspx

しかし、他のすべての文字列は を返しnullます。

データストアからどのrm_colour_viewように取得できますか?

4

1 に答える 1

0

次のことを試してください。

string s = Request.QueryString("view")
于 2008-12-12T11:36:12.560 に答える