Ajax TabContainer & ModalPopupExtender

Ajax TabContainer & ModalPopupExtender

am 22.04.2008 16:44:55 von mistryman06

Hi,
I'm new to the ASP.NET Ajax. Im struck with an issue.
Im having a tabcontainer with 3 tabs. Each tab has a user control (all
3 tab has the same user control) & the user control has a Button &
ModalPopup Extender. While running the application,
When I click the TAB1's Button i get a modalpopup in the page. But
when i select the TAB2 and click on the Button. Im not getting any
modalpopup in the 2nd tab rather i see the modal popup in the TAB1.
The modal popup always going to the Tab1. I cant able to bring that
focus into the tab2 or tab3. Please help me on this.
Thanks in advance.
Joe

Re: Ajax TabContainer & ModalPopupExtender

am 24.04.2008 07:38:40 von wisccal

Hi Joe,

I'm not quite sure if I understand your problem. How do you position
the popup? Could you perhaps post your code? I created a sample. The
popup always renders on the top of the two tabs:

Default.aspx:

<%@ Page Language="C#" AutoEventWireup="true"
CodeBehind="Default.aspx.cs"
Inherits="ModalPopupInTabContainer._Default" %>
<%@ Register Assembly="AjaxControlToolkit"
Namespace="AjaxControlToolkit" TagPrefix="aj" %>
<%@ Register Src="~/WebUserControl1.ascx" TagName="TheUserCtrl"
TagPrefix="my" %>
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



Untitled Page





runat="server">
runat="server">

>


runat="server">

>








WebUserControl1.ascx:

<%@ Control Language="C#" AutoEventWireup="true"
CodeBehind="WebUserControl1.ascx.cs"
Inherits="ModalPopupInTabContainer.WebUserControl1" %>
<%@ Register Assembly="AjaxControlToolkit"
Namespace="AjaxControlToolkit" TagPrefix="aj" %>

PopupControlID="thePopupPanel"
OkControlID="theOkButton" DropShadow="false" runat="server" X="20"
y="20" />


>

runat="server" />



=============
Regards,
Steve
www.stkomp.com

mistryma...@gmail.com wrote:
> Hi,
> I'm new to the ASP.NET Ajax. Im struck with an issue.
> Im having a tabcontainer with 3 tabs. Each tab has a user control (all
> 3 tab has the same user control) & the user control has a Button &
> ModalPopup Extender. While running the application,
> When I click the TAB1's Button i get a modalpopup in the page. But
> when i select the TAB2 and click on the Button. Im not getting any
> modalpopup in the 2nd tab rather i see the modal popup in the TAB1.
> The modal popup always going to the Tab1. I cant able to bring that
> focus into the tab2 or tab3. Please help me on this.
> Thanks in advance.
> Joe