none
ie11的问题,急,请帮忙看看 正在做项目 RRS feed

  • 问题

  • 使用UpdatePanel控件做了一个不刷新翻页,我在自己的电脑上把网站部署在IIS上可以翻页,我发布在服务器上就没有效果了。好像就只有IE11有这个问题,其他浏览器都可以的。
    2014年11月12日 3:12

答案

全部回复

  • 你好,請問

    1) VS版本是什麼?

    2) Windows 版本? x86 還是 x64?

    3) 請貼上有關的代碼


    大家一齊探討、學習和研究,謝謝! MCSD, MCAD, MCSE+I, MCDBA, MCDST, MCSA, MCTS, MCITP, MCPD, MCT, Microsoft Community Star(TW & HK), Microsoft MVP for VB.NET since 2003 My MSMVP Blog 請記得將對您有幫助的回覆"標示為解答"以幫助其他尋找解答及參與社群討論的朋友們。 Please remember to click "Mark as Answer" on the post that helps you. This can be beneficial to other community members reading the thread.

    2014年11月12日 3:15
  • VS是2012 Windows是8.1 x64的

    分页是自己做的控件
                ucNewUser.CurrentPageChanged += new UserControl.CurrentPageChangedEventHandler(ucNewUser_CurrentPageChanged);  这是点击首页,上一页、下一页、尾页 的事件


            //ucNewUser事件  上一页、下一页、首页、尾页
            void ucNewUser_CurrentPageChanged(UserControl.Pager sender, int newPage)
            {
                ExecuteQueryData(newPage, queryNewImage, _pageSize);
            }

    //绑定新会员及分页
            private void queryNewImage(Pagination pagination)
            {
                Guid adminId = Guid.Parse("4523ea20-240f-4cc9-98cc-0ce92052cd39");//网站内部会员
                    try
                    {
                        IList<PBaby_Users> us = member.PBaby_Users.Where(u => true && u.Id != adminId).OrderByDescending(u => u.Date).ToList();
                        if (us != null && us.Any())
                        {
                            var startRow = pagination.PageSize * (pagination.PageIndex - 1);
                            var endRow = pagination.PageSize * pagination.PageIndex;
                            IList<PBaby_Users> datas = us.Take(endRow).Skip(startRow).ToList();
                            loadNewUser(datas);//页面加载方法
                            if (datas.Any())
                            {
                                ucNewUser.Visible = true;
                                if (pagination.GetRowCount)
                                {
                                    ucNewUser.RowCount = us.Count();
                                }
                            }
                            else
                            {
                                ucNewUser.Visible = false;
                            }
                            datas = null;
                            us = null;
                        }
                    }
                    catch (Exception)
                    {
                        ShowMessage("新会员加载失败,请刷新!");
                    }
            }


    2014年11月12日 3:21
  • 好像說AJAXToolKit 在 IE11和Win8.1時,會有這情況,應該要等AJAXToolkit 更新新的版本才能解決。

    有些人建議可強迫IE11去用較低版本運作,可加以下去Head 的 tag 中

    <meta http-equiv="X-UA-Compatible" content="IE=9" />

    你也可以參考一下這連結

    http://msdn.microsoft.com/en-us/library/windows/desktop/ff966528(v=vs.85).aspx


    大家一齊探討、學習和研究,謝謝!
    MCSD, MCAD, MCSE+I, MCDBA, MCDST, MCSA, MCTS, MCITP, MCPD,
    MCT, Microsoft Community Star(TW & HK),
    Microsoft MVP for VB.NET since 2003
    My MSMVP Blog

    請記得將對您有幫助的回覆標示為解答以幫助其他尋找解答及參與社群討論的朋友們。
    Please remember to clickMark as Answer on the post that helps you. This can be beneficial to other community members reading the thread.

    2014年11月12日 3:30
  • 。。。在吗?
    2014年11月12日 3:31
  • 那有没有可以能是IIS配置的问题呢? 我本地IIS测试的时候是可以切换的
    2014年11月12日 3:47
  • 先試試用Meta tab。

    另外你可以用Win7和IE11試試,看是否真的是Win8.1和IE11的問題。


    大家一齊探討、學習和研究,謝謝!
    MCSD, MCAD, MCSE+I, MCDBA, MCDST, MCSA, MCTS, MCITP, MCPD,
    MCT, Microsoft Community Star(TW & HK),
    Microsoft MVP for VB.NET since 2003
    My MSMVP Blog

    請記得將對您有幫助的回覆標示為解答以幫助其他尋找解答及參與社群討論的朋友們。
    Please remember to clickMark as Answer on the post that helps you. This can be beneficial to other community members reading the thread.

    2014年11月12日 3:57
  • 我试了Meta tab,在点击我分页按钮的时候, 会报JS 错误_doPostBack 未定义 ,在网上搜了下说是  把该浏览器做降级处理就会报JS错,也给了解决方法的。Win7和我的是一样的,点击是没有效果的。
    2014年11月12日 4:28
  • 。。。还在吗
    2014年11月12日 4:57
  • 我在自己的电脑上把网站部署在IIS上可以翻页,我发布在服务器上就没有效果了。好像就只有IE11有这个问题,其他浏览器都可以的。

    1) 你是用 VS2012 的 IIS  Express 還是用 Window 8.1的IIS?

    2) Server 是 什麼OS? Win2003? Win2008? Win2008R2?

    3) 用Win7 + IE 10 或 IE 9 都沒事?


    大家一齊探討、學習和研究,謝謝!
    MCSD, MCAD, MCSE+I, MCDBA, MCDST, MCSA, MCTS, MCITP, MCPD,
    MCT, Microsoft Community Star(TW & HK),
    Microsoft MVP for VB.NET since 2003
    My MSMVP Blog

    請記得將對您有幫助的回覆標示為解答以幫助其他尋找解答及參與社群討論的朋友們。
    Please remember to clickMark as Answer on the post that helps you. This can be beneficial to other community members reading the thread.

    2014年11月12日 7:26
  • 我本地用的是Win8.1的IIS

    Server是Win2008R2;

    Win7+ie8没事 IE9和IE10没有试过,谷歌,360也是可以的。

    哦,在服务器上会报下面的错,我本地测试的时候就没有这个错。

    在JS报错,
    无法获取未定义或 null 引用的属性“PageRequestManager”和“__doPostBack”未定义

    2014年11月12日 8:20
  • 如果在 IE 11 上,按F12 轉用 IE9 Mode,也會出錯嗎?

    大家一齊探討、學習和研究,謝謝!
    MCSD, MCAD, MCSE+I, MCDBA, MCDST, MCSA, MCTS, MCITP, MCPD,
    MCT, Microsoft Community Star(TW & HK),
    Microsoft MVP for VB.NET since 2003
    My MSMVP Blog

    請記得將對您有幫助的回覆標示為解答以幫助其他尋找解答及參與社群討論的朋友們。
    Please remember to clickMark as Answer on the post that helps you. This can be beneficial to other community members reading the thread.

    2014年11月12日 9:11
  • 是的,还是一样的,好像没有__doPostBack方法,导致不能实现分页。
    2014年11月12日 9:22
  • 如果都一樣,那應該是那一台出問題而已。能找一台電腦,能用IE (非IE11) 看而沒事的,再安裝IE11看看


    大家一齊探討、學習和研究,謝謝!
    MCSD, MCAD, MCSE+I, MCDBA, MCDST, MCSA, MCTS, MCITP, MCPD,
    MCT, Microsoft Community Star(TW & HK),
    Microsoft MVP for VB.NET since 2003
    My MSMVP Blog

    請記得將對您有幫助的回覆標示為解答以幫助其他尋找解答及參與社群討論的朋友們。
    Please remember to clickMark as Answer on the post that helps you. This can be beneficial to other community members reading the thread.

    2014年11月12日 9:33
  • 剛剛發現,有報導說,ASP.NET 在.NET2 和.NET4 中,會偵查IE10 和IE11 出錯誤,建議安裝Service Pack或直上.NET 4.5。

    我忘了問你的.NET版本,在Server上的。(你好像說過,在開發的電腦上是沒問題,對吧?那是.NET 什麼version number?有SP?)

    http://www.hanselman.com/blog/IE10AndIE11AndWindows81AndDoPostBack.aspx


    大家一齊探討、學習和研究,謝謝!
    MCSD, MCAD, MCSE+I, MCDBA, MCDST, MCSA, MCTS, MCITP, MCPD,
    MCT, Microsoft Community Star(TW & HK),
    Microsoft MVP for VB.NET since 2003
    My MSMVP Blog

    請記得將對您有幫助的回覆標示為解答以幫助其他尋找解答及參與社群討論的朋友們。
    Please remember to clickMark as Answer on the post that helps you. This can be beneficial to other community members reading the thread.


    2014年11月12日 9:44
  • 是的,我同意 KenLin的看法,你可以安装一下.net 4.5 在你的 web server(windows server 08 r2) ,然后注册一下:

    aspnet_regiis [options]

    详细信息你可以参考这里:

    http://msdn.microsoft.com/en-us/library/vstudio/k6h9cz8h(v=vs.100).aspx

    #install .net

    http://www.visualstudio.com/downloads/download-visual-studio-vs#net-45


    2014年11月13日 2:44
  • 是.net版本的问题   已解决  谢谢回复
    2014年11月26日 7:26