当前位置:网站首页>asp. Net pop-up layer instance
asp. Net pop-up layer instance
2022-07-05 23:15:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm the king of the whole stack
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TestASPNetNewBlock._Default" %>
<!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">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<ul>
<li> Operation 1 </li>
<li> Operation two </li>
<li><asp:Button ID="btnShow" runat="server" Text=" Operation three ( Click me to pop up the layer )" OnClientClick="return ShowBlock();" /></li>
<li> Operation 4 </li>
<li> Operation 5 </li>
</ul>
</div>
<!-- Pop-up layer ,-->
<div id="divNewBlock" style=" border:solid 1px;padding:10px;width:600px;z-index:1001;
position: absolute; display:none;top:50%; left:10%;margin:-50px;">
<div style="padding:3px 15px 3px 15px;text-align:left;vertical-align:middle;" >
<div>
Pop-up layer , Usually in a hidden state , Controls can be placed here , Load data . Operation data, etc .
</div>
<div>
<asp:Button ID="BtnOperation" runat="server" Text=" operation button" OnClientClick="return Operate();"/>
<asp:Button ID="BttCancel" runat="server" Text=" close " OnClientClick="return HideBlock();" />
</div>
</div>
</div>
</form>
</body>
<script type="text/javascript" language="javascript">
function HideBlock() {
document.getElementById("divNewBlock").style.display = "none";
return false;
}
function ShowBlock() {
var set = SetBlock();
document.getElementById("divNewBlock").style.display = "";
return false;
}
function SetBlock() {
var top = document.body.scrollTop;
var left = document.body.scrollLeft;
var height = document.body.clientHeight;
var width = document.body.clientWidth;
if (top == 0 && left == 0 && height == 0 && width == 0) {
top = document.documentElement.scrollTop;
left = document.documentElement.scrollLeft;
height = document.documentElement.clientHeight;
width = document.documentElement.clientWidth;
}
return { top: top, left: left, height: height, width: width };
}
function Operate() {
return false;
}
</script>
</html>Source code address :http://download.csdn.net/detail/yayun0516/8264489
Copyright notice : This article is an original blog article . Blog , Without consent , Shall not be reproduced .
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/117540.html Link to the original text :https://javaforall.cn
边栏推荐
- SPSS analysis of employment problems of college graduates
- 一文搞定class的微观结构和指令
- Realize reverse proxy client IP transparent transmission
- openresty ngx_lua正则表达式
- 2022 R2 mobile pressure vessel filling review simulation examination and R2 mobile pressure vessel filling examination questions
- CJ mccullem autograph: to dear Portland
- Fix the memory structure of JVM in one article
- Krypton Factor-紫书第七章暴力求解
- Tensor attribute statistics
- LeetCode145. Post order traversal of binary tree (three methods of recursion and iteration)
猜你喜欢

Element operation and element waiting in Web Automation

Thoroughly understand JVM class loading subsystem

Codeforces Global Round 19
![[digital signal denoising] improved wavelet modulus maxima digital signal denoising based on MATLAB [including Matlab source code 1710]](/img/b4/af689abb3ad4e25988f2d17152406e.jpg)
[digital signal denoising] improved wavelet modulus maxima digital signal denoising based on MATLAB [including Matlab source code 1710]
![Development specification: interface unified return value format [resend]](/img/3e/8751b818147cabbe22e4ce44af7d24.jpg)
Development specification: interface unified return value format [resend]

Go language implementation principle -- map implementation principle
![[untitled]](/img/8c/607776e79d66acf9282dca127e12e1.jpg)
[untitled]

视频标准二三事

Masked Autoencoders Are Scalable Vision Learners (MAE)

Error when LabVIEW opens Ni instance finder
随机推荐
一文搞定JVM的内存结构
Multi sensor fusion of imu/ optical mouse / wheel encoder (nonlinear Kalman filter)
Design and implementation of secsha system
实现反向代理客户端IP透传
Yiwen gets rid of the garbage collector
透彻理解JVM类加载子系统
Simple and beautiful method of PPT color matching
Go语言实现原理——Map实现原理
3: Chapter 1: understanding JVM specification 2: JVM specification, introduction;
数据库基础知识(面试)
Multi sensor fusion of imu/ electronic compass / wheel encoder (Kalman filter)
Nacos 的安装与服务的注册
Selenium+pytest automated test framework practice
Element operation and element waiting in Web Automation
如何快速理解复杂业务,系统思考问题?
ORB_ SLAM2/3
openresty ngx_ Lua regular expression
Realize reverse proxy client IP transparent transmission
Idea rundashboard window configuration
Sum of two numbers, sum of three numbers (sort + double pointer)