Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 31, 2012 03:13 AM by asteranup
Dec 29, 2012 05:54 PM|LINK
This is a strange twist, and probably a simple coding problem.
In my master page I define jquery slide out tabs. In the master page Head section I use ResolveUrl to ensure that the subfolders can see the code. I am also using the Membership functionality which is all contained in an Account subfolder. I'll use the
ChangePassword page as an example of the problem I'm having.
When ChangePassword.aspx first loads, the slide out tabs are visible. However, if I just click on the Submit button, the validation text appears, but the slide out tabs are no longer visible.
Here is one of the aspx page's textboxes, for the old password (I'm using the ChangePasswordTemplate):
<asp:TextBox ID="CurrentPassword" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="CurrentPasswordRequired" runat="server" ControlToValidate="CurrentPassword"
CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Current Password is required."
Here is the Submit button markup. The OnClick event just reloads the page using Response.Redirect, which works in that it preserves the slide out tabs, but of course you lose the validation text.
<asp:Button ID="ChangePasswordButton" runat="server" CommandName="ChangePassword" Text="Submit"
to write my own ChangePassword code, whereas I'd rather use the built-in CommandName functionality. I've checked and indeed the master page code is not getting fired on the validator's partial postback. I've tried forcing it to fire using client side pageLoad,
but so far without success.
There must be a simple reason why the master page is not being reloaded when the ChangePassword page's validator's are being fired, or at least I hope so!
Dec 29, 2012 06:44 PM|LINK
Of course, another option is to move all the Account subfolder pages up to the main folder, but that seems a bit draconian...
Dec 31, 2012 03:13 AM|LINK
This can be js file reference problem. Check the following posts-