zoukankan
html css js c++ java
服务器端执行javascript脚本
想实现这样的功能:
单击一个服务器端按钮(登陆)后,如果登陆成功隐藏页面上的一个HTML按钮。
于是想通过在服务器端执行javascript脚本实现;
private
void
Btn_login_Click(
object
sender, System.EventArgs e)
{
string
suid
=
uid.Text;
string
spwd
=
pwd.Text;
//
服务器端javascript
str
+=
"
<script>
"
;
str
+=
"
document.all('Html控件的id').style.display='none';
"
;
str
+=
"
</script>
"
;
Page.RegisterStartupScript(
"
sub
"
,str);
}
作者:
青羽
查看全文
相关阅读:
经典傻逼题
谈谈Spring的IoC之注解扫描
吴裕雄 python 神经网络——TensorFlow 花瓣分类与迁移学习(1)
吴裕雄 python 神经网络——TensorFlow 实现LeNet-5模型处理MNIST手写数据集
吴裕雄 python 神经网络——TensorFlow 花瓣识别2
吴裕雄 python 神经网络——TensorFlow训练神经网络:花瓣识别
吴裕雄 python 神经网络——TensorFlow训练神经网络:卷积层、池化层样例
吴裕雄 python 神经网络——TensorFlow训练神经网络:MNIST最佳实践
吴裕雄 python 神经网络——TensorFlow训练神经网络:不使用滑动平均
吴裕雄 python 神经网络——TensorFlow训练神经网络:不使用隐藏层
原文地址:https://www.cnblogs.com/tenghoo/p/569546.html
最新文章
Efficient store queue architecture
Web的26项基本概念和技术
Web的26项基本概念和技术
Web的26项基本概念和技术
C#语言的几个层次
C#语言的几个层次
C#语言的几个层次
什么时候应该避免写代码注释?
什么时候应该避免写代码注释?
什么时候应该避免写代码注释?
热门文章
身份证号码有效性检测算法 ( js版 转 C#版 )
ACM2040
mac下配置开发环境
LeetCode Problem 90. Subsets II
剑指CopyOnWriteArrayList
算法设计与分析-Week12
6. Go 语言中结构体的使用
Android 代码混淆规则
语义网基础教程笔记(一)
etcd安装部署步骤
Copyright © 2011-2022 走看看