当前位置:网站首页>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
边栏推荐
- audiopolicy
- Use of grpc interceptor
- Global and Chinese market of networked refrigerators 2022-2028: Research Report on technology, participants, trends, market size and share
- CJ mccullem autograph: to dear Portland
- Finally understand what dynamic planning is
- C Primer Plus Chapter 9 question 9 POW function
- February 13, 2022 -5- maximum depth of binary tree
- Error when LabVIEW opens Ni instance finder
- regular expression
- February 13, 2022-4-symmetric binary tree
猜你喜欢

Commonly used probability distributions: Bernoulli distribution, binomial distribution, polynomial distribution, Gaussian distribution, exponential distribution, Laplace distribution and Dirac delta d

TypeError: this. getOptions is not a function

第十七周作业
![[screen recording] how to record in the OBS area](/img/34/bd06bd74edcdabaf678c8d7385cae9.jpg)
[screen recording] how to record in the OBS area

Error when LabVIEW opens Ni instance finder

fibonacci search

2022 G3 boiler water treatment simulation examination and G3 boiler water treatment simulation examination question bank

MoCo: Momentum Contrast for Unsupervised Visual Representation Learning

Three.js-01 入门

Finally understand what dynamic planning is
随机推荐
利用LNMP实现wordpress站点搭建
媒体查询:引入资源
一文搞定JVM常见工具和优化策略
Leetcode daily question 1189 The maximum number of "balloons" simple simulation questions~
Global and Chinese market of diesel fire pump 2022-2028: Research Report on technology, participants, trends, market size and share
Krypton Factor purple book chapter 7 violent solution
The PNG image is normal when LabVIEW is opened, and the full black image is obtained when Photoshop is opened
Registration of Electrical Engineering (elementary) examination in 2022 and the latest analysis of Electrical Engineering (elementary)
Nacos 的安装与服务的注册
Common JVM tools and optimization strategies
Southeast Asia e-commerce guide, how do sellers layout the Southeast Asia market?
February 13, 2022-4-symmetric binary tree
Common model making instructions
From the perspective of quantitative genetics, why do you get the bride price when you get married
Three.js-01 入门
Commonly used probability distributions: Bernoulli distribution, binomial distribution, polynomial distribution, Gaussian distribution, exponential distribution, Laplace distribution and Dirac delta d
秒杀系统的设计与实现思路
3D point cloud slam
poj 2762 Going from u to v or from v to u? (推断它是否是一个薄弱环节图)
(4)UART应用设计及仿真验证2 —— RX模块设计(无状态机)