.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Trying to add a validationGroup to a ModalPopupExtender

Posted By:      Posted Date: October 14, 2010    Points: 0   Category :ASP.Net

I am trying to add my validationGroup to display in a popup box however all I seem to show is just the close button. Can someone tell me what I am doing wrong ?

 <asp:Button ID="btnSubmit" runat="server" Text="Next" OnClick="btnSubmit_Click" Width="100px" CausesValidation="true" ValidationGroup="vgProfile"/>
        <asp:Panel ID="pnValidation" runat="server">        
        <asp:ValidationSummary ID="vsValidation" EnableClientScript="false" runat="server" ValidationGroup="vgProfile" />
            <asp:Button ID="btnClose" runat="server" Text="Close" />
        <ajaxToolkit:ModalPopupExtender ID="mpeValidatoin" runat="server"

View Complete Post

More Related Resource Links

ModalPopupExtender animated gif not animating


Hi, I'm trying to use the modalPopup extender to show a "processing" message with an animated gif.  Everything works pretty well except that any animated gif I place in the modalextender doesn't animate.  Anyone know of this problem and a solution?


html for the popup div:

<div align="center" style="margin-top: 13px; vertical-align: middle; display: none"

class="modalPopup" id="modalPanel" runat="server">

<table border="0"

AjaxToolkit:ComboBox not working in ModalPopupExtender

Hello,I have two nested modal popup. The ComboBox does not work as expected as you can see frome this screenshot. As you can see it misses:The list is not visible even if I think that is in the background. In fact the "SuggestAppend" works perfectly.The ComboBox arrow button is not visible. On zooming the green circle you can see that it shrinked to a size of 4x4 pixelsAdditional info: jquery is used for tabs & datePicker (in the first popup) and Buttons (always)EDIT: Forgot to include  the server side code. Here it is:<ajaxToolkit:ComboBox ID="dataPhoneType2" runat="server" DataSourceID="phoneTypeDS" DataValueField="PhoneTypeId" DataTextField="Description" AutoPostBack="False" DropDownStyle="DropDownList" AutoCompleteMode="SuggestAppend" RenderMode="Inline" CaseSensitive="False"></ajaxToolkit:ComboBox>Is this a bug?Regards

Are ModalPopupExtender and AsyncFileUpload.OnClientUploadComplete incompatible?

A ModalPopupExtender works fine with a panel as the target control and the panel has an AsyncFileUpload control. However as soon as AsyncFileUpload.OnClientUploadComplete is set to something (e.g. onclientuploadcomplete="alert('hello');"),  the panel is not hidden on page load.Is there any compatibility issue here?

ModalPopupExtender don´t show panel by code

Hi all,   I´m trying to do a simple thing using asp.net. I wanna show a modal popup panel from a server procedure with vb.net.  The error is: The popup don´t show when I click cmdTest Button. OBS: I used cmdTest just to call the procedure.  In my project, one button call a procedure that will or not call other procedure that will or not show the panel. Can anyone please tell me what´s wrong with the following code ?   Thanks in advance ...   -- aspx --<%@ Page Title="" Language="VB" MasterPageFile="~/Principal.master" AutoEventWireup="false" CodeFile="Autores.aspx.vb" Inherits="Autores" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <asp:Button ID="cmdTest" runat="server" Text="Click Here" /> <asp:Button ID="cmdHidden" runat="server" Text="HiddenButton" Visible="false" /> <asp:ToolkitScriptManager ID="ToolkitSc

Reload IFrame+ModalPopUpExtender Content

Hi all, I have a small issue with ModalPopupExtender. It opens in an Iframe initially, and shows the page: add_contact.aspx After I have entered the contact details, the IFrame redirects to the contact_details.aspx page to show what I have loaded. The problem is when I close that modalpopup-window and click again to show the modalpopup, the iFrame shows the contact_details.aspx page, and not the add_contact.aspx page. Anyways, I can resolve this, without using modalPopup.show() in code behind? Thanks

ModalPopupExtender not displaying image

