Hello all, I have a simple form with just one textbox and one submit button. The form basically sends to a different page with the value in the textbox as querystring. When I click on the submit button, the querystring is in this format, for example:
mysite.com/?TargetCode=Test1
I would like it to display in this format: mysite.com/Test1
I already have an Action in my HomeController
that take the "TargetCode" as the querystring, and I've already setup a routing in the Global.ascx.cs
for that. What should I do to re-write the querystring so it doesn't have that "?TargetCode=" in the URL? Here is the code for the form I have:
<% using (Html.BeginForm("Index", "Home", FormMethod.Get, new { id = "CodeForm" }))
Thanks, Kenny.