Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. button

button

Scheduled Pinned Locked Moved ASP.NET
tutorial
7 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KhandelwalA
    wrote on last edited by
    #1

    I want to make a button which should be enable only once in 24hrs...................how it will be possible..........plz guide me a bit............:)

    S A N A M 5 Replies Last reply
    0
    • K KhandelwalA

      I want to make a button which should be enable only once in 24hrs...................how it will be possible..........plz guide me a bit............:)

      S Offline
      S Offline
      sashidhar
      wrote on last edited by
      #2

      Use ajax time Control http://www.asp.net/ajax/documentation/live/tutorials/IntroToTimerControl.aspx[^]

      If It Helps Click It as Answer

      modified on Wednesday, September 9, 2009 7:56 AM

      1 Reply Last reply
      0
      • K KhandelwalA

        I want to make a button which should be enable only once in 24hrs...................how it will be possible..........plz guide me a bit............:)

        A Offline
        A Offline
        Abhishek Sur
        wrote on last edited by
        #3

        use javascript...

        SetInterval("enableBtn()", 1000);

        function enableBtn()
        {
        var current = new Date();
        var start = "1:00 PM";
        var constant= new Date("1/1/2007 " + start);

        diff = current - constant;
        if (diff < 0)
        {
        var btn = document.getElementById("btn");
        btn.disabled = false;
        }
        }

        Hope this helps.

        Abhishek Sur


        My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

        **Don't forget to click "Good Answer" if you like to.

        1 Reply Last reply
        0
        • K KhandelwalA

          I want to make a button which should be enable only once in 24hrs...................how it will be possible..........plz guide me a bit............:)

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          You are going to expect users to keep a webpage open for 24 hours at a time? YOu don't need any AJAX or JavaScript, just enable/disable the button when the page is rendered.


          only two letters away from being an asset

          A 1 Reply Last reply
          0
          • K KhandelwalA

            I want to make a button which should be enable only once in 24hrs...................how it will be possible..........plz guide me a bit............:)

            A Offline
            A Offline
            Arun Jacob
            wrote on last edited by
            #5

            KhandelwalA wrote:

            I want to make a button which should be enable only once in 24hrs.

            How u said 24 hrs?From users point of view? :) I don't think that its a good idea.As Mark said a user can't keep a page open for 24 hrs.

            Arun Jacob http://codepronet.blogspot.com/

            1 Reply Last reply
            0
            • K KhandelwalA

              I want to make a button which should be enable only once in 24hrs...................how it will be possible..........plz guide me a bit............:)

              M Offline
              M Offline
              Manas Bhardwaj
              wrote on last edited by
              #6

              Why would you do that?

              Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

              1 Reply Last reply
              0
              • N Not Active

                You are going to expect users to keep a webpage open for 24 hours at a time? YOu don't need any AJAX or JavaScript, just enable/disable the button when the page is rendered.


                only two letters away from being an asset

                A Offline
                A Offline
                Abhijit Jana
                wrote on last edited by
                #7

                Mark Nischalke wrote:

                You are going to expect users to keep a webpage open for 24 hours at a time?

                :jig: :laugh:

                Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups