Solved

when display the popup should block dropdownlist. I close the popup when I enable the dropdownlist

Posted on 2010-11-11
3
445 Views
Last Modified: 2012-05-10
Hi experts, I have 2 web pages: a father and a popup.
The parent page is
1. edit icon (in a grid view)
2. combo (parent page)
When I press the edit icon calls the popup window. The problem is that this popup appears sometimes combo parent page (overlaps)
I am using asp.net, vb.net, vstudio 2005 and ajax.

what comes to mind is:
1. when you display the popup should block dropdownlist
2. I close the popup when I enable the dropdownlist
If you have another idea would be great

code behind
CType(e.Row.FindControl("ibtnEditarCandidato"), ImageButton).Attributes("OnClick") = "javascript:return parent.pAbrir_MdpopupCandidatosFinalistas('M','" + strNroProvision + "','" + strIdFinalista + "');"

javascript
function pAbrir_MdpopupCandidatosFinalistas(pstrAccion,p_INTIDNUMEROSOLICITUD,p_intidfinalistas){
        var ctrllblAccionModal= document.getElementById('ctl00_lblAccionModal');
          var ctrlpnlModal= document.getElementById('ctl00_pnlModal');
          var btnCerrar = document.getElementById('ctl00_btnCerrarModal');
          var strHtml ;
          
          //btnCerrar.style.display='';                 
          
        
            strHtml='<iframe runat="server" id="ifrModal" width="100%" height="230px" frameborder="0"scrolling="auto" marginheight="0" marginwidth="0" ';
         
           ctrllblAccionModal.innerText=">> Candidato Finalista ";
           strHtml=strHtml + 'src="../ModalPopup/frmEditCandidatosFinalistas.aspx?QS_INTIDNUMEROSOLICITUD='+ p_INTIDNUMEROSOLICITUD +'&QS_intidfinalistas='+ p_intidfinalistas +'"></iframe><br />';
           
            document.getElementById('divFrameMasterModal').innerHTML= strHtml ;
            ctrlpnlModal.style.width = "520px";
            ctrlpnlModal.style.height= "290px";
            fNavegadorCombo(true);
            //fCargarLoadModalWBC(ctrlpnlModal);
            $find('ctl00_mdlModal')._xCoordinate = 280
            $find('ctl00_mdlModal')._yCoordinate = 100
            $find('ctl00_mdlModal').show();
       
     }

The datagrid this in an update panel, i attached the file

dropdownlistOVERLAPS.JPG
block-dropdownlistHTMgenerated.txt
0
Comment
Question by:enrique_aeo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
Mrunal earned 500 total points
ID: 34117836
there are two solutions you can use.
One is simply hide dropdown list when you click on edit button.

Another is use update progress control with iframe.
e.g.
<asp:UpdateProgress ID="MainUpdateProgress" runat="server" DisplayAfter="0"
        AssociatedUpdatePanelID="TestUpdatePanel">
        <ProgressTemplate>
            <div>
                <iframe style="height:100%;width:100%;position:absolute;top:0px;left:0px;
                    border-style:none;border-width:0px; overflow:hidden;"></iframe></div>            
        </ProgressTemplate>
    </asp:UpdateProgress>

Hope this solves your problem.
0
 

Author Comment

by:enrique_aeo
ID: 34120646
You mean replacing the progress you are putting update or create a new one?
0
 
LVL 22

Assisted Solution

by:Mrunal
Mrunal earned 500 total points
ID: 34121179
Considering you have taken update panel.
If you have already added updateprogress control then add only iframe tag from my previous post.

If you have not added any updateprogress control then copy above and paste as it is.

What internally happening is it just covers your whole rendered document with iFrame which is responsible for disabling dropdownlist control.

Hope you get what i mean,
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question