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. Giving ID dynamically

Giving ID dynamically

Scheduled Pinned Locked Moved ASP.NET
htmlhelp
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.
  • A Offline
    A Offline
    Arindam Tewary
    wrote on last edited by
    #1

    Hello All, Want to creat a table dynamically in HTML page as

       <%for(int i=0;i<8;i++){%>
          
          <%for (int j = 0;j<8;j++){%>    
           
          <%} %>
          
          <%} %>
    ' >Data
    

    But unfortunately I have been unable to set the ID value of element properly. I want to give ID value of element as a combination of 'i' and 'j' say 1st row 1st cell as 11, 1st row 2nd cell as 12 .... Can anyone help me out setting the ID value properly using loop control variable i and j.

    Thanks, Arindam D Tewary

    P 1 Reply Last reply
    0
    • A Arindam Tewary

      Hello All, Want to creat a table dynamically in HTML page as

         <%for(int i=0;i<8;i++){%>
            
            <%for (int j = 0;j<8;j++){%>    
             
            <%} %>
            
            <%} %>
      ' >Data
      

      But unfortunately I have been unable to set the ID value of element properly. I want to give ID value of element as a combination of 'i' and 'j' say 1st row 1st cell as 11, 1st row 2nd cell as 12 .... Can anyone help me out setting the ID value properly using loop control variable i and j.

      Thanks, Arindam D Tewary

      P Offline
      P Offline
      Paddy Boyd
      wrote on last edited by
      #2

      Why not use a datagrid?

      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