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. call client side function in server side function in asp.net

call client side function in server side function in asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpjavascriptasp-netsysadmin
5 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.
  • V Offline
    V Offline
    vnsraj
    wrote on last edited by
    #1

    Hi All, I have a image button. I would like to call client side function as well as server side function in same button in same time. remember I don't want to call any javascript confirmation. Need yours advice....

    C A 2 Replies Last reply
    0
    • V vnsraj

      Hi All, I have a image button. I would like to call client side function as well as server side function in same button in same time. remember I don't want to call any javascript confirmation. Need yours advice....

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

      vnsraj wrote:

      I would like to call client side function

      vnsraj wrote:

      remember I don't want to call any javascript confirmation.

      You just can't do it. You CAN call client side methods BEFORE calling the server, but, by definition, it has to be javascript. What else could it be ? Do you know what it is you're asking ?

      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.

      1 Reply Last reply
      0
      • V vnsraj

        Hi All, I have a image button. I would like to call client side function as well as server side function in same button in same time. remember I don't want to call any javascript confirmation. Need yours advice....

        A Offline
        A Offline
        Arun Jacob
        wrote on last edited by
        #3

        vnsraj wrote:

        remember I don't want to call any javascript confirmation.

        what you mean exactly? Your question is not clear.:confused: BTW use OnClientClick for adding client method and OnClick for server side code.

        Arun Jacob http://codepronet.blogspot.com/

        V 1 Reply Last reply
        0
        • A Arun Jacob

          vnsraj wrote:

          remember I don't want to call any javascript confirmation.

          what you mean exactly? Your question is not clear.:confused: BTW use OnClientClick for adding client method and OnClick for server side code.

          Arun Jacob http://codepronet.blogspot.com/

          V Offline
          V Offline
          vnsraj
          wrote on last edited by
          #4

          I have a image button, I want to called a server side function in image button onclick function on same time I want to called a javascript function.

          A 1 Reply Last reply
          0
          • V vnsraj

            I have a image button, I want to called a server side function in image button onclick function on same time I want to called a javascript function.

            A Offline
            A Offline
            Arun Jacob
            wrote on last edited by
            #5

            Its possible to inject javascript snippets using ScriptManager.RegisterStartupScript. Why you want 2 do that?Actually vat u r trying 2 achieve?:confused:

            Arun Jacob http://codepronet.blogspot.com/

            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