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. Calling JavaScript Function

Calling JavaScript Function

Scheduled Pinned Locked Moved ASP.NET
javajavascripttools
3 Posts 3 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.
  • A Offline
    A Offline
    Ajeet mittal
    wrote on last edited by
    #1

    Hi, I have a dropdownlist.on it selectedindexchange event i want to call a java script function. how i do it. i am using VisualStudio 2005. Plz Tell me answer for it. thanking u to all

    S 1 Reply Last reply
    0
    • A Ajeet mittal

      Hi, I have a dropdownlist.on it selectedindexchange event i want to call a java script function. how i do it. i am using VisualStudio 2005. Plz Tell me answer for it. thanking u to all

      S Offline
      S Offline
      satyaki mishra
      wrote on last edited by
      #2

      Put this code .aspx.cs file. ClientScript.RegisterClientScriptInclude((this.GetType), "MyScript", "JScriptFileName.js"); DrpArtifact.Attributes.Add("OnSelectedIndexChanged", "return ValidateFunction('" + DrpEntityType.ClientID + "'); satyaki mishra

      M 1 Reply Last reply
      0
      • S satyaki mishra

        Put this code .aspx.cs file. ClientScript.RegisterClientScriptInclude((this.GetType), "MyScript", "JScriptFileName.js"); DrpArtifact.Attributes.Add("OnSelectedIndexChanged", "return ValidateFunction('" + DrpEntityType.ClientID + "'); satyaki mishra

        M Offline
        M Offline
        mani_iips
        wrote on last edited by
        #3

        I dont think "OnSelectedIndexChanged" is an event in javascript... instead try this::: DrpArtifact.Attributes.Add("OnChange", "return ValidateFunction('" + DrpEntityType.ClientID + "');

        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