当前位置: 代码迷 >> ASP.NET >> 嵌套的Iframe页面地址,后台无法执行Page_Load事件,该怎么解决
  详细解决方案

嵌套的Iframe页面地址,后台无法执行Page_Load事件,该怎么解决

热度:3729   发布时间:2013-02-25 00:00:00.0
嵌套的Iframe页面地址,后台无法执行Page_Load事件
HTML code
      <div id="Layer">        <h3>输入查询码</h3>        <div class="closeMap" onclick="javascript:closeMap(0);">            <img src="images/close.png" alt="关闭窗口" />                </div>        <div class="dArea">            <iframe id="iframe1" name="iframe1" style="height:100%;width:100%;"                 src="SeekCode.aspx?guid=11111111" scrolling="no" frameborder="0">                                              </iframe>        </div>      </div>      <div id="BgLayer" style="position:absolute; display: none;"></div>



SeekCode.aspx 页面代码
HTML code
<%@ Page Language="C#" AutoEventWireup="false" CodeBehind="SeekCode.aspx.cs" Inherits="JNCallCenter.SeekCode" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server">    <title></title>    <link href="css/article.css" rel="stylesheet" type="text/css" />    <script src="supprot/view.js" type="text/javascript"></script></head><body>    <form id="form1" runat="server">       <div style="width:100%;height:100%; font-size:12px;" align="center">           <div>想要查看此问题答复情况,请输入查询码:</div>           <br />           <div valign="middle">             查询码:<input class="tbox_edit" type="text" id="strSeekCode" name="strSeekCode" maxlength="10" runat="server"/>           </div>           <br />           <div>               <span id="span_SeekCodeMsg" style="display: none;"></span>            </div>           <br />           <div>              <input type="button" id="Qurey" name="Qurey" value="提交" onclick="return QuerySeekCode();"/>              <input type="hidden" id="guid" name="guid" runat="server"/>           </div>       </div>    </form></body></html>


我调试时发现SeekCode.aspx.cs 页面,不执行Page_Load事件 这是什么情况?



------解决方案--------------------------------------------------------
AutoEventWireup="false"
要写成
AutoEventWireup="true"
  相关解决方案