Click Events In Modal Popup Extender?

Jul 21, 2010

I have a ASP.NET page where a modal popup extender is shown when we click on a link button...There is a submit button in the Modalpopup extender which inserts the data into a DB table.... the proble is there are field validators for the textboxes in the modalpopup extender...for which validation is required...

After entering the values, in the textboxes the submit is working for the second click, but not on the first click...

View 1 Replies


Similar Messages:

AJAX :: Execute Server Side Events On Modal Popup Extender?

Jul 12, 2010

In my application, I have one Gridview on click button of one of the column I show Modal popup Extender. In Popup window I display another GridView with paging. And also I want to do operations such as Update, Delete and Add. As all these are Link buttons none of the event associated with them are firing.

Is there any way to execute server side events on Modal Popup Extender.

View 1 Replies

AJAX :: Modal Popup Extender Preventing Regular Button Click Event?

Jan 6, 2010

So I have a button on form that is supposed to execute some code-behind on a click event. To this button I also connected a Modal Popup Extender, which once you click OK, it goes away. What doesn't happen (and it should) is btnSendContactForm_Click never gets called.

Using the OnOkScript didn't help me either. I have tried setting the OnOkScript property of the extender, by calling a javascript that simulates the button click on the send button, but that only re-calls the modal pop extender, and a never-ending loop results everytime you click OK.

<!-- Send Button, Extender, and Pop Up Panel -->

View 1 Replies

AJAX :: Modal PopUp Extender Catch Exception Error And Display On Modal Popup

Aug 11, 2010

Modal PopUp Extender Catch exception error and display on modal popup

[Code]....

View 2 Replies

C# - Modal Popup Extender / Show() Method The Parent Page Just Frozen When Click Button?

Dec 14, 2010

i use modal popup extender to show my details in another separate window it is a panel contains some controls the problem is ::
when i click on my button which contains::
the Show() method the parent page just frozen and no popup appears at all on the other side i have a grid view when i click on the last button on it the popup appears where the other buttons on the grid view make the same behavior of my first button , i donot know what is the problem my panel visibility = true and no setting in my behind code..i view the source and i find the panel with its contents then why the popup window doesnot appear.
my aspx::

