我有以下代码查看“ProductCatalog”并返回找到的项目。 我需要编辑代码,以便我能够输入多个值甚至特殊字符,例如>,<,和,或。
这可能吗?
<div class="search">
@*@using (Html.BeginForm("Search", "ProductCatalog", FormMethod.Get, new { name = "quickSearchform" }))*@
@using (Html.BeginForm("Search", "ProductCatalog", FormMethod.Get, new { name = "searchform", id = "searchform", onsubmit = "return validateSearch();" }))
{
@Html.TextBox("criteria", "Search", new
{
@class = "searchbox",
onfocus = "if (this.value==this.defaultValue) {this.value = ''}",
onblur = "if (this.value=='') {this.value = this.defaultValue}"
})
<a class="btn btnStyleC btn-search quickSearch" href="javascript:searchSumbitOnClick();">Search</a> @*<a class="btn btnStyleC btn-search" href="javascript:searchSumbitOnClick();">Search</a>*@ } </div>