This project is read-only.

重要!紧急!用html的<iframe>标签调用extaspnet页面,则extaspnet页面中的按钮事件无响应。

Nov 29, 2009 at 2:12 PM

我在一个普通的html页面,有如下代码:<iframe src="extaspnet1.aspx" width="500" height="500" id="frame1"></iframe>; 然后在extaspnet1.aspx页面中用的是extaspnet的控件,包括<ext::button>等,但是无论用ext:button的onclientclick还是onclick事件,均无响应,希望大师尽快解决这一问题!

Nov 30, 2009 at 8:21 AM

我刚测试了你说的情况,没有发现问题哦。

你再测试一下或者把测试代码发给我看下。

Feb 3, 2010 at 4:21 AM

痛苦啊,我也遇到了这个问题啊,就报Ext.fly(...)为空或不是对象,郁闷死了,还有个问题就是我用的不是Ext提供的框架,页面分左右两栏,左栏是菜单,右栏式内容,隐藏左栏之后,右栏的页面没有自动放大100%,,而且把我的页面上的东西都撑坏了

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
   <link href="../css/style.css" rel="Stylesheet" type="text/css" />
    <link href="../css/tab2.css" rel="stylesheet" type="text/css" />
    <link href="../css/commontable.css" rel="Stylesheet" type="text/css" />
    <link href="../css/validator.css" rel="Stylesheet" type="text/css" />
    <link href="../css/jquery.suggest.css" rel="Stylesheet" type="text/css" />
    <script language="javascript" src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>    
    <script language="javascript" src="../js/jquery.suggest.js" type="text/javascript"></script> 
<style>
.cursearch
{
	border:solid #8FB7D0; border-width:1px 1px 0px 1px; position:relative;padding-bottom:0px;background:#fff;
	}
	#ulsearch
	{
		margin:0px; padding:0px; width:100%;
		}
	#ulsearch li
	{
		float:left; height:30px;
		}	
</style>  
</head>
<body>
    <form id="form1" runat="server">   
    <ext:PageManager ID="PageManager1" runat="server"  />
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30" style="background:url('images/tab_05.gif')">
    <FrameWorkWebControls:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server"
        HeadOPTxt="票券类型列表" HeadTitleTxt="票券类型列表" ButtonList-Capacity="4" HeadTitleIcon="module.gif">            
        <FrameWorkWebControls:HeadMenuButtonItem ButtonName="添加" ButtonPopedom="New" ButtonUrl="javascript:parent.OpenNewWindow('PCard/CardTypeCtl.aspx','票券类型添加',1000,500);"
            ButtonUrlType="JavaScript" ButtonVisible="True" ButtonIcon="add.gif" />
        <FrameWorkWebControls:HeadMenuButtonItem ButtonName="查询" ButtonPopedom="Search" ButtonUrl="javascript:FunShowSearch();"
            ButtonUrlType="JavaScript" ButtonVisible="True" ButtonIcon="add.gif" />                
    </FrameWorkWebControls:HeadMenuWebControls>
    </td>
  </tr>
   <tr>
    <td>
        <ul id="ulsearch" style="display:none;">
            <li style="width:9px; background:url(../images/tab_12.gif); float:left;"></li>
            <li style="width:9px; background:url(../images/tab_16.gif); float:right;"></li>
            <li style="float:right;">
            <div id="dvsearchContent" style="border:solid 1px #ccc; height:30px; line-height:30px; text-align:right; padding-right:10px; width:800px;">
            <input type="text" id="txttype" style="width:300px;" />
                <input type="button" value="Search" style="width:80px;"  />
            </div></li>            
        </ul>    
         
    </td>
  </tr>
  <tr>
    <td>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="9" background="../images/tab_12.gif">&nbsp;</td>
        <td bgcolor="#E3F5FF">
        <ext:Panel ID="Panel1" ShowBorder="True" ShowHeader="false" runat="server" AutoWidth="true">
            <Items>
            <ext:Grid ID="Grid1" Title="票券类型列表"  ShowBorder="false" ShowHeader="False" Height="505px"
                        AutoHeight="true" AllowPaging="true" runat="server" DataKeyNames="CID" OnPageIndexChange="Grid1_PageIndexChange" 
                        AllowSorting="true" OnSort="Grid1_Sort" OnRowDataBound="Grid1_RowDataBound" AutoWidth="true">
                        <Columns>
                            <ext:BoundField DataField="RowNum"  HeaderText="编号" Width="50px" />
                            <ext:BoundField  DataField="C_Name" HeaderText="名称" SortField="C_Name" ExpandUnusedSpace="true" />
                            <ext:BoundField Width="100px" DataField="C_DBBrand" HeaderText="品牌"   SortField="C_DBBrand" />
                            <ext:BoundField Width="100px" DataField="C_DBType" HeaderText="类型"   SortField="C_DBType" />
                            <ext:BoundField Width="80px" DataField="C_Price" HeaderText="面值"   SortField="C_Price" />
                           <ext:BoundField Width="100px" DataField="C_Format" HeaderText="规格"   SortField="C_Format"/>
                           <ext:BoundField Width="80px" DataField="C_SourceFrom" HeaderText="来源"   SortField="C_SourceFrom"/>
                           <ext:BoundField Width="80px" DataField="W_IsCheck" HeaderText="是否有效"  SortField="W_IsCheck"/>
                            <ext:TemplateField HeaderText="查看" Width="80px">
                                <ItemTemplate>
                                    <a href="javascript:parent.OpenNewWindow('PCard/CardTypeCtl.aspx?ctl=edit&gid=<%# DataBinder.Eval(Container.DataItem, "[CID]") %>','查看会员信息',1000,500);">查看</a>
                                </ItemTemplate>
                            </ext:TemplateField>
                        </Columns>
                    </ext:Grid>
            </Items>
        </ext:Panel>              
        </td>
        <td width="9" background="../images/tab_16.gif">&nbsp;</td>
      </tr>
    </table>
    </td>
  </tr>
  <tr>
    <td height="29">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="29"><img src="../images/tab_20.gif" width="15" height="29" /></td>
        <td background="../images/tab_21.gif">&nbsp;
        
        </td>
        <td width="14"><img src="../images/tab_22.gif" width="14" height="29" /></td>
      </tr>
    </table></td>
  </tr>
</table>
 <input type="hidden" id="hdsearchID" runat="server" />
    <input type="hidden" id="hdsearchkwd" runat="server" />  
    </form>
    <script language="javascript">
        function FunSetGoogleSearch() {
            window.google = {};
            window.google.ac = {};
            window.google.ac.h = CallBack;
            var DataUrl = '<%=strWebSite %>' + 'Ajax/AjaxTip.aspx?ctl=ticktype&kwd=';
            $("#txttype").Suggest({ autoSubmit: false, _requestUrl: DataUrl, showCloseBtn: true });
        }
        function FunShowSearch() {
            var FlagIsShow = $('#ulsearch').css('display');
            if (FlagIsShow == 'none') {
                $('#ulsearch').show();
                $('#dv_search').addClass('cursearch');
                FunSetGoogleSearch();
            }
            else {
                $('#ulsearch').hide();
                $('#dv_search').removeClass('cursearch');
            }
            FunsetDvsearchWidth();
        }
        function FunsetDvsearchWidth() {
            $('#dvsearchContent').width($(document.body).width() - 30);
        }
        $(function() {
            FunsetDvsearchWidth();
        });
</script>      
</body>
</html>
Feb 3, 2010 at 5:08 AM

还有个问题就是那日历控件用在Iframe之后,也报错了,第一次点击之后不显示,第二次点击就报错了,希望快些修正Bug,还有希望绑定数据的时候可以自定义布局,像DataList和Repeater一样绑定数据,

而不是GridView一样的绑定数据