我想在框架上放置一个按钮,但是按钮必须放在<form runat="server"></form>中,点击该按钮掉用页面时框架就没了。这个问题怎么解决呀?

解决方案 »

  1.   

    <%@ Register TagPrefix="cc2" Namespace="SolpartWebControls" Assembly="SolpartWebControls" %>
    <%@ Page Language="vb" AutoEventWireup="false" Codebehind="main.aspx.vb" Inherits="mainstage.main" %>
    <%@ Register TagPrefix="cc1" Namespace="System.Web.UI" Assembly="System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE>ERP管理系统</TITLE>
    <META http-equiv="Content-Type" content="text/html; charset=gb2312">
    <style type="text/css">.main {
    FONT-SIZE: 9pt; COLOR: #333333
    }
    </style>
    </HEAD>
    <body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0">
    <table cellSpacing="0" cellPadding="0">
    <tr>
    <td></td>
    </tr>
    </table>
    <table height="2" cellSpacing="0" cellPadding="0" width="100%" border="0">
    <tr vAlign="top">
    <td width="20%" background="IMG/web/top-right.jpg" height="2"><IMG height="66" src="IMG/web/top-new.jpg" width="349"></td>
    <td width="80%" background="IMG/web/top-right.jpg" height="2">
    <table width="100%">
    <tr>
    <td>
    <form runat="server">
    <cc2:solpartmenu id="MainMenu" runat="server" SystemScriptPath="scripts/"></cc2:solpartmenu></form>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    <table height="2" cellSpacing="0" cellPadding="0" width="100%" border="0">
    <tr>
    <td width="22" height="2"><IMG height="20" src="IMG/web/left-conner.jpg" width="31"></td>
    <td class="main" width="982" background="IMG/web/line.jpg" height="2"><STRONG>角色:</STRONG><%=request.cookies("userinfo")("userrole")%>
    <STRONG>姓名:</STRONG><%=request.cookies("userinfo")("username")%>
    <STRONG>部门:</STRONG><%=request.cookies("userinfo")("userbm")%>
    <script language="JavaScript">
    function Go(){return}</script>
    <script src="\mainstage\js\menu\menu_com.js" type="text/javascript"></script>
    </td>
    <td class="main" background="IMG/web/line.jpg" height="2"><asp:label id="time" runat="server" Width="201px" BackColor="#E0E0E0">Label</asp:label></td>
    </tr>
    </table>
    <table cellSpacing="0" cellPadding="0" width="100%" border="0">
    <tr>
    <td width="2%" background="IMG/web/left.jpg"><IMG height="200" src="IMG/web/left.jpg" width="22"></td>
    <td width="98%">
    <table rightMargin="0" topMargin="0" leftMargin="0" bottomMargin="0">
    <tr>
    <td><iframe name="MyFrameTwo" src="../工商学院/common/main.asp" frameBorder="0" width="810" height="800"
    leftmargin="10" topmargin="10" scrollbars="no"></iframe></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </body>
    </HTML>