Asp.net源码专业站
首页->新闻文章->Asp.net3.5 MVC入门之文章管理源码>>MvcArticleDemo/Views/Article/EditCategory.aspx>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:Asp.net3.5 MVC入门之文章管理源码
当前文件:文件类型 MvcArticleDemo/MvcArticleDemo/Views/Article/EditCategory.aspx[1K,2009-6-12 11:47:57]打开代码结构图
普通视图
		            
1<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="EditCategory.aspx.cs" Inherits="MvcArticleDemo.Views.Article.EditCategory" %> 2<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server"> 3<h2>编辑新闻类别-<%=ViewData.Model.CategoryName %></h2> 4 5 6 7 <form action="<%= Url.Action("update", new { ID=ViewData.Model.ID }) %>" method="post"> 8 9 <table> 10 <% if (ViewData.ContainsKey("ErrorMessage")) { %> 11 <tr> 12 <td colspan="2"> 13 <em class="error"><%= ViewData["ErrorMessage"] %></em> 14 </td> 15 <% } %> 16 </tr> 17 <tr> 18 <td><%= ViewData["CategoryName"]%></td> 19 <td><%= Html.TextBox("CategoryName", ViewData["CategoryName"].ToString() ?? ViewData.Model.CategoryName)%></td> 20 </tr> 21 22 23 24 </table> 25 26 <p></p> 27 28 <input type="submit" value="保存" /> <%= Html.ActionLink("取消", "Index","Home", new { id = ViewData.Model.CategoryName })%> 29 </form> 30</asp:Content> 31
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:Asp.net3.5 MVC入门之文章管理源码
51Aspx.com 版权所有 CopyRight © 2006-2010. 京ICP备06046876号 本站法律顾问:ITlaw-庄毅雄律师
返回顶部
客户服务:点击这里进行客户咨询 业务合作:点击这里洽谈业务合作 合作热线:010-68880146