Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm very very very brand new to MVC. I have a basic knowledge of ASP.NET. I'm just started learning MVC. I am having a tough time designing a UI. So please help me to design a page in MVC4. I'm used to drag-and-drop based UI building components but not this HTML based designing a page.
Can you please help me to design a page in Razor View?
I believe you find it difficult because you are focusing on the wrong thing. You don't design a page in Razor, you design a page in html/css, the classical way, THEN you add some razor code for data.
For example, copy _Layout.cshtml to Layout.html, modify it to your heart content. Put the CSS and JS scripts back as you would normally do in HTML, use your favorite tool. Once you are done, copy and paste back the razor stuff for JS and CSS, et voila !
If you don't already have a tool for HTML design, you may want to download Microsoft Expression 4 free version: http://www.microsoft.com/en-us/download/details.aspx?id=36179
Hope this helps,
Bernard
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I have already learned asp .net webform and have created projects for college on it but I recently discovered asp.net MVC.
I tried to learn it but it seems way to different in terms of how you build the application and there's a steeper learning curve.
If I have already done asp.net, do I need to learn MVC as well taking in account the future real life projects I might have to do?
Thanks.
You can build any web application using the asp forms.
MVC is great, you don't need to learn it, but if you do you will enjoy it much better than web forms because it is much closer to how web works. I believe that in few years it will be more popular than regular ASP forms.
MVC with Razor gives you more control on the rendered HTML, but on the downside if you don't know HTML and CSS then it is easier to just drop the ASP controls.
One other advantage of the MVC 4, is adding the web API services. Learning MVC is a must to know how to write these useful services.
Well explained pros of mvc on below link
http://www.asp.net/mvc/tutorials/older-versions/overview/asp-net-mvc-overview
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
These days my friends recommend me to use ASP.NET MVC, instead of ASP.Net Web-forms.
But I'm not Optimist to it.
I consulate about this problem and my friends said me that these two technologies have their own place in web programming zone, according to the project type.
Now I want to know what type of projects are better to be developed by ASP.Net MVC?
and the 2nd question, In your opinion is it conceivable that Microsoft abandon this technology?
Nowadays i always use mvc for all my new projects it is much more cleaner code. And you dont have to rely on asp.net web controls i dont think web controls render nice html.
Plus that you dont have to think about viewstates.
ASP.NET mvc can apply on all type of projects it is more the way how you like too code then which type of project. Thats my opionen.
I doubt very much it will be abandoned any time soon.
MVC is a different way of working and probably more suited to a kind of developer as well as a kind of project. It gives better control over your markup and front end code, forces better practice for separation of concerns and hands over a lot more power over how the site works.
This is a broad subject and better suited to https://softwareengineering.stackexchange.com/
If you rely a lot on the ASP.NET Web Controls then you may find MVC difficult to get to grips with at first.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
First of all, this is my first week on MVC 4
Microsoft claims the MVC will be the best web coding solution in the future based on three level framework.
1.Yet in their MVC concept, view and model can talk without controller, can any body tell me why they made that like a circle? What's the benefit behind it?
2.Without the view_state in web form, how can I know if a page is a post back?
Any open-mind ideas are welcomed!
1.Yet in their MVC concept, view and model can talk without controller, can any body tell me why they made that like a circle?
What's the benefit behind it?
View and Model cannot talk without controller. Your view would never have known the Model if the Controller hasn't passed it to.
2.Without the view_state in web form, how can I know if a page is a post back?
Why would you even want to know such thing? This is an artificial concept invented specifically for classic WebForms to alleviate the stateless nature of the HTTP protocol and make Web development ressemble Desktop development. In an MVC application you never need to know anything like that.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Is there any site that offers free jqueryUI templates / demos on jqueryUI being used in Websites. I am a java developer who is working on a web application and know very little about jquery. Going through tutorials is tedious and i prefer learning by examples.
NB: I don't require the whole of jquery, just to add spice to the UI.
So please let me know if there is any such resource as mentioned above. Thanks in advance.
The demos themselves are the best resource IMO, check out the demos section of the jQuery UI site here.
In each demo, let's take for example the dialog demo there's a View Source link with direct code for the example. Also above the demo there's a New Window link to open that sample in a new window to see only that example in action, not the rest of the site, here's what the dialog demo looks like by itself.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
Razor view engine looks promising, so I thought it would be good to contribute with ideas and compile a wish-list of Razor features while the development is just in preview stage.
What are the features you miss today in Spark, Webforms, or early Razor release and would like to be implemented in Razor?
UPD: Why close this question??? What's wrong with creating a feedback loop to Razor developers using this media?
I would like to have a directive to switch off line breaks in HTML output.
#linebreaks off
<span>the three spans</span>
<span>will be rendered</span>
<span>all in one line</span>
#linebreaks on
The above should produce
<span>the three spans</span><span>will be rendered</span><span>all in one line</span>
Need to change source code extensions, to make sure it's not "cshtml" and "vbhtml", but something shorter, like "cz" and "vz".
I want to still be able to specify content type in some sort of directive.
Not we can do this in asp.net mvc:
<%# Page ... ContentType="application/rss+xml" %>
I'm using this for RSS.