Hi guys,I have a modal popup extender with an asp:image control,  and 2 buttons.I have tried to load the image from a file on the local project folder which I have dynamically created through serverside code, but it will not display the image however I tried.here are the codes of the modalpopupextender and the hidden popup panel:            <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server"                 TargetControlID="lbtn_HiddenLinkButton" BackgroundCssClass="ModalBackground"                 DropShadow="true" OkControlID="btn_DoneCropping"                 CancelControlID="btn_CancelCropping" PopupControlID="pnl_Cropper">            </asp:ModalPopupExtender>            <asp:Panel ID="pnl_Cropper" runat="server" CssClass="ModalPopup" style="display:none">              &

Ajax ModalPopUpExtender inside ModalPopUpExtender

Hi, I have a modal popup extender with one control (ascx) this control has a label that on onclic method call other popup extender. It's has other ascx, it's has a button for a search. When I do Click in this button in first time, the event click not fired and there are a javascript error that say "this._activeDRagVisual is null reference".In the other hand, If a use de second popup inside an asp page the event and control work correctly. The problem is with the popup inside popup.Thanks.

cancelControlID not hiding ModalPopupExtender with updatepanel

Dear All, after long term searching on google for a solution of my problem, i couldnt find any result, the idea im trying to achieve: 1- create image buttons by reading images from folder 2- add eventhandler on each image button so that it retreaves the sponsor data and display it in datalist + adding trigger on my update panel. the problems are: 1-the code works fine BUT the cancel control id in the modal popup extender not closing the panel. 2- the below code not working with firefox and chrome. the code: NOTE: the script manager in the master page. <%@ Page Language="VB" MasterPageFile="~/MainMasterPage.master" AutoEventWireup="false" CodeFile="testing.aspx.vb" Inherits="testing" title="Untitled Page" %><%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %><asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"><script type="text/javascript" language="javascript">                    //  register for our events            Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequest);&nbs

Dynamic Content In A ModalPopupExtender & Open A New Browser Window

Ok, after searching on how to do this and trying many different ways and failing, I finally got something working.  So, I decided to post it here to help anyone else that might be trying to do the same thing.  If anyone sees a better way to do this then please let me know. I want to populate an update panel with addresses so I use a repeater.  I want the user to click a link and that causes a modal popup to appear for the user to enter thier address so that they can get driving directions to the address listed in the Repeater.  I needed a way to get the address the user was driving to, to also be inside the modal popup because I need to pass it along later.  The reason the list of addresses are in an updatepanel are for paging purposes.  I've used a simple version of the repeater in this example though.<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <HTML> <body> <form id="Form1" method="post" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> <asp:UpdatePanel ID="myMainPanel" runat="server" EnableViewState=false> <ContentTemplate> <asp:Repeater ID="rptItems" runat="server" EnableViewState=false> <ItemTemplate>

modalpopupextender with frameset

Hi I have a typical frameset page that separate the page into Top, Left and Main. I want to add modalpopupextender on the frameset page so that it covers the WHOLE SCREEN. ------------- Default.aspx file --------------- <form id="form1" runat="server"><div>    <div style="display: none">        <asp:button id="btnPopup" cssclass="ms-button" runat="server" />    </div>    <asp:toolkitscriptmanager id="ScriptManager1" runat="server">        </asp:toolkitscriptmanager>    <asp:panel id="Panel1" runat="server" style="display: none" cssclass="modalPopup">            some text here.                    <asp:Button ID="btnClose" runat="server" Text="Close" OnClick="btnClose_Click" />        </asp:panel>    <asp:modalpopupextender id="Panel1_ModalPopupExtender" runat="server" dynamicservicepath=""   

ModalPopupExtender in a Gridview

Hi all, I have a gridview with a template field containing a Button and a modal popup extender. I would like to populate the panel with the information from the row ... is there any way to do this? Thanks in advance.

javascript to hide ModalPopupExtender not working

