Hello
I have custom control (ascx) for change password:
Which is loaded on other custom control (ascx) with folowing code
this windows is opened with button:
Now when I press change button on window, ajax panel is not showing. Wait cursor is not loading. How can I fix it.
Marcin
P.S.
If I put validators inside this change password control, they are fired also if window is not shown. And vice versa. If window is shown it firering also validators on parent control. Is it any way to prevent that?
I have custom control (ascx) for change password:
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" %>
<
telerik:RadAjaxPanel
ID
=
"pnlChangePassword"
runat
=
"server"
DefaultButton
=
"btnChange" LoadingPanelID="ralMain"
>
<
div
class
=
"box"
style
=
"width: 445px;"
>
<
fieldset
>
<
asp:Label
ID
=
"lblOldPassword"
AssociatedControlID
=
"txbOldPassword"
runat
=
"server"
Text="<%$ Resources: Common, OldPassword_label %>" />
<
asp:TextBox
ID
=
"txbOldPassword"
TextMode
=
"Password"
runat
=
"server"
MaxLength
=
"100"
/>
</
fieldset
>
<
fieldset
>
<
asp:Label
ID
=
"lblPassword"
AssociatedControlID
=
"txbPassword"
runat
=
"server"
Text="<%$ Resources: Common, NewPassword_label %>" />
<
asp:TextBox
ID
=
"txbPassword"
TextMode
=
"Password"
runat
=
"server"
MaxLength
=
"100"
/>
</
fieldset
>
<
fieldset
>
<
asp:Label
ID
=
"lblConfirmPassword"
AssociatedControlID
=
"txbConfirmPassword"
runat
=
"server"
Text="<%$ Resources: Common, NewPasswordConfirm_label %>" />
<
asp:TextBox
ID
=
"txbConfirmPassword"
TextMode
=
"Password"
runat
=
"server"
MaxLength
=
"100"
/>
</
fieldset
>
</
div
>
<
div
>
<
asp:Button
ID
=
"btnChange"
runat
=
"server"
CssClass
=
"button"
Text="<%$ Resources: Common, ChangePassword_button %>" OnClick="HandlerButtonOnClick" />
</
div
>
</
telerik:RadAjaxPanel
>
<
script
type
=
"text/javascript"
>
//
<![CDATA[
function CloseWin() {
$find('<%= changePasswordWindow.ClientID %>').close();
}
function OpenWin() {
$find('<%= changePasswordWindow.ClientID %>').show();
}
//]]>
</
script
>
<
telerik:RadWindow
ID
=
"changePasswordWindow"
Title="<%$ Resources: Common, ChangeYourPassword_title %>" runat="server" Modal="true" Behavior="Close" EnableShadow="true" Width="530px"
Height="300px" VisibleStatusbar="false">
<
ContentTemplate
>
<
div
style
=
"margin: 10px;"
>
<
ref:ChangePassword
ID
=
"changePassword"
runat
=
"server"
/>
</
div
>
<
asp:LinkButton
ID
=
"btnBack"
runat
=
"server"
Text="<%$ Resources: Common, Close_label %>" CausesValidation="false" OnClientClick="CloseWin();return false;" />
</
ContentTemplate
>
</
telerik:RadWindow
>
<
asp:Button
ID
=
"btnChange"
runat
=
"server"
CssClass
=
"button"
Text="<%$ Resources: Common, ChangePassword_button %>" CausesValidation="false" OnClientClick="OpenWin();return false;" />
Now when I press change button on window, ajax panel is not showing. Wait cursor is not loading. How can I fix it.
Marcin
P.S.
If I put validators inside this change password control, they are fired also if window is not shown. And vice versa. If window is shown it firering also validators on parent control. Is it any way to prevent that?