0

I am create table using Jquery-bootgrid. in the documentation its passing this kind of parameters to controller

current=1&rowCount=10&sort[columnName]=asc&searchPhrase=&id=b0df282a-0d67-40e5-8558-c9e93b7befed

I can get the all parameter value, except the one with bracket sort[columnName]=asc, I get the paremeter by create class with same properties name like in parameter

public class Bootgrid
{
    public int current { get; set; }
    public int rowCount { get; set; }
    public string searchPhrase { get; set; }
    public string[] sort{ get; set; } //can't get the value
}

please advice

Gusti Arya
  • 1,281
  • 3
  • 15
  • 32

1 Answers1

1

string[] is using int indexes not string indexes.

You can use dictionary for instance.

public void GetTest(Dictionary<string, string> som)

This works with Test?som[key1]=value2

where som contains key "key1" with value "value2"

Sprot
  • 34
  • 7