Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6793967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:09:54+00:00 2026-05-26T18:09:54+00:00

I have some textboxes with linkbuttons. The linkbutton does some updates to some SQL

  • 0

I have some textboxes with linkbuttons. The linkbutton does some updates to some SQL tables.

I also have members club (aspnet membership), and apparently every user has a userid (GUID).

I want to limit the number of clicks to 3 clicks per day on that LinkButton. If they click more than 3 per day, the linkbutton will be disabled.

How can i do that? I don’t know from where to start.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:09:55+00:00Added an answer on May 26, 2026 at 6:09 pm

    You’ll need to store some sort of counter associated to the user. Cache would probably be the most appropriate place as you can specify an expiration, which you’ll need to reset the click count each day.

    Something like this should work:

    Cache.Insert(base.User.UserID.ToString(), 0, null, DateTime.Today.AddDays(1), System.Web.Caching.Cache.NoSlidingExpiration); 
    

    The above will store the userID in cache until midnight of the next day, and then it will be reset. Each time the user clicks the button, increment the value stored in cache, and once the number of clicks reaches three (3), disable the button.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hy, I have created some dynamic textboxes with standard content. Does anyone know how
I have some textboxes on a page and I want to click a link
I have added some dynamic textboxes upon a button click. I need the values
I have a client report (rdlc) and want to repeat some textboxes in every
In my fieldset I have labels next (side) to my textboxes, but for some
I have some textboxes on a webform that have ids like this: txtFinalDeadline_1 txtFinalDeadline_2
i have some comboboxes and some textboxes on a form i would like to
So I have some textboxes (in an UpdatePanel in a ModalPopup in a User
I am using .NET 3.5 framework of VB.NET 2008. I have some textboxes in
I have a jQueryUI dialog with some textboxes, plus a button. Right now, the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.