Answered by:
How to use objectdatasource with MVP pattern in C#.net?

Question
-
User542013751 posted
Hi,
How can we use ObjectDatasource with MVP pattern in ASP.NET application?
In 3-tier architecture there is no Data Access layer,.in place of DAL, I want to consume Web Services and Request and Response is in the form of Custom objects i.e. BusinessRequest and BusinessResponse class type.
Is it possible to merge all these in one solution, MVP, 3-tier web application, No DAL, Only consuming Web Service , BAL, ObjectDataSource, GridView? Please help me ASAP.
Monday, March 22, 2010 4:14 PM
Answers
-
User-952121411 posted
Can you tell me which pattern is the best fit for consuming a Web Service?Can you elaborate on this a bit please? Are you trying to ask which pattern works best with services in general, or are you asking if the MVP pattern can work with web services? Really any pattern can take advantages of consuming a service, or do you need specifics on how to consume services in .NET? Or maybe you meant which abstraction do you interact with the service: Model, View, or Presenter?
If the last question was what you were getting at take a look to the following:
ASP.NET MVP and AJAX posting/webservices:
http://stackoverflow.com/questions/732837/asp-net-mvp-and-ajax-posting-webservices
How do I integrate the ASP .Net Model View Presenter (MVP) pattern and static page methods marked as [WebMethod]?
Design Codes Model View Presenter (MVP) Design Pattern with .NET:
http://aviadezra.blogspot.com/2008/09/mvp-model-view-presenter-design-pattern.html
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, March 25, 2010 1:28 PM
All replies
-
User-952121411 posted
Take a look to the following for more information:
"The contacts list Web page uses an ObjectDataSource control to directly interact with the model to retrieve the list of contacts..."
Model-View-Presenter QuickStarts:
http://msdn.microsoft.com/en-us/library/cc304754.aspx
...or this:
"A mainstay of ASP.NET WebForms development, the ObjectDataSource control allows for easy connection of methods to ASP.NET server controls..."
Model View Presenter via ASP.NET:
http://www.codeproject.com/KB/aspnet/mvp_for_asp.aspx
...lastly:
Model-View-Presenter and GridView via ObjectContainerDataSource Control:
Tuesday, March 23, 2010 10:17 AM -
User542013751 posted
Can you tell me which pattern is the best fit for consuming a Web Service? It would be great if you can send some code to implement that.
Wednesday, March 24, 2010 8:56 AM -
User-952121411 posted
Can you tell me which pattern is the best fit for consuming a Web Service?Can you elaborate on this a bit please? Are you trying to ask which pattern works best with services in general, or are you asking if the MVP pattern can work with web services? Really any pattern can take advantages of consuming a service, or do you need specifics on how to consume services in .NET? Or maybe you meant which abstraction do you interact with the service: Model, View, or Presenter?
If the last question was what you were getting at take a look to the following:
ASP.NET MVP and AJAX posting/webservices:
http://stackoverflow.com/questions/732837/asp-net-mvp-and-ajax-posting-webservices
How do I integrate the ASP .Net Model View Presenter (MVP) pattern and static page methods marked as [WebMethod]?
Design Codes Model View Presenter (MVP) Design Pattern with .NET:
http://aviadezra.blogspot.com/2008/09/mvp-model-view-presenter-design-pattern.html
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, March 25, 2010 1:28 PM