【求助】这个javascript怎么写?
前台:
[code=HTML] <asp:DropDownList ID= "DropDownList1 " runat= "server " DataSourceID= "SqlDataSource2 "
DataTextField= "Type " DataValueField= "Type " OnTextChanged= "DropDownList1_SelectedIndexChanged " OnDataBound= "DropDownList1_DataBound " AutoPostBack= "True " > [/code]
DropDownList 控件控制页面的显示结构,通过在绑定数据库的时候判断时候有数据调用脚本隐藏框架A,A是css的层之一
这是脚本
[code=HTML] <script type= "text/C# " language= "jscript ">
function Hide_A(){
A.style.display= "none ";
}
</script> [/code]
后台:
[code=CS]protected void DropDownList1_DataBound(object sender, EventArgs e)
{
if (DropDownList1.SelectedIndex == -1)
{
this.Last.Visible = false;
相关问答:
<form id="form1" runat="server">
<div>
<script type="text/javascript">
function oo(a){
document.getEleme ......
怎么用javascript控制gridview里的RadioButton
对 gridview findcontrol ,找出RadioButton,
然后,对RadioButton ,的Attribute 增加 JS就可以了。
C# code:
for (int i = 0; i < gd ......
前一版在这里
近来看了Dean的“Convert any colour value to hex in MSIE”,终于解决了根据关键字获取颜色rgb值的问题。
顺便把程序也重新整理一番,并使用了最近整理的工具库。
欢迎来我的blog交 ......
在JSP网页内的javascript可以取得及设定要打印的下列信息
var hkey_path = "HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";
var hkey_key_header = hkey_path+"he ......
需要兼容ie firefox safari 等浏览器
IE 可以用FSO 但是在其他浏览器不能用
一般的浏览器处于安全考虑都不允许JavaScript读写本地文件的吧
XML文档内容如下(user.xml):
<?xml version="1.0&qu ......