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

  • SEARCH
  • Home
  • 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 7858403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T21:25:16+00:00 2026-06-02T21:25:16+00:00

I have in input control in my page that run a query,I want run

  • 0

I have in input control in my page that run a query,I want run this query just between two time for e.g 8:00 AM TO 4:00 PM.

I use a Timer control , but i dont know what code i write in Timer1_Tick becuse my button is html control and it run a javascript function.I want run this function automatiacally( in 8:00 am to 4:00 pm) without any press button control .how can i run this function or click event automatically?

<div id="tab4">  
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">  
        <Triggers>  
        <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />  
        </Triggers>  
        <ContentTemplate>   
        <input type="button" value="Run query" onclick="RunQuery(this)"> </input>  

        </ContentTemplate>  
        </asp:UpdatePanel> 

How can i do it?,

please help me

  • 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-06-02T21:25:17+00:00Added an answer on June 2, 2026 at 9:25 pm

    If you just want to run the javascript function at a specific time you could use the “setTimeout” method to schedule your function execution. For example, the following code displays a message at 20:30 PM of the current day:

    var date = new Date();
    date.setHours(20, 30, 00, 0);
    setTimeout("alert('It is time!')", date.getTime() - (new Date()).getTime());​​​​​​​
    

    You can easily create a function to wrap the code above and apply it to your case. Then just bind it to the Sys.Application.load Event.

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

Sidebar

Related Questions

I have an input control on a page like this: <input type=button causesvalidation=false runat=server
I have an html input control () on an aspx page that is secured
I have a file upload control <input id=File1 type=file /> in my page... How
I have a page with a form. There is an input control I populate
I have a web page that allows users to insert form input objects with
I have a web page that contains two textboxes and a button. I can't
I have a dynamically created TextBox in a C#/ASP.NET web page that I want
I have a page that contains a HiddenField control, I register some javascript on
Atleast defining my problem is simple... I have a Input control (Text) and a
I have a simple input control : <input type=text min=0 max=100 value=0> then I

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.