2017-07-06 47 views
-1

我在devEx中獲取我的應用程序中的查詢字符串。我不打開如何獲取Controller Action中的所有過濾器值?在C#中獲取網址值mvc

Home/Index?filter[0][]=Value&filter[0][]=%3D&filter[0][]=306 

我想下面的代碼,它不是爲我工作。

public ActionResult Index(string[] filter) 
{ 

} 

感謝

+0

嘗試在'Index'後添加'/'像這裏'Home/Index /?filter [] = Value&filter [] ==&filter [] = 306' –

回答

0

使用NuGet包DevExtreme.AspNet.Data。它會根據DevExtreme查詢字符串參數自動填充並生成LINQ查詢。