zircon06
Technical User
- Jan 8, 2007
- 81
I have to call different javascript functions in the btnSubmit_click event in code behind based on txtbalancedue value.
If txtbalancedue = 0 then I have to call a js function and capture value. If the value is true then I have to call a update method in code behind.
If txtbalancedue == 1 then I have to call another js function and capture the value. If the value is true then I hve to call insert method from the code behind.
Can anyone suggest what is the best way to do.
Can I use btnSubmit.Attributes.Add("onclick", "return NoBalance();"); I get value second time I hit OK or Cancel button on Javascript confirm box. Not the first time.
If txtbalancedue = 0 then I have to call a js function and capture value. If the value is true then I have to call a update method in code behind.
If txtbalancedue == 1 then I have to call another js function and capture the value. If the value is true then I hve to call insert method from the code behind.
Can anyone suggest what is the best way to do.
Can I use btnSubmit.Attributes.Add("onclick", "return NoBalance();"); I get value second time I hit OK or Cancel button on Javascript confirm box. Not the first time.