A javascript method to be executed on the client when a user clicks the control.

public virtual string OnClickJScript {get; set;}

Remarks

The method specified is passed three parameters in this order: the ClientID, RatedID, and the clicked rating. Returning false will cancel the click and prevent the user from changing the rating, while returning true will allow it to continue as normal.

Example

Here is an example javascript function handling this client-side event:

function handleClick (clientID, ratedID, rating)
{
    var img = document.getElementById(ratedID + "_img");
    img.src = "/images/rating_" + rating + ".jpg";
    return true;
}

See Also

SlickRater Class | KrispWare Namespace