- RazorApp.zip
- RazorApp
- packages
- EntityFramework.4.1.10331.0
- EntityFramework.4.1.10331.0.nupkg
- lib
- jQuery.1.5.1
- Content
- Scripts
- jQuery.1.5.1.nupkg
- jQuery.UI.Combined.1.8.11
- Content
- Content
- themes
- base
- Scripts
- jQuery.UI.Combined.1.8.11.nupkg
- jQuery.Validation.1.8.0
- Content
- Scripts
- jQuery.Validation.1.8.0.nupkg
- jQuery.vsdoc.1.5.1
- Content
- Scripts
- jQuery.vsdoc.1.5.1.nupkg
- Modernizr.1.7
- Content
- Scripts
- Modernizr.1.7.nupkg
- repositories.config
- RazorApp.sln
- RazorApp.suo
- RazorApp
- App_Data
- ASPNETDB.MDF
- aspnetdb_log.ldf
- MvcMusicStore.sdf
- 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
- packages.config
- Properties
- RazorApp.csproj
- RazorApp.csproj.user
- Scripts
- ViewModels
- Views
- web.config
- Web.Debug.config
- Web.Release.config
|
@model RazorApp.Models.Album
@{
ViewBag.Title = "Create";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$('#AlbumArtUrl').width(340);
$('#valSum').hide();
$('#myForm').bind('invalid-form.validate', function (error, element) {
$('#valSum').show("slow");
return false;
});
});
</script>
@if (!ViewData.ModelState.IsValid) {
<script type="text/javascript">
$(function () {
$('#valSum').show("slow");
});
</script>
}
<div class = "styler">
@using (Html.BeginForm ("Create", "StoreManager", FormMethod.Post, new { id = "myForm" }))
{
<fieldset class="ui-widget">
<legend class="ui-state-legend-default ui-corner-top ui-corner-bottom">Create New Album</legend>
<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>
<table id="">
<tr>
<td>
<div class="editor-label">
@Html.LabelFor(model => model.GenreId, "Genre")
</div>
<div class="editor-field">
@Html.CoolDropDownListFor(model => model.GenreId, (SelectList)ViewBag.GenreId, true) <br />
</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) <br />
</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>
<br /> <input type="submit" value="Create" />
</td>
</tr>
</table>
</fieldset>
}
<div>
@Html.ActionLink("Back to List", "Index")
</div>
</div>
|
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.