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. onclick event for anchor tag

onclick event for anchor tag

Scheduled Pinned Locked Moved ASP.NET
javascripthelp
4 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.
  • S Offline
    S Offline
    sirisha guttikonda
    wrote on last edited by
    #1

    Hi all i have a doubt i.e is it possible to call a function(not javascript function) on anchor tag onclick. i wrote a function in aspx code page and i want to cal that function on anchor tag onclick. can you plz help me... thank you

    siri

    S K 2 Replies Last reply
    0
    • S sirisha guttikonda

      Hi all i have a doubt i.e is it possible to call a function(not javascript function) on anchor tag onclick. i wrote a function in aspx code page and i want to cal that function on anchor tag onclick. can you plz help me... thank you

      siri

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

      Hi, Definately it is possible. you have to make ur anchor tag as runat="server" than define onclick="function_name" Hope this helps you.

      Hello Forum Always be in touch to help about the topic ASP.NET

      S 1 Reply Last reply
      0
      • S sulabh2020

        Hi, Definately it is possible. you have to make ur anchor tag as runat="server" than define onclick="function_name" Hope this helps you.

        Hello Forum Always be in touch to help about the topic ASP.NET

        S Offline
        S Offline
        sirisha guttikonda
        wrote on last edited by
        #3

        thanku.. i will try this

        siri

        1 Reply Last reply
        0
        • S sirisha guttikonda

          Hi all i have a doubt i.e is it possible to call a function(not javascript function) on anchor tag onclick. i wrote a function in aspx code page and i want to cal that function on anchor tag onclick. can you plz help me... thank you

          siri

          K Offline
          K Offline
          Kunal Pawar
          wrote on last edited by
          #4

          IN this case, best way to use Server Hyperlink control

          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