AJAX :: ModalPopupExtender With DropShadow = True Causes Position?
May 20, 2010
I have a about 10 modalpopupextenders on one page.The problem is that when I set the property "DropShadow=true", it causes my modal popup panel to move up the screen(IE) and only the bottom 25% of the panel shows.
View 1 Replies
Similar Messages:
Feb 1, 2011
I'm tryin to use a collapsiblepanelextender inside a modalpopupextender with dropshadow=true.
The problem is that when I collapse the panel,the dropshadow fails to resize and remains the size of the collapsed panel...
View 2 Replies
Jul 27, 2010
I want to validate username and password using the extender properties but i don't know where to put code performing validation on it:-
i have tried putting code in Authenticate Event, LoggedIn Event,LoggingIn event.
I just want to know exactly what to do.
using it's id property- Login.Username=StrUsername,
Login.Password=strPassword where Login is the extender.
View 2 Replies
Dec 23, 2010
I have a modal popup extender on a panel that displays a small form for adding and removing purchased items. These items are displayed in a table. Adding and removing these items causes the size of the table, and therefore, the size of the panel, to change. When I add an item, the panel resizes and the dropshadow is redrawn. But when I remove an item from the list, the panel resizes but the drop shadow does not, and this causes too large of a dark area to be drawn beneath the panel. I suspect this is happening because of the way I have to remove the rows in javascript, but I'm not sure what to do about it.I have tried turning the dropshadow on the mpe off and using a drop shadow extender instead, and it trashed everything, so that's out.
View 1 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 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
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
Aug 18, 2010
i found that for X & Y co-ordinates value of the Ajax toolkit dragPanel is very easily calculated from this article
Retain position of a DragPanel Extender after postback using ASP.NET AJAX
but i need to store the value in database and while page_load() i need to render the control as per the Co-ordinate values from the database .
From the above solution everything is fine except that i need to do it with code behind(from server side).
and i don't know a JavaScript a lot .
View 1 Replies
Feb 24, 2010
It took me a little while to figure this out, but the AllowPaging="true" on the FormView seems to be the culprit. I don't have much experience paging from a FormView, but for this requirement the customers wants this kind of UI.I have a FormView with DefaultMode="Edit", which is bound to an EntityDataSource. One of the entity's properties, "ExternalID", determines whether some of the other properties in the entity are read-only. For example, if IsExternal==null, the FirstName, LastName, and Email fields should be rendered as TextBoxes. If IsExternal!=null, the 3 properties should be rendered in Label controls.
View 2 Replies
Jan 13, 2010
i have a div in my page, with position absolute i want change the position TOP if i write;
div.style.remove("top")
style.add("Top","300")
does not happen nothing.
do you know how can i do it?
View 4 Replies
Mar 17, 2011
i have a update panel and when a link button is fired i need to set the scroll position to the top. i need this to happen in the code behind, i have tried the following but it wont work.
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "srcoll_0", "window.scrollTo(0, 0);", true);
View 3 Replies
May 11, 2010
I am working on printing Application that should gave the user the ability to change the position of the FieldsSo I decide to build a user control as following
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PassportDataItem.ascx.cs"
Inherits="TestShadowImage.PassportDataItem" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"
[code]...
View 1 Replies
Jul 7, 2010
I implemented autocomplete extender,functionality is working great but my issue is with CSS.It works as expected in Firefox(it applys all stylesheets perect) but in IE it is not behaving as expected it is showing the list about 10 pixels left to the text box.
googled couple of things but none of them were working for me.
My stylesheet:
.listItem
{
background-color: white;
padding: 1px;
}
.highlightedListItem
[Code]....
View 1 Replies
Mar 3, 2011
I create a webusercontrol where there is a dragPanelExtentender. I have had problems in setting the position of this webusercontrol (dragpanel) on page. Is it possible to set position of this component in the with specified x,y position of page from code behind?
View 2 Replies
Mar 25, 2010
I have a form that contain many field must filled.
I use Asp Required validator and ajax validator callout to make a cool error message.
I put that form into box which have scrollbar. (Not IE Scrollbar)
Running the application then try to scroll the form with that scrollbar.
Then pressing the button to trigger the validator required.
Finally the message is displayed but the message is not in correct position. It is above suppose to be.
View 2 Replies
Sep 21, 2010
i am using a datalist and in this i have a table when i am click on a button then popup display the table .but the position is fixed i want to change the position of popup dynamically as we have many button
Code is-
<table id="tb1" runat="server" width="50%">
<tr>
<td style="background-color: #A1CFF6; border-width: 1px; border-style: groove">
<asp:Image ID="imgClose" runat="server" ImageUrl="~/image/close.gif" ImageAlign="Right" />
<asp:Label ID="lblConInfo" runat="server" Text="Contact Information" Font-Bold="True"
Font-Size="Small" ForeColor="#678FE0"></asp:Label>
<br />
<asp:Label ID="lblName" runat="server" Text="Name:" Font-Bold="True"></asp:Label>
<asp:Label ID="lblFName" runat="server" Text='<%# Eval("c_Fname") %>'></asp:Label>
<asp:Label ID="lblCity" runat="server" Text="City:" Font-Bold="True"></asp:Label>
<asp:Label ID="lbl_city" runat="server" Text='<%# Eval("c_city") %>'></asp:Label>
<asp:Label ID="lblPin" runat="server" Text="PinCode:" Font-Bold="true"></asp:Label>
<asp:Label ID="lbl_PinCode" runat="server" Text='<%# Eval("c_pincod") %>'></asp:Label>
</td>
</tr></table>
<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" PopupControlID="tb1"
TargetControlID="btnEnquiry" BackgroundCssClass="modalBackground" CancelControlID="imgClose"
X="200" Y="200" Enabled="true">
</cc1:ModalPopupExtender>
View 1 Replies
Jan 24, 2010
I have a sample in the attach. Why accordion not save a position if click on "MAcK2"?
It is link (I cannot use "Insert/Edit link", show blank window)
[URL]
View 3 Replies
May 7, 2015
while i am using Ajax (calender extender) on textbox when i click at first time click the calender show on page top side next time show on textbox side correctly.
<asp:CalendarExtender ID="CalendarExtender4" TargetControlID="txtfrm_date" Format="d/MM/yyyy"
runat="server">
</asp:CalendarExtender>
<asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" TargetControlID="txtfrm_date"
FilterType="Custom,Numbers" ValidChars="/">
</asp:FilteredTextBoxExtender>
View 1 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
Feb 5, 2010
I try I cannot seem to find a satisfactory solution. As far as I can tell from the documentation a ModalPopupExtender should be able to reside inside an UpdatePanel. However, I simply cannot get it to work.After the first refresh of the UpdatePanel I get errors of various kinds depending on what I've tried.
What I'm trying to accomplish is having a button inside an UpdatePanel which launches a popup. Another button inside the UpdatePanel causes a partial postback. And finally a button within the popup has to cause a partial postback. I have tried at least five different approaches to this problem and finally I gave up and went with a very inelegant solution. I don't think my requirements are all that strange, am I doing something wrong?
First I tried this:
[code]....
This works fine until after the first postback when the Cancel-button (Button4) starts causing synchronous postbacks and the textbox starts to fill up with commas. I also tried the same as above but placing an UpdatePanel within Panel4 (the popup) - no go. Then I tried causing the postbacks in javascript launched from the ModalPopupExtender's OnOkScript - still it starts failing. I tried another couple of attempts
all of which failed. Finally I decided to move the ModalPopupExtender outside the UpdatePanel, add dummy buttons and a bit of javascript to launch and hide the popup. Although this satisfies my UI requirements it just plain wrong from a design perspective and it annoys me that I could not get the extender to work inside an UpdatePanel. Has anyone succeded with placing a ModalPopupExtender in an UpdatePanel with the requirements I stated above? Or should it be added to the list of controls that's just not compatible with the UpdatePanel?
this is my final solution:
[Code]....
View 8 Replies
Dec 11, 2010
i try to develop a login control with modlpopupextender within usercontrol. i have a problem with hiding modalpopupextender. i indicate that if i put modalpopupextender in aspx page directly it works, but when using in usercontrol it doesn't. my codes are:
[Code]....
[Code]....
i show modalcontrol on masterpage. it is ok. i click btniptal,modalcontrol hides. but after click the btniptal, if i refresh the page(postback) modalcontrol shows again. i said this above that if i put modalcontrol directly masterpage ,thing that i said doesn't happen. how can i solve this.
[Code]....
View 4 Replies
Mar 20, 2010
I have ValidationSummary in masterpage out of UpdatePanel and inside updatePanel i have my ContentPanel. I have an user control where iam having Save button which iam using in all my pages of application. Now i have a requirement like i need to show the validation summary in ModalPopUpExtender.
View 1 Replies
Jun 30, 2010
We use a ModalPopupExtender and set the PopupDragHandleID so it can be dragged around the browser.
This works great in most browsers; however one control that is loaded in the ModalPopup is wrapped in a scrollable div, and in Safari when you click on the scrollbar and then move the mouse it starts dragging the modal popup around.
I was hoping someone either has a fix for this issue, OR knows how to detect the browser in either css or javascript and remove the PopupDragHandleID.
View 5 Replies
Feb 9, 2010
I think I've found a bug in the ModalPopupExtender. Here is the details:
Problem
When you use ModalPopupExtender within an UpdatePanel, the controls in the PopupControl (the Panel containing the content needs to be poped up) will be rendered, even though the NamingContainer (or the parent) of the ModalPopupExtender and the PopupControl is set to invisible. This may cause Event Validation error between AsynPostBacks. Cause
The controls in the PopupControl will not be rendered within the UpdatePanel, but at the bottom of the page outside the UpdatePanel. When the NamingContainer of the PopupControl and the ModalPopupExtender is set to invisible, the content outside the UpdatePanel won't be updated and therefore stays on the page.
Code
Default.aspx
[Code]....
Steps to reproduce the problem
Create a simple ASP.NET web application in VS using the code provided aboveRun the app in debug modeClick on button Show 1, and then click the link button Show. The popup panel should show up. Click either
OK or Cancel to close out the popup panel.Click on button Show 2. You will see the content in the popup panel is displayed at the bottom of the page. However, the content should be invisible and should not be rendered, or should be removed from the page.Click on button Show 1 again. You will see the familar error message: Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument...
Further explaination
This error has nothing to do with the ViewState. When button Show 1 is clicked the second time, the page will try to load data (including ViewState, PostData and Session) into the controls on the page before btn1_Click is called. At this moment, pnl1 is still invisible, so the page will only try to load the data for the controls in pnl2. However, if you check the Request.Form.AllKeys in the watch window, the TextBox
txt is part of the PostData. This doesn't match any control in pnl2, and then the exception is thrown.
I have tried many different ways, but none of them worked.
View 4 Replies
Mar 15, 2010
in my c# code i have the following;
ModalPopupExtender2.Show();
This works fine my popup appears, so i put an ok button on the Panel and on_click in the code file i tried to;
ModalPopupExtender2.hide();
But it dosent work - nothing happens. I dont have it in an update panel.
View 1 Replies