<table width="760" border="0" style="text-align: center;" cellpadding="0" cellspacing="0">
   <tr>
     <td>
       <top:Mtop ID="top" runat="server" />
     </td>
   </tr>
</table>
<div><asp:Label id="aa" runat="server"></asp:Label></div>其中<top:Mtop ID="top" runat="server" />和
<asp:Label id="aa" runat="server"></asp:Label></div>
都有后台代码,但是我想在做个判断,不知道哪个的后台代码先运行

解决方案 »

  1.   

    前面个吧,好像这种东西都是按照先后顺序执行的...
    要不你分别在里面写个js,用alert提示下,看看就知道了。
      

  2.   

    首先执行的是Init事件,再Page_Load() ,要看你的控件在哪了
      

  3.   

    <body style="margin-top: 0px; margin-left: 0px; padding-top: 0px; text-align: center;
        vertical-align: top; background-repeat: repeat-x;">
        <form id="form1" runat="server">
            <div>
                <table width="760" border="0" style="text-align: center;" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <top:Mtop ID="top" runat="server" />                    </td>
                    </tr>
                </table>我的控件在这...