我的页面布局从上到下分为3个部分,大体是这样的
A
B
C其中A中有RadioButton1,RadioButton2,当我点击RadioButton1的时候页面布局变成
A
C
这个B的地方会隐藏,C的位置会占用B的位置,当点击另一个RadioButton2的时候
又变为
A
B
C
这样的布局,B的位置又会显现出来我现在的问题就是我不知道B的这个地方应该用什么样的控件,应该使用Panel加上另外一个AJAX控件吧?可是我不知道具体用什么和怎么用,用过ModalPopup控件,可是达不到我要的效果,谢谢指教一下,端午节大家快乐
A
B
C其中A中有RadioButton1,RadioButton2,当我点击RadioButton1的时候页面布局变成
A
C
这个B的地方会隐藏,C的位置会占用B的位置,当点击另一个RadioButton2的时候
又变为
A
B
C
这样的布局,B的位置又会显现出来我现在的问题就是我不知道B的这个地方应该用什么样的控件,应该使用Panel加上另外一个AJAX控件吧?可是我不知道具体用什么和怎么用,用过ModalPopup控件,可是达不到我要的效果,谢谢指教一下,端午节大家快乐
解决方案 »
- 泛型的困惑
- 如何判断这个远程数据库链接是否是连通的??
- .net程序打包,很简单只要知情人回答小弟"能/不能"!马上给分!
- 2.0怎么设置 SmartNavagation=true?
- 如此简单的代码,为什么有错误
- (ASP.NET)把EXCEL文件读入DATASET中出现:Microsoft Jet 数据库引擎打不开文件'C:\Documents and Settings\Administrator\My Documents\W
- ※※※问关于界面组织的问题※※※
- 求助:如何生成一个唯一的用户名
- 如何获得*.aspx?depart=技术部 中的depart参数?是中文的
- 需要做一个类似扫描二维码付款的页面,服务器状态一旦改变立即通知客户端
- 如何对web.config文件里面的mailSettings字节加密
- 点击利用showmodaldialog 打开的对话框中的 button新开另一个对话框后返回值,却新开了一个窗体
而那个style.display="none",我没试过
但是我这个需要无刷新做出来
所以应该用的是AJAX的某一个控件做出来的,对不对?
<head runat="server">
<title>无标题页</title>
<script type='text/JavaScript'>
function showHide()
{
if(document.getElementById("RadioButton1").checked)
{
document.getElementById("B").style.display = "none";
}
else
{
document.getElementById("B").style.display = "block";
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<div id="A">
<asp:RadioButton ID="RadioButton1" runat="server" GroupName="A" />
<asp:RadioButton ID="RadioButton2" runat="server" GroupName="A" />
</div>
<div id="B">
<asp:Label ID="Label1" runat="server" Text="B"></asp:Label>
</div>
<div id="C">
<asp:Label ID="Label2" runat="server" Text="C"></asp:Label>
</div>
</div> </form>
</body>
</html>protected void Page_Load(object sender, System.EventArgs e)
{
RadioButton1.Attributes.Add("onclick", "showHide()");
RadioButton2.Attributes.Add("onclick", "showHide()");
}