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. html code built from queried dataset not formatting correct

html code built from queried dataset not formatting correct

Scheduled Pinned Locked Moved ASP.NET
databasehelphtmlcssjson
1 Posts 1 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
    cavall
    wrote on last edited by
    #1

    I have built a page with css style layout. for the content div of the page I populate a dataset from an access database. I then have a string variable which i set to equal all the entries from the dataset. I then populate a label with that string (which has html tags in it) to build the page content. My problem is twofold: A) the html tags I use are

    and

    tags. I want it to build like this (its displaying News entries):


    Title Author: Joe Smith Date: 1/1/05

    Whatever the message is should go here

    Currently there are around 4 entries. The first 3 entries display with the correct layout, but the 4th entry

    is left aligned instead of indented like the others. If I add an entry to the beginning of the list (total of 5), then the 2nd entry

    is left aligned and the rest are correct. If I add an entry to the end of the list (total of 5), then the 4th entry

    is still left aligned and the rest are fine. Here is my CSS for

    and

    : h2 { font-family:Agency FB; font-size:larger; margin:5px 5px 5px 5px; padding:5px 0; } p { margin:0; padding:10px 20px 10px 20px; font-family:Agency FB; text-align:left; } p:first-letter { font-family:Agency FB; font-size: 80%; font-weight: bold; color:blue; } Next problem: B) the access database im pulling from has a memo field, which I am populating into the dataset and then trying to display as the message in the above manner. Only part of the entire memo field is being populated into the dataset, hence the message is only partially displayed. Is there a restriction on the size or type of data that can be pulled from the db and populated into the dataset? Thanks so much for the help!! Cavall ps - here is the complete html code taken from one of the examples of my A) problem:


    May Meeting - May 12, 2005, 7pm, Gary's Dad's Restaurant Author: Eugene Date: 05/12/2005

    7pm Gary's Dad's Restaurant (Cost $10 per person, includes the following, Salad and bread, Pasta, red sauce or alfredo sauce, and grilled chicken. If you would like to order off the menu you may.) Speaker: Gary - Aero position and general bike info. Also

    JTA Members Place in Louisiana Triathlon Author: William Barnett Date: 04/26/2005

    Eugene O'Donnell placed 2nd in his age group, John Noblin finished 6th overall and 3rd in his age group, Larkin Carter finished 5th in his age group, Wayne Jimenez finished 3rd in his age group and I finished 3rd in my age group.

    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