- RazorApp.zip
- RazorApp
- App_Data
- ASPNETDB.MDF
- aspnetdb_log.ldf
- MvcMusicStore.sdf
- bin
- Content
- chosen.css
- images
- admin-privilege-icon.png
- chosen-sprite.png
- Home-icon.png
- home-showcase.png
- img_logo.gif
- logo.png
- placeholder.gif
- shopping-cart-icon.png
- textbox_bg.jpg
- ui-bg_flat_55_999999_40x100.png
- ui-bg_flat_75_aaaaaa_40x100.png
- ui-bg_glass_45_0078ae_1x400.png
- ui-bg_glass_55_f8da4e_1x400.png
- ui-bg_glass_75_79c9ec_1x400.png
- ui-bg_gloss-wave_45_e14f1c_500x100.png
- ui-bg_gloss-wave_50_6eac2c_500x100.png
- ui-bg_gloss-wave_75_2191c0_500x100.png
- ui-bg_gloss-wave_85_9fda58_500x100.png
- ui-bg_inset-hard_100_fcfdfd_1x100.png
- ui-icons_0078ae_256x240.png
- ui-icons_056b93_256x240.png
- ui-icons_d8e7f3_256x240.png
- ui-icons_e0fdff_256x240.png
- ui-icons_f5e175_256x240.png
- ui-icons_f7a50d_256x240.png
- ui-icons_fcd113_256x240.png
- jquery-ui-1.8.18.custom.css
- Site.css
- themes
- base
- ui.jqgrid.css
- Controllers
- Global.asax
- Global.asax.cs
- Helper
- Models
- obj
- Debug
- packages.config
- Properties
- RazorApp.csproj
- RazorApp.csproj.user
- Scripts
- ViewModels
- Views
- web.config
- Web.Debug.config
- Web.Release.config
|
@model RazorApp.Models.Album
<script type="text/javascript">
$(function () {
$('#AlbumArtUrl').width(340);
$('#valSum').hide();
$('#btnCancel').click(function () {
$("#albumEditDialog").dialog("close");
$('#storeManagerResults').trigger("reloadGrid");
return false;
});
$('#myForm').bind('invalid-form.validate', function (error, element) {
$('#valSum').show("slow");
return false;
});
var msg = '@ViewBag.Message';
if (msg != '') {
$('#update-message-disp').show("slow");
} else {
$('#update-message-disp').hide();
}
});
</script>
<script type="text/javascript">
$(function () {
$("input:submit, a, input:button", ".styler").button();
$("#GenreId, #ArtistId").chosen();
$('#Title, #Price, #AlbumArtUrl').addClass("textbox");
});
</script>
@if (!ViewData.ModelState.IsValid)
{
<script type="text/javascript">
$(function () {
$('#valSum').show("slow");
});
</script>
}
@using (Ajax.BeginForm("DoEditAlbum", new AjaxOptions { UpdateTargetId = "albumEdit" }))
{
<fieldset class="ui-widget">
<legend class="ui-state-legend-default ui-corner-top ui-corner-bottom">Edit Album :
@Model.Title </legend> <br />
<div id="valSum" class="ui-state-error ui-corner-all" style="padding: 0 .7em; width: 500px">
<p>
<span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span>
<strong>Please correct these Errors</strong> @Html.ValidationSummary(false, "")</p>
</div>
<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>Insert Complete!!</strong><br />
@ViewBag.Message
</p>
</div>
<table id="">
<tr>
<td>
<div class="editor-label">
@Html.HiddenFor(model => model.AlbumId)
@Html.LabelFor(model => model.GenreId, "Genre")
</div>
<div class="editor-field">
@Html.CoolDropDownListFor(model => model.GenreId, (SelectList)ViewBag.GenreId, true)
</div>
</td>
<td>
<div class="editor-label">
@Html.LabelFor(model => model.ArtistId, "Artist")
</div>
<div class="editor-field">
@Html.CoolDropDownListFor(model => model.ArtistId, (SelectList)ViewBag.ArtistId, true)
</div>
</td>
</tr>
<tr>
<td>
<div class="editor-label">
@Html.LabelFor(model => model.Title)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Title)
</div>
</td>
<td>
<div class="editor-label">
@Html.LabelFor(model => model.Price)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Price)
</div>
</td>
</tr>
<tr>
<td colspan="2">
<div class="editor-label">
@Html.LabelFor(model => model.AlbumArtUrl)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.AlbumArtUrl)
</div>
</td>
</tr>
<tr>
<td colspan = "2">
<input type="submit" value="Save" /> | <input type ="button" id = "btnCancel" value="Cancel" />
</td>
</tr>
</table>
</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 member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.