日期:2014-05-17  浏览次数:20561 次

在修改、保存文章页面,怎么直接选择分类
问题1:原来的文章类型,是其它页面@Html.Hidden("TypeId", Request.QueryString["cid"])过来的,现在我想在页面直接选择分类,通过下拉框,就可以出现一个分类列表。
问题2:如果分类列表出来了,但是是中文啊。这里将提交的数据是 int类型: @Html.Hidden("TypeId", Request.QueryString["cid"])

请问该怎么弄,非常感谢




  <fieldset>
        <legend>文章详细信息</legend>
        @if (Model != null)
        {
            <div id="mydiv" style="display: none; text-align: center">
                <img src="@Model.TopImage" id="topimg"/></div>
            @Html.HiddenFor(a => a.Id)
        }
        @Html.Hidden("TypeId", Request.QueryString["cid"])
        <table width="100%">
            <tr>
                <td width="15%">
                    标题:
                </td>
                <td colspan="3">@Html.TextBoxFor(a => a.Title, new { style = "width:80%", maxlength = "80" })
                    @Html.ValidationMessageFor(a => a.Title)
                    
                </td>
            </tr>
            <tr>
                <td>
                    副标题:
                </td>
                <td colspan="3">@Html.TextBoxFor(a => a.Subtitle, new { style = "width:80%", maxlength = "80" })
                </td>
            </tr>
            <tr>
                <td width="15%">
                    作者:
                </td>