tags:

views:

49

answers:

1

How will i access the querystring value in a view

+6  A: 

It is not a good design to access query parameters in a view. The view should use the model provided by the controller. So the controller reads query parameters and passes them to the view. If you want to ignore this rule you could always do this in your view:

<%= Request["SomeParameter"] %>

But I would strongly discourage you from doing so.

Darin Dimitrov
thanks darin for your answer
Fraz Sundal