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 9273783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:11:40+00:00 2026-06-18T16:11:40+00:00

I need to call a javascript function when the dropdown list is changed. How

  • 0

I need to call a javascript function when the dropdown list is changed.

How can I implement that in asp.net?

  • 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-18T16:11:42+00:00Added an answer on June 18, 2026 at 4:11 pm
    <asp:DropDownList runat="server" ID="DDList" onclick="alert(1)"></asp:DropDownList>
    

    If you want to get function executed when element clicked, you can use above code to define a function that should be executed ‘onclick’.

    But it is better to use something like addEventListener, just search for cross-browser function (for instance, like addListener function here):

    document.getElementById("<%=DDList.ClientID %>").addEventListener("click", fucntionToExecuteName, false)
    

    Remember, than in this case you must take DDList.ClientID and use it as id of an element, because it will be different from ID you have set in your aspx code

    But if you need some function to be executed when actual value is changed, you should use onchange event.

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

Sidebar

Related Questions

OK, I have a function in C++ that I need to call from JavaScript,
I have a javascript function that I need to call on click of the
I have a JavaScript function that I need to call inside my body tags.
I am trying to call a javascript function from asp.net codebehind using onclientclick for
I need to call a javascript function and pass a long url in that.
Here I need to call a javascript function first and after some time I
I have a javascript function from which I need to call a controller action
I need to call a javascript function from my controller in codeigniter.It is possible
I need to call a Javascript function from an a element.. something like this:
I need to create links on webpage which call a javascript function with different

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.