日期:2014-05-17 浏览次数:20401 次
<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %>
<!DOCTYPE html>
<html>
<head runat="server">
<meta name="Author" content="Webdiyer" />
<meta http-equiv="Content-Type" content="text/html;charset=utf8" />
<title>视频点播后台管理</title>
<link href="/Content/Site.min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%:Url.Content("~/scripts/jquery-1.6.4.min.js") %>"></script>
<script type="text/javascript">
$(function() { $('table:not(.nostripe) tr:even').addClass('altRow'); })
</script>
<asp:ContentPlaceHolder ID="HeadContent" runat="server" />
</head>
<body>
<div id="main">
<asp:ContentPlaceHolder ID="MainContent" runat="server" />
</div>
</body>
</html>
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="test.WebVOD.Models"%>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
<script language="javascript" type="text/javascript">
function validate() {
if (jQuery.trim($("#Name").val()) == "") {
alert("专辑名称不能为空");$("#Name").focus();
return false;
}
return true;
}
</script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<h2>新建专辑</h2>
<%= Html.ValidationSummary("验证失败,请录入正确信息后继续") %>
<% using (Html.BeginForm("AddAlbum", "Admin", FormMethod.Post, new { enctype = "multipart/form-data",onsubmit="return validate();" }))
{%>
<fieldset>
<legend>专辑属性</legend>
<p>
<label for="Name">专辑名称:</label>
<%= Html.TextBox("Name", "", new { maxlength = "20", style = "width:420px" })%>
<%= Html.ValidationMessage("Name", "*")%&