(1) Create an html page with several "Recommend" links, each with it's own unique 8-digit integer identifier. We are simulating a discussion page with multiple messages, but you only need to include the Recommend links. I assume you will want to flag them with something like
<a><span id="R44040444">Recommend</span></a> : 4 Recs
<a><span id="R44040447">Recommend</span></a> : 1 Rec
<a><span id="R44040449">Recommend</span></a> :
within each <a> is <a onclick:[url removed, login to view](44040449)></a> or however the correct syntax is!
The "4 Recs" is a completely separate text field that is not necessary adjacent to the Recommend link.
Each message also has "1 Recommendation" or "N recommendations" or "blank" if there are no recommendations.
The 4 Recs, 1 Rec are the existing Recommendation counts. Notice the third example has no recommendations and is completely blank.
The script should use AJAX to call an .ASPX link, which invokes an MSSQL stored procedure
(3) Write the server ASPX code to handle the AJAX and call the stored proc
(4) Write a dummy stored proc that simply indicates success
to "1 Rec" or from "1 Rec" to "2 Recs"