Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

The NoBot control

$
0
0

I'm very unsure about the code for NoBot that I have. Is this code reasonable that it could work or has a missed something

<asp:NoBot ID="NoBot1" runat="server" CutoffMaximumInstances="3"
           CutoffWindowSeconds="10"  ResponseMinimumDelaySeconds="10"
            OnGenerateChallengeAndResponse="NoBot1_GenerateChallengeAndResponse" />

 protected void NoBot1_GenerateChallengeAndResponse(object sender, AjaxControlToolkit.NoBotEventArgs e)
        {
            NoBotState state;
            NoBot1.IsValid(out state);

            if (state.ToString().ToLower() != "valid")
               lblError.Text = state.ToString();
        }

//Tony


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>