Click here to Skip to main content
15,902,189 members
Everything / MVP

MVP

MVP

Great Reads

by ASP.NET Community
MVP (Model View Presenter) FrameworkThe MVP pattern is an Architecture Pattern used to build ASP.net applications.  It refers to splitting up the
by robertcarlson8203
Learn how to quickly build mobile apps using a Xamarin with a cloud hosted mobile backend in minutes.
by Mirnes Mrkaljevic
Make WinForms testable
by Amir Jalilifard
Lets take an exciting travel to the land of MVC, MVP and MVVM patterns with our sexy friend : JavaScript

Latest Articles

by Mirnes Mrkaljevic
Make WinForms testable
by robertcarlson8203
Learn how to quickly build mobile apps using a Xamarin with a cloud hosted mobile backend in minutes.
by Amir Jalilifard
Lets take an exciting travel to the land of MVC, MVP and MVVM patterns with our sexy friend : JavaScript
by PureNsanity
Fundamental model and entity design considerations for DB applications using MV* patterns based on Martin Fowler's PEAA and DDD.

All Articles

Sort by Score

MVP 

11 Oct 2013 by ASP.NET Community
MVP (Model View Presenter) FrameworkThe MVP pattern is an Architecture Pattern used to build ASP.net applications.  It refers to splitting up the
19 Feb 2013 by Ksh_Sr
You need replace single quotes (') with four times single quotes next to each other like ('''')in sql.
18 Oct 2011 by Richard MacCutchan
This article[^] by Josh Smith[^] is one of the best on the internet. It is challenging but then, as one of my previous Directors was wont to say "If it was easy the girls could do it".[edit]Out, damned apostrophe![/edit]
18 Oct 2011 by Simon Bang Terkildsen
MVVM is really the pattern you should go for, just spend more time on it and you'll get it. If you absolutely want to use MCV/MVP then see how it's implemented in WinForms and you should be able to implement it in WPF.WPF patterns : MVC, MVP or MVVM or..?[^] might be of some interest to you.
26 Aug 2019 by robertcarlson8203
Learn how to quickly build mobile apps using a Xamarin with a cloud hosted mobile backend in minutes.
19 Jul 2012 by Sandeep Mewara
MVP is good for WinForm or MVC good for WebForms?Yes.Read the following articles to understand the use and differences:Understanding Basics of UI Design Pattern MVC, MVP and MVVM[^]Model View Controller, Model View Presenter, and Model View ViewModel Design Patterns[^]MVVM vs MVP vs...
19 May 2014 by Chathur
I have a DataGridView on the UI (a win form) and model objects stored in a List are shown in the Grid.Since this is MVP pattern, the DataSet returned from the service is converted to a list of Models (Earning) by the manager class and then the it's passed to the view by the presenter as a...
2 Nov 2014 by ToShX
Hi,I have a question about the communication between unkown classen in the MVP-Pattern.The task I got:I have to create a WindowsForms-Application with the MVP-Pattern, which means that the Presenter knows the Viewer (the Form) and the model, but the Viewer and the Model know nothing...
3 Nov 2014 by BillWoodruff
How "formal" an MVP example do you want to create ? Do you want to implement the usual IView interface ? Should every "object" communicate only with the "Presenter" ?Take a look at : [^], [^], [^] for ideas on MVP in WinForms.If you really want "formal," then you will want to modify the...
3 Nov 2014 by BillWoodruff
I think your very close to having a working MVP-like solution. Let me show you how I'd re-structure your Presenter, and give you a partial idea of how the View can interact with the Presenter.First, let's modify the default Application start-up code in the Program.cs Class so that it invokes...
3 Feb 2018 by fastal
OK manifesto here!!! Implementing MVP into an existing 1-layer app app is a rewrite. I wouldn't recommend that unless you have no backlog, and lots of testers for the app. Otherwise, polish off your resume, unless your boss is expecting a re-write and all the delays and retesting that go with...
18 Oct 2011 by biki66
Hi all,I have tried using the MVVM design pattern in WPFbut have found it challenging.Could anyone point me in the direction of some tutorials in how to use MVC/MVP in WPF.I have searched this but unfortunately I havent found anything relevant.Thanks in advance.
7 Dec 2011 by thatraja
Check these CP articlesModel View Presenter with ASP.NET[^]Model View Presenter[^]
5 Jan 2012 by Chaitanya.Uppili
I want to implement a small project in mvp architecture.In my web application i want to get data from back end and bind to dropdown list.where should i write code for binding data to dropdownlist in presenter or in aspx.cs file
5 Jan 2012 by Monjurul Habib
Try following:How to create a DropDownList with ASP.NET MVCDrop-down Lists and ASP.NET MVCGet The Drop On ASP.NET MVC DropDownLists
26 Feb 2012 by Muhammad Omer Khan
Can anyone tell me how to generate crystal report using LINQ to SQL in C# in MVP framework.I will appreciate if someone help me out.Thanks in advance.
27 Feb 2012 by Muhammad Omer Khan
Well I have done it in the end, if anyone want to know please let me know.
22 Mar 2012 by Not Active
The official Microsoft supported framework is ASP.NET MVC, not MVP.If you want an MVP implementation look here Model View Presenter with ASP.NET[^]Otherwise, if you "ALL details", do some research yourself.
19 Jul 2012 by Maxwell Correya
Hi,This post is in relate with how to identify or Concluded on best design pattern to be followed for AJAX based web application or Web application which requires more performance.We have Ajax based web application without MVC/MVP, but performance is a concern. Looking out for any...
10 Dec 2012 by _yaRus_
Hello, CodeProject.I am working on implementation of MVP patter for WinForms application.I have the following View interface declaration:public interface IView{ event EventHandler ViewShown; event EventHandler ViewClosed; void...
18 Dec 2012 by nitin_ion
I have a grid on my page and i am trying to get its edit event in presenter.This is the code i am writing in pageprotected override void OnInit(EventArgs e) { employeeSearchPresenter = new EmployeeSearchPresenter(this); grvEmployeeSearch.RowEditing +=...
19 Feb 2013 by syna syna
hi ,I want to save value in SQLServer database which is inserted in textbox if it has singlequote,I replaced singgle quote using replace("'","''")but when I am displaying it single quote,it is replaced by double quoteI want to show again it with single quote I have triedReplace("'",...
4 Mar 2013 by syna syna
I have popUp with dropdown,textbox and anchor tagWhen I am clicking tab button from dropdown popup is moving downfor this I have modified Tab Index but still same issue exist
20 Mar 2013 by lakshmi priya iyer
Use the above code in the body of your popoup page.
31 May 2013 by Leo Chapiro
I would suggest you do this one: MCSD (Solutions Developer). Take a look: Developer certification path[^]The globally recognized standard for developer excellenceDemonstrate your expertise at designing and developing fast and fluid Windows 8 apps. There are two paths to achieving this...
6 Jun 2013 by syna syna
I Have written code $('#').attr('disabled', 'disabled');this is working fine for Internet ExplorerBut I need for Google ChromeIt is not working for ChromeI need solution for this
6 Jun 2013 by Amol_27101982, India
An asp:Panel just produces a div element. This isn't a form control, it's just there for structure.To disable every input control inside of it, if you are using jQuery, try:$("# input").attr("disabled", true);Or plain ol' JavaScript:var controls =...
11 Jun 2013 by syna syna
function senddescription(context){ var desc;desc = $.trim($("#txtDetails_" + context).val()); var feature = "description";var p ={'description': desc,'feature': feature}var success = function (msg) {...../*some Code*/......} var datatype = "json"; CallHandler(m, p,...
11 Jun 2013 by Anupam Singh
try to put debug point in your handler method.
12 Jun 2013 by syna syna
How to disable div and anchor tag in CHROMEfunctionality of anchor tag is not working in chrome but it is getting displayed as enable...i want to show them in disable modebelow are not working $('a[id*="alinkAdd"]').attr("disabled",...
13 Jun 2013 by Nirav Prabtani
1)Just give id and ,Set runat="server" to div or anchor taglike that. 2) Now set this code wherever you want to disable div or anchor tag at Code Behind.myDiv.Enable=false;otmyDiv.visible=false;
17 Jun 2013 by hsakarp
Hi, I am quite confused with my doing.I am working in MVP project.In a page am using a modal pop-up extender inside that i am displaying a grid with radiobutton on each row.On click of the ok button in modal pop up extender i need to take the selected value and display it in the textbox...
6 Nov 2013 by Teddy Kurian
Hi All,
8 Nov 2013 by Thomas ktg
Refer here,http://msdn.microsoft.com/en-us/library/aa374182(v=vs.85).aspx[^]
18 Mar 2014 by Member 9058073
Presenterif(Download!=null...
13 Apr 2014 by Chathur
Im a beginner to Model-View-Presenter pattern and Im just trying to use it in a sample project for studies.Lets say in my project (a c# win forms app) there is a `Employee Class` and it has properties like `EmployeeID`,`Name`, `Address`, `Designation` etc. Also it has behaviors like...
26 Apr 2014 by Chathur
I’m using MVP pattern for a payroll system as my final year project. There are about 16 entity classes (like employee, client, salary etc.) in the analyzed problem and I have designed the solution as follows…No of UIs(Views) – 18, Separate Presenters and Models for each UI ( 18+18) , One...
8 May 2014 by Chathur
In a win forms application there is a grid view in the UI which should be populated with the details of branch offices of the client. There are about 50 branches. So `GetBranchDetails()` method in the `DataService` class returns a `DataSet` and the `Presenter` class passes that `DataSet` to the...
9 May 2014 by ankum16
In my current organization, I have converted a C++ windows desktop application into WPF, C# desktop application using MVP pattern. But I have not done any kind of documentation like UML designs, class diagrams, object diagrams, composite structure diagram, package diagram, Activity diagram,...
19 May 2014 by Bacchus Beale
There's not enough information to know how your data is related.From doing similar projects with WinForms and DataSets:1. Determine which data was changed: private void theDataGridView_CellValueChanged(object sender, DataGridViewCellEventArgs e){int c = e.ColumnIndex;int r =...
25 May 2014 by Chathur
In a project I have following class relationship. `Employee` and `Client` have a composition relationship with `Company`. So implemented this as follows. class Company { private Employee _Employee {get;set;} // private fields as composition private Client _Client...
25 May 2014 by NewPast
Make your property public not privatepublic Client _Client {get;set;}or add addtional property With public access
4 Aug 2014 by Vishal radadiya
how to use mvp in windows from application??i am new in mvp but i understand basic mvc .but i wont to create windoapp in mvp in c#
4 Aug 2014 by Richard MacCutchan
Please read Code Project Quick Answers FAQ[^] and see https://www.google.com/search?q=mvp%20c%23[^].
3 Nov 2014 by ToShX
Below you will se my code so far.I want to fire an event which have to get catched by the presenter so that he know that he now must call the method to save the nameThe View: namespace MVP_View{ public partial class DataViewer : Form { public delegate void...
19 Nov 2014 by King Fisher
you must need a deep search Watch this Tutorials part-17-25 http://www.youtube.com/watch?v=ItSA19x4RU0&index=17&list=PL6n9fhu94yhVm6S8I2xd6nYz2ZORd7X2v[^]i strongly suggest you to watch the entire pack :)
23 Nov 2014 by DGKumar
How to write methods for CRUD operations using MVP design pattern in windowforms?
23 Nov 2014 by Praneet Nadkar
Hi,Check out this link:http://www.c-sharpcorner.com/UploadFile/ankithakur/mvp-design-pattern-for-window-forms/[^]Regards,Praneet
23 Jul 2015 by OriginalGriff
See here: http://stackoverflow.com/questions/1445094/how-to-implement-mvp-in-console-application[^]
23 Jul 2015 by Sergey Alexandrovich Kryukov
Please see my comment to the question.I have a strong impression that you don't know what you are talking about and don't know what MVP is. How it can be called "MVP console environment"? Most likely, it's about this architectural...
7 Jul 2016 by F-ES Sitecore
Just gain rep by answering questions and\or writing articles. Knowing which section of the site to create questions in helps too as it'll stop your rep being affected via downvoting.
3 Feb 2018 by Onur ERYILMAZ
Hi; I need to change an already developed desktop application.(Application developed by using winforms) The application have already designed UI's with seperate UserControls(ex. PriceOfferRequestUserControl, OrderUserControl etc.), database tables and models. What I want to do is implementing...
18 Dec 2018 by Richard MacCutchan
Sorry but this site does not provide code to order, either free or for money. If you want to hire a programmer then try freelancer.com.
18 Dec 2018 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action. Try it yourself, you may find it is...
10 Dec 2020 by khalid4775
I have MVP project I am trying to display the selected row to 3 textboxs and 1 checkbox : I know I can do it from the CellClick event like so: private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { int index =...
10 Dec 2020 by Richard Deeming
Taking the errors one at a time: The name 'e' does not exist in the current context. Would not happen in the GetDataToTextBox method shown, since e is a parameter to the method. 'object' does not contain a definition for 'Rows' The...
10 Dec 2020 by khalid4775
Thanks For Help Errors removed after fixing the code to be like so : public void GetDataToTextBox(DataGridViewCellEventArgs e) { int index = e.RowIndex;// get the Row Index DataGridViewRow selectedRow =...
15 Dec 2020 by khalid4775
i have forum with picturebox and some texts so i want to insert photo to database how can i do that . my code like so : Models: namespace TestMVP.Models { class OpsModel { public int CustomerID { get; set; } ...
15 Dec 2020 by OriginalGriff
You are close, but your property is the problem: you have declared it as an object which means it "doesn't really have a type". public object CustomerPhoto { get => pictureBox1.Image; set => pictureBox1.Image = value; } Change that, and it should...
15 Dec 2020 by Richard Deeming
Quote: FrmOps f = new FrmOps(); command.Parameters.Add("@CustomerPhoto", SqlDbType.Image).Value = Main_Classes.CLS_Photos.ImageToByteArray(f.MyPictureBox.Image); You create a new, empty instance of your form class, and expect it to magically...
19 Dec 2020 by khalid4775
Hi .... Iam tring to insert data to database table but i need it check befor insert if the inserted data is Exists in database table iam getting this error : CS0120 An object reference is required for the non-static field, method, or property...
19 Dec 2020 by Gerry Schmitz
Just make InsertVisitsTypesParamerter static; it has no "non-local" references: public static SaveResult InsertVisitsTypesParamerter( etc. (Your response to Richard was a non-answer; a repeat of the problem)
28 Dec 2020 by khalid4775
hi ... iam using MVP Design Pattern : I have Two Forms ( Form1 And Form2 ): Form One Has Button which call method in Presenter Class To pass it from Form1 To Form2: iam getting error : System.NullReferenceException: 'Object reference...
28 Dec 2020 by OriginalGriff
You have two different problems here: the first is the error you have noticed "Object reference not set to an instance of an object" which is known as a "null reference exception", and is one of the most common problems we get asked, and it's...
15 May 2023 by Mirnes Mrkaljevic
Make WinForms testable
27 Feb 2018 by Amir Jalilifard
Lets take an exciting travel to the land of MVC, MVP and MVVM patterns with our sexy friend : JavaScript
20 Jan 2014 by David Rogers Dev
A basic introduction to the WinForms MVP framework and how to use it.
25 May 2017 by PureNsanity
Fundamental model and entity design considerations for DB applications using MV* patterns based on Martin Fowler's PEAA and DDD.
20 Jul 2011 by Avtar Sohi
An article on the basics of UI design pattern MVC, MVP and MVVM
30 Apr 2013 by Xomega Team
How to quickly build reusable and flexible WPF, Silverlight, or ASP.NET applications with the powerful Xomega Framework using the best MVVM principles.
7 Jul 2016 by Karthik_Mahalingam
Those who have spent their time answering questions in the forums and writing great articles. MVP status is awarded annually based on ones contributions, and the feedback of the other members. Members of this group get an MVP icon mvp next to their names in the forums and in their...
20 Feb 2013 by Asim Mahmood
string str = "abc'def"; string str1 = str.Replace('\'', '"'); string str2 = str.Replace('"', '\'');
16 Apr 2014 by thatraja
I never worked on MVP so check these articlesModel View Presenter with ASP.NET[^]Building an MVP Framework for .NET. Part 1: The Basics of MVC and MVP[^]Building an MVP Framework for .NET. Part 2: Implementing Core Functionality[^]
7 Jun 2014 by Chathur
In a windows forms payroll application (for a small scale client) I'm planing user permission handling as follows. NOTE : System could be simultaneously used by few users (maximum 3) and the database is at the server side. User Tables in the database. USER (user_id[pk], name,...
7 Jul 2016 by chsandeepkumar
Hello Friends,Could you please someone help with selection process of MVP?What I have tried:I have tried in google , but could not get much information related to this.
13 Jun 2013 by syna syna
Apply this CSS to div$('#divID').addClass('disabledAnchor');IN css file.disabledAnchor a{ pointer-events: none !important; cursor: default; color:white;}
23 Jul 2015 by Member 11859521
namespace ConsoleApplication2{ class Program { static void Main(string[] args) { //What should i do to print list student at here? } } class Student { public int Id { get; set; } public string FirstName {...
19 Nov 2014 by DGKumar
Could you please tell me how to write code for crud operations using mvp. I have searched in gools but there is no proper result.
31 May 2013 by syna syna
HII am working as a software Engineer with one and half year experiance.Now I am working on .Netframework 4.0 (includes Asp.net,C#,SQLServer,ModelViewPresenter(MVP),sharepoint,jQuery,javaScript,HTML)
21 Jan 2015 by vin patil
MVP is a user define Architecture.not a installation for mvp You create MVP Architecture same MVC,Crete 3 solution 1.model 2.view 3. presenter1.model- include all db related files and cs2.presenter-intermediate between view and model 3.view=all asp pages
7 Dec 2011 by jaideep06.jd
Hi its urgent can anyone tell me anything about MVP?How To use it? Does need to install any thing for it? A complete tutorial for it with example with c# asp.net
2 Apr 2013 by syna syna
I have a popup with below controlsdropdown list,textboxes and some labelsThe problem isWhen I select a value from dropdownlist popup is getting prerendered and focus is going to first element of that popup,but our requirement is focus should move from dropdown to next element
3 Jun 2013 by _Amy
Please refer the links below for Exam 70-516:http://www.microsoft.com/learning/en/us/exam.aspx?id=70-516#fbid=ZvZvvG7Duq4[^]Sample Test Papers[^]Sample Exam 70-516 PDF Questions - Tech Exams[^]Exam...
19 Nov 2014 by sajee1
Hi..!I'm new to MVP winform developing. I have a small confusion. I want to compare the textbox value with db and return the matched data to label...How can I do this coding?Thank You
3 Jun 2013 by syna syna
HI I am working as a software Engineer with one and half year experiance. Now I am working on .Netframework 4.0 (includes Asp.net,C#,SQLServer,ModelViewPresenter(MVP),sharepoint,jQuery,javaScript,HTML)Exam 70-516:TS: Accessing Data with Microsoft .NET Framework 4Exam...