Click here to Skip to main content
15,880,543 members

Comments by FabeCode (Top 37 by date)

FabeCode 12-Jul-13 16:30pm View    
Correction the OnClick is on the ID="ResetButton" button. When pressed the error occurs.
FabeCode 12-Jul-13 16:27pm View    
Here's the panel code:
<asp:Panel ID="pnlCustCharge" Width="275px" runat="server" Style="display: none">
<table style="margin-left: 75px">
<tr>
<td>
<asp:Button ID="OkButton" runat="server" Text="OK" Style="display: none"/>
<asp:Button ID="btnOk" runat="server" Text="OK"
OnClick="btnOk_Click"/>
</td>
<td style="width: 10px">
</td>
<td>
<asp:Button ID="CancelButton" runat="server" Text="Reset" />
<asp:Button ID="btnCancelRates" runat="server" Text="Cancel"
Style="display: none" OnClick="btnCancelRates_Click" />
</td>
<td style="width: 10px">
</td>
<td>
<asp:Button ID="ResetButton" runat="server" Text="Standard" />
<asp:Button ID="btnReset" runat="server" Text="Standard"
Style="display: none" OnClick="btnReset_Click" />
</td>
</tr>
</table>
FabeCode 12-Jul-13 16:21pm View    
The javascript code is posted. There are only two functions defined. The ModalPopup has three buttons, but only two are refrenced in the extender:

<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="btnCustCharges"
PopupControlID="pnlCustCharge" BackgroundCssClass="modalBackground" DropShadow="true"
EnableViewState="true" OkControlID="OkButton" OnOkScript="onOk()" CancelControlID="CancelButton"
önCancelScript="onCancel()"/>

FabeCode 12-Jul-13 15:53pm View    
Since I just need to reset the objects, I guess not (Not Sure, new to ASP). I need to replace text box values with those previously entered and stored in a datatable.
FabeCode 12-Jul-13 15:36pm View    
<asp:Button ID="btnReset" runat="server" Text="Standard" OnClick="btnReset_Click"/>