Click here to Skip to main content
15,889,876 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
Member 1299209427-Mar-17 6:27
Member 1299209427-Mar-17 6:27 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
ZurdoDev27-Mar-17 7:52
professionalZurdoDev27-Mar-17 7:52 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
Member 1299209427-Mar-17 7:55
Member 1299209427-Mar-17 7:55 
AnswerRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
ZurdoDev27-Mar-17 7:56
professionalZurdoDev27-Mar-17 7:56 
AnswerRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
John C Rayan28-Mar-17 1:06
professionalJohn C Rayan28-Mar-17 1:06 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
Member 1299209428-Mar-17 4:15
Member 1299209428-Mar-17 4:15 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
John C Rayan28-Mar-17 9:27
professionalJohn C Rayan28-Mar-17 9:27 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
Member 1299209428-Mar-17 10:32
Member 1299209428-Mar-17 10:32 
This is the Index view:
@model application.Models.NewFolder1.StudentsCodes
@{
    ViewBag.Title = "Development";
    Layout = "~/Views/Shared/_Layout.cshtml";
  
}


<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <link href="∼/Content/bootstrap.css" rel="stylesheet" />
    <link href="∼/Content/bootstrap-theme.css" rel="stylesheet" />

        <script type="text/javascript" src="~/Scripts/jquery.unobtrusive-ajax.js"></script>
    <script type="text/javascript" src="~/Scripts/jquery-3.1.1.js"></script>

        <script src="~/Scripts/bootstrap.min.js"></script>

    

</head>
<body>
    <div class="navbar navbar-inverse " style="left:0; width:300px;bottom:3px; position:fixed; top:50px; color:#4e4a4a; font:bold;">
        <ul class="nav nav-pills nav-stacked">
            <li>
                
                @Model.Student.UserName
                <ul>
                    <li>
                        
                        CompilerProject
                        <ul>
                            @{
                                var m = Directory.GetDirectories(Server.MapPath("~/Content/" + Model.Student.UserName + "/CompilerProject"));
                                foreach (var subdir in m)
                                {
                                    var name = Path.GetFileName(subdir);
                                    <li>
                                        
                                        @name
                                        <ul id="tree">
                                            @foreach (var file in Directory.GetFiles(Server.MapPath("~/Content/" + Model.Student.UserName + "/CompilerProject/" + name)))
                                            {
                                                var filename = Path.GetFileName(file);

                                                <li class="filelist" value="@("~/Content/" + Model.Student.UserName + "/CompilerProject/src/" + filename)">
                                                    
                                                    @filename
                                                </li>
                                            }
                                        </ul>
                                    </li>
                                }
                            }
                        </ul>
                    </li>
                </ul>
            </li>
        </ul>
    </div>

    
        <div id="partial">
        @{
            Html.RenderAction("DevelopmentPartial", new { path1 = Model.path});
        }
    </div>
   
    
    <script>
         $(document).ready(function () {
             $('.filelist').on('click', function (e) {
                 alert('Im clicked on filePath = ' + $(this).attr('value'));
                 var filePath = $(this).attr('value');    //value is attribute set in Html
                 $('#partial').load('DevelopmentPartial', { path1: filePath });
             });
         });
    </script>

    </body>




</html>

GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
John C Rayan28-Mar-17 9:28
professionalJohn C Rayan28-Mar-17 9:28 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
Member 1299209428-Mar-17 10:34
Member 1299209428-Mar-17 10:34 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
Member 1299209428-Mar-17 10:37
Member 1299209428-Mar-17 10:37 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
Member 1299209428-Mar-17 8:41
Member 1299209428-Mar-17 8:41 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
Member 1299209429-Mar-17 10:15
Member 1299209429-Mar-17 10:15 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
John C Rayan30-Mar-17 2:23
professionalJohn C Rayan30-Mar-17 2:23 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
Member 1299209430-Mar-17 3:34
Member 1299209430-Mar-17 3:34 
GeneralRe: ASP.NET MVC 5, IIS 10 express 404.17 error Pin
John C Rayan30-Mar-17 21:42
professionalJohn C Rayan30-Mar-17 21:42 
QuestionMVC Telerik control cannot upload image more than 4M Pin
Medo-I24-Mar-17 22:04
Medo-I24-Mar-17 22:04 
AnswerRe: MVC Telerik control cannot upload image more than 4M Pin
ZurdoDev27-Mar-17 1:58
professionalZurdoDev27-Mar-17 1:58 
QuestionThe imported project was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk Pin
indian14323-Mar-17 8:07
indian14323-Mar-17 8:07 
AnswerRe: The imported project was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk Pin
User 418025423-Mar-17 11:20
User 418025423-Mar-17 11:20 
GeneralRe: The imported project was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk Pin
indian14323-Mar-17 14:44
indian14323-Mar-17 14:44 
QuestionWEB API - POST handler hangs Pin
Member 1307682222-Mar-17 3:08
Member 1307682222-Mar-17 3:08 
AnswerRe: WEB API - POST handler hangs Pin
Richard Deeming22-Mar-17 4:25
mveRichard Deeming22-Mar-17 4:25 
GeneralRe: WEB API - POST handler hangs Pin
Member 1307682222-Mar-17 5:12
Member 1307682222-Mar-17 5:12 
GeneralRe: WEB API - POST handler hangs Pin
Richard Deeming22-Mar-17 5:29
mveRichard Deeming22-Mar-17 5:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.