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

I have an external link in my application say www.xyztest.com. Today this site works on http protocal. Tommorow it may run on https. So i cant hardcore the protocal in the site. When a user clicks on the link how can i know if the external site works on http or https and takes him to that place?

1457


What describes a query?

519


How can you register a custom server control to a web page?

540


When Cookies are expired in ASP.NET?

570


Explain security types in asp.net?

533






What is the purpose of using MVC programming pattern in ASP.NET?

549


what are the web form events available in asp.net?

555


Should I delete cookies?

489


What are the security types in asp.net?

572


What are directives in asp.net? List down all the important directives.

494


1.how to encrpt query string in asp.net? 2.there are 10000 records then i wnat display 5000 records one gridview and 5000 records another grid view what is the process?

1656


Who creates jsessionid?

558


What are the two types of web pages?

513


Explain the advantages of asp.net.

540


Explain the difference between Web Garden and Web Farm?

546