如何在MVC3中禁用DropDownlist?

时间:2012-07-24 12:23:50

标签: asp.net-mvc-3 c#-4.0

我绑定FixedBYId以绑定Dropdownlist ...显示下拉列表不编辑数据

MY View Code
-------------
  <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Gridview_BugTracker.Models.BugTracker_DataHelper>" %>

<!DOCTYPE html>

<html>
<head runat="server">
    <title>BugHistory</title>
</head>
<body>
    <div>

     <%: ViewBag.Title = "BugHistory"%>
    <% using (Html.BeginForm())
       { %>      
      <%:Html.ValidationSummary(true)%>      

        <fieldset>
        <legend>BugHistory</legend>

       <div class="editor-label">
           <%:Html.LabelFor(model => model.FixedByID)%>
        </div>
        <div class="editor-field">
            <%:Html.EditorFor(model => model.EmployeName)%>
            <%:Html.ValidationMessageFor(model => model.EmployeName)%>
        </div>     


        <form action="BugHistory.aspx" method="post">  
        <p> <input type="submit" value="BugHistoryInsert" /></p> 
        </form>           
          </fieldset>   
       <% }%>            
    </div>
</body>
</html>

这对我不起作用。我究竟做错了什么?   任何人都可以帮我这么做吗?

0 个答案:

没有答案