473,395 Members | 1,595 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

MVC design in c# PLEASE HELP!!!!!!

i am trying to implement a C# program using MVC .
i am implementing MVC design in desktop application not web application

I have Made two classes
temporarily i have not made control classs to avoid complexity.

1.DATACLASS
(Uses connection class to fetch data from database and upload it to presentation class.this class interactes with the database only)

2.PRESENTATIONCLASS
(this class is only the GUI class and events are used against form load and buttons which uses the dataclass to upload data in the presentation class)

the problem is
i have declared the object of dataclass in presentation class
and the object of presentation class in dataclass

it gives me an exception of
STACK OVER FLOW OCCURED

QUESTION?
HOW CAN I IMPLEMENT THE MVC ?
CAN I DECLARE EACH OBJECT IN EACH CLASS?
ANY OTHER SUGGESTION?
CAN U HELP ME?
Jun 30 '08 #1
1 945
Plater
7,872 Expert 4TB
Don't create recursive loops.
You're missing the point of model view controller.
Jun 30 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Andrew Thompson | last post by:
I have a (rather challenged) css design for my site logo at http://www.lensescapes.com/tst/photologo.jsp It shows not only the current rendering of the design, but also has links to the CSS...
1
by: Jack S | last post by:
Hi, I am currently working on an winforms client app. It has three main forms for user input. I am having trouble with a good design for persisting the user input. The user input will be used...
2
by: Mike | last post by:
Hi I have been tasked with converting my pulp and paper mills weekly projected and actual contractor hrs excel spreadsheet into a an Access 97 database. So far my design has been to use a...
2
by: John C | last post by:
I am trying to develop a access database version 2002 from scratch and I am a novice programmer and need much direction. I have been researching and studying about relational database design and...
2
by: Frank | last post by:
Hi everyone, I have a general class design question. I come from a VB5-6 background where I made applications that used an active x dll to access the database. In the VB world each class was in a...
2
by: Tim Smith | last post by:
I have 20-50 methods (C# or Java) with the following identical content which I wish to write only once! public SomeObjOrVoid MethodDiffSigEachTime(SomeParams p) { ResouceObj resObj = null;...
7
by: Jack Addington | last post by:
I've got a fairly simple application implementation that over time is going to get a lot bigger. I'm really trying to implement it in a way that will facilitate the growth. I am first writing a...
1
by: epigram | last post by:
I'm creating a data-centric asp.net application that will be using SQL Server 2000. I'm looking for some articles, design tips, etc. to help me decide how I should design my application. I...
9
by: Angelos | last post by:
First of all I need to thank you in advance... Now I 'll try to show you what I want do and if you can, tell me how My class should be composed. I have a CMS. I add content and that Content can...
2
by: Haas C | last post by:
Hey all, I created a Query (in Design View) which asks the user for an "As Of Date" which would then display relevant data. I put in the Criteria Row of the Query Design for the Date field. Is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.