当我们在asp.net中使用medelpopextender控件时,如何让其他控件保持活动状态 [英] how to keep other controls to be active when we use medelpopextender control in asp.net

查看:69
本文介绍了当我们在asp.net中使用medelpopextender控件时,如何让其他控件保持活动状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi,

i used modelpopupextender control in asp.net. it works fine. in that control, there is property called cancelcontrolid="imgclose" . so, when i got poped up window i have to close that close button 'X' then only i can click other asp.net controls. but ,how to keep other asp.net controls to be active when we use medelpopextender control in asp.net.

推荐答案

线索在控件名称中 - 它显示一个模态弹出框

看到这个模态窗口的定义 [ ^ ]

如果您希望其他控件处于活动状态 - 可用 - 那么您将需要使用其他控件来显示你的形象
The clue is in the name of the control - it displays a modal popup box
See this definition of a modal window[^]
If you want the other controls to be "active" - available - then you will need to use a different control to display your image


你可以试试这个简单的把戏



clientclick 打开弹出窗口按钮,使用javascript你可以设置弹出div元素样式 static ..

注意:我使用过jquery ..

例如:



You can try this simple trick

On the clientclick of the open popup buttton, using javascript you can set the popup div element style to be static..
note: i have used jquery..
example:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <style type="text/css">

    </style>
    <script src="jquery.js.js"></script>
    <script type="text/javascript">


function (){


这篇关于当我们在asp.net中使用medelpopextender控件时,如何让其他控件保持活动状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