function
kontrol() {
alert(
"asd")
var txtmiktar = window["<%= RadNumericTextBox2.ClientID %>"];
var txtyuzde = window["<%= RadNumericTextBox1.ClientID %>"];
if (txtmiktar.GetValue() == '') {
txtmiktar.SetValue(0.00) ;
}
if (txtyuzde.GetValue() == '') {
txtyuzde.SetValue(0.00) ;
}
if (txtyuzde.GetValue() == 0 && txtmiktar.GetValue() == 0) {
alert('
asd');
}
}
And i call it this way: However it throws exception : cs0103 'RadNumericTextBox2' does not exist in the current context
<
telerik:RadNumericTextBox ID="RadNumericTextBox2" Runat="server"
Culture="asd" DbValue='<%# Bind("asd") %>' Type="Currency"
Width="125px" CssClass="label2" MaxValue="1E+16" MinValue="-1E+16" >
<ClientEvents OnKeyPress="kontrol" />
</telerik:RadNumericTextBox>
Thanks...