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. General Programming
  3. C#
  4. call a c# funcation in html code

call a c# funcation in html code

Scheduled Pinned Locked Moved C#
questioncsharphtmlhelp
6 Posts 5 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
    saurabh8april
    wrote on last edited by
    #1

    how do i call a c# funcation in html code, on link's onclick? i have already called a function onclick, i need to call another function. kindly help me out.... Thanks Saurabh

    L OriginalGriffO C realJSOPR 4 Replies Last reply
    0
    • S saurabh8april

      how do i call a c# funcation in html code, on link's onclick? i have already called a function onclick, i need to call another function. kindly help me out.... Thanks Saurabh

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Assuming I understand your question you just need to name the second function as something else, e.g. OnClickTwo(). btw please do not use bold font for your question.

      1 Reply Last reply
      0
      • S saurabh8april

        how do i call a c# funcation in html code, on link's onclick? i have already called a function onclick, i need to call another function. kindly help me out.... Thanks Saurabh

        OriginalGriffO Offline
        OriginalGriffO Offline
        OriginalGriff
        wrote on last edited by
        #3

        Firstly, try such questions in the ASP.NET forum - you are more likely to get usefull replies. I assume you are trying to call a C# function in the code behind (server code)? In which case just make the link runat="server" and the onclick event should pick up C# code.

        No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

        1 Reply Last reply
        0
        • S saurabh8april

          how do i call a c# funcation in html code, on link's onclick? i have already called a function onclick, i need to call another function. kindly help me out.... Thanks Saurabh

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          As someone else said, we have an ASP.NET forum. I hate to say this, because it's a library overused by all sorts of clueless people, but AJAX may be what you're looking for. The alternative is simply to have a server control call a code behind method and do a postback.,

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          S 1 Reply Last reply
          0
          • C Christian Graus

            As someone else said, we have an ASP.NET forum. I hate to say this, because it's a library overused by all sorts of clueless people, but AJAX may be what you're looking for. The alternative is simply to have a server control call a code behind method and do a postback.,

            Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

            S Offline
            S Offline
            saurabh8april
            wrote on last edited by
            #5

            thanks everyone..........for ur support.

            1 Reply Last reply
            0
            • S saurabh8april

              how do i call a c# funcation in html code, on link's onclick? i have already called a function onclick, i need to call another function. kindly help me out.... Thanks Saurabh

              realJSOPR Offline
              realJSOPR Offline
              realJSOP
              wrote on last edited by
              #6

              saurabh8april wrote:

              funcation

              Excuse me, but BWAAAA-HA-HA-HA-HA! My sides hurt! You guys slay me!

              .45 ACP - because shooting twice is just silly
              -----
              "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
              -----
              "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

              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