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

Entity Framework Implementation Using ASP.NET MVP

Rate me:
Please Sign up or sign in to vote.
4.07/5 (10 votes)
13 May 2011GPL33 min read 57K   389   17  
Entity Framework Implementation using ASP.NET MVP
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InputViewPage.aspx.cs"
    Inherits="TestMVPApp.View.InputViewPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table>
            <tr>
                <td colspan="2">
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Literal ID="ltrlFirstName" runat="server">First Name</asp:Literal>
                </td>
                <td>
                    <asp:TextBox ID="txtFname" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Literal ID="ltrlMname" runat="server">Middle Name</asp:Literal>
                </td>
                <td>
                    <asp:TextBox ID="txtMName" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Literal ID="ltrlLastName" runat="server">Last Name</asp:Literal>
                </td>
                <td>
                    <asp:TextBox ID="txtLName" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Literal ID="ltrlAddress" runat="server">Address</asp:Literal>
                </td>
                <td>
                    <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Literal ID="ltrlContactNo" runat="server">Contact Number</asp:Literal>
                </td>
                <td>
                    <asp:TextBox ID="txtContact" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="btnShowData" runat="server" Text="Submit" OnClick="btnShowData_Click" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Literal ID="ltrlMessage" runat="server"></asp:Literal>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>

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
Software Developer
Nepal Nepal
I am a software developer with knowledge of C, C++, PHP, MySQL, C#.Net, ADO.Net, MSSQL Server, Crystal Reports, Asp.Net, Oracle, Asp.Net MVP, MVC, jQuery, javascript, WebService, WCF, Entity Framework and so on. I love to play on New Technologies.

Comments and Discussions