weixin_33695082 2016-05-19 12:19 采纳率: 0%
浏览 18

MVC Ajax renderaction部分

I'm a nube, so my question can be simple, but I'm already stuck for a two days because of it. So, I have an html form, in which client can leave their contact data like

    <input id="name" type="text" placeholder="Имя"><br>
    <input id="Email" type="text" placeholder="E-mail"><br>
    <input id="phonenumber" type="text" placeholder="Телефон"><br>
    <input id="adress" type="text" placeholder="Адрес"><br>
    <textarea id="comment" placeholder="Комментарий"></textarea>
    <button id="submit" class="send" value="Отправить">Отправить</button>

And I wish to catch it on my controller

public ActionResult setupRequest(AirconditioningSetupRequestModel model)
    //model goes to DB
    return View();

How can I deal with that with AJAX? Help me please.

  • 写回答



      相关推荐 更多相似问题


      • ¥30 如何降低hdfs中datanode的JVM内存用量
      • ¥15 Android URL如何转成视频/音频,可行吗?
      • ¥20 SQL数据查询,子查询
      • ¥15 c++字符串分割问题
      • ¥15 关于#sql#的问题:没有用命令关闭cdc,手动把系统表开启的cdc右键删除了
      • ¥15 vue+uniapp
      • ¥15 android freedom
      • ¥15 使用自定义的类型代替内置类型可行吗
      • ¥15 关于STM32的SPI和ENDAT接口编码器通信的问题
      • ¥15 关于#pdfbox#生成的PDF文件正常,转图片中文乱码的问题,如何解决?