English 中文(简体)
ASP. Net MVC 3.0 Ajax. Begin 表格对顶级系统规定了额外的界限。 Web.Mvc.Html.MvcForm
原标题:ASP.Net MVC 3.0 Ajax.Begin Form gives extra line on top System.Web.Mvc.Html.MvcForm

在协会中创建Ajax表格是正确的。 Net MVC 3.0

@Ajax.BeginForm("ActionName", null, new AjaxOptions
            {UpdateTargetId = "dialog-model", InsertionMode = InsertionMode.Replace
            }, new { id ="AjaxForm" })

<input class="product-search" id="txtSearchProduct" name="SearchString" type="text" />
<input type="submit" id="AjaxForm" class="button", value="Search"/>

<div id="searchResults">
@Html.Raw((string)ViewBag.TotalList)<br />
<br />
@Html.Raw(ViewData["MarkupSearch"].ToString())
</div>

这完全符合需要,但可补充考虑。

**System.Web.Mvc.Html.MvcForm**

在这方面,我可以帮助我,我如何能够消除这一外线。

最佳回答

您需要用一种结构的形式。

@using (Ajax.BeginForm("ActionName", null, new AjaxOptions
            {UpdateTargetId = "dialog-model", InsertionMode = InsertionMode.Replace
            }, new { id ="AjaxForm" }))
{
...form here
}
问题回答

暂无回答




相关问题
Getting rid of Microsoft AJAX

We wrote a couple of controls using Microsoft AJAX (cs class + js class). Now I m thinking about getting rid of it (just use jQuery), as it is bloated and we don t use UpdatePanel. My question is: how ...

ASP.NET Ajax 4 and Microsoft Ajax library definitions

I undestand that is former for Web Forms ASP.Net only , latter ( currently preview 6 ) suitable for both - classic and MVC. Would it be possible to give a brief description/usage for each. By ASP.NET ...

ASP.NET Rich UI - What do you use? [closed]

I m looking for feedback on what other people use on their ASP.NET projects to provide a rich user interface experience while still remaining as productive as possible. I m developing an ASP.NET 3.5 ...

CollapsiblePanelExtender collapses on link hover

I am trying to use an CollapsiblePanelExtender to make some dropdown menus and am having some problems when hovering over links - can anyone help me out... By the way I do want to keep the ...

热门标签