小编use*_*838的帖子

Bootstrap模式中选择的下拉列表隐藏在模态页脚后面

我正在使用基于twitter bootstrap示例的模态.我有一个选择使用的元素.当所选择的选择下降时,它会被模态页脚切断.我试图在所选元素上添加z-index值,但没有任何作用.我正在倾斜看它,并想知道它是否只是因为select元素是在模态页脚div之前的div?我正在使用所选的默认CSS和bootstrap,所以我没有修改任何东西.

例. 在此输入图像描述

HTML:

            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    ×</button>
                <h3>
                    Add Tag</h3>
            </div>
            <div class="modal-body">
                <div class="control-group">
                    <label for="addedTags">
                        Add tags (separated by commas)
                    </label>
                    <input id="addedTags" style="width: inherit" type="text">
                </div>
                <div class="control-group">
                    <label for="deleteTags">
                        Delete tags
                    </label>
                    <select style="display: none;" class="tags chzn-done" id="deleteTags" multiple="multiple" name="deleteTags"><option value="49">Accessories</option>
    <option value="69">AG_Adriano_Goldschmied</option>
    <option value="37">BCBG</option>
    <option value="38">Bebe</option>
    <option value="45">Bernie_Dexter</option>
    <option value="19">Black</option>
    <option value="6">Blue</option>
    <option value="66">Body-Con</option>
    <option value="71">Casual</option>
    <option value="39">Christian_Louboutin</option>
    <option value="64">Clear</option>
    <option value="50">Coach</option>
    </select><div style="width: [object Object]px;" class="chzn-container chzn-container-multi chzn-container-active" id="deleteTags_chzn"> …
Run Code Online (Sandbox Code Playgroud)

javascript css twitter-bootstrap jquery-chosen

12
推荐指数
1
解决办法
1万
查看次数

图像,CSS和JS未在MVC4应用程序中加载

我刚刚在我的服务器上部署了一个新的MVC4应用程序,并且没有加载一些CSS,JS和图像.例如,Chrome控制台说,

无法加载资源:服务器响应状态为500(内部服务器错误) http://beta.vinformative.com/Content/themes/base/jquery-ui-1.8.20.custom.css

无法加载资源:服务器响应状态为500(内部服务器错误) http://beta.vinformative.com/Content/select2.css

无法加载资源:服务器响应状态为500(内部服务器错误)http://beta.vinformative.com/Scripts/Plugins/select2.js

无法加载资源:服务器响应状态为500(内部服务器错误)http://beta.vinformative.com/Scripts/WineCreate.js

无法加载资源:服务器响应状态为500(内部服务器错误) http://beta.vinformative.com/Content/images/logo_revisedsmall.png

它们都在他们提到的位置的服务器上提供.我整晚都在排除其他事情,所以我的眼睛有点模糊,也许我错过了一些明显的东西.你也可以在beta.vinformative.com的主页上看到这些错误.

以下是我的文件布局的截图: 在此输入图像描述

我正在使用捆绑并在发布模式下将网站发布到文件系统,但我不希望这会影响图像,不是吗?我会继续这个,但任何帮助将不胜感激!谢谢!

