Click here to Skip to main content
15,860,861 members
Articles / Web Development / ASP.NET

Take MVC to the Next Level in .NET

Rate me:
Please Sign up or sign in to vote.
4.62/5 (11 votes)
30 Apr 2013GPL315 min read 73K   858   75  
How to quickly build reusable and flexible WPF, Silverlight, or ASP.NET applications with the powerful Xomega Framework using the best MVVM principles.
<%@ Page Title="Store ReadList Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="_StoreReadListPage.aspx.cs" Inherits="MyProject4.Client.Web.StoreReadListPage" %>

<%@ Import Namespace="MyProject4.Client.Objects" %>
<%@ Register src="~/Errors.ascx" tagname="Errors" tagprefix="asp" %>
<%@ Register tagprefix="asp" Namespace="System.Web.UI.WebControls" %>
<asp:Content xmlns:asp="clr-namespace:System.Web.UI.WebControls" ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
   <h2>Store ReadList Page</h2>
   <asp:Panel runat="server" ID="pnlCriteria" GroupingText="Search Criteria">
      <table style="width: 100%;">
         <tr>
            <td class="fieldColumn">
               <div class="field">
                  <asp:Label runat="server" ID="lblCustomer" CssClass="label" Text="Customer:"></asp:Label>
                  <asp:TextBox LabelID="lblCustomer" ID="ctlCustomer" Property="<%# StoreCriteria.Customer %>" runat="server" CssClass="integer"></asp:TextBox>
               </div>
               <div class="field">
                  <asp:Label runat="server" ID="lblCreatedDateFrom" CssClass="label" Text="Created Date From:"></asp:Label>
                  <asp:TextBox LabelID="lblCreatedDateFrom" ID="ctlCreatedDateFrom" Property="<%# StoreCriteria.CreatedDateFrom %>" runat="server" CssClass="date"></asp:TextBox>
               </div>
            </td>
            <td class="fieldColumn">
               <div class="field">
                  <asp:Label runat="server" ID="lblCreatedDateTo" CssClass="label" Text="Created Date To:"></asp:Label>
                  <asp:TextBox LabelID="lblCreatedDateTo" ID="ctlCreatedDateTo" Property="<%# StoreCriteria.CreatedDateTo %>" runat="server" CssClass="date"></asp:TextBox>
               </div>
            </td>
         </tr>
      </table>
   </asp:Panel>
   <div>
      <asp:Errors ID="errors" runat="server"></asp:Errors>
   </div>
   <div>
      <asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" CssClass="searchButton"></asp:Button>
      <asp:Button ID="btnReset" runat="server" Text="Reset" OnClick="btnReset_Click" CssClass="searchButton"></asp:Button>
   </div>
   <asp:Panel ID="pnlResults" runat="server">
      <asp:GridView runat="server" ID="grdResults">
         <Columns>
            <asp:TemplateField HeaderText="Customer Id">
               <ItemTemplate>
                  <asp:HyperLink runat="server" NavigateUrl="~/Gen/_StoreObjectPage.aspx?CustomerId={value}" ID="fldCustomerId" Property="<%# StoreRowObject.CustomerId %>"></asp:HyperLink>
               </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Name">
               <ItemTemplate>
                  <asp:Label runat="server" ID="fldName" Property="<%# StoreRowObject.Name %>"></asp:Label>
               </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Sales Person Id">
               <ItemTemplate>
                  <asp:Label runat="server" ID="fldSalesPersonId" Property="<%# StoreRowObject.SalesPersonId %>"></asp:Label>
               </ItemTemplate>
            </asp:TemplateField>
         </Columns>
      </asp:GridView>
      <asp:HyperLink runat="server" ID="lnkCreateNew" Text="Create New..." NavigateUrl="~/Gen/_StoreObjectPage.aspx"></asp:HyperLink>
   </asp:Panel>
</asp:Content>

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.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
Architect Xomega.Net
United States United States
Xomega Team is striving to increase productivity and development quality by utilizing Model Driven Development coupled with Code Generation and the best design practices for application development.
We provide MDD tools, code generators and frameworks for Visual Studio and .Net development.
Visit us at http://www.xomega.net
This is a Organisation

1 members

Comments and Discussions