Asp.Net rating management

I cannot get the selected Rating value(CurrentValue)

control in JavaScript. I am using rating control in and does anyone know how I can get Rating in javascript?ASP.NET

value(CurrentValue)

datagrid

CurrentValue

ASP.NET

+2


source to share


1 answer


Can you provide a Javascript snippet where you want to use the current value of the rating control?
I think you might need to set values ​​in hidden messengers and send variable names in array form to Javascript like this:



  • In the RowDataBound event in the DataGrid

    AjaxControlToolkit.Rating objRatingControl= (AjaxControlToolkit.Rating)row.FindControl("objRatingControl");
    Page.ClientScript.RegisterArrayDeclaration("RatingControlIDs", "'" + objRatingControl.ClientID + "'");
    
          

  • You can now use this array of rating controls in Javascript.

0


source







All Articles