Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to get "previous" and "next" functionality?
    text
    copied!<p>I have a program that people can leave comments on a video. The comments come is as in queue status. The admin can go into the admin section and mark the comments as either approved or removed. They want to be able to automatically go to the next item marked in queue when they press either the previous or next buttons, as well as if they approve or remove a comment. I do not know jQuery or JavaScript well enough to know if it is possible to do it using those, or how to do it through the code behind (this is in C# .NET). Any help would be appreciated:</p> <pre><code>Status and value: In queue = 0 Approved = 1 Removed = 2 </code></pre> <p>Here is the code-behind. The status changes work, the only thing I cannot do is have it go to the next record marked in queue. The first two events are blank because I do not know how to fill them, but simply put, all the need to do too is go to the next record marked in queue.</p> <p>If you need any more code, please let me know...</p> <pre><code> protected void previous_clicked(object sender, EventArgs e) { } protected void next_clicked(object sender, EventArgs e) { } protected void approve_clicked(object sender, EventArgs e) { currentMessage = new videomessage(Request["id"].ToString()); status.SelectedValue = "1"; currentMessage.status = "1"; currentMessage.Save(); } protected void remove_clicked(object sender, EventArgs e) { currentMessage = new videomessage(Request["id"].ToString()); status.SelectedValue = "2"; currentMessage.status = "2"; currentMessage.Save(); } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload