asp.net-mvc-4

    1热度

    2回答

    我研究了一个MVC示例我有一个控制器Home和一个动作索引。 我有以下路由登记: public static void RegisterRoutes(RouteCollection routes) { routes.MapRoute("MyRoute", "{controller}/{action}"); routes.MapRoute("MyOtherRoute", "A

    1热度

    1回答

    我有2个表中的分贝。首先表的所有描述,第二个表描述一个在第一table.Its部分看起来像: +----------+ +----------+ I Table1 I I Class I +----------+ +----------+ I Id I I Id I I ClassId I <- I Name I +----------+ +----------+ 主表的tabl

    0热度

    1回答

    如何通过wl.WishlistID对此查询的结果进行分组? var projected = (from wl in context.Wishlists.Where(x => x.UserId == 6013) from wli in wl.WishlistItems select new wishListProjection {

    3热度

    3回答

    我已经创建了下面的HTML帮助器类,用于显示图片: 类: namespace MvcWebMobile.CustomHelpers { public static class CustomHelper { public static string Image(this HtmlHelper helper, string id, string url, string

    0热度

    2回答

    今天,我发现MVC4使用的XML和Json序列化程序之间存在着很大的不同。 我试图返回一个对象,看起来像这样: public class Person { public string FirstName {get;set;} public string LastName {get;set;} public string FullName{ get{ return F

    1热度

    3回答

    我创建了新的MVC 4 Web应用程序并试图运行它。但是我得到一些例外 LazyInitializer.EnsureInitialized(ref _initializer, ref _isInitialized, ref _initializerLock); ,我无法浏览到注册或登录页面。我已经选择互联网应用和 什么地方出了错。任何人都可以帮我

    2热度

    2回答

    使用typeahead.js我使用 http://twitter.github.io/typeahead.js/版本0.9.3 和JQuery version 2.0.3 我有下面的例子中,我正确认识作品。 <input id="subCategory" name="subCategory" type="text" /> <script> $('#subCategory').typea

    0热度

    1回答

    嗨我想创建一个窗体上的搜索框。 我希望用户能够查找人名并在下方显示结果列表,然后用户点击所需的人员姓名。 这很简单。 然而,我想要这条记录随后被添加到'窗体'以及隐藏的id参数。 这样用户就可以点击提交,并提交人名加上其他字段。 我遇到的问题是,使用搜索框我需要一个Html.Beginform,但我也需要一个表单来提交最终的记录。因为我需要一个嵌套的表格,我听说这不是很好的做法。我知道搜索按钮表单

    1热度

    1回答

    在ASP.NET MVC 4项目ASP.NET MVC参考脚本文件,我想引用一个版本的脚本文件是这样的: // Just some pseudo-code: <script src="@Latest("~/Scripts/jquery-{0}.min.js")"></script> // Resolves to the currently referenced script file <s

    0热度

    1回答

    我有一个功能: $('#show-modal').click(function() { $('#my-dialog').load("@Url.Action("_BuscarPersona", "Persona", new { target = "#idtest", tipoPredefinido = 0 })", function() { $(this).dialog('