I am working on Asp.net MVC 4 with Razor. The urls of my projects are like
localhost:port/category1
localhost:port/category2 etc while my controller is home and action is MyCustomAction
I am using Paging on Category1 page with ul li and anchor tag with href="javascript:ShowPage(pagenmbr)"
And Code of ShowPage function is $('#currentpage').val(pagenmbr); $('#myform').submit();
where currentpage is hidden field on my cshtml page
My form is
@using(Html.BeginForm("home","MyCustomAction",FormMethod.Post,new { @id="myform"})
and as i pressed any link for any page functionality is working properly
but in that case my url becomes
localhost:port/category1?controller=home&action=MyCustomeAction
while I don't want this url pattern url should be
localhost:port/category1
Am I doing something in a wrong way, please help me..... please help me out