Greetings,
I have a webcurrencyedit control inside of a webdialogwindow. I have some code that sets decimal places (banking software, it has to act like an adding machine - 600 would be 6.00). The code works fine on a control outside of the webdialogwindow. But on the control inside the webdialogwindow, it breaks. It can't find the webcurrencyedit.
My webcurrencyedit is named 'newDepositAmount'
I have tried the following, all unsuccessfully:
var DepositAmount = $find(newDepositAmount).innerText;
var DepositAmount = $find<%= newDepositAmount.ClientID %>").innerText;
var DepositAmount = document.getElementById"<%= lblValidation.ClientID %>).innerText
I need to get the text and then modify it and then reset it to the new value.
Please advise.
Hi,
If you use WebCurrencyEdit control, then you should use only objects of that control. Below is example:
<asp:ScriptManager runat="server" ID="ScriptManager1" /><ig:WebDialogWindow ID="WebDialogWindow1" runat="server"> <ContentPane> <Template> <igtxt:WebCurrencyEdit ID="WebCurrencyEdit1" runat="server"></igtxt:WebCurrencyEdit> <input ID="Button2" type="button" value="button" onclick="click1()" /> </Template> </ContentPane></ig:WebDialogWindow>