@model RazorApp.Models.Album <script type="text/javascript"> $(function () { var msg = '@ViewBag.Message'; if (msg != '') { $('#update-message-disp').show("slow"); } else { $('#update-message-disp').hide(); } $('#btnCancel').click(function () { $("#albumEditDialog").dialog("close"); return false; }); $('#btnOk').click(function () { $("#albumEditDialog").dialog("close"); $('#storeManagerResults').trigger("reloadGrid"); return false; }); }); </script> <script type="text/javascript"> $(function () { $("input:submit, a, input:button", ".styler").button(); $("#datepicker").datepicker(); $("#radio").width(200); $("#radio").buttonset().find('label').width(200); $(".chzn-select").chosen(); $('input[type=text], textarea, input[type=password]').addClass("textbox"); }); </script> @if (Model != null) { using (Ajax.BeginForm("DoDeleteAlbum", new { id = Model.AlbumId }, new AjaxOptions { UpdateTargetId = "albumEdit" })) { <fieldset class="ui-widget"> <legend class="ui-state-legend-default ui-corner-top ui-corner-bottom">Delete Album : @Model.Title </legend> <div class="ui-state-highlight ui-corner-all" style="margin-top: 20px; padding: 0 .7em; width: 500px"> <p> <span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span> <strong>Confirm</strong><br /> Are you sure you want to delete this Album - @Model.Title ?</p> </div> <br /> <table id=""> <tr> <td> <div class="display-label"> Genre</div> <div class="display-field"> @Html.DisplayFor(model => model.Genre.Name) </div> </td> <td> <div class="display-label"> Artist</div> <div class="display-field"> @Html.DisplayFor(model => model.Artist.Name) </div> </td> </tr> <tr> <td> <div class="display-label"> Title</div> <div class="display-field"> @Html.DisplayFor(model => model.Title) </div> </td> <td> <div class="display-label"> Price</div> <div class="display-field"> @Html.DisplayFor(model => model.Price) </div> </td> </tr> <tr> <td colspan="2"> <div class="display-label"> AlbumArtUrl</div> <div class="display-field"> @Html.DisplayFor(model => model.AlbumArtUrl) </div> </td> </tr> <tr> <td colspan="2"> <br /> <input type="submit" value="Delete" /> | <input type ="button" id = "btnCancel" value="Cancel" /> </td> </tr> </table> </fieldset> } } else { <fieldset class="ui-widget"> <legend class="ui-state-legend-default ui-corner-top ui-corner-bottom">Delete Album</legend> <div id="update-message-disp" class="ui-state-highlight ui-corner-all" style="margin-top: 20px; padding: 0 .7em;width: 500px"> <p><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span><strong>Delete Complete!!</strong><br /> @ViewBag.Message </p> </div> <br /> <input type ="button" id = "btnOk" value="OK" /> </fieldset> }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)