not good .i want the secend click will minus the rating (rating=rating -1)
and its still not good ,becuse i can hit serval time until its disable.
here a simple examle
PHP Code:
Partial Class a
Inherits System.Web.UI.Page
Protected Sub btnSave_Click(ByVal sender As Object, ByVal e As System.EventArgs)
MsgBox("ASDASD")
End Sub
End Class
PHP Code:
<%@ Page Language="VB" AutoEventWireup="true" CodeFile="a.aspx.vb" Inherits="a" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate>
<asp:Button ID="Button1" OnClick="btnSave_Click" runat="server" Text="Button" />
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress ID="UpdateProgress1" AssociatedUpdatePanelID="UpdatePanel1" runat="server">
<ProgressTemplate>wait</ProgressTemplate>
</asp:UpdateProgress>
</div>
</form>
</body>
</html>
if i hit 5 times its will open msgbox 5 times
without updatepanel ,its open msgbox 1 time.
sorry about my englishe and the spaming