我要的效果就是我点击了CheckBox1(我已经阅读了条款,并同意条款的内容)后,按钮Button2(下一步)可用(altas)实现,点击了下一步后。页面进行pageload.
但现在问题就是点击了下一步后.页面没有变化(已经触发了Button2事件)
aspx代码:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="reg.aspx.cs" Inherits="reg" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Language" content="zh-cn" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题 1</title>
<link rel="stylesheet" type="text/css" href="css/reg.css" />
<link rel="stylesheet" type="text/css" href="css/main.css" />
</head>
<body>
<form runat="server" id="form1">
<atlas:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True">
</atlas:ScriptManager>
<div id="divtop">
</div>
<div id="divmain">
<div id="reg_top">注册</div>
<asp:Panel ID="Panel1" runat="server" HorizontalAlign="Center" Width="100%">
<atlas:UpdatePanel ID="UpdatePanel1" runat="server" Mode="Conditional">
<ContentTemplate>
<asp:TextBox Height="250px" ID="TextBox7" runat="server" TextMode="MultiLine" Width="80%"></asp:TextBox><br>
<asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged"
Text="我已经阅读了条款,并同意条款的内容" /><br>
<asp:Button ID="Button2" runat="server" CausesValidation="False" OnClick="Button2_Click"
Text="下一步" />
<asp:Button ID="Button3" runat="server" CausesValidation="False" OnClick="Button3_Click"
Text="取消" />
</ContentTemplate>
</atlas:UpdatePanel>
</asp:Panel>
<asp:Panel ID="Panel2" runat="server" Width="100%">
<div id="reg_main">
<ul>
<li>你的用户名:<asp:TextBox runat="server" id="TextBox1"></asp:TextBox>
</li>
<li>你的密码:<asp:TextBox runat="server" id="TextBox2"></asp:TextBox>
</li>
<li>确认你的密码:<asp:TextBox runat="server" id="TextBox3"></asp:TextBox></li>
<li>密码提示:<asp:TextBox runat="server" id="TextBox4"></asp:TextBox>
</li>
<li>密码提示答案:<asp:TextBox runat="server" id="TextBox5"></asp:TextBox>
</li>
<li>验证码:<asp:TextBox runat="server" id="TextBox6"></asp:TextBox>
</li>
</ul>
</div>
<div id="reg_bot">
<asp:Button ID="Button1" runat="server" Text="下一步" /></div>
</asp:Panel>
</div>
</form>
</body>
</html>