Hello,
I am not sure that I understand correctly what you mean. The code with if statement is executed on the server, the one with the JavaScript is executed from the client's browser, it is normal for the server code to be executed before the JavaScript.
Could you elaborate what is the use case and how the user will submit the update process. Thus all the people who want to help you will have better understanding of your case and will be able to give you more specific directions.
Greetings,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their
blog feed now.