编辑请求捆绑配置:谢谢!

    public class BundleConfig
{
    // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
    public static void RegisterBundles(BundleCollection bundles)
    {
        bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                    "~/Scripts/Libraries/jquery-{version}.js",
                    "~/Scripts/Plugins/jquery.loaderbutton.js",
                    "~/Scripts/Plugins/jquery.form.js"));

        bundles.Add(new ScriptBundle("~/bundles/base").Include(
                    "~/Scripts/Feedback.js",
                    "~/Scripts/Global.js",
                    "~/Scripts/WineSearch.js"
            ));

        bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
                    "~/Scripts/Libraries/jquery-ui-{version}.js"));

        bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                    "~/Scripts/Libraries/jquery.validate*"));

        bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                "~/Scripts/bootstrap/bootstrap.js",
                "~/Scripts/bootstrap/bootbox.js",
                "~/Scripts/bootstrap/bootstrap-notify.js"
            ));

        bundles.Add(new ScriptBundle("~/bundles/formhelpers").Include(
                "~/Scripts/bootstrap/Form Helpers/bootstrap-formhelpers-countries.js",
                "~/Scripts/bootstrap/Form Helpers/bootstrap-formhelpers-countries.en_US.js",
                "~/Scripts/bootstrap/Form Helpers/bootstrap-formhelpers-phone.js",
                "~/Scripts/bootstrap/Form Helpers/bootstrap-formhelpers-phone.format.js",
                "~/Scripts/bootstrap/Form Helpers/bootstrap-formhelpers-states.js",
                "~/Scripts/bootstrap/Form Helpers/bootstrap-formhelpers-states.en_US.js"
            ));

        bundles.Add(new ScriptBundle("~/bundles/winedetails").Include(
            "~/Scripts/WineDetails.js",
            "~/Scripts/Plugins/jquery.uploadifive.js",
            "~/Scripts/Plugins/jquery.fileDownload.js",
            "~/Scripts/Plugins/jquery.fancybox.js",
            "~/Scripts/Plugins/jquery.fancybox-media.js", …
Run Code Online (Sandbox Code Playgroud)

asp.net-mvc iis-7 asp.net-mvc-4

5
推荐指数
1
解决办法
9459
查看次数

设置表级别WillCascadeOnDelete不可用

我在这里拉出我的头发.我在这里看到了关闭删除级联的解决方案,但我无法实现它.我不知道我在这里做错了什么,但我一直得到以下错误:

'System.Data.Entity.ModelConfiguration.EntityTypeConfiguration'不包含'WillCascadeOnDelete'的定义,并且没有扩展方法'WillCascadeOnDelete'接受类型'System.Data.Entity.ModelConfiguration.EntityTypeConfiguration'的第一个参数可以找到(你是吗?)缺少using指令或程序集引用?)

我已经添加了必要的命名空间,但我不认为它是intellisense中的任何选项,我没有在任何地方搜索.我在VS 2010 MVC 3中

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using vf2.Models;
using vf2.Models.LinkTables;
using vf2.Models.Requests;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Data.Entity.ModelConfiguration.Configuration;
using System.Data.Entity.ModelConfiguration;
using vf2.Models.Reporting;
using vf2.Models.POSObj;

namespace vf2.Models
{
    public class vfContext : DbContext
    {
        public DbSet<App> Apps { get; set; }
        public DbSet<Origin> Origins { get; set; }
        public DbSet<WineType> WineTypes { get; set; }
        public DbSet<VarType> VarTypes { get; set; }
        public DbSet<Wine> Wines { get; set; }
        public DbSet<Vintage> Vintages { …
Run Code Online (Sandbox Code Playgroud)

entity-framework-4 asp.net-mvc-3

4
推荐指数
1
解决办法
4432
查看次数

限制加密中使用的字符

我有一个非常简单的加密类,使用tripleDES加密我网站上特定页面的查询字符串.我这样做是为了防止人们根据我们的数据库ID顺序抓取页面.

无论如何,我已经使用过 这种加密方法

但是,它包含3d%一些special characters不应该在查询字符串中的其他内容,并且出于安全目的而被Url Scan拒绝.=生成的实际加密字符串中有一个.我并不想改变URL扫描,但我不知道是否有一种方法可以限制加密字符tripleDES crypto provider什么的.我对加密几乎一无所知,我实际上只是混淆了查询字符串,因此我对其对查询字符串加密的其他选项持开放态度.

.net c# encryption asp.net-mvc-3

4
推荐指数
1
解决办法
5428
查看次数

模型在Post上的MVC3中没有保留价值

我正在使用viewmodel(vm)创建一个新的葡萄酒.我根据用户的配置文件将ProducerID值分配给get上的vm.在视图中呈现时,我可以在视图中看到ProducerID值.除非用户处于管理员角色(我没有使用该角色进行测试),否则用户无法选择或编辑此值.我的问题是ProducerID总是在POST上返回0.我不知道我错过了什么,因为我在视图中的其他选定选项回来了.

我试图在vm本身中添加一个新的唯一名称,但这也没有值.我环顾四周,找到了其他一些有类似问题的人,但他们的解决方案都没有帮助.对此的任何帮助都会很棒.谢谢!

视图模型:

{
    public Wine Wine { get; set; }
    public VOAVIRequest VOAVIRequest { get; set; }
    public bool IsRequest { get; set; }

    public SelectList VarTypes { get; set; }
    public SelectList Origins { get; set; }
    public SelectList Apps { get; set; }
    public SelectList Vintages { get; set; }
    public SelectList Importers { get; set; }

    public NewWineViewModel()
    {
        this.Wine = new Wine();
    }
}
Run Code Online (Sandbox Code Playgroud)

葡萄酒型号:

public class Wine :Updater
{
    public int WineID { get; …
Run Code Online (Sandbox Code Playgroud)

asp.net-mvc viewmodel asp.net-mvc-3

2
推荐指数
1
解决办法
1885
查看次数

显示:没有任何字段未发布到控制器

我有一个灯箱,其中包含一堆输入元素,我使用HTML帮助程序为创建操作设置了这些元素.它们是可选字段,但我在jquery验证中将数字规则应用于它们.

用户可以打开此灯箱,并根据需要填写字段,但不是必需的.它与其他数据的格式相同,但要提交,必须关闭此灯箱.

在提交时,不会将灯箱中的值发布到控制器.如果我从灯箱中删除输入,它可以正常工作.它必须与隐藏它有关,但为什么会发生这种情况呢?是jquery吗?我有'voavi-ignore'作为我的忽略类,所以它仍然应该验证这些.因为我已经有一段时间了,所以我对此感到困惑和焦虑.我页面上的其他所有内容都运行正常,我只是将这些新字段添加到灯箱中.

JS:

$(document).ready(function () {
    InitTab();
    $("#caseProductions").hide();
    $(".chzn-select").chosen();
    $(".filetypes").click(OnNewVOAVIClick);
    $(".countPerCase").change(OnCaseProdChange);
    $(".caseCount").change(OnCaseProdChange);
    $(".drinkWindow").change(OnDrinkWindowChange);
    $("#lnkCaseProduction").click(OnCaseProdOpen);

    VintageUpAlert();

    $.validator.addMethod("decimalNumber", function (value, element) {
        return this.optional(element) || (!isNaN(value));
    }, "Must be a valid number");

    wineValidator = $("form").validate({
        errorPlacement: function (error, element) {
            var x = element.parent();
            error.appendTo(element.closest("td"));
        },
        ignore: ".voavignore",
        rules: {
            "Wine.VarTypeID": { min: 1 },
            "Wine.OriginID": { min: 1 },
            "Wine.AppID": { min: 1 },
            "Wine.VintageID": { min: 1 },
            "VOAVIRequest.VarType": { required: true },
            "VOAVIRequest.Origin": { required: true },
            "VOAVIRequest.App": …
Run Code Online (Sandbox Code Playgroud)

jquery jquery-validate asp.net-mvc-3

2
推荐指数
1
解决办法
4433
查看次数

ORA-00904和表和列肯定存在

这是Oracle的新手,但我不知道为什么这不起作用,我有点疯了.

我的查询工作正常,但只要我添加第三个连接语句,它就会给我以下错误消息:

这是我的查询.一切看起来都拼写正确,表格和列都存在.TS_ORDER_SEC_SPEC目录中只有一条记录

错误:

Number: 904
ErrorMessage: ORA-00904: "OSS"."ORDER_ID": invalid identifier
Run Code Online (Sandbox Code Playgroud)

SQL:

    select 
  o.from_crrncy as from_crrncy
, o.to_crrncy as to_crrncy
, o.trade_date as trade_date
, o.settle_date as settle_date
, o.order_id as order_id
, oa.exec_broker as oaexecbroker
, o.target_crrncy as given_ccy
From ts_order o
     inner join ts_order_alloc oa on oa.order_id = o.order_id
     inner join TS_ORDER_SEC_SPEC oss on oss.order_id = o.order_id
Run Code Online (Sandbox Code Playgroud)

数据库结构

sql oracle

1
推荐指数
1
解决办法
600
查看次数