Reputation: 3
I have a .cshtml file that has a TextBoxFor is like Html.TextBoxFor(x => x.SearchValue)
the method in the controller that is accessed when the submit button is pressed is
Search(string searchValue, string searchType)
everything works fine if I put all digit characters in the textbox for example 111222233334444 I can hit a break point, however if I mix in letter characters like DDD222233334444 the method is not called, I won't hit the same breakpoint in the method.
Any ideas? Thanks for the help
Edit, add more code: index.cshtml page
<div class="inputHolder">
@Html.TextBoxFor(x => x.SearchValue)
</div>
.
.
.
<div id="actionHolder" class="actionHolder">
<input type="image" source="~/Images/Submit.png" id="submitSearch" class="imageSubmit" />
</div>
and the controller method
public ActionResult Search(string searchValue, string searchType)
{
Repository repo = new Repository(); <---- break point here works when all digits, but not if a mix of digit and letters or all letters
}
Upvotes: 0
Views: 108