Hello, I've seen some other posts about this but never found a resolution to it. I have a gridview control with another gridview inside each row. I'm using a masterpage and I have a TabContainer to boot and of course updatepanels. I'm showing my gridview child via a modal popup extender. It shows great and other JQuery operations are working as expected. I have a pageLoad javascript that does the following: function pageLoad(sender, args) {      $addHandler(document, "keydown", OnKeyPress);   } And, function OnKeyPress(args) {      if (args.keyCode == Sys.UI.Key.esc) {         var mp = $find('<%=mpe1.clientid%>');         mp.hide();      }   } The var mp seems to be returning an object as '<%=mpe1.clientid%>' returns the clientid, and the mp.hide() line executes without error. It doesn't hide the popup however. What can be the problem?S

ModalPopupExtender hides behind iFrame

I am working with .Net 2.0 using Visual Studio 2005 and the corresponding AjaxControlToolkit .  I have a master page with a ModalPopupExtender that appears some number of seconds before the browser session times out.  Everything works perfect, except for one condition.  One of the web pages has an iFrame used to display a PDF.  If the user is on this page and the modal popup is displayed, the modal popup hides behind the iFrame and the user cannot see it. I have seen a few posts regarding this issue, but no resolution.  Maybe the problem is fixed in .Net 3.5 and above, but I cannot migrate to the newer version just yet, so resolving the problem as it is would be awesome and much appreciated!   Thanks.

UpdatePanelAnimationExtender in ModalPopUpExtender IE Issue

UpdatePanelAnimationExtender in ModalPopUpExtender leads to a white/blank screen in IE. Works flawlessly in FF and Chrome.I already tested <FadeIn Duration="0.5" Fps="50" forceLayoutInIE="true" />What is the friggin' problem ?!


i used ModalPopupExtender to show gridview (with paging and searching) inside it. But when i click page number index, popup lostPls help how to solve thi.

Need help with ModalPopupExtender and ValidatorCalloutExtender with server validation

I've spent a lot of time with trying to figure out this problem, but without success, I have problem with positioning ValidatorCalloutExtender on panel (with display:none) within ModalPopupExtender after OnServerValidateHere is my code:<asp:Panel ID="panMPEDispensing" runat="server" Width="400px" Height="400px" Style="display: none"> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <asp:CustomValidator ID="cvFocus" runat="server" ErrorMessage="<b>Required Field Missing</b><br />value is wrong." ControlToValidate="TextBox1" Display="None" ValidateEmptyText="true" OnServerValidate="cvFocus_ServerValidate" /> <cc1:ValidatorCalloutExtender runat="Server" ID="cveFocus" TargetControlID="cvFocus" HighlightCssClass="ValidatorCalloutHighlightCssClass" /> <asp:Button ID="btnMPEDispensingCancel" runat="server" Text="Cancel" CausesValidation="false" /> <asp:Button ID="btnMPEDispensing" runat="server" Style="display: none" CausesValidation="false" /> </asp:Panel> <asp:Button ID="Button1" runat="server"

Dynamic ModalPopupExtender within a Custom server control

Hi folks,   I have this piece of code which paint an ImageButton and show a dynamic ModalPopupExtender (with 2 buttons btnGuardar and btCancel). The issue is neither btGuardar.Click nor btHidden.Click events are raised but ImageButton Click event is raised correctly. Please can you help mee?  protected HtmlGenericControl _divControlContainer = new HtmlGenericControl(); protected ModalPopupExtender _PopupHandler = new ModalPopupExtender(); protected override void CreateChildControls() { Page.Trace.Write("void CreateChildControls()"); _divControlContainer = new HtmlGenericControl("ivContenedor"); Button btHidden = new Button(); btHidden.ID = "hiddenTargetControlForModalPopup"; btHidden.Style.Add(HtmlTextWriterStyle.Display, "none"); btHidden.Click += new EventHandler(event_HiddenTargetModalPopup_Click); //EVENT NOT RISED _divControlContainer.Controls.Add(btHidden); ImageButton ib = new ImageButton(); ib.ID = "btUploadImage"; ib.ImageUrl = "~/Imagenes/UIControlImageViewer/upload.png"; ib.Height = new Unit("16px"); ib.Width = new Unit("16px"); ib.Click += new ImageClickEventHandler(event_UploadFile_Click); //EVENT RAISED CORRECTLY _divControlContainer.Controls.Add(ib);
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend