评论在MVC4网络应用程序中响应形式 [英] Comments responce form in MVC4 web app

查看:45
本文介绍了评论在MVC4网络应用程序中响应形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

确定我的MVC4网络应用程序在其中一个页面中联系我们(联系我们)我嵌入了这段代码:

OK firends in my MVC4 web application in one of the pages (Contact us) I embed this code :

<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.

推荐答案

在您想要实现ASP.NET MVC应用程序时,您应该以适当的方式执行它使用模型,视图和控制器。



所以在开始使用MVC之前你应该学习它;在此链接 [ ^ ]你可以找到很多文章,尤其是左边的一套免费培训电影。



我也有关于此的一系列文章,这里是第一篇: MVC Basic Site :步骤1 - 多语言站点骨架 [ ^ ]
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[^]


这篇关于评论在MVC4网络应用程序中响应形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