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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Generating <TD>'s at runtime

Generating <TD>'s at runtime

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

    hi, I want to generate 's at runtime depending upon the records returned by a stored procedure.I am creating layers using

    tags in my aspx page.How do i do it? My code is as below: document.write("<div id=\"menu2\" style=\"filter:revealTrans(duration=.5, transition=3) progid:DXImageTransform.Microsoft.Shadow(direction=135, color=#AAAAAA, strength=5);\" onmouseout=\"killMenu('menu2')\" onmouseover=\"checkMenu();\">"); document.write("<layer name=\"menu2\" onmouseout=\"killMenu('menu2')\" onmouseover=\"checkMenu();\">");

    [User Settings](javascript:ViewSettings();) [Signature](javascript:ViewSignature();) [Define Distribution List](javascript:ViewDistributionList();) [Folder Manager](javascript:ViewFolderManager();)

    document.write("<\/layer><\/div>"); Here Record1 will be generated depending on the number of records fetched from the database. For e.g. If 5 records are returned then 5 tags shld be generated. plz let me knw how to do it? Thanks, Riz

    M 1 Reply Last reply
    0
    • R Rajiya

      hi, I want to generate 's at runtime depending upon the records returned by a stored procedure.I am creating layers using

      tags in my aspx page.How do i do it? My code is as below: document.write("<div id=\"menu2\" style=\"filter:revealTrans(duration=.5, transition=3) progid:DXImageTransform.Microsoft.Shadow(direction=135, color=#AAAAAA, strength=5);\" onmouseout=\"killMenu('menu2')\" onmouseover=\"checkMenu();\">"); document.write("<layer name=\"menu2\" onmouseout=\"killMenu('menu2')\" onmouseover=\"checkMenu();\">");

      [User Settings](javascript:ViewSettings();) [Signature](javascript:ViewSignature();) [Define Distribution List](javascript:ViewDistributionList();) [Folder Manager](javascript:ViewFolderManager();)

      document.write("<\/layer><\/div>"); Here Record1 will be generated depending on the number of records fetched from the database. For e.g. If 5 records are returned then 5 tags shld be generated. plz let me knw how to do it? Thanks, Riz

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      Please read this article about how to add new row to the existing table "Adding new row to the existing table - JavaScript" In this sample "Working with Database", you can check how to generate the dynamic rows based on the records fetched from database. Hope, it would help. Let me know if you still have some problems.

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

      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