Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2235
client side event on webcombo. cancel or not to cancel.
posted

On a webcombo. I have a clientSideEvents AfterSelectChange.

 

If runs a client side script as follow.

 

function validate() {
 
 
			if (document.getElementById("<%=wcPerCitizenship.ClientID %>"))
				 {
				var retval = confirm("Are you sure you want to change this?");
				if (retval) 
					{
					return true;
					}
				else 
					{
					return false;
					}
				  }
							}


So what I am trying to do is, if the retval is true than allow the change, if it is false than do not allow the change.
When I select either it seems to allow the change anyway.

Any help on this? DO I have the correct event to do this with?
Parents
No Data
Reply Children
No Data