asp.net弹出层扩展研究
来源:互联网 发布:李兴华java实战经典 编辑:程序博客网 时间:2024/06/08 10:31
.aspx代码如下:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="popup.aspx.cs" Inherits="lesson_code_Default2" %>
<!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>
<style type ="text/css">
.pnlPopup { padding:10px; border:1px solid gray; background-color:#eaeaea;}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<myatk:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</myatk:ToolkitScriptManager><%--必要的--%>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<myatk:PopupControlExtender ID="TextBox1_PopupControlExtender" runat="server"
DynamicServicePath="" Enabled="True" ExtenderControlID=""
TargetControlID="TextBox1"
PopupControlID="Panel1"
Position="Bottom"
><%--TargetControlID="TextBox1" 控制方
PopupControlID="Panel1" 弹出方
Position="Bottom"这三个属性的含义要明白--%>
</myatk:PopupControlExtender>
<asp:Panel ID="Panel1" runat="server" CssClass ="pnlPopup">
<p>静态弹出层</p>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:RadioButtonList ID="rblist_1" runat="server" AutoPostBack="True"
onselectedindexchanged="rblist_1_SelectedIndexChanged">
<asp:ListItem >111</asp:ListItem>
<asp:ListItem >222</asp:ListItem>
<asp:ListItem >333</asp:ListItem>
<asp:ListItem >444</asp:ListItem>
</asp:RadioButtonList>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Panel>
</div>
</form>
</body>
</html>
.aspx.cs代码如下:
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;public partial class lesson_code_Default2 : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { } protected void rblist_1_SelectedIndexChanged(object sender, EventArgs e) { TextBox1_PopupControlExtender.Commit(rblist_1.SelectedValue);//构建返回值的方法commit }}效果如下:
- asp.net弹出层扩展研究
- asp.net 弹出div层
- asp.net 弹出层编辑
- asp.net 弹出层编辑
- asp.net弹出层实例
- Asp.net弹出层并且有遮罩层
- Asp.net弹出层并且有遮罩层
- ASP.net弹出层的效果
- Asp.net弹出层并且有遮罩层
- Asp.net弹出层并且有遮罩层
- asp.net弹出层效果,遮盖背景,能实现在弹出层上操作数据
- 支持IE和FF的ASP.NET弹出层
- ASP.NET(C#) 最简单的弹出层
- asp.net中获取Layer弹出层返回值
- jQuery扩展 插件弹出层
- ASP.NET—013:实现带控件的弹出层(弹出框)
- ASP.NET—013:实现带控件的弹出层(弹出框)
- asp.net弹出层效果,遮盖背景的最好!能实现在弹出层上操作数据(比如登陆)
- 【Leetcode】Letter Combinations of a Phone Number算法解析
- 第16周项目2--用指针玩字符串(示例)
- 《Effective C++》学习笔记——条款20
- 鹅鹅鹅
- storm解除twitter4jar包依赖的方法
- asp.net弹出层扩展研究
- ios绘图教程(原文http://www.cocoachina.com/industry/20140115/7703.html)
- Unity学习之查询基础和连接数据库
- 1412101621-hd-排名
- fedora20升级21
- Language Specification for Blocks
- 大学数据结构(c++版) 王红梅版 疑惑——第二章
- Java初级工程师面试题大全
- 复数的加减计算...