0

I have a server side Data Table without any attribute searching or sorting. And now I want to add these attribute.

According to the searches I have, I have to define variables in my controller like this:

   public int Start = Convert.ToInt32(Request["start"]);

But my controller does not understand the word Request and gives an error How can I resolve this error?

3
  • Your question seems incomplete and dose not clearly describe that what do you want to achieve. Share your code of Datatable and describe properly what you want to do you want to do with it. Thanks Commented Jul 18, 2018 at 7:55
  • What is Request["start"] and what kind of data contained inside it? Please give details about your controller action to make sure, provide your minimal reproducible example. Commented Jul 18, 2018 at 7:55
  • Is your question related with datatables.net ? Commented Jul 18, 2018 at 8:05

1 Answer 1

1

Have you included the System.Web assembly in the application?

using System.Web;

If not, try specifying the System.Web namespace, for example:

 public int Start = Convert.ToInt32(System.Web.HttpContext.Request["start"]);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.