title: jqgrid onselected row redirect url not working on server (MVC3)
body: <p>i am having a problem with jqgrid onselected row event and document.location.href in MVC..</p>
  
  <p>i have this code in my jqgrid:</p>
  
  <pre><code>onSelectRow: function (id) {
                      document.location.href ="/Search/Details/" + id;
                  },
  </code></pre>
  
  <p>on selecting a row it will redirect to another view..its working fine on my machine..</p>
  
  <p>whenever i pushed to server its not working there and its throwing page not found error..</p>
  
  <p>can i use @Url.Content or some thing which resolves my url..or is there any server setting i need to look at...
  please help me...thanks a lot...</p>
  
  <p>UPDATE &amp; Answer:
  finally i found it..if we want to use @Url.Content check the following code..its working fine...</p>
  
  <pre><code>onSelectRow: function (id) {
                      document.location.href ='@Url.Content("/Search/Details/")' + id;
                  },
  </code></pre>
  
  <p>Thanks a lot..</p>