Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- routes.MapRoute(
- "Books",
- "Books/{searchExpr}/{pageId}",
- new { controller = "Books", action = "Search", searchExpr = "", pageId = 1 }
- );
- <form id="form1" name="form1" action="/Books/" method="get">
- <input type="text" name="search" value="">
- <input type="submit" name="id" value="1">
- <input type="submit" name="id" value="2">
- </form>
- <form id="form1" name="form1" action="/Books/1" method="get">
- <!--...form fields-->
- </form>
- <form id="form2" name="form2" action="/Books/2" method="get">
- <!--...form fields-->
- </form>
Add Comment
Please, Sign In to add comment