Skip to content

Instantly share code, notes, and snippets.

@brianium
Created March 29, 2012 18:10
Show Gist options
  • Save brianium/2241287 to your computer and use it in GitHub Desktop.
Save brianium/2241287 to your computer and use it in GitHub Desktop.
sample aspx for web forms mvp
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="PageView.aspx.cs" Inherits="BissellMVPTest.Web.PageView" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h2>New Post</h2>
<asp:Panel ID="savePanel" Visible="<%# isVisible %>" runat="server">
<p>
Title: <%# Model.Title %>
</p>
<p>
Content:<br />
<%# Model.Content %>
</p>
</asp:Panel>
<div>
<asp:Label runat="server" ID="lblPostTitle" AssociatedControlID="postTitle">Post Title</asp:Label><br />
<asp:TextBox runat="server" ID="postTitle"></asp:TextBox>
</div>
<div>
<asp:Label runat="server" ID="lblPostContent" AssociatedControlID="postContent">Post Content</asp:Label><br />
<asp:TextBox runat="server" TextMode="MultiLine" ID="postContent"></asp:TextBox>
</div>
<div>
<asp:Button runat="server" ID="btnCreatePost" Text="Create Post" OnClick="btnCreatePost_OnClick" />
</div>
</asp:Content>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment