zoukankan      html  css  js  c++  java
  • Ext.Window窗口下onclick="Button1_Click",不能提交的问题

     原文地址:http://extjs.com/forum/showthread.php?t=15302&highlight=runat+Window+ASP.NET&page=2

    <%@ Page Language="C#" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <script runat="server">
        
    protected void Button1_Click(object sender, EventArgs e)
        {
            
    this.Label1.Text = "You entered: " + this.TextBox1.Text;
        }
    </script>

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head id="Head1" runat="server">
        
    <title>Ext Window with PostBack support</title>
        
        
    <link href="extjs/resources/css/ext-all.css" rel="stylesheet" type="text/css" />
        
    <script src="extjs/adapter/ext/ext-base.js" type="text/javascript"></script>
        
    <script src="extjs/ext-all.js" type="text/javascript"></script>
        
        
    <script type="text/javascript">
            Ext.onReady(function(){
                var Window1 
    = new Ext.Window({
                    id:
    "Window1",
                    title:
    "Window1",
                    height:
    100,
                    
    200,
                    autoShow:
    true,
                    contentEl:
    "Window1_Content",
                    collapsible: 
    true,
                    bodyStyle:
    "padding: 6px;",
                    renderTo: 
    "form1"
                });
                Window1.show();
                Window1.setPosition(
    200200);
            });
        
    </script>
        
    <style type="text/css">
            
    /* The following styles are only required if NOT using .setPosition */
            
    /*body 
            {
                overflow: hidden;
                margin: 0;
                padding: 0;
                border: 0px none;
            }
            
            html, body 
            {
                height: 100%;
            }
    */
        
    </style>           
    </head>
    <body>
        
    <!--  The following form style attributes are only required if NOT using .setPosition -->
        
    <!--  style="100%; height:100%;" -->
        
    <form id="form1" runat="server">
            
            
    <asp:Label ID="Label1" runat="server" />
            
            
    <div id="Window1_Content">
                
    <asp:TextBox ID="TextBox1" runat="server" /><br />
                
    <asp:Button runat="server" id="Button1" Text="submit" onclick="Button1_Click" />
            
    </div>
            
        
    </form>
    </body>
    </html>
  • 相关阅读:
    51Nod1355 斐波那契的最小公倍数
    Topcoder CyclesNumber 和 ARC96E Everything on It
    CF1236F Alice and the Cactus
    Projecteuler522 Hilbert's Blackout
    Projecteuler584 Birthday Problem Revisited
    CF1187F Expected Square Beauty
    BZOJ3451 Normal 和 CF235D Graph Game
    CF1153F Serval and Bonus Problem
    CTSC2006 歌唱王国
    SDOI2012 走迷宫 和 Gym100591D Fox Rocks
  • 原文地址:https://www.cnblogs.com/xlfj521/p/1404061.html
Copyright © 2011-2022 走看看