I have a javascript call in OnClientClick that looks like the following:
OnClientClick='<%# "return DisplayAlert(" + Eval("BedNum") + "," + Eval("ClientId") + ");" %>'
But when ClientId is null, the function call is constructed incorrectly with error Uncaught SyntaxError: Unexpected token ) since the function call produces return DisplayAlert(value, );
Is there a way to avoid this error when the 2nd parameter is null?
Thanks
 
    