IF Statement Always True
问题 I have a radwindow that I use to show error messages to users in an application. My goal is as below; If the message is not a warning/error I want user to be redirected when they click \"OK\" on the popped up radwindow. To accomplish this, I\'m setting HiddenField value to \"1\" when the operation is successful and to \"0\" when the operation fails. My problem is that when I check the HiddenField value on the client-side the IF statement always returns true, and the page is redirected. Here