VS 2010 - How To Add A ModalPopupExtender To A Page
Feb 18, 2011
I am trying to add a ModalPopupExtender to a page I am using. But every time I try to add the ModalPopupExtender, it show an error on the bottom left of the IE page saying Object Not Supported.
I have put in the minimal amount of code required to use the modalpopupextender (i.e., just controlIDs) and it throws an error. If I comment it out, I get no errors on the page.
Stranger still, the Object not supported error states that it's at line 916, character 1, yet viewing the source only shows 343 lines of code? I have been trying to figure this out for a day now with no luck. I follow every tutorial I can find on the web for the modalpopupextender and everything is great until I put in the actual control.
View 1 Replies
Similar Messages:
Jul 20, 2013
I'm trying to do the equivalent of a "Are you sure you wish to delete?" and then if yes, return to a function in the aspx.vb code. Here is what I have:
Code:
<!-- ModalPopupExtender -->
<cc1:ModalPopupExtender ID="mp1" runat="server" PopupControlID="Panel1" TargetControlID="btnCancel"
CancelControlID="btnCancelNo" OkControlID="btnCancelYes" OnOkScript="__doPostBack" BackgroundCssClass="modalBackground">
[Code] ....
And then on the form, the btnCancel does popup the menu, with Yes / No and the text "Are you Sure?"But, even though I have a button called "btnCancelYes", I cannot get the code in there to trigger. Ie:
Code:
Protected Sub btnCancelYes_Click(sender As Object, e As EventArgs) Handles btnCancelYes.Click
DeleteRecord()
End Sub
View 3 Replies
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
Apr 4, 2011
I have a gridview inside a ModalPopUpExtender, the grid view have the button add delete and edit when i clic one of the button of the gridview the popup is closed. I wont to close the popup when the close button is clicked.This is the asp.net part:
< cc1: ModalPopupExtender ID="NamePopup" runat="server" PopupControlID="OptionPanel" TargetControlID="btnD" BackgroundCssClass="mpBg" DropShadow="true" OkControlID="btnSavePopup" CancelControlID="btnPostCancel" >
< / cc1:ModalPopupExtender>
View 1 Replies
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
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
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
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
Jan 18, 2011
I want to create ModalPopupExtender in master page (or somewhere else) and call that in content pages.
View 1 Replies
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
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
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
Mar 17, 2010
How do I setup the ModalPopupExtender to not show when the validation on the page fails? I have a RequiredFieldValidator on a textbox. On Submit, I would like to show the ModalPopupExtender ONLY if validation is successful.
View 2 Replies
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
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
Mar 23, 2010
I am having an odd issue where when I hit the 'enter' key, a button on my page (not on the Popup) is being activated. Consequently, it is firing a command that I do not want fired.Put another way, I have a ModalPopup with a 'TextBox', 'Image', and three buttons. I can click inside of the TextBox, begin typing, then hit 'enter', and for some reason it acts as though I am clicking on a button that is on my page, not on the Popup.
View 1 Replies
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
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
Dec 23, 2010
[Code]....
modalpopupextender can't disable the parent page when popup window is open
View 5 Replies
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
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
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
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
Jul 20, 2012
I am writing a web application which consists of a master page (header / menus) which does not change and content pages. When I do something like click on a button it causes a post back which is correct but this redraws the whole screen and becomes annoying because every post back and the whole screen flickers.
Is there a way to only refresh the content page?
View 5 Replies
Feb 15, 2012
I have a master page with an unordered list that contains items like, Home, Messages etc.
Now I am working on an EditProfile.aspx page and I want the menu to change and have items like Basic Information, Profile Picture etc. Sort of like facebook. What is the best way to accomplish this...
View 2 Replies