What is mvc structure? given example?
How to show gridview control from business components and
using class object arrays?

Answer Posted / aj

Hi

MVC is an Architecture developed on top of .NET Framework.
Where they have concept of Model which is your databse
related stuff, and View Which is presenter (.aspx) files
and Controller (Which controles the action of your
application this is something from your regulat asp.net
website...
Controller tells what to do and when to do and here the
concept of Postback is not there any more...neither you
have the facility of ViewState......

This is one reason you may not be able to use your grid
view as effectively as earlier in asp.net
website/applications (when you are using MVC)...

As there is no postaback concept any more between client
and server it makes it possible to test your controller
actions even when your application is not running (F5)....

Hence this helps us do Test Driven Development of the
application...where you can write Test Cases first and then
do the development as it can be tested offline......

You may not be able to include Unit Test Project if you are
using Visual Web Developer as for this you need VS
2008....And MVC installed in your machine.....

For grid view you can refer to
http://blog.maartenballiauw.be/post/2008/06/Code-based-
ASPNET-MVC-GridView.aspx....it might help...

All the best

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who creates jsessionid?

566


Explain what does mvc represent in asp.net? : asp.net mvc

502


Why do we need a web application session?

512


Explain the different types of assemblies?

529


can any one find and tell the difference between dot net and php which one is best ? which one we get more salary? which one is stable and which one is best for freshers and also better in future and carrer ? which one we wil get more salary sir ? please send ur valuable suggestions to kiranpulsar2007@gmail.com

1483






Explain an object, class and method.

562


What is server side session?

523


Why asp.net is used?

559


What are web server controls in asp.net?

556


Which tool you have done?

1482


Is there any alternative to avoid name collisions other then Namespaces?

575


Explain the purpose of storyboard.targetproperty.

523


when a request is made in Life cycle of ASP.NET page .

533


What websites use asp.net?

524


List down the sequence of methods called during the page load.

531