Click here to Skip to main content
15,919,132 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
OK firends in my MVC4 web application in one of the pages (Contact us) I embed this code :
XML
<div id="respond" class="comment-respond">
    <h2 id="reply-title" class="comment-reply-title">Skriv til Os <small><a rel="nofollow" id="cancel-comment-reply-link" href="/web-forms-mvc-single-page-app-web-pages-comparison/#respond" style="display:none;">Annuller Besked</a></small></h2>
    <form action="http://mysteorisp.com/wp-comments-post.php" method="post" id="commentform" class="comment-form" novalidate>
        <p class="comment-notes">Din e-mail-adresse vil ikke blive offentliggjort. Krævede felter er markeret <span class="required">*</span></p>
        <p class="comment-form-author"><label for="author">Navn <span class="required">*</span></label> <input id="author" name="author" type="text" value="" size="30" aria-required='true' /></p>
        <p class="comment-form-email"><label for="email">Email <span class="required">*</span></label> <input id="email" name="email" type="email" value="" size="30" aria-required='true' /></p>
        <p class="comment-form-url"><label for="url">Hjemmeside</label> <input id="url" name="url" type="url" value="" size="30" /></p>
        <p class="comment-form-comment"><label for="comment">Kommentar</label> <textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>
        <p class="form-allowed-tags">Det må brug disse <abbr title="HyperText Markup Language">HTML</abbr> tags and attributter:  <code>&lt;a href=&quot;&quot; title=&quot;&quot;&gt; &lt;abbr title=&quot;&quot;&gt; &lt;acronym title=&quot;&quot;&gt; &lt;b&gt; &lt;blockquote cite=&quot;&quot;&gt; &lt;cite&gt; &lt;code&gt; &lt;del datetime=&quot;&quot;&gt; &lt;em&gt; &lt;i&gt; &lt;q cite=&quot;&quot;&gt; &lt;strike&gt; &lt;strong&gt; </code></p>
        <p class="form-submit">
            <input name="submit" type="submit" id="submit" value="Send Besked" />
            <input type='hidden' name='comment_post_ID' value='3079' id='comment_post_ID' />
            <input type='hidden' name='comment_parent' id='comment_parent' value='0' />
        </p>
        <p style="display: none;"><input type="hidden" id="akismet_comment_nonce" name="akismet_comment_nonce" value="d44c9fcd3e" /></p><p class="comment-subscription-form"><input type="checkbox" name="subscribe_comments" id="subscribe_comments" value="subscribe" style="width: auto; -moz-appearance: checkbox; -webkit-appearance: checkbox;" /> <label class="subscribe-label" id="subscribe-label" for="subscribe_comments" style="display: inline;">Giv mig besked om opfølgende kommentarer via e-mail.</label></p><p class="comment-subscription-form"><input type="checkbox" name="subscribe_blog" id="subscribe_blog" value="subscribe" style="width: auto; -moz-appearance: checkbox; -webkit-appearance: checkbox;" /> <label class="subscribe-label" id="subscribe-blog-label" for="subscribe_blog" style="display: inline;">Giv mig besked om nye indlæg via e-mail.</label></p>
    </form>
</div><!-- #respond -->


So the question is, is this the only thing I need to do ? do I need to add any Model or Controller Class in the appliction structure.
Posted

1 solution

In you want to implment ASP.NET MVC application you should do it in proper way by using Model, View and Controller.

So before to start using MVC you should learn it; At this link [^] you can find a lot of articles and especially in the left part a set of free training movies.

I have also a series of articles about this, here is the first one: MVC Basic Site: Step 1 – Multilingual Site Skeleton[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900