<asp:Panel id="master_editMode" runat="server" >
<div id="masterDiv" style="width:98%" dir="rtl">
<div id="masterControls" align="center">
<table border="0" width="98%">
<tr>
<td align="center" dir="rtl">
<asp:ObjectDataSource ID="ObjDS_AllTasks" runat="server"
SelectMethod="Get_All_Tasks" TypeName="DocumentFlowModuleDTO.TaskDTO">
</asp:ObjectDataSource>
<asp:HiddenField ID="hd_Task_Code" runat="server" />
<table>
<tr>
<td>
<asp:Label ID="Label11" runat="server" Text="Search for Task" Visible="False"></asp:Label>
</td>
<td align="right">
<asp:TextBox ID="txt_Search" runat="server" AutoPostBack="True"
ontextchanged="txt_Search_TextChanged" Width="200px" Visible="False"></asp:TextBox>
</td>
<td>
</td>
</tr>
<tr>
<td colspan="3">
<asp:GridView ID="grd_AllTasks" runat="server" AllowPaging="True"
AutoGenerateColumns="False" CssClass="Alternating" DataKeyNames="task_code"
DataSourceID="ObjDS_AllTasks"
onpageindexchanging="grd_AllTasks_PageIndexChanging"
onrowdatabound="grd_AllTasks_RowDataBound" style="margin-right: 0px">
<RowStyle VerticalAlign="Top" />
HeaderText="ÍÐÝ">
<ItemTemplate>
<asp:ImageButton ID="btn_Delete_Task" runat="server"
CommandArgument="<%# Bind('task_code') %>" Height="33px"
ImageUrl="~/Images/delete.png" oncommand="btn_Delete_Task_Command"
Width="67px" />
<cc1:ConfirmButtonExtender ID="btn_Delete_Task_ConfirmButtonExtender"
runat="server" ConfirmText="åá ÊÑíÏ ÍÐÝ æËíÞÉ ÇáÇÚÊãÇÏ " Enabled="True"
TargetControlID="btn_Delete_Task">
</cc1:ConfirmButtonExtender>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<HeaderStyle HorizontalAlign="Right" />
</asp:GridView>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="right" dir="rtl">
<asp:Label ID="lbl_TaskName" runat="server" Font-Bold="True" Font-Size="13pt"></asp:Label>
</td>
</tr>
<tr>
<td align="center" dir="rtl" style="height: 196px">
<table>
<tr>
<td align="left">
<asp:Label ID="lbl_No_States" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
</td>
<td align="right">
<asp:ImageButton ID="btn_AddStatesToTask" runat="server"
ImageUrl="Images/add.png" onclick="btn_AddStatesToTask_Click" Visible="False" />
<asp:Button ID="Dummy_btn2" runat="server" Text="Button" Style="display:none;" />
<cc1:ModalPopupExtender ID="btn_AddStatesToTask_ModalPopupExtender"
runat="server"
TargetControlID="Dummy_btn2"
BackgroundCssClass="modalBackground"
PopupControlID="pnl_Add_States"
DropShadow="True">
</cc1:ModalPopupExtender>
</td>
</tr>
</table>
<asp:HiddenField ID="hd_StateSerial" runat="server" />
<asp:HiddenField ID="hd_StateRowIndex" runat="server" />
<asp:GridView ID="grd_States" runat="server" AllowPaging="True" DataKeyNames="state_serial"
onpageindexchanging="grd_States_PageIndexChanging" Visible="False"
CssClass="Alternating" AutoGenerateColumns="False">
<Columns>
<asp:BoundField DataField="state_name" HeaderText="ÇáãÑÍáÉ"
ShowHeader="False" />
<asp:BoundField DataField="state_order" HeaderText="ÊÑÊíÈ ÇáãÑÍáÉ"
ShowHeader="False" />
<asp:TemplateField HeaderText="Power" ShowHeader="False">
<EditItemTemplate>
<asp:CheckBox ID="CheckBox1" runat="server" />
</EditItemTemplate>
<ItemTemplate>
<asp:CheckBox ID="chb_StatePower" runat="server"
Checked='<%# Convert.ToBoolean(Eval("power_flag")) %>' Enabled="False" />
</ItemTemplate>
<ItemStyle Width="40px" />
</asp:TemplateField>
<asp:TemplateField HeaderText="New" ShowHeader="False">
<EditItemTemplate>
<asp:CheckBox ID="CheckBox3" runat="server" />
<asp:Button ID="Dummy_btn4" runat="server" Text="Button" Style="display:none;" />
<cc1:ModalPopupExtender ID="btn_TaskState_Edit_ModalPopupExtender" runat="server"
TargetControlID="Dummy_btn4"
BackgroundCssClass="modalBackground"
PopupControlID="pnl_Add_States"
DropShadow="True">
</cc1:ModalPopupExtender>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="ÍÐÝ" ShowHeader="False">
<ItemTemplate>
<asp:ImageButton ID="btn_TaskState_Delete" runat="server"
CommandArgument="<%# Bind('state_serial') %>" Height="26px"
ImageUrl="~/Images/delete.png" oncommand="btn_TaskState_Delete_Command"
Width="47px" />
<cc1:ConfirmButtonExtender ID="btn_TaskState_Delete_ConfirmButtonExtender"
runat="server" ConfirmText="åá ÊÑíÏ ÍÐÝ ÇáãÑÍáÉ " Enabled="True"
TargetControlID="btn_TaskState_Delete">
</cc1:ConfirmButtonExtender>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</td>
</tr>
<tr>
<td>
<asp:ObjectDataSource ID="ObjectDataSource_States" runat="server"
SelectMethod="Select_TaskStates" TypeName="DocumentFlowModule.DTO.TaskStateDTO">
<SelectParameters>
<asp:Parameter Name="task_code" Type="Int32" />
</SelectParameters>
</asp:ObjectDataSource>
</td>
</tr>
</table>
</div>
</div>
</asp:Panel>
<asp:Panel ID="pnl_Add_Task" runat="server" CssClass="modalPopup"><%-- Style="display:none;"--%>
<div id="div3" style="width: 95%">
<div id="div4" align="center">
<table>
<tr>
<td>
<asp:UpdatePanel ID="UpPnl1" runat="server">
<ContentTemplate>
<table dir="rtl" style="text-align: right">
<tr bgcolor="#f1ece2">
<th align="right" height="35" valign="middle" colspan="3">
<asp:Label ID="lbl_New_Task" runat="server" Font-Bold="False" Font-Size="14pt"
Text="ÅÖÇÝÉ æËíÞÉ ÇÚÊãÇÏ" Visible="False"></asp:Label>
<asp:Label ID="lbl_Edit_Task" runat="server" Font-Bold="False" Font-Size="14pt"
Text="ÊÚÏíá æËíÞÉ ÇÚÊãÇÏ" Visible="False"></asp:Label>
</th>
</tr>
<tr>
<td class="title" width="160">
<asp:Label ID="Label1" runat="server" Text="Task Name"></asp:Label>
</td>
<td style="width: 140px">
<asp:TextBox ID="txt_TaskName" runat="server"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="txt_TaskName" ErrorMessage="*" ValidationGroup="G1"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="title" width="160">
<asp:Label ID="Label10" runat="server" Text="DataBase Name"></asp:Label>
</td>
<td style="width: 140px">
<asp:DropDownList ID="ddl_DataBases" runat="server" AutoPostBack="True"
onselectedindexchanged="ddl_DataBases_SelectedIndexChanged">
</asp:DropDownList>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
ControlToValidate="ddl_DataBases" ErrorMessage="*" InitialValue="--Select--"
ValidationGroup="G1"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="title" width="160">
<asp:Label ID="Label2" runat="server" Text="Table Name"></asp:Label>
</td>
<td style="width: 140px">
<asp:DropDownList ID="ddl_Tables" runat="server" AutoPostBack="True"
ondatabound="ddl_Tables_DataBound"
onselectedindexchanged="ddl_Tables_SelectedIndexChanged">
</asp:DropDownList>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"
ControlToValidate="ddl_Tables" ErrorMessage="*" InitialValue="--Select--"
ValidationGroup="G1"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="title" width="160">
<asp:Label ID="Label17" runat="server" Text="Table Key"></asp:Label>
</td>
<td style="width: 140px">
<asp:Label ID="lbl_Key" runat="server"></asp:Label>
<asp:CheckBoxList ID="cbl_Columns" runat="server">
</asp:CheckBoxList>
</td>
<td>
<asp:Label ID="lbl_Select_Key" runat="server" ForeColor="Red"></asp:Label>
</td>
</tr>
<tr>
<td class="title" width="160">
<asp:Label ID="Label18" runat="server" Text="Current Record State"></asp:Label>
</td>
<td style="width: 140px">
<asp:DropDownList ID="ddl_Columns" runat="server" AutoPostBack="True"
ondatabound="ddl_Columns_DataBound">
</asp:DropDownList>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
ControlToValidate="ddl_Columns" ErrorMessage="*" InitialValue="--Select--"
ValidationGroup="G1"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="title" width="160">
<asp:Label ID="Label5" runat="server" Text="Form View "></asp:Label>
</td>
<td style="width: 140px">
<asp:TextBox ID="txt_F_View" runat="server"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server"
ControlToValidate="txt_F_View" ErrorMessage="*" InitialValue="--Select--"
ValidationGroup="G1"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="title" width="160">
<asp:Label ID="Label6" runat="server" Text="Form New"></asp:Label>
</td>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td dir="rtl" align="center">
<asp:ImageButton ID="btn_OK" runat="server" ImageUrl="~/Images/add.png"
onclick="btn_OK_Click" ValidationGroup="G1" Visible="False" />
<asp:ImageButton ID="btn_Edit" runat="server" ImageUrl="~/Images/edit.png"
onclick="btn_Edit_Click" ValidationGroup="G1" Visible="False" />
<asp:ImageButton ID="btn_Cancel_Task" runat="server" CausesValidation="False"
Height="36px" ImageUrl="~/Images/cancel.png" onclick="btn_Cancel_Task_Click" />
</td>
</tr>
</table>
</div>
</div>
</asp:Panel>

the btn_add _task does not make my popup appear just freeze the parent page

my .cs

protected void btn_Add_Task_Click(object sender, EventArgs e)
{
//AjaxControlToolkit.ModalPopupExtender modal1 = (AjaxControlToolkit.ModalPopupExtender) table1.FindControl("btn_Add_Task_ModalPopupExtender");
//modal1.Show();
grd_States.Visible = false;
lbl_No_States.Text = "";
btn_AddStatesToTask.Visible = false;
lbl_TaskName.Text = "";
//master_editMode.Visible = true;
//pnl_Add_Task.Visible = true;
btn_OK.Visible = true;
btn_Edit.Visible = false;
lbl_New_Task.Visible = true;
lbl_Edit_Task.Visible = false;
txt_TaskName.Text = "";
ddl_DataBases.ClearSelection();
ddl_Tables.Items.Clear();
ddl_Columns.Items.Clear();
cbl_Columns.Items.Clear();
txt_F_New.Text = "";
txt_F_View.Text = "";
txt_Params.Text = "";
txt_SP_Name.Text = "";
btn_Add_Task_ModalPopupExtender.Show();
}

EDITED::

<table align="center" dir="rtl">
<tr>
<td >
<asp:Button ID="Dummy_btn" runat="server" Text="Button" Style="display:none;" />
<asp:Button ID="btn_Add_Task" runat="server" Text="ÅÖÇÝÉ æËíÞÉ ÇÚÊãÇÏ ÌÏíÏÉ"
onclick="btn_Add_Task_Click" Font-Bold="True" Font-Size="12pt"
ForeColor="#0066FF" />
<cc1:ModalPopupExtender ID="btn_Add_Task_ModalPopupExtender" runat="server"
TargetControlID="Dummy_btn"
PopupControlID="pnl_Add_Task"
BackgroundCssClass="modalBackground"
DropShadow="True" >
</cc1:ModalPopupExtender>
</td>
</tr>
</table>`

View 1 Replies

AJAX :: When Submit The Page Which Has Modal Popup Extender,popup Extender Becomes Visible?

Oct 29, 2010

When i try to submit the page which has modal popup extender,popup extender becomes visible! How can i avoid this?

View 2 Replies

AJAX :: Hide ValidatorCallout Extender When Modal Popup Extender Is Closed

Nov 25, 2013

I tried to find any methods to validate items inside Modal Popup Extender

View 1 Replies

AJAX :: Get A Modal Popup Inside A Modal Popup / Fire The Modal Popup On A Condition In A Text Change Event Of A Textbox?

Jan 17, 2010

I am trying to get a modal popup inside a modal popup?, also i want to fire the modal popup on a condition in a text change event of a textbox?...is this possible and can anyone give me directon on this

View 5 Replies

AJAX :: Modal Popup Click Control Within Panel Is Closing Popup

Jul 27, 2010

I'm using modal popup extender and panel with calendar in it. Click the "Next / Previous Month" closes the modal popup. How do I tell the modal popup to ignore click events in a calendar control inside the panel targeted for popup? I'm confused because when using extender before, you had to click OkButton or Cancel to close popup. I have update panel for reason. I just minimized the code for easy review.

[Code]....

View 5 Replies

Modal Popup Extender Not Working

Sep 20, 2010

I've looked at every problem associated with the Modal Popup Extender to no avail. I'm using Visual Studio 2008 with the latest Ajax Toolkit. And I've tested it on all the major browsers and it doesn't work on any. I've poured over numerous examples and they all look like mine but it still doesn't work. As of right now, everything is running on my local host. I do have a script manager as well because in this snippet it doesn't show it. All I want to do is to show the panel with some text in it. So it isn't super fancy. All that happens when you click the link button is a page submission. Also, after I click on the link button I get the "Confirm Page Resubmission?" alert when ever I refresh the page to test new code. Here is the code.

<div class="DivInMidRight">
<asp:LinkButton runat="server" CausesValidation="false" ID="SkillsBtn" CssClass="LinkBtn" onmouseover="tooltip.show('Click for Detailed Information.');" onmouseout="tooltip.hide();">Skills & Experience:</asp:LinkButton>
<asp:ModalPopupExtender BackgroundCssClass="ModalPop" TargetControlID="SkillsBtn" PopupControlID="SkillsPnl" DropShadow="true" CancelControlID="SkillsPnlCnl" ID="ModalSkills" runat="server">
</asp:ModalPopupExtender>
<asp:Panel ID="SkillsPnl" CssClass="SkillsPnlPop" style="display:none;" runat="server">
<asp:Button ID="SkillsPnlOK" runat="server" Text="OK" CssClass="Button"
Height="16px" onclick="SkillsPnlOK_Click" />
<asp:Button ID="SkillsPnlCnl" Text="Close" CssClass="Button" runat="server" />
</asp:Panel>
</div>

View 1 Replies

Ajax Modal Popup Extender Not Working In Ie

Jan 5, 2011

I have a Ajax modal popup extender .Its working fine in FF but not in Ie .

View 1 Replies

AJAX :: Modal Popup Extender Not Working Right In IE 7 Or 8

Jun 9, 2010

The Top is IE and the bottom is FireFox. Firfox is showing correctly. In IE, however, the grey background start directly on the left edge of the page and not across the window span, and the modal target stays below the grey background.

[Code]....

View 2 Replies

Listbox Appears Through Modal Popup Extender?

Feb 13, 2010

I have a base page in which i have a listbox. The base page is also having a modal popup extender. When the modal popup extender appears over listbox, the listbox appears through modal poup. That is, only for listbox, the popup extender becomes transparent.

View 1 Replies

AJAX :: Modal Popup Extender Code Behind?

Jul 15, 2010

i have created an ajax modal popup extender and i want to be able to grab the values in the textboxes that are on the panel. how do i accomplish this from code behind:

[Code]....

once i have the value i need to perform a stored proc and isnert into the database. i have this part sorted but not sure how to grab the values initially.

View 1 Replies

AJAX :: Modal Popup Extender And UpdatePanel?

Mar 18, 2010

I have a page with a gridview and 2 panels each one assigned to its own ModalPopupExtender similar to below...

<asp:GridView ID="MyGV" runat="server">
</asp:GridView>
<asp:Panel ID="Panel1" runat="server" style="display:none;">

[code]...

View 8 Replies

AJAX :: Modal Popup Extender With LoginStatus?

Mar 5, 2010

I try to accomplish the following: When I click on a LoginStatus to log out, I want a modal popup extender to popup ONLY when some condition is true.The mpue has a targetcontrolId that refers to the LoginStatus-control, a PopupControlId that refers to a asp:panel-control.So far I accomplished only two situations:

- always a popup

- never a popup.

View 3 Replies

Modal Popup Extender And Parameter Passing

Feb 28, 2013

I have grid and it shows certain record on searching ..and have few columsn like transactionID .Stauts etc etc ..also it have ModalPopupExtender under the panel (asp panel )

When I click on status column ..it should show modalopopup that show two things ..ErrorCode ,,ErrorDescription based in transactionID

Code:
<asp:GridView ID="GV_Main" runat="server" SkinID="GVundefinewidht" Width="100%"
onpageindexchanging="GV_Main_PageIndexChanging"
onrowdatabound="GV_Main_RowDataBound" onrowdeleting="GV_Main_RowDeleting"
onrowediting="GV_Main_RowEditing" onsorting="GV_Main_Sorting"
AllowSorting="true" AutoGenerateColumns="False"

[Code] .....

View 1 Replies

AJAX :: Modal Popup Extender Along With An Embedded Video, The Popup Is Hidden Behind The Video In IE?

May 4, 2010

When using a modal popup extender along with an embedded video, the popup is hidden behind the video in IE but works as expected in FF.I've tried manually setting the z-index of the popup to a huge number and the z-index of the video object to 1 but this makes no difference.
I've put the code for a sample page below.

[Code]....

View 2 Replies

VS 2008 Can Have More Than One Panel And Modal Popup Extender On A Page

Jun 9, 2010

I just added a panel with the ajax modal popup extender and rounder corner extender. It worked great! I then added a second one named completely different and using two different buttons for the TargetControlID. When i run the page, the first one that worked fine does nothing and same with the second when I click either buttons. No errors, etc.

So i want to see if I can have two of these or not? What would cause it to stop when adding another panel with extenders?

View 1 Replies

AJAX :: Modal Popup Extender And Login Control?

Jan 8, 2010

I have a login control on a web application. I am using a modal popup extender to show a message when the login button is hit. That all works fine. The problem is, once the user hits the "OK" on the popup, it closes and then nothing happens. I tried adding javascript postback but did not help.

View 3 Replies

AJAX :: Set Focus To Textbox In Modal Popup Extender?

Nov 24, 2010

I have a page which displays a modal popup window.

In the popup window I have a textbox and 2 radio buttons. How can I set focus to the textbox when this popup window is displayed.

View 4 Replies

AJAX :: Set Focus When Modal Popup Extender Closes?

Jan 14, 2011

I need to set focus on a textbox in parent form after the pop extender closes. I am setting the focus before showing the popup, but when the popup closes, it is lost.

View 1 Replies

AJAX :: Calendar Hiding Behind The Modal Popup Extender?

Nov 9, 2010

I am using modal popup extender to display a user control which has AjaxToolKit- calender extender. When i click on it, it is shown in the background and i cant click or select a date.. i couldnot get it to work..

View 3 Replies

AJAX :: Add Modal Popup Extender In Gridview Dynamically?

Feb 18, 2011

I am using a griview, in gridview placing a linkbutton then when click that linkbutton a modalpopup should occur. I am using oncommand
method in linkbutton to get sum values, that values is display in the modal popup control. How can i acheive this , give me a sample code.

View 1 Replies

AJAX :: Modal Popup Extender Not Center By Default?

Mar 27, 2011

Usually my Modal popup extender is center by default. However, I have a modal popup that is not center - the modal popup is located on the right lower side of the screen. I have a CSS class for my website that I really dont want to start tracking to see if it is causing my problem (In fact I am pretty sure thats the cause of the problem). So I was thinking...

Is there anyway I can manipulate the modal popup position through the CSS. For instance:

[Code]....

The above is not working, it doesn't do anything to manipulate the width of my background and the position of the modal popup.

View 3 Replies







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