<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> <%@ Import Namespace="HLWebOKBAdminPlugin.Models" %> <%@ Import Namespace="HLWebOKBAdminPlugin.OKBAdministrationService" %> Detail <% using(Html.BeginForm("SaveChanges", "Problem")) %> <% { %>

Detail

<% // The Model will be filled via the Controller // Maybe we can use here the Problem instead // of the ProblemModel. But this must be changed // in the Controller too! Problem p = ((ProblemModel)Model).Problem; %> <%: Html.Hidden("ProblemId", p.Id.ToString(), p.Id.ToString())%>
Id: <%: Html.Label(p.Id.ToString())%>
Name: <%: Html.TextBox("ProblemName", p.Name, p.Name)%>
Description: <%: Html.TextBox("ProblemDescription", p.Description, p.Description)%>
DataTypeName: <%: Html.TextBox("ProblemDataTypeName", p.DataTypeName, p.DataTypeName)%>
Problem Class:
Platform:
Action:
<% } %> <% using (Html.BeginForm("UploadFile", "Problem", FormMethod.Post, new { enctype = "multipart/form-data" })) {%>
<% Problem p = ((ProblemModel)Model).Problem; %>
File: <%: Html.Hidden("ProblemId", p.Id.ToString(), p.Id.ToString()) %>
Action:
<%: Html.ActionLink("back to Index","Index") %> <% } %>