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. late binding

late binding

Scheduled Pinned Locked Moved ASP.NET
csharpjavaasp-netwpfwcf
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.
  • R Offline
    R Offline
    ravikiranreddydharmannagari
    wrote on last edited by
    #1

    req: button in design mode(asp.net using c#) i need to write java script function for the mentioned button which has to be excuted dynamically. plz help me out with regards d.ravi kiran reddy

    J B 2 Replies Last reply
    0
    • R ravikiranreddydharmannagari

      req: button in design mode(asp.net using c#) i need to write java script function for the mentioned button which has to be excuted dynamically. plz help me out with regards d.ravi kiran reddy

      J Offline
      J Offline
      Jax_qqq
      wrote on last edited by
      #2

      I m not getting what exactly u want can u elaborate some more... u can write in code behind like this to add JSFunction at runtime objButton.Attribute.add("onclick","javascript:return functionName();"); string strScript= ""; strScript = ""; strScript = strScript + "function functionName(){"; strScript = strScript + "if (confirm('Are you sure to perform this action?')==true)"; strScript = strScript + "{return true;}"; strScript = strScript + "else"; strScript = strScript + "{return false;}}"; strScript = strScript + ""; Response.Write(strScript); Thanx Anuj Kamthan

      R 1 Reply Last reply
      0
      • J Jax_qqq

        I m not getting what exactly u want can u elaborate some more... u can write in code behind like this to add JSFunction at runtime objButton.Attribute.add("onclick","javascript:return functionName();"); string strScript= ""; strScript = ""; strScript = strScript + "function functionName(){"; strScript = strScript + "if (confirm('Are you sure to perform this action?')==true)"; strScript = strScript + "{return true;}"; strScript = strScript + "else"; strScript = strScript + "{return false;}}"; strScript = strScript + ""; Response.Write(strScript); Thanx Anuj Kamthan

        R Offline
        R Offline
        ravikiranreddydharmannagari
        wrote on last edited by
        #3

        thank u for reply,ok i want to execute a javascript function at runtime how can i with regards d.ravi kiran reddy -- modified at 7:11 Monday 22nd May, 2006

        J 1 Reply Last reply
        0
        • R ravikiranreddydharmannagari

          thank u for reply,ok i want to execute a javascript function at runtime how can i with regards d.ravi kiran reddy -- modified at 7:11 Monday 22nd May, 2006

          J Offline
          J Offline
          Jax_qqq
          wrote on last edited by
          #4

          Boss what u want... u want to execute your script on button click...right if not then send me your code so i can understand what u r trying to do. else write the whole scenario...what to do and when to do. Thanx Anuj

          1 Reply Last reply
          0
          • R ravikiranreddydharmannagari

            req: button in design mode(asp.net using c#) i need to write java script function for the mentioned button which has to be excuted dynamically. plz help me out with regards d.ravi kiran reddy

            B Offline
            B Offline
            Bhasker Pinninti
            wrote on last edited by
            #5

            button.attributes.add("onclick","javascript function name") in code behind thanks Bhasker

            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