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. Dynamic generation of web pages in asp.net 2.0

Dynamic generation of web pages in asp.net 2.0

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

    How to dynamically generate controls and values of entire web page and every thing (all control types like button or text box .. and their values) comes from databasein asp.net 2.0.

    D 1 Reply Last reply
    0
    • Y ysunil_74

      How to dynamically generate controls and values of entire web page and every thing (all control types like button or text box .. and their values) comes from databasein asp.net 2.0.

      D Offline
      D Offline
      Deepak the Cool
      wrote on last edited by
      #2

      The following code may b helps you This is just an idea you can change into this as your needs.. protected override void Render(HtmlTextWriter writer) { for (int i = 0; i < datatable.rows.count; i++) { Image img = new Image(); img.ImageUrl = string.Format("image1.gif"); img.AlternateText = "My Image"; writer.AddStyleAttribute(HtmlTextWriterStyle.TextAlign, "center"); writer.RenderBeginTag(HtmlTextWriterTag.Div); img.RenderControl(writer); writer.WriteBreak(); writer.Write(todayWeather.ToString()); writer.RenderEndTag(); } }

      Deepak :) Smile a Lots,Its Costs Nothing

      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