Click here to Skip to main content
15,885,278 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Variables gone during grid insert command Pin
Richard Deeming4-Feb-15 5:41
mveRichard Deeming4-Feb-15 5:41 
Questionasp.net mvc 4 razor, time to learn something new this year. Pin
jkirkerx3-Feb-15 10:56
professionaljkirkerx3-Feb-15 10:56 
AnswerWhat's do you think is the best migration path to a classic asp.net web site to a responsive design? Pin
jkirkerx3-Feb-15 12:46
professionaljkirkerx3-Feb-15 12:46 
GeneralRe: What's do you think is the best migration path to a classic asp.net web site to a responsive design? Pin
F-ES Sitecore5-Feb-15 7:40
professionalF-ES Sitecore5-Feb-15 7:40 
GeneralRe: What's do you think is the best migration path to a classic asp.net web site to a responsive design? Pin
jkirkerx5-Feb-15 9:28
professionaljkirkerx5-Feb-15 9:28 
AnswerRe: asp.net mvc 4 razor, time to learn something new this year. Pin
harsimranb7-Feb-15 7:59
harsimranb7-Feb-15 7:59 
GeneralRe: asp.net mvc 4 razor, time to learn something new this year. Pin
jkirkerx8-Feb-15 11:06
professionaljkirkerx8-Feb-15 11:06 
GeneralRe: asp.net mvc 4 razor, time to learn something new this year. Pin
harsimranb8-Feb-15 11:46
harsimranb8-Feb-15 11:46 
Sure thing! If you have any question, feel free to ask, me and many other members are willing to help. Google also has an abundance of questions and answers.

Just to give you a little perception on the view:

Your controller will pass in a "model" to the View. The model can be your domain object, or a view model. I don't want to go into too many details and make it more confusing. You will learn these things as you get more into Asp.Net Mvc.

The view is a template with all the html and razor code. A sample template will be like this:

HTML
<!-- @ synbol begins Razor Code. Razor engine automatically figures out when razor code ends, so you don't need to do junky <%-- --%> -->
<h1>@Model.Name</h1>
<img src="@Model.ImageUrl" />

The razor templating engine then parses the HTML, fills in the model properties from the controller, and renders the raw HTML in the browser. Asp.MVC does all that automatically on the backend.

This produces clean and concise HTML, and lets you make it as semantic as you like.

It is all very beautiful.
H.B.

GeneralRe: asp.net mvc 4 razor, time to learn something new this year. Pin
jkirkerx8-Feb-15 11:54
professionaljkirkerx8-Feb-15 11:54 
AnswerRe: asp.net mvc 4 razor, time to learn something new this year. Pin
Erik Funkenbusch7-Feb-15 15:15
Erik Funkenbusch7-Feb-15 15:15 
GeneralRe: asp.net mvc 4 razor, time to learn something new this year. Pin
jkirkerx8-Feb-15 11:01
professionaljkirkerx8-Feb-15 11:01 
QuestionHow to convert .vox file format to mp3 format Pin
PR_Chauhan2-Feb-15 20:00
PR_Chauhan2-Feb-15 20:00 
AnswerRe: How to convert .vox file format to mp3 format Pin
Richard MacCutchan2-Feb-15 23:43
mveRichard MacCutchan2-Feb-15 23:43 
GeneralRe: How to convert .vox file format to mp3 format Pin
PR_Chauhan10-Feb-15 3:23
PR_Chauhan10-Feb-15 3:23 
QuestionCount the alphabet and Numeric from a string Pin
Sujith Karivelil31-Jan-15 1:28
professionalSujith Karivelil31-Jan-15 1:28 
AnswerRe: Count the alphabet and Numeric from a string Pin
Peter Leow31-Jan-15 2:35
professionalPeter Leow31-Jan-15 2:35 
AnswerRe: Count the alphabet and Numeric from a string Pin
Anurag Gandhi31-Jan-15 23:25
professionalAnurag Gandhi31-Jan-15 23:25 
Questionforum Pin
Member 1140791030-Jan-15 19:24
Member 1140791030-Jan-15 19:24 
AnswerRe: forum Pin
Anurag Gandhi31-Jan-15 0:17
professionalAnurag Gandhi31-Jan-15 0:17 
QuestionRe: forum Pin
ZurdoDev2-Feb-15 3:12
professionalZurdoDev2-Feb-15 3:12 
Answerform with html css but I don't know asp Pin
Member 1141563430-Jan-15 10:55
Member 1141563430-Jan-15 10:55 
QuestionWhy should I use Interface type of object in Constructor instead of Actual Class Object Pin
Amy Dev29-Jan-15 0:42
Amy Dev29-Jan-15 0:42 
AnswerRe: Why should I use Interface type of object in Constructor instead of Actual Class Object Pin
Anurag Gandhi29-Jan-15 6:28
professionalAnurag Gandhi29-Jan-15 6:28 
AnswerRe: Why should I use Interface type of object in Constructor instead of Actual Class Object Pin
F-ES Sitecore2-Feb-15 2:32
professionalF-ES Sitecore2-Feb-15 2:32 
GeneralRe: Why should I use Interface type of object in Constructor instead of Actual Class Object Pin
Erik Funkenbusch7-Feb-15 15:38
Erik Funkenbusch7-Feb-15 15:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.