0
我查看代碼MVC 4:我如何將選定的值DropDownList作爲QueryString參數傳遞?
<tr bgcolor="#FFFFFF">
<td height="36" align="right" bgcolor="#F7F7F7"><strong>System</strong> </td>
<td height="36">
@Html.DropDownListFor(model => model.CSNumber, new SelectList(ViewBag.System, "Value", "Text", Model.CSNumber), "--- All ---", new { @class = "box", id = "ddlSystem" })
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="36" align="right" bgcolor="#F7F7F7"></td>
<td height="36">
System = @Html.Value(**"ddlSystem"**)
<a class="" href="~/jobs/Create?system=<<Currently Selected Value of **"ddlSystem"** up above>>" id="createLink" style="text-decoration: underline">NEW REQUEST</a>
</td>
</tr>
我如何通過當前選定的ddlSystem下拉值,當用戶點擊,即可創建新的請求LINK?