James Ray Anderson

James Ray Anderson
James Ray Anderson
0 comments

MVC - Get Querystring In Controller

9:00 PM
It is considered bad practice to get your QueryString values from inside the view.  Instead do this in your controller:

string val = Request.QueryString["Mykey"].ToString();

0 comments:

 
Toggle Footer
Top