ActionLink generates a link string that only supports the GET Action download center (Model! Null) {(Html. BeginForm () {the download list purchases some photos at a cost and we will package them for you to download. You can add the images to the download box title number operation (variteminModel) {Html. Encode (it
ActionLink generates a link string that only supports the GET Action download center (Model! = Null) {(Html. BeginForm () {the download list purchases some photos at a cost and we will package them for you to download. When browsing images, you can add them to the title number operation (var item in Model) {= Html. Encode (it
ActionLink generates a link string, website space, and VM. It only supports the GET Action download center (Model! = Null) {(Html. BeginForm () {the download list purchases some photos at a cost and we will package them for you to download. When browsing images, you can add them to the server space and add them to the title number operation (var item in Model) {= Html. encode (item. title) = Html. encode (item. path) <% = Html. actionLink ("delete", "DeleteFromDownloadList", new {id = item. path}) % >}%><%} else {%> sorry, you do not have any download list <%}. The code in Controller [Authorize] public ActionResult DeleteFromDownloadList (string id) {string profileKey = "DownloadList"; ProfileBase profile = ProfileBase. create (User. identity. name); Models. D OwnloadList list = profile. GetPropertyValue (profileKey) as Models. DownloadList; if (list! = Null & list. Items! = Null) {list. items. remove (list. items. firstOrDefault (I => I. path. equals (id); profile. save ();} return RedirectToAction ("Download ");}