|
Rank: Member Groups: Member
Joined: 11/16/2007 Posts: 13
|
Hello,
I have problems with a callbackpanel.
In the eo:callbackpanel is a asp:panel. The user can by setting a checkbox make the asp:panel visible/not visible. In the asp:panel are textboxes with RegularExpressionValidators. Now if the asp:panel is not visible i get javascript error. A function function ValidatorGetValue(id) can't find the textbox control. So when u set a panel not visible and send the form, you get error.
Anyone ?
Code :
<body> <form id="frmManageDeliveryAddresses" runat="server"> <div>
<table class="hoofdtabel" cellSpacing="0" cellPadding="0" width="100%" border="0"> <tr height=15></tr> <tr> <td><h1><asp:literal id="titleLiteral" Runat="server">_Beheer leveringsaddressen</asp:literal> <IMG onclick="ClickHelpIcon('CLCManageDeliveryAddresses')" src="../../images/Global/helpicon.gif" style="CURSOR:help" border="0"></h1></td> </tr> <tr> <td> <table> <tr> <td><asp:validationsummary id="validationSummary" Runat="server" DisplayMode="List" CssClass="verplichtVeld"></asp:validationsummary></td> </tr> </table> </td> </tr> <tr> <td> <eo:CallbackPanel ID="ClosingDayCallbackPanel" runat="server" Triggers="{ControlID:mondayCheckBox;Parameter:},{ControlID:tuesDayCheckBox;Parameter:},{ControlID:wednesDayCheckBox;Parameter:},{ControlID:thursDayCheckBox;Parameter:},{ControlID:friDayCheckBox;Parameter:},{ControlID:addButton;Parameter:},{ControlID:deleteButton;Parameter:}"> <table width=100%> <tr> <td colspan=10><asp:label id="messageLabel" Runat="server" CssClass="error"></asp:label></td> </tr> <tr> <td class="tabletext" colspan=3><asp:LinkButton ID=backButton runat=server CausesValidation="False" onmouseover="getlinkbuttonYellow('Back');" onmouseout="getlinkbuttonBlue('Back');" OnClick="backButton_Click"><img src="../../images/global/btn_rightblue.gif" align="middle" border="0" width="21" height="21">_Back</asp:LinkButton></td> <td></td> </tr> <tr height=15></tr> <tr> <td width=10px></td> <td> <table width=100%><tr bgcolor=#779acf> <td class="tabletitle"><asp:Literal ID=addressesLiteral runat=server>_Addresses</asp:Literal></td> <td colspan=3><asp:DropDownList ID=lstAddresses runat=server OnSelectedIndexChanged="lstAddresses_SelectedIndexChanged" AutoPostBack=true></asp:DropDownList></td> <td class="tabletitle" colspan=5> <asp:LinkButton ID=addNewButton runat=server CausesValidation="False" onmouseover="getlinkbuttonYellow('AddNew');" onmouseout="getlinkbuttonBlue('AddNew');" OnClick="addNewButton_Click"><img src="../../images/global/btn_rightblue.gif" align="middle" border="0" width="21" height="21">_AddNew</asp:LinkButton></td> <td width=40% colspan=4></td> </tr> <tr height=15></tr> <tr> <td class="tabletext"><asp:Literal ID=nameLiteral runat=server >_Name</asp:Literal></td> <td class="tabletext">*</td> <td><asp:TextBox ID=nameTextBox runat=server Width=275 MaxLength=30></asp:TextBox><asp:requiredfieldvalidator id="nameRequiredFieldValidator" Runat="server" CssClass="verplichtVeld" ControlToValidate="nameTextBox" ErrorMessage="_name is verplicht" Display="None"></asp:requiredfieldvalidator></td> </tr> <tr> <td class="tabletext"><asp:Literal ID=name2Literal runat=server>_Name2</asp:Literal></td> <td class="tabletext"></td> <td><asp:TextBox ID=name2TextBox runat=server Width=275 MaxLength=25 ></asp:TextBox></td> </tr> <tr> <td class="tabletext"><asp:Literal ID=streetLiteral runat=server>_Street</asp:Literal></td> <td class="tabletext">*</td> <td><asp:TextBox ID=streetTextBox runat=server MaxLength=17 Width=160></asp:TextBox><asp:requiredfieldvalidator id="streetRequiredfieldvalidator" Runat="server" CssClass="verplichtVeld" ControlToValidate="streetTextBox" ErrorMessage="_street is verplicht" Display="None"></asp:requiredfieldvalidator></td> <td class="tabletext"><asp:Literal ID=numberLiteral runat=server>_Number</asp:Literal></td> <td class="tabletext">*</td> <td><asp:TextBox ID=numberTextBox runat=server MaxLength=5 Width=30></asp:TextBox><asp:requiredfieldvalidator id="numberRequiredfieldvalidator" Runat="server" CssClass="verplichtVeld" ControlToValidate="numberTextBox" ErrorMessage="_number is verplicht" Display="None"></asp:requiredfieldvalidator></td> <td class="tabletext"><asp:Literal ID=boxLiteral runat=server>_Box</asp:Literal></td> <td><asp:TextBox ID=boxTextBox runat=server Width=30 MaxLength=4></asp:TextBox></td> <td width=25% colspan=2></td> </tr> <tr> <td class="tabletext"><asp:Literal ID=postalCodeLiteral runat=server>_PostalCode</asp:Literal></td> <td class="tabletext">*</td> <td ><asp:TextBox ID=postalCodeTextBox runat=server MaxLength=6 Width=40></asp:TextBox><asp:requiredfieldvalidator id="postalCodeRequiredfieldvalidator" Runat="server" CssClass="verplichtVeld" ControlToValidate="postalCodeTextBox" ErrorMessage="_postalCode is verplicht" Display="None"></asp:requiredfieldvalidator></td> <td class="tabletext"><asp:Literal ID=cityLiteral runat=server>_City</asp:Literal></td> <td class="tabletext">*</td> <td colspan=3><asp:TextBox ID=cityTextBox runat=server MaxLength=18 Width=160></asp:TextBox><asp:requiredfieldvalidator id="cityRequiredfieldvalidator" Runat="server" CssClass="verplichtVeld" ControlToValidate="cityTextBox" ErrorMessage="_city is verplicht" Display="None"></asp:requiredfieldvalidator></td> <td class="tabletext"><asp:Literal ID=CountryCodeLiteral runat=server >_CountryCode</asp:Literal></td> <td><asp:TextBox ID=CountryCodeTextBox runat=server Width=20 MaxLength=3></asp:TextBox><asp:requiredfieldvalidator id="CountryCodeRequiredfieldvalidator" Runat="server" CssClass="verplichtVeld" ControlToValidate="CountryCodeTextBox" ErrorMessage="_CountryCode is verplicht" Display="None"></asp:requiredfieldvalidator></td> <td></td> </tr> <tr> <td class="tabletext"><asp:Literal ID=telephoneLiteral runat=server>_Phone</asp:Literal></td> <td class="tabletext"></td> <td><asp:TextBox ID=telephoneTextBox runat=server MaxLength=11 Width=160></asp:TextBox></td> </tr> <tr height=15></tr> <tr> <td colspan=8> <table> <tr> <td colspan=3 class="tabletext"><asp:Literal ID=closingDaysLiteral runat=server>_ClosingDays</asp:Literal></td> <td width=15></td> <td colspan=4 align=center class="tabletext"><asp:Literal ID=foreNoonLiteral runat=server></asp:Literal></td> <td width=15></td> <td colspan=4 align=center class="tabletext"><asp:Literal ID=afterNoonLiteral runat=server></asp:Literal></td> </tr> <tr> <td width=50></td> <td class="tabletext"><asp:Literal ID=mondayLiteral runat=server>_Monday</asp:Literal></td> <td><asp:CheckBox ID=mondayCheckBox runat=server OnCheckedChanged="mondayCheckBox_CheckedChanged" AutoPostBack=true/><asp:HiddenField ID=mondayHiddenField runat=server /></td> <td width=15></td> <asp:Panel ID=mondayPanel runat=server> <td class="tabletext"><asp:Literal ID=mondayFnOpenLiteral runat=server >_Open</asp:Literal></td> <td class="tabletext"><asp:TextBox ID=mondayFnOpenTextBox runat=server Width=35 Visible=false Enabled=false></asp:TextBox> (hh:mm)<asp:RegularExpressionValidator runat=server Display="None" Enabled=false ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" ControlToValidate="mondayFnOpenTextBox" ID="mondayFnOpenVal" ErrorMessage="_MondayFnOpenVal"></asp:RegularExpressionValidator></td> <td class="tabletext"><asp:Literal ID=mondayFnCloseLiteral runat=server >_Sluit</asp:Literal></td> <td class="tabletext"><asp:TextBox ID=mondayFnCloseTextBox runat=server Width=35></asp:TextBox> (hh:mm)<asp:RegularExpressionValidator runat=server Display="None" ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" ControlToValidate="mondayFnCloseTextBox" ID="mondayFnCloseVal" ErrorMessage="_MondayFnCloseVal"></asp:RegularExpressionValidator></td> <td width=15></td> <td class="tabletext"><asp:Literal ID=mondayAfOpenLiteral runat=server >_Open</asp:Literal></td> <td class="tabletext"><asp:TextBox ID=mondayAfOpenTextBox runat=server Width=35></asp:TextBox> (hh:mm)<asp:RegularExpressionValidator runat=server Display="None" ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" ControlToValidate="mondayAfOpenTextBox" ID="mondayAfOpenVal" ErrorMessage="_MondayAfOpenVal"></asp:RegularExpressionValidator></td> <td class="tabletext"><asp:Literal ID=mondayAfCloseLiteral runat=server >_Sluit</asp:Literal></td> <td class="tabletext"><asp:TextBox ID=mondayAfCloseTextBox runat=server Width=35></asp:TextBox> (hh:mm)<asp:RegularExpressionValidator runat=server Display="None" ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" ControlToValidate="mondayAfCloseTextBox" ID="mondayAfCloseVal" ErrorMessage="_MondayAfCloseVal"></asp:RegularExpressionValidator></td> </asp:Panel> </tr> <tr> <td width=15></td> <td class="tabletext"><asp:Literal ID=tuesDayLiteral runat=server>_TuesDay</asp:Literal></td> <td><asp:CheckBox ID=tuesDayCheckBox runat=server OnCheckedChanged="tuesDayCheckBox_CheckedChanged" AutoPostBack=true/><asp:HiddenField ID=tuesDayHiddenField runat=server /></td> <td width=15></td> <asp:Panel ID=tuesDayPanel runat=server> <td class="tabletext"><asp:Literal ID=tuesDayFnOpenLiteral runat=server >_Open</asp:Literal></td> <td><asp:TextBox ID=tuesDayFnOpenTextBox runat=server Width=35></asp:TextBox><asp:RegularExpressionValidator runat=server Display="None" ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" ControlToValidate="tuesDayFnOpenTextBox" ID="tuesDayFnOpenVal" ErrorMessage="_TuesDayFnOpenVal"></asp:RegularExpressionValidator></td> <td class="tabletext"><asp:Literal ID=tuesDayFnCloseLiteral runat=server >_Sluit</asp:Literal></td> <td><asp:TextBox ID=tuesDayFnCloseTextBox runat=server Width=35></asp:TextBox><asp:RegularExpressionValidator runat=server Display="None" ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" ControlToValidate="tuesDayFnCloseTextBox" ID="tuesDayFnCloseVal" ErrorMessage="_TuesDayFnCloseVal"></asp:RegularExpressionValidator></td> <td width=15></td> <td class="tabletext"><asp:Literal ID=tuesDayAfOpenLiteral runat=server >_Open</asp:Literal></td> <td><asp:TextBox ID=tuesDayAfOpenTextBox runat=server Width=35></asp:TextBox><asp:RegularExpressionValidator runat=server Display="None" ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" ControlToValidate="tuesDayAfOpenTextBox" ID="tuesDayAfOpenVal" ErrorMessage="_TuesDayAfOpenVal"></asp:RegularExpressionValidator></td> <td class="tabletext"><asp:Literal ID=tuesDayAfCloseLiteral runat=server >_Sluit</asp:Literal></td> <td><asp:TextBox ID=tuesDayAfCloseTextBox runat=server Width=35></asp:TextBox><asp:RegularExpressionValidator runat=server Display="None" ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" ControlToValidate="tuesDayAfCloseTextBox" ID="tuesDayAfCloseVal" ErrorMessage="_TuesDayAfCloseVal"></asp:RegularExpressionValidator></td> </asp:panel> </tr> <tr> <td width=15></td> <td class="tabletext"><asp:Literal ID=wednesDayLiteral runat=server>_WednesDay</asp:Literal></td> <td><asp:CheckBox ID=wednesDayCheckBox runat=server OnCheckedChanged="wednesDayCheckBox_CheckedChanged" AutoPostBack=true/><asp:HiddenField ID=wednesdayHiddenField runat=server /></td> <td width=15></td> <asp:Panel ID=wednesDayPanel runat=server> <td class="tabletext"><asp:Literal ID=wednesDayFnOpenLiteral runat=server >_Open</asp:Literal></td> <td><asp:TextBox ID=wednesDayFnOpenTextBox runat=server Width=35></asp:TextBox><asp:RegularExpressionValidator runat=server Display="None" ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" ControlToValidate="wednesDayFnOpenTextBox" ID="wednesDayFnOpenVal" ErrorMessage="_WednesDayFnOpen"></asp:RegularExpressionValidator></td> <td class="tabletext"><asp:Literal ID=wednesDayFnCloseLiteral runat=server >_Sluit</asp:Literal></td> <td><asp:TextBox ID=wednesDayFnCloseTextBox runat=server Width=35></asp:TextBox><asp:RegularExpressionValidator runat=server Display="None" ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" ControlToValidate="wednesDayFnCloseTextBox" ID="wednesDayFnCloseVal" ErrorMessage="_WednesDayFnCloseVal"></asp:RegularExpressionValidator></td> <td width=15></td> <td class="tabletext"><asp:Literal ID=wednesDayAfOpenLiteral runat=server >_Open</asp:Literal></td> <td><asp:TextBox ID=wednesDayAfOpenTextBox runat=server Width=35></asp:TextBox><asp:RegularExpressionValidator runat=server Display="None" ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" ControlToValidate="wednesDayAfOpenTextBox" ID="wednesDayAfOpenVal" ErrorMessage="_WednesDayAfOpenVal"></asp:RegularExpressionValidator></td> <td class="tabletext"><asp:Literal ID=wednesDayAfCloseLiteral runat=server >_Sluit</asp:Literal></td> <td><asp:TextBox ID=wednesDayAfCloseTextBox runat=server Width=35></asp:TextBox><asp:RegularExpressionValidator runat=server Display="None" ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" ControlToValidate="wednesDayAfCloseTextBox" ID="wednesDayAfCloseVal" ErrorMessage="_WednesDayAfCloseVal"></asp:RegularExpressionValidator></td> </asp:panel> </tr> <tr> <td width=15></td> <td class="tabletext"><asp:Literal ID=thursDayLiteral runat=server>_ThursDay</asp:Literal></td> <td><asp:CheckBox ID=thursDayCheckBox runat=server OnCheckedChanged="thursDayCheckBox_CheckedChanged" AutoPostBack=true/><asp:HiddenField ID=thursdayHiddenField runat=server /></td> <td width=15></td> <asp:Panel ID="thursDayPanel" runat="server"> <td class="tabletext"><asp:Literal ID=thursDayFnOpenLiteral runat=server >_Open</asp:Literal></td> <td ><asp:TextBox ID=thursDayFnOpenTextBox runat=server Width=35></asp:TextBox><asp:RegularExpressionValidator runat=server Display="None" ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" ControlToValidate="thursDayFnOpenTextBox" ID="thursDayFnOpenVal" ErrorMessage="_ThursDayFnOpen"></asp:RegularExpressionValidator></td> <td class="tabletext"><asp:Literal ID=thursDayFnCloseLiteral runat=server >_Sluit</asp:Literal></td> <td><asp:TextBox ID=thursDayFnCloseTextBox runat=server Width=35></asp:TextBox><asp:RegularExpressionValidator runat=server Display="None" ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" ControlToValidate="thursDayFnCloseTextBox" ID="thursDayFnCloseVal" ErrorMessage="_ThursDayFnClose">></asp:RegularExpressionValidator></td> <td width=15></td> <td class="tabletext"><asp:Literal ID=thursDayAfOpenLiteral runat=server >_Open</asp:Literal></td> <td><asp:TextBox ID=thursDayAfOpenTextBox runat=server Width=35></asp:TextBox><asp:RegularExpressionValidator runat=server Display="None" ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" ControlToValidate="thursDayAfOpenTextBox" ID="thursDayAfOpenVal" ErrorMessage="_ThursDayAfOpen">></asp:RegularExpressionValidator></td> <td class="tabletext"><asp:Literal ID=thursDayAfCloseLiteral runat=server >_Sluit</asp:Literal></td> <td><asp:TextBox ID=thursDayAfCloseTextBox runat=server Width=35></asp:TextBox><asp:RegularExpressionValidator runat=server Display="None" ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" ControlToValidate="thursDayAfCloseTextBox" ID="thursDayAfCloseVal" ErrorMessage="_ThursDayAfClose">></asp:RegularExpressionValidator></td> </asp:Panel> </tr> <tr> <td width=15></td> <td class="tabletext"><asp:Literal ID=fridayLiteral runat=server>_Friday</asp:Literal></td> <td><asp:CheckBox ID=fridayCheckBox runat=server OnCheckedChanged="fridayCheckBox_CheckedChanged" AutoPostBack=true/><asp:HiddenField ID=fridayHiddenField runat=server /></td> <td width=15></td> <asp:Panel ID="friDayPanel" runat="server"> <td class="tabletext"><asp:Literal ID=friDayFnOpenLiteral runat=server >_Open</asp:Literal></td> <td><asp:TextBox ID=friDayFnOpenTextBox runat=server Width=35></asp:TextBox><asp:RegularExpressionValidator runat=server Display="None" ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" ControlToValidate="friDayFnOpenTextBox" ID="friDayFnOpenVal" ErrorMessage="_FriDayFnOpen"></asp:RegularExpressionValidator></td> <td class="tabletext"><asp:Literal ID=friDayFnCloseLiteral runat=server >_Sluit</asp:Literal></td> <td><asp:TextBox ID=friDayFnCloseTextBox runat=server Width=35></asp:TextBox><asp:RegularExpressionValidator runat=server Display="None" ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" ControlToValidate="friDayFnCloseTextBox" ID="friDayFnCloseVal" ErrorMessage="_FriDayFnClose"></asp:RegularExpressionValidator></td> <td width=15></td> <td class="tabletext"><asp:Literal ID=friDayAfOpenLiteral runat=server >_Open</asp:Literal></td> <td><asp:TextBox ID=friDayAfOpenTextBox runat=server Width=35></asp:TextBox><asp:RegularExpressionValidator runat=server Display="None" ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" ControlToValidate="friDayAfOpenTextBox" ID="friDayAfOpenVal" ErrorMessage="_FriDayAfOpen"></asp:RegularExpressionValidator></td> <td class="tabletext"><asp:Literal ID=friDayAfCloseLiteral runat=server >_Sluit</asp:Literal></td> <td><asp:TextBox ID=friDayAfCloseTextBox runat=server Width=35></asp:TextBox><asp:RegularExpressionValidator runat=server Display="None" ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" ControlToValidate="friDayAfCloseTextBox" ID="friDayAfCloseVal" ErrorMessage="_FriDayAfClose"></asp:RegularExpressionValidator></td> </asp:Panel> </tr> </table> </td> </tr> <tr> <td colspan=11><hr color=#779acf /></td> </tr> <tr height=15></tr></table> </td> </tr> </table> </eo:CallbackPanel> </td> </tr> </table> <table> <tr> <td class="tabletext" colspan=2><asp:LinkButton ID=addButton runat=server OnClick="addButton_Click" onmouseover="getlinkbuttonYellow('Add');" onmouseout="getlinkbuttonBlue('Add');"><img src="../../images/global/btn_rightblue.gif" align="middle" border="0" width="21" height="21"> _Add</asp:LinkButton></td> <td width=15px></td> <td class="tabletext" colspan=2><asp:LinkButton ID=deleteButton runat=server OnClick="deleteButton_Click" CausesValidation="False" onmouseover="getlinkbuttonYellow('Delete');" onmouseout="getlinkbuttonBlue('Delete');"><img src="../../images/global/btn_rightblue.gif" align="middle" border="0" width="21" height="21">_Delete</asp:LinkButton></td> </tr> <tr> <td colspan=3> <asp:HiddenField ID=sequenceHidden runat=server /> </td> </tr> </table> </div> </form> </body>
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Thanks for posting in the forum. It will be much appreciated if you can create a trimmed down sample code that demonstrates the problem, instead of just pasting the whole page. That way we can run it and see the problem here. For this kind of problem unless we can run it and debug it, we can not really tell you what's wrong. Sorry about it!
Thanks
|
|
Rank: Member Groups: Member
Joined: 11/16/2007 Posts: 13
|
Maybe this is more easy to read for you guys. It's all about the mondayPanel that is set not visible if you check the mondayCheckBox. Then i have the problem i explained .
<table> <tr> <td><asp:validationsummary id="validationSummary" Runat="server" DisplayMode="List" CssClass="verplichtVeld"></asp:validationsummary></td> </tr> </table> <eo:CallbackPanel ID="ClosingDayCallbackPanel" runat="server" Triggers="{ControlID:mondayCheckBox;Parameter:},{ControlID:addButton;Parameter:}"> <table> <tr> <td colspan=3 class="tabletext"><asp:Literal ID=closingDaysLiteral runat=server>_ClosingDays</asp:Literal></td> <td width=15></td> <td colspan=4 align=center class="tabletext"><asp:Literal ID=foreNoonLiteral runat=server></asp:Literal></td> <td width=15></td> <td colspan=4 align=center class="tabletext"><asp:Literal ID=afterNoonLiteral runat=server></asp:Literal></td> </tr> <tr> <td width=50></td> <td class="tabletext"><asp:Literal ID=mondayLiteral runat=server>_Monday</asp:Literal></td> <td><asp:CheckBox ID=mondayCheckBox runat=server OnCheckedChanged="mondayCheckBox_CheckedChanged" AutoPostBack=true/><asp:HiddenField ID=mondayHiddenField runat=server /></td> <td width=15></td> <asp:Panel ID=mondayPanel runat=server> <td class="tabletext"><asp:Literal ID=mondayFnOpenLiteral runat=server >_Open</asp:Literal></td> <td class="tabletext"><asp:TextBox ID=mondayFnOpenTextBox runat=server Width=35 ></asp:TextBox> (hh:mm)<asp:RegularExpressionValidator runat=server Display="None" ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" ControlToValidate="mondayFnOpenTextBox" ID="mondayFnOpenVal" ErrorMessage="_MondayFnOpenVal"></asp:RegularExpressionValidator></td> <td class="tabletext"><asp:Literal ID=mondayFnCloseLiteral runat=server >_Sluit</asp:Literal></td> <td class="tabletext"><asp:TextBox ID=mondayFnCloseTextBox runat=server Width=35></asp:TextBox> (hh:mm)<asp:RegularExpressionValidator runat=server Display="None" ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" ControlToValidate="mondayFnCloseTextBox" ID="mondayFnCloseVal" ErrorMessage="_MondayFnCloseVal"></asp:RegularExpressionValidator></td> <td width=15></td> <td class="tabletext"><asp:Literal ID=mondayAfOpenLiteral runat=server >_Open</asp:Literal></td> <td class="tabletext"><asp:TextBox ID=mondayAfOpenTextBox runat=server Width=35></asp:TextBox> (hh:mm)<asp:RegularExpressionValidator runat=server Display="None" ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" ControlToValidate="mondayAfOpenTextBox" ID="mondayAfOpenVal" ErrorMessage="_MondayAfOpenVal"></asp:RegularExpressionValidator></td> <td class="tabletext"><asp:Literal ID=mondayAfCloseLiteral runat=server >_Sluit</asp:Literal></td> <td class="tabletext"><asp:TextBox ID=mondayAfCloseTextBox runat=server Width=35></asp:TextBox> (hh:mm)<asp:RegularExpressionValidator runat=server Display="None" ValidationExpression="^([0-1][0-9]|[2][0-3]):([0-5][0-9])$" ControlToValidate="mondayAfCloseTextBox" ID="mondayAfCloseVal" ErrorMessage="_MondayAfCloseVal"></asp:RegularExpressionValidator></td> </asp:Panel> </tr> </table> </eo:CallbackPanel> <table> <tr> <td class="tabletext" colspan=2><asp:LinkButton ID=addButton runat=server OnClick="addButton_Click" onmouseover="getlinkbuttonYellow('Add');" onmouseout="getlinkbuttonBlue('Add');"><img src="../../images/global/btn_rightblue.gif" align="middle" border="0" width="21" height="21"> _Add</asp:LinkButton></td> <td width=15px></td> </tr> </table>
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
It's not a matter of "easy to read" or not. :) We are not magicians that can find out the problem by take a glimpse of it --- while sometimes we can for easy problems, most of the time we need to run it and debug it. That's why it's important for you to post a sample page that runs and reproduces the error.
We tried to copy your page into a blank web form and we had to make the following modifications:
1. Remove all the server side OnClick event handler since we do not have them; 2. Remove onmouseover and onmouseout handler since we do not have them;
We then run the page and it works fine. We tested on the latest build (2007.2.43, available on our download page), so you may want to check your version first.
If the problem persists, please post a test page (both .aspx and .cs/.vb file). Make sure it runs and reproduces the problem. We will be happy to take a look once we have that.
Thanks
|
|
Rank: Member Groups: Member
Joined: 11/16/2007 Posts: 13
|
Hi,
I was just hoping you guys where magicians :).
Did you test sending the form when the panel was not visible?
I have the latest build 2007.2.43.
I'll try to make a simple page with the aspx and .cs file.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We did try that by setting the panel's Visible to false in .aspx file. There is no script error in that case either.
Thanks
|
|