Div上的多视图或Java脚本 [英] multiview or Java script on Div

查看:63
本文介绍了Div上的多视图或Java脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一组控件(文本框和单选按钮)。除此之外,一些控件应该在单击按钮时显示按钮1。单击按钮2时应该可以看到其他控件组。

我有两个替补(据我所知)..

1.mutliview更新面板以避免回发

2.单独的div和按钮点击java脚本管理的可见性



请建议哪一个是最佳选择

I have a set of controls (text boxes and radio buttons) . Out of this some controls should be visible on click of a button say "Button 1" .Other set of controls should be visible on click of "Button 2".
I have two alternates( in my knowledge) ..
1.mutliview with update panel to avoid post back
2. separate div and visibility managed by java script on button click

Please advice which one is the best option

推荐答案

看起来就像第二个会更整洁。
Looks like the second one will be neater.


这篇关于Div上的多视图或Java脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