davids davids - 1 year ago 63
C# Question

Use querystring variables in MVC controller

I am new to C#.net MVC and am trying to add

FullCalendar
to an MVC application.

The
FullCalendar
script automatically adds
?start={}&end={}
to the URL...which is fine, but I have no idea how to use
querystring
variables in a controller.

The methods I used in Webforms applications don't work. What do I need to add to the controller to access the
querystring
variables?

Answer Source

I figured it out...finally found another article on it.

string start = Request.QueryString["start"];

string end = Request.QueryString["end"];