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. asp to asp.net

asp to asp.net

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-nettutorial
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.
  • C Offline
    C Offline
    chhayaparekh
    wrote on last edited by
    #1

    hi I am .net programmer I am strong with dataset but my current conversion program requires asp knowledege too. I want some idea how to create dynamic table and row and cell and contorls in cells. Here how I am doing ... I couldn't find any information to find out if it's right or not ... Dim tblNewtable as New Table Dim rwNewRow as New TableRow Dim ceNewCell as New TableCell For loop tblNewtable = new Table With tblNewtable rwNewRow = new TableRow with rwNewRow ceNewCell = new TableCell with ceNewCell 'Creater control '.text = "I am in cell" End With ''end cell rwNewRow.Cell.add(ceNewCell) end with ''end row tblNewtable.Row.add(rwNewRow) end with ''end table how do i add table to form ???? Next Thanks

    M 1 Reply Last reply
    0
    • C chhayaparekh

      hi I am .net programmer I am strong with dataset but my current conversion program requires asp knowledege too. I want some idea how to create dynamic table and row and cell and contorls in cells. Here how I am doing ... I couldn't find any information to find out if it's right or not ... Dim tblNewtable as New Table Dim rwNewRow as New TableRow Dim ceNewCell as New TableCell For loop tblNewtable = new Table With tblNewtable rwNewRow = new TableRow with rwNewRow ceNewCell = new TableCell with ceNewCell 'Creater control '.text = "I am in cell" End With ''end cell rwNewRow.Cell.add(ceNewCell) end with ''end row tblNewtable.Row.add(rwNewRow) end with ''end table how do i add table to form ???? Next Thanks

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, To add the table control to the form element, you first need to declare the Form object in code-behind as Visual Studio does not do that for you:

      Protected WithEvents Form1 As System.Web.UI.HtmlControls.HtmlForm

      then you can easily add the table control to the Form1:

      ...
      Form1.Controls.Add(tblNewtable)
      ...

      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