* Web.config: Trace may be enabled, as long it is in local mode

* Web.csproj:
* RemoveTitle.aspx: Removes all posts related to a given title

* RemovePost.aspx: Removes a single bill
vnext
Paul Schneider 9 years ago
parent da90e2cb10
commit bfb3e7d973
5 changed files with 37 additions and 3 deletions

@ -1,3 +1,13 @@
2015-07-23 Paul Schneider <paul@pschneider.fr>
* Web.config: Trace may be enabled, as long it is in local
mode
* Web.csproj:
* RemoveTitle.aspx: Removes all posts related to a given title
* RemovePost.aspx: Removes a single bill
2015-07-17 Paul Schneider <paul@pschneider.fr>
* Web.csproj:

@ -8,11 +8,12 @@
<%= Html.LabelFor(model => model.Title) %> :
<%= Html.TextBox( "Title" ) %>
<%= Html.ValidationMessage("Title", "*") %><br/>
Identifiant du post : <%= ViewData["pid"] %><br/>
<span class="preview"><%= Html.Markdown(Model.Content) %></span>
<label for="confirm">supprimer le billet</label>
<%= Html.CheckBox( "confirm" ) %>
<%= Html.ValidationMessage("AgreeToRemove", "*") %>
<%= Html.Hidden("pid") %>
<%= Html.Hidden("returnUrl") %>
<input type="submit"/>
<% } %>

@ -0,0 +1,22 @@
<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<BlogEntryCollection>" MasterPageFile="~/Models/App.master" %>
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
<%= Html.ValidationSummary() %>
<% using (Html.BeginForm("RemoveTitle","Blogs")) { %>
<%= Html.LabelFor(model => model.Title) %> :
<%= Html.TextBox( "Title" ) %>
<%= Html.ValidationMessage("Title", "*") %><br/>
<%= Html.Hidden("UserName") %>
<label for="confirm">supprimer le billet</label>
<%= Html.CheckBox( "confirm" ) %>
<%= Html.ValidationMessage("AgreeToRemove", "*") %>
<%= Html.Hidden("returnUrl") %>
<input type="submit"/>
<% } %>
</asp:Content>

@ -84,7 +84,7 @@ http://msdn2.microsoft.com/en-us/library/b5ysx397.aspx
<add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</httpModules>
<httpRuntime maxRequestLength="52428800" />
<trace enabled="false" localOnly="true" pageOutput="true" requestLimit="10" traceMode="SortByTime" />
<trace enabled="true" localOnly="true" pageOutput="true" requestLimit="10" traceMode="SortByTime" />
<globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="auto" uiCulture="auto" enableClientBasedCulture="true" />
<membership defaultProvider="NpgsqlMembershipProvider" userIsOnlineTimeWindow="1">
<providers>

@ -332,6 +332,7 @@
<Content Include="Views\Calendar\Book.aspx" />
<Content Include="Views\Calendar\ChooseADate.aspx" />
<Content Include="Views\Calendar\ErrorMessage.aspx" />
<Content Include="Views\Blogs\RemoveTitle.aspx" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />

Loading…