In this part of the tutorial, we carry on with the construction of MVP Pattern. First we start with the creation of View interfaces for the UserControls (which we created in PART II). Then we create the presenter classes, which will take the corresponding instances of views and then manipulate the view using Model classes (there by achieving code portability). Once we are done with the presenter classes, we implement the View interfaces in the codebehind of the UserControls. Finally we create a sample ASP.Net web page (typically webform), and use the UserControls for database transactions.
Most Popular (Last 7 days)
- How to send an Email using C# - complete features
- Sending Automated Emails asynchronously using a C# Windows Service in conjunction with Database Email records PART - II
- JQuery POST & GET Request to WCF Service in ASP.Net MVC
- Sending Automated Emails asynchronously using a C# Windows Service in conjunction with Database Email records – Part I
- Create a Simple WCF service against Pubs Database using EF, LINQ – Part I
- Create a Simple WCF Service Client against Pubs Database using EF, LINQ – Part II
- Simple Html Editor based Comments Section with Captcha feature along with Database Interactivity
- Access Code-behind variables in ASPX and JavaScript
- ASP.Net MVC–Simple Application Security using Password Hashing before storing it to Database
- Access JavaScript Variables in Code-Behind Class
Most Popular (All time)
- How to send an Email using C# - complete features (21595 views )
- Sending Automated Emails asynchronously using a C# Windows Service in conjunction with Database Email records PART - II (14165 views )
- Sending Automated Emails asynchronously using a C# Windows Service in conjunction with Database Email records – Part I (8825 views )
- JQuery POST & GET Request to WCF Service in ASP.Net MVC (8757 views )
- Create a Simple WCF service against Pubs Database using EF, LINQ – Part I (8563 views )
- Access Code-behind variables in ASPX and JavaScript (8546 views )
- Create a Simple WCF Service Client against Pubs Database using EF, LINQ – Part II (6852 views )
- Access JavaScript Variables in Code-Behind Class (6679 views )
- Simple Html Editor based Comments Section with Captcha feature along with Database Interactivity (6332 views )
- Data Transfer between two ASP.NET Pages (5788 views )
- Save the World (5121 views )
- Retrieve files from a table in Database using Generic Handler (3936 views )
- ASP.Net MVC–Simple Application Security using Password Hashing before storing it to Database (3790 views )
- Save files to a table in Database using FileUpload control (3490 views )
- AJAX HTML Editor based Contact Form inside UpdatePanel along with UpdateProgress (3416 views )
- How to download files from server to client using a Generic Handler (3051 views )
- JQuery Quickies #1 – GalleryView Plugin by Jack Anderson (2982 views )
- Book Review - MCTS Exam 70-536 Microsoft .NET Framework – Application Development Foundation Self Paced Training Kit - Tony Northrup (2939 views )
- File Download by Anil (2879 views )
- Enumerating, Managing and Monitoring File system using C# (2816 views )
JumpStart Tutorials
- JumpStart # 11 - Xml Comments for code using GhostDoc Extension
- JumpStart # 10 – Display Validation Error Messages in different formats using JavaScript
- JumpStart # 9 – Make Response.Redirect() open in New Blank Window
- JumpStart # 8 – Making Client CallBacks by Implementing ICallBackEventHandler Interface
- JumpStart # 7 – Handling UserControl’s Event from Parent Page
- JumpStart # 6 – Accessing CheckBoxList Control in JavaScript and making a Mandatory Selection Enabled
- JumpStart # 5 – Access Properties of a UserControl from other UserControl in ASP.Net Page
- JumpStart # 4 – validateRequest in ASP.Net
- JumpStart # 3 – ViewStateMode in ASP.Net 4.0
- JumpStart # 2 – OUT Parameter in C#
- JumpStart # 1 - Using Optional And Named Parameters in C#
Latest Entries
Implementing MVP Pattern using UserControls with WCF Database Operations in Entity Framework and LINQ – Part III
RamiVemula on September 30, 2010 at 1:14 am
Filed under:ARTICLE, ASP.Net, C#, Entity Framework, LINQ
Implementing MVP Pattern using UserControls with WCF Database Operations in Entity Framework and LINQ – Part II
RamiVemula on September 30, 2010 at 1:13 am
In this part of the tutorial – We first code for the CustomerService.cs by implementing ICustomerService.cs interface. We use LINQ queries to code database transactions. Then we create a host application (here it is a Console application) which operates the WCF service. Then we create a sample website for implementing MVP Pattern to access WCF. In the website, we implement some UserControls for fetching/updating/deleting records from the database.
Filed under:ARTICLE, ASP.Net, C#, Entity Framework, LINQ
Implementing MVP Pattern using UserControls with WCF Database Operations in Entity Framework and LINQ – PART I
RamiVemula on September 30, 2010 at 1:12 am
First we create a database – ‘CustomersDB’ – with a table in it – ‘Customers’. This table Customers holds the basic data related to each and every customer. Then we create the entity model for this CustomersDB using ADO.Net Entity Framework. After that we create a WCF service with minimal end point configuration to access ServiceContracts which do basic database operations. Instead of coding the data access methods (of the class implementing ServiceContract) in traditional ADO.Net queries, we tend to use LINQ for the same. Once the service is ready, we host it using a Console App. With this we complete the backend of the article. Now we implement the MVP pattern for better separation of UI from its code with the help of presenter class. So we create an interface for both model and view and then implement them in their respective class. Finally we create a UI with some UserControls in it for adding/editing/deleting customers from the front end.
Filed under:ARTICLE, ASP.Net, C#, Entity Framework, LINQ
JumpStart # 2 – OUT Parameter in C#
RamiVemula on May 13, 2010 at 12:49 am
Before looking at the code, Read about – What is JumpStart? <%@ Page Language="C#" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> /* OUT PARAMETER – * 1) OUT parameter is almost in similar with REF keyword (both passes the reference, but not * actual value), but it can be used [...]
JumpStart # 1 – Using Optional And Named Parameters in C#
RamiVemula on May 12, 2010 at 11:25 am
Before looking at the code, Read about – What is JumpStart? <%@ Page Language="C#" %> <%@ Import Namespace="System.Runtime.InteropServices" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> protected void Page_Load(object sender, EventArgs e) { // Call with only name optionalParameterMethod("John"); //call with name and state optionalParameterMethod("Scott", "AK"); //call with name, state and [...]






