MVC4 Eonasdan Bootstrap 3 Date Time picker doesn´t open the picker screen

前端 未结 2 866
鱼传尺愫
鱼传尺愫 2021-01-23 22:44

I´m using a Bootstrap 3 date AND time picker linked here:

DateTime Picker for Bootstrap 3

I can´t make the picking window open. When you click on the textbox, n

2条回答
  •  梦谈多话
    2021-01-23 22:59

    Your layout can be cleaned up a bit, since MVC4 no longer requires @Url.Content() for virtual paths. You probably also want to look into how the bundling system works. For certain, what you're trying to do will probably work better with sections:

    _Layout.cshtml:

    
    
        
            
            
            TestApp
            
            
    
            
            
            
    
            @RenderSection("head", required: false)
        
    
        
    
            @RenderBody()
    
            
            
    
            @RenderSection("scripts", required: false)
        
    
    

    Index.cshtml:

    @section head
    {
        
    }
    
    @section scripts
    {
        
        
        
    }
    
    

    Using sections lets the view engine inject things like

提交回复
热议问题