jquery to get quertstring

Share the joy
  •  
  •  
  •  
  •  
  •  
  •  
  •  

$(document).ready(function() {

var pageType = ‘@Request.QueryString[“pageType”]’;

alert(pageType);

});

//———-@Request.QueryString[“paramenterName”] is a razor syntax MVC

i use this to get querystring in view of mvc razor.


Share the joy
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.