1

我已经在 IIS 服务器上部署了我的 MVC 站点。如果我使用http://localhostURL 访问它,它工作正常。但是如果我在 URL 中使用机器名/IP 地址,则某些功能无法正常工作。我想知道为什么会这样。以下是我面临的一些事情

  1. 我在对话框中使用了 JQuery Tab。如果远程访问该站点,该对话框不会提交数据。
  2. 我使用过 JQuery Month 导航器。我可以看到它在 HttpPost 控制器期间提交了正确的月份和年份,但控制器操作不会根据发布的数据重定向。

我不知道为什么它会这样

/* Some code for reference */

@using (Html.BeginForm())
{    
    .....
        <input type="submit" value="Save" class="buttonSave" onclick="return     ConfirmSave();" />                        
    </div> 
}

function ConfirmSave() {
    return confirm('You have selected to copy this entry.\n\n This action cannot be rolled back, and each created entry will need to be deleted independently. Are you sure you want to continue?');
}
4

0 回答 0