Ajax - .net Multiple Modalpopupextender In The Same Page?

Apr 30, 2010

I have a asp.net page that have 2 modalpopupextender.the problem is this: When i open the firste modal popup from the code behind the second modal popup is automaticly open.

View 1 Replies


Similar Messages:

AJAX :: Set Multiple TargetControlID For ModalPopupExtender Modal Popup

Jul 17, 2015

   In my asp.net4.0 page, I have 3 Images each embedded in LinkButton :

<asp:LinkButton ID="panImgLnkBtn" runat="server">
<asp:Image runat="server" ID="panImg" BorderStyle="Ridge" BorderColor="Turquoise"
Width="130px" Height="100px" ImageUrl="~/CRMImages/no_image_symbol.png" />
</asp:LinkButton>

On each image, I want to open a popup with "Download" & "Print" buttons. 

I was thinking to create a panel and open a popup on linkbutton click by using ajaxToolkit:ModalPopupExtender . But, I realized that for I will need 3 such panels & ModalPopup's for each image as got to set TargetControlId for each link button.

In my other page, I will have more than 10 images.

What can be the best way to achieve this goal in such way that thru out my app I can call this popup and download or print the image ?

View 1 Replies

AJAX :: ModalPopupExtender / Datalist Original Image Come In Modalpopupextender After Click

Apr 14, 2010

I have a DataList that contains some Thumbnail Image(Image Button).

Now I want when i click on any Item in datalist the original image come in modalpopupextender.

How I can do this?

<asp:DataList
ID="dlImgGallery"
runat="server"
RepeatColumns="3"
Width="100%"
onselectedindexchanged="dlImgGallery_SelectedIndexChanged"
DataKeyField="Id"
>
<ItemTemplate> <table
style="width:100%;">
<tr>
<td
></td>
<td
class="style3">
<asp:ImageButton
ID="ImageButton1"
runat="server"
ImageUrl='<%# Eval("Img_URL") %>'
BorderColor="#0098DB"
BorderStyle="Double"
BorderWidth="3px"
onclick="ImageButton1_Click1"
/>
</td>
<td
class="style3">
</td>
</tr>
</table> <br
/>
<cc1:ModalPopupExtender
ID="mpe"
runat="server"
BackgroundCssClass="ModalBackColor"
TargetControlID="ImageButton1"
PopupControlID="Panel8"
CancelControlID="btnCancel"
ondatabinding="mpe_DataBinding">
</cc1:ModalPopupExtender>
</ItemTemplate>
</asp:DataList>and
my panel that shows as modalpopu
<
asp:Panel
ID="Panel8"
runat="server"
onload
="Panel8_Load">
<asp:Button
ID="btnCancel"
runat="server"
Text="Cancel"
/>
<br
/>
<asp:Image
ID="Image1"
runat="server"
Height="102px"
Width="124px"
/>
</asp:Panel>

Now where I can to write code that when i click on item in datalist Original Image show in modal popup extender?

View 3 Replies

AJAX :: Two ModalPopupExtender In Same Page Not Working?

May 28, 2010

i made two 'webusercontrols' both of them is using 'ModalPopupExtender' in each one markup

its working well if not in the same page but if two was in same page nothing happen

is there a any way to solving this problem ?

View 4 Replies

AJAX :: Two Modalpopupextender On A Single Page?

Nov 9, 2010

I've a page with a Masterpage.

In this page there is a Panel with ID : "ModalPanel".

There is a ModalPopuExtender on "ModalPanel".

I show this panel (ModalPanel) from code-behind. Works very well!

If in the same page I create another Panel "ModalPanel2" with another ModalPopuExtender : the second panel don't works!!!Why?!

The "ModalPanel2" is always visible! And don't has the behavior of a Modal Panel (like the first one).

View 3 Replies

AJAX :: Create ModalPopupExtender In Master Page?

Jan 18, 2011

I want to create ModalPopupExtender in master page (or somewhere else) and call that in content pages.

View 1 Replies

AJAX :: Close ModalPopupExtender And Redirect To Another Page

Sep 24, 2012

I used these code for popup window

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<%--<asp:Button ID="btnShow" runat="server" Text="Show Modal Popup" />--%>
<asp:LinkButton ID="LinkButton1" runat="server"></asp:LinkButton>
<!-- ModalPopupExtender -->
<cc1:ModalPopupExtender ID="mp1" runat="server" PopupControlID="Panel1" TargetControlID="LinkButton1"
CancelControlID="btnClose" BackgroundCssClass="modalBackground">

[Code] ....

It closed popupwindow at first I replace this code

CancelControlID="btnClose"
CancelControlID="btngo"

But when i did it it just closed popmenu and didn't run btngo_click event ....

View 1 Replies

AJAX :: ModalPopupExtender -- Fetch Data In Modalpopupextender

Apr 7, 2010

I would really appreciate if someone can find out what's wrong with this code.

Here is my question. I have textboxes in a modal popup extender (City, state, zip) and there is an image button search for searching the address from the database. All this functionality is within a control (.ascx file). This control is added to the page where it needs to be displayed and is being displayed when a user click the Address button (the code for it is not shown here). The method ShowAddressSearch() in the control is being called from the page and it displays the popup.

When the user enters any of the 3 values and hits search a server event is fired up and the result should be displayed in a grid. What is happening is, when the user hits the search button the server call is made and the data fetched from the db but the modal popup closes itself here is the code for this. I would really appreciate if someone can find out where and how popup is getting closed.

[Code]....

View 1 Replies

AJAX :: ModalPopupExtender Goes To Bottom Of Page After Save Or Cancel?

Feb 4, 2010

I have a wierd issue with a ModalPopupExtender. I am using a GridView and a DetailsView Control inside a ModalPopupExtender to show the details. After I Hide the ModalPopupExtender it renders at the bottom of the page. The popup works fine, just when i close it it moves to the bottom. If i click on another item and close it, it just builds at the bottom of the page. If i click Save it closes and falls to the bottom of the page and my Update sql statement contains all the values of the below popups. Wierd huh!

I have tried both using the OKControlID and creating an event handler to do a ModalPopupExtender.Hide(); neither works. I have used the ModalPopupExtender a number of times and have never seen this happen.

View 4 Replies

AJAX :: Make Modalpopupextender.popupdraghandlecontrolid In The Child Page?

Apr 16, 2010

i hope to add a popup panel in the child page. however i find that when i move the panel, the location is not right and the reason is the master page have some area which cause the location is not exactly right .for example, the panel is on x,y=10,10. when i click the panel, it jump to x,y=10.50.

View 7 Replies

AJAX :: How To Add Dynamic ModalPopupExtender Modal Popup To Page

Feb 26, 2014

i have created a class as follows which will create a dynamic popup 

public static void createModal() {
Button btnShow = new Button();
btnShow.ID = "btnCancel";
Panel p = new Panel();
p.ID = "ModalPanel";
p.Height = Unit.Percentage(300);
p.Width = Unit.Percentage(800);

[Code]......

And in my page my design is as follows

<asp:ScriptManager ID="script" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="up" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
<%--<Triggers>
<asp:PostBackTrigger ControlID="btnShow" />
</Triggers>--%> <ContentTemplate>
<asp:Button ID="btnShow" runat="server" Text="Open" OnClick="btnShow_Click"></asp:Button>
</ContentTemplate>
</asp:UpdatePanel>

This is my code on button click to show the popup

protected void btnShow_Click(object sender, EventArgs e) {
common.createModal(btnShow);
}

If i didnot include the trigger on the page modal is not showing, but if I include the trigger modal popup is showing, can this be achieved with out registering the triggers.

View 1 Replies

AJAX :: How To Stop ModalPopupExtender Flickering On Page Load And PostBack

May 7, 2015

I used popup in my page below is my code:

<asp:UpdatePanel ID="Upbdt2" runat="server">
<ContentTemplate>
<asp:ModalPopupExtender DropShadow="true" ID="ModalPopupExtender2" PopupControlID="PnPopup2"
runat="server" TargetControlID="BtnPopup2">
</asp:ModalPopupExtender>

[Code] ....

When I click on BtnPopup2 it show popup menu...

I have other button BTNinsert that when I click on this button it insert data into database now problem is that when I click on  BTNinsert it show popup for 1 second  and after that insert data into  database and if I refresh page it shows popup again for 1 second I want when I click on BTNinsert or refresh page it doesn't show popup just for a second...

View 1 Replies

AJAX :: ModalPopupExtender Modal Popup Hiding Behind Master Page

Sep 20, 2015

I am working on a website where i used bootstrap and popup box is of jquery. whenever a popup appears on the screen it hides behind the master page.

View 1 Replies

AJAX :: Modalpopupextender Can't Disable The Parent Page When Popup Window Is Open

Dec 23, 2010

[Code]....

modalpopupextender can't disable the parent page when popup window is open

View 5 Replies

AJAX :: ModalPopupExtender / When Click Page Number Index, Popup Lost?

Sep 12, 2010

i used ModalPopupExtender to show gridview (with paging and searching) inside it. But when i click page number index, popup lost

View 2 Replies

AJAX :: Update Panel - Block Page And Display Progress Using ModalPopupExtender

Dec 6, 2012

I'm using a Update panel in Asp.net.  I am having update progress for which I have set a DIV and set a CSS for it.

The issue is when I call it, it will show the Progress bar but I can scroll the window  and there are link in grid which I can click.

I want no operation to be done till update progress running  ... 

View 1 Replies

AJAX :: ModalPopUpExtender Inside ModalPopUpExtender

Sep 3, 2010

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.

View 3 Replies

AJAX :: ConfirmButtonExtender And ModalPopupExtender Server Control With Master Page Failed To Find Element

Sep 24, 2010

I am in the process of building a server control that contains a ConfirmButtonExtender. This is my code:

The Master Page:

[code]....

View 2 Replies

AJAX :: ModalPopupExtender / Instead Of Dissapear These Modal Panel It Appers On The Bottom Left Corner Of The Page?

Feb 15, 2010

I'm developing an ASP.NET application with C# and Visual Studio 2008 SP1. I'm using WebForms.

I have an ASPX page with two UpdatePanels, one on the left that holds a TreeView and other on the right where I load dynamically user controls.

On the left panel I also have buttons to load user controls on the right. I have a ModalPopupExtender in a button that show I div with radiobuttons to select a type. When I choose an option and click ok it do a postback to load dynamically a user control but instead of dissapear these modal panel it appers on the bottom left corner of the page.

What's happening? I think it is about dynamic load.

View 9 Replies

AJAX :: Add ModalPopupExtender On A Web Page - Webmethod "contextKey" Is Getting Passed As Null?

Jun 6, 2010

I have added aiax ModalPopupExtender on a web page


<ajaxToolkit:ModalPopupExtender
ID="ModalPopupExtender1"runat="server"[code]....

to fetch data to popup control dynamically I used webservice [WebMethod]public string getIssueDetails(string contextKey){ } But before that I set ModalPopupExtender1.DynamicContextKey = "1_1_60"; in code behind.But problem is in webmethod "contextKey" is getting passed as null.

View 1 Replies

AJAX :: Two Modalpopupextender On The Same Page To Display Two Diff Table In Diff Panel?

Jul 29, 2010

[Code]....

For the Second gridview is directly below the first panel

asp:Label ID="Label12" runat="server" Text="Label" style="display:none;" ></asp:Label>
<asp:Panel runat="server" ID="popupPanel2" BackColor="White">
<table style="width:64%; font-family: Arial, Helvetica, sans-serif; color: #000000; font-size: 12px;"
id="Table1" runat="server">
<tr>
<td style="width: 122px">
<asp:Label ID="Label7" runat="server" Text="From Project:"></asp:Label>.........

View 2 Replies

AJAX :: Use Multiple Slideshows On A Page?

Jan 3, 2011

I have little knowledge of Silverlight, which may be better suited to what I plan to do (advise)... I want to have 4 different AJAX slideshows going on a page in different page locations simultaneously with each displaying (on a timer of course so when one picture is on the other four are off)... this is to be used purely as a design tool for an introduction to the site... any advise as to a better way to do this... I actually have this working as I want it to as described above but there may be better ways (?)

View 1 Replies

Multiple Ajax Calls From Same Page

Aug 31, 2014

on my page I've to check if the UserName is available and sponsor code is correct. For that I'm using ajax call for both.

Code:
Sponsor User Name   <span id = "mesg"></span><asp:TextBox ID="txtSpUserName" runat="server" CssClass="DropText" onblur ="ShowAvailability()"></asp:TextBox>
Login Name <span id="Login"></span><asp:TextBox ID="txtLoginName" runat="server" CssClass="DropText" onblur ="ShowLoginName()"></asp:TextBox>

[code]....

Why they are not giving separate results?

View 2 Replies

AJAX :: Multiple UpdatePanels Refreshing Whole Page...

Aug 18, 2010

I have been reading a lot about UpdateMode set to Conditional on multiple UpdatePanels on a page. It seems that when set to Conditional only the UpdatePanel affected by the event will refresh. It is not happening on my case and I don't know what am I doing wrong.

This is the scenario. I have 4 updatePanel all set to Conditional. I have external buttons that will call the Update method per each panel but the whole page refreshes when I click on any of the buttons.

Here is a sample code:

code]....

View 2 Replies

How To Use Ajax In .net Page For Multiple Dropdown Control

Nov 29, 2010

I want to use ajax in my asp.net page for multiple drop down controlCorrently I am using following code

[Code]....

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved