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. Ajax app with tabs

Ajax app with tabs

Scheduled Pinned Locked Moved ASP.NET
javascripthtmldesignsysadminsales
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.
  • H Offline
    H Offline
    Haim Nachum
    wrote on last edited by
    #1

    Hi. I'm creating a web app with ajax. I added tab control(from jquery ui) that enables to add tabs dynamically. So if the user wants for example to add a new customer he will open a new tab with the "add customer form". Now, if i open a couple of this tabs i have a problem with conflicting id's because each tab that opens receives from the server a chunk of ready html that contains a form with controls that some of them have a id's. My question is , what are the main techniques to add lots of html to a single aspx page that avoids confilicting id's and etc. Thanks.

    N 1 Reply Last reply
    0
    • H Haim Nachum

      Hi. I'm creating a web app with ajax. I added tab control(from jquery ui) that enables to add tabs dynamically. So if the user wants for example to add a new customer he will open a new tab with the "add customer form". Now, if i open a couple of this tabs i have a problem with conflicting id's because each tab that opens receives from the server a chunk of ready html that contains a form with controls that some of them have a id's. My question is , what are the main techniques to add lots of html to a single aspx page that avoids confilicting id's and etc. Thanks.

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Obviously you need to maintain a count of the number of controls and increment the number using said number in the control ID. You can keep a variable somewhere, client-side or server-side, or you can count the number of existing elements and increment.


      I know the language. I've read a book. - _Madmatt

      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