Mike, you are correct, I am confused myself, no joke. This seemed like an easy question when it was asked, but after I listened to my own answer,
I quickly realized, I was just as lost as they are.
Here are other questions they asked and perhaps you can help.
(1) Can we use Gridview, Listview and DetailsView with WebMatrix? My Answer was NO, you can not. WebMatrix uses something called WebGrids.
Acts like GridView but slightly different.
(2) Are there any GUI for WebMatrix? My answer was NO. There maybe one in the future.
(3) Can we use Sql Express with WebMatrix? My answer was Yes.
(4) Can we use Stored Procedure and Views with WebMatrix? My answer was No.
cheers,
yousaid.
Mike: When is your Book coming out?
(1) Can we use Gridview, Listview and DetailsView with WebMatrix? My Answer was NO, you can not. WebMatrix uses something called WebGrids.
If you are talking about the Web Pages model, then you are correct. The Server controls (ListView, GridView etc) only work with Web Forms.
yousaid
(2) Are there any GUI for WebMatrix? My answer was NO. There maybe one in the future.
Correct. I haven't heard anything about a Visual Designer, though. My vote would go for full Intellisense over WYSIWYG stuff (which I don't even like - I prefer browsers...)
yousaid
(3) Can we use Sql Express with WebMatrix? My answer was Yes.
Correct. You can use any database. You have the whole of ADO.NET, Linq To SQL, Entity Framework etc available to you.
yousaid
(4) Can we use Stored Procedure and Views with WebMatrix? My answer was No.
Ah. Depends on what you mean. Sql Compact doesn't support stored procs or Views, but SQL Server, Oracle etc do, and since we have already established that you can use those databases, you can use Stored Procs and Views. There is no designer support in WebMatrix
for them, though.
Great catch on #4.
I forgot that part completely. I will definetly be wearing a helment when I give these explanations.
The kids I am talking to seems to be good with Webforms and VS 2010 and just curious about WebMatrix and MVC.
MS should do a better job explaining these things, IMO
Looking forward to your Book. See you are writing with Imar, SpanJaar?? (I have many of his books?
I think there is still a lot of confusion about WebMatrix/Razor/WebPages, especially in relation to VS.net/WebForms/MVC.
Here is what I use to summarize them all:
WebMatrix and VS.net are IDEs, they are basically text editors.
VS.net can be used to create WebForm apps, MVC apps and WebPages apps. VS.net supports projects (having a project file).
WebMatrix is mainly used to create WebPages apps, but can also edit any file just like a text editor could. WebMatrix cannot support project files.
WebForms, MVC and WebPages are frameworks
WebForms came first and uses the asp.net server controls like asp:Lable, asp:TexBox. WebForms apps can be file based or project based.
MVC came second and follows the MVC pattern. MVC apps can only be project based and thus is best edited in VS.net.
WebPages was introduced along with WebMatrix. WebPages apps are only file based. It is similar to classic ASP, but uses the .net framework and helpers to fix some of the issues classic asp has. It's called WebPages because all the server code and markup
are on the same page.
Razor is a view engine
Razor replaces the <% %> server script tags that we used to use with classic ASP, WebForms and MVC. Instead it uses the @{ } syntax.
I think confusion comes in when people think WebMatrix == WebPages because WebMatrix is primarily used to create WebPages apps. But really they are not the same since WebMatrix is an IDE and WebPages is a framework. Further confusion because both WebPages
and MVC can use Razor, but WebForms (as far as I know) does not yet use Razor.
To further confuse things WebForms, MVC and WebPages can use parts of each other since they are all .net. For example as far as I know you cannot use server controls (GridView, ListView, etc) with the WebPages framework if you try to use them in cshtml
files. However, you can use them in a WebPages app that has aspx pages in them as long as the file is an aspx page and follows the WebForms framework... but then your app would technically be a mixed WebForms/WebPages app.
WebMatrix has no GUI for WebPages apps, but does have a GUI for SQL CE 4, IIS 7.5 Express and site reports.
SQL Express can be used by WebForms, MVC and WebPages.
You can use Stored Procedures within the WebPages framework, but you cannot use them with SQL CE 4, which is the default database used by WebMatrix to create WebPages apps.
Well, thanks for your reply. I started out just like this, then some how, I got lost in Technical jargon. Then I looked in the faces of my audience and saw them starring into space !! It became obvious to me that I have lost them. Then the questions followed
fast and furious. I simply promised to find the answers and come back ...some other day.
Then I got home and listened to my own speech, then saw why they were starring into space !!
I see now the answer is not as straight forward as I thought it was.
Instead of buying helments and going back to try the speech again, I will send them to this thread to read for themselves.
They can then use all the answers here from you, Mike and others and perhaps get a better picture. LOL
yousaid
Participant
811 Points
334 Posts
Re: What is the Difference Between an APP developed in WebMatrix and MVC using VS2010?
Apr 18, 2011 06:54 PM|LINK
Mike, you are correct, I am confused myself, no joke. This seemed like an easy question when it was asked, but after I listened to my own answer,
I quickly realized, I was just as lost as they are.
Here are other questions they asked and perhaps you can help.
(1) Can we use Gridview, Listview and DetailsView with WebMatrix? My Answer was NO, you can not. WebMatrix uses something called WebGrids.
Acts like GridView but slightly different.
(2) Are there any GUI for WebMatrix? My answer was NO. There maybe one in the future.
(3) Can we use Sql Express with WebMatrix? My answer was Yes.
(4) Can we use Stored Procedure and Views with WebMatrix? My answer was No.
cheers,
yousaid.
Mike: When is your Book coming out?
Mikesdotnett...
All-Star
154818 Points
19853 Posts
Moderator
MVP
Re: What is the Difference Between an APP developed in WebMatrix and MVC using VS2010?
Apr 18, 2011 07:42 PM|LINK
If you are talking about the Web Pages model, then you are correct. The Server controls (ListView, GridView etc) only work with Web Forms.
Correct. I haven't heard anything about a Visual Designer, though. My vote would go for full Intellisense over WYSIWYG stuff (which I don't even like - I prefer browsers...)
Correct. You can use any database. You have the whole of ADO.NET, Linq To SQL, Entity Framework etc available to you.
Ah. Depends on what you mean. Sql Compact doesn't support stored procs or Views, but SQL Server, Oracle etc do, and since we have already established that you can use those databases, you can use Stored Procs and Views. There is no designer support in WebMatrix for them, though.
Late October.
Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter
yousaid
Participant
811 Points
334 Posts
Re: What is the Difference Between an APP developed in WebMatrix and MVC using VS2010?
Apr 18, 2011 07:58 PM|LINK
Great catch on #4.
I forgot that part completely. I will definetly be wearing a helment when I give these explanations.
The kids I am talking to seems to be good with Webforms and VS 2010 and just curious about WebMatrix and MVC.
MS should do a better job explaining these things, IMO
Looking forward to your Book. See you are writing with Imar, SpanJaar?? (I have many of his books?
cheers
beetledev
Member
750 Points
173 Posts
Re: What is the Difference Between an APP developed in WebMatrix and MVC using VS2010?
Apr 18, 2011 08:01 PM|LINK
I think there is still a lot of confusion about WebMatrix/Razor/WebPages, especially in relation to VS.net/WebForms/MVC.
Here is what I use to summarize them all:
WebMatrix and VS.net are IDEs, they are basically text editors.
WebForms, MVC and WebPages are frameworks
Razor is a view engine
I think confusion comes in when people think WebMatrix == WebPages because WebMatrix is primarily used to create WebPages apps. But really they are not the same since WebMatrix is an IDE and WebPages is a framework. Further confusion because both WebPages and MVC can use Razor, but WebForms (as far as I know) does not yet use Razor.
To further confuse things WebForms, MVC and WebPages can use parts of each other since they are all .net. For example as far as I know you cannot use server controls (GridView, ListView, etc) with the WebPages framework if you try to use them in cshtml files. However, you can use them in a WebPages app that has aspx pages in them as long as the file is an aspx page and follows the WebForms framework... but then your app would technically be a mixed WebForms/WebPages app.
WebMatrix has no GUI for WebPages apps, but does have a GUI for SQL CE 4, IIS 7.5 Express and site reports.
SQL Express can be used by WebForms, MVC and WebPages.
You can use Stored Procedures within the WebPages framework, but you cannot use them with SQL CE 4, which is the default database used by WebMatrix to create WebPages apps.
yousaid
Participant
811 Points
334 Posts
Re: What is the Difference Between an APP developed in WebMatrix and MVC using VS2010?
Apr 18, 2011 08:23 PM|LINK
Well, thanks for your reply. I started out just like this, then some how, I got lost in Technical jargon. Then I looked in the faces of my audience and saw them starring into space !! It became obvious to me that I have lost them. Then the questions followed fast and furious. I simply promised to find the answers and come back ...some other day.
Then I got home and listened to my own speech, then saw why they were starring into space !!
I see now the answer is not as straight forward as I thought it was.
Instead of buying helments and going back to try the speech again, I will send them to this thread to read for themselves.
They can then use all the answers here from you, Mike and others and perhaps get a better picture. LOL
yousaid