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 in ASP.NET

Calling javascript in ASP.NET

Scheduled Pinned Locked Moved ASP.NET
csharpjavascriptasp-netsysadminhelp
2 Posts 2 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.
  • U Offline
    U Offline
    User 2071301
    wrote on last edited by
    #1

    Hi there, I am calling a javascript on a server control in ASP repeater. but as i click the button in asp repeater it generates the error as 'Control' is undefined. the reason of the error may be as there is different identification for each control in the repeater. can anybody tell me how to recover the error?

    E 1 Reply Last reply
    0
    • U User 2071301

      Hi there, I am calling a javascript on a server control in ASP repeater. but as i click the button in asp repeater it generates the error as 'Control' is undefined. the reason of the error may be as there is different identification for each control in the repeater. can anybody tell me how to recover the error?

      E Offline
      E Offline
      enjoycrack
      wrote on last edited by
      #2

      anant.awadhut wrote:

      as i click the button in asp repeater it generates the error as 'Control' is undefined

      view the html code generated at client-side to verify ur js code is correct or not. Note: you can use GetClientID func to get the control id will be generate at client-side in server-side code << >>

      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