Welcome Guest Search | Active Topics | Sign In | Register

Tabstrip/MultiPage javascript error with Validator Controls? Options
WRH
Posted: Wednesday, January 25, 2012 11:33:46 AM
Rank: Member
Groups: Member

Joined: 1/17/2012
Posts: 14
I have a TabStrip and MultiPage control on my aspx page that work as expected. When I add Validator Controls in one of the PageViews of the MultiPage, the TabStrip no longer works.

Code: HTML/ASPX
<asp:RequiredFieldValidator ID="rf2" ControlToValidate="txtTicketNum2" Display="Dynamic" Text="[ticket# 2 required]" ForeColor="Red" runat="server" />
<asp:RegularExpressionValidator runat="server" ID="re2" ControlToValidate="txtTicketNum2" ValidationExpression="^\d{5,6}$" Display="Dynamic" Text="[ticket# 2 Must Be Numeric]" ForeColor="Red" />
<asp:CompareValidator runat="server" ID="cf1" Display="Dynamic" ControlToValidate="txtTicketNum2" ControlToCompare="txtTicketNum1" Operator="Equal" Text="[ticket#'s Do Not Match]" ForeColor="Red" />
<br />
<asp:textbox runat="server" ID="txtTicketNum1" Width="75px" TabIndex="1" ClientIDMode="Static" CssClass="input_text" MaxLength="6" /> 
<asp:textbox runat="server" ID="txtTicketNum2" Width="75px" TabIndex="2" ClientIDMode="Static" CssClass="input_text" MaxLength="6" />


I was able to track down an error message that said "Unable to find control id 'txtTicketNum1' referenced by the 'ControlToValidate' property of 'rf1'".

So how do I properly reference the Control Id in the validators when the control is inside the MultiPage Control?

Thanks,

Wes
eo_support
Posted: Wednesday, January 25, 2012 2:24:04 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We tested your code and it works fine. If you still have problems, please try to isolate the problem into a separate test page and post the full test page. We will be happy to take a look as soon as we have that.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